--- /dev/null
+The Rasterman: <raster@rasterman.com> <raster@redhat.com>
+ <raster@zip.com.au>
+ <raster@enlightenment.org>
+ aka. Carsten Haitzler
+
+Mandrake: <mandrake@mandrake.net>
+ <mandrake@enlightenment.org>
+ <mandrake@lobotomy.com>
+ aka. Geoff Harrison
+
+Kim Woelders: <kim@woelders.dk>
+
+-------------- CONTRIBUTORS: -----------------------------------------------
+
+All code contributed by contributors remains copyright to them respectively
+if they wish to retain copyright. it is up to the authors of patches and
+contributions to clearly mark their contributions with their name, email and
+date in comments if they wish to retain copyright, otherwise it is assumed
+to be transferred to the main E source body.
+
+A BIG thanks to all those who have submitted patches:
+
+Troy Pesola: <pesoltr@network.com>
+
+ For contributing several patches, both to the current and
+ previous revisions of E
+
+Chutt: <ijr@po.cwru.edu>
+ aka. Isaac Richards
+
+ Contributed a patch for use with esound that lowered
+ the RSS by around 200k with the default theme.
+
+Owen Taylor <otaylor@redhat.com>
+
+ icccm widthdraw WM_STATE patch to fix some java endless loops
+
+Sung-Hyun Nam <namsh@lgic.co.kr>
+ Fnlib OR X fonts used in text classes.
+ korean translation
+
+Kimball Thurston <kimball@sgrail.com>
+
+ Fixes for cross-platform support on IRIX
+
+Michael Kellen <michael@agn.physics.montana.edu>
+
+ For sound patches..... :)
+
+Stalyn <add mail here>
+ For dock support.
+
+Frederic Devernay <devernay@istar.fr>
+ Patch for Session managemend IFDEF.
+
+Felix Bellaby <felix@pooh.u-net.com>
+ LOTs of useful Session Management related code.
+
+Michael Jennings (KainX) <mej@eterm.org>
+ lots of useful patches :)
+
+Christian Kreibich <kreibich@informatik.tu-muenchen.de>
+ <chrisk@engr.uconn.edu>
+ The whole window groups stuff, tooltip icons, menu sliding,
+ rotated fonts, labeled buttons, dox colors, window shading tweaks,
+ area wraparounds, translation, oh and Ganymede of course ...
+
+Peter Kjellerstedt <peter.kjellerstedt@axis.com>
+ Patches to fix loading of pre-parsed configuration files,
+ to fix RaiseLower functionality and make it work with
+ groups, to prevent endless loop when reloading menus,
+ and to prevent a crash when closing a large number of
+ windows quickly. internationalization support, etc
+
+Knut Neumann <knut@bert.fsphy.uni-duesseldorf.de>
+ background IPC command
+
+Nathan Heagy <linuxnathan@heagy.com>
+ menu diaplay patch
+
+Simon Forman <snf100@york.ac.uk>
+ groups patch
+
+Brent A. Nelson <brent@astro.ufl.edu>
+ private colormap patch for 8bpp
+
+Graham A MacDonald <graham@34southpark.freeserve.co.uk>
+ patch to fix groups segfault bug
+
+Martin Tyler <mtx@boo.org>
+ groups menu feature patch
+ modules/ipc segfault fix.
+
+Jesse Michael <jessem@revlabs.com>
+ pointing out buffer overflow segfault problems in the IPC
+ interface.
+
+Paul Duncan <duncanpa@engr.orst.edu>
+ mirror groups stuff (and workign on a kick-arse gui theme
+ editor called themble (http://themble.dhs.org)
+
+Daniel Erat <erat@cats.ucsc.edu>
+ patches (OK i forgot what they all were - :-) )
+
+Tom Gilbert <gilbertt@tomgilbert.freeserve.co.uk>
+ same as above (patches and I forgot what they all were)
+
+Peter Alm <peter@xmms.org>
+ xmms patches to make it play nicer? :)
+
+Ben FrantzDale <frantb@rpi.edu>
+ patches - flippy iconification patch :)
+
+Hallvar Helleseth <hallvar@ii.uib.no>
+ patches for gnome menu gereation to scale icons down for us.
+
+Kameran Kashani <kamk@valinux.com>
+Carl Strasen <carl@valinux.com>
+ Lots of help with documentation before the release
+
+David Mason <dave@peckham.net>
+ patch with several spelling mistakes that got missed - thanks
+
+Tom Christiansen <tchrist@jhereg.perl.com>
+ Man / Pod Pages
+
+Ulf Carlsson <ulfc@cthulhu.engr.sgi.com>
+ WarpFocus patch.
+
+Dènis Riedijk <ried@si.tn.tudelft.nl>
+ gettext internationalisation patch for E
+ nl translation
+
+Daniel Egger <Daniel.Egger@rz.fh-muenchen.de>
+ localised file finding patches
+
+Terje Rosten <terjeros@phys.ntnu.no>
+ po files for norwegian
+
+Alexandre David <adavid@DoCS.UU.SE>
+ fix for KDE menu generation
+
+Sylvain GIL <sylvain.gil@solsoft.fr>
+ fixes for fr.po
+
+Gergely Egervary <mauzi@poli.hu>
+ po files for hungarian
+
+Bob Arendt <rdarendt@cwcom.net>
+ 64-bit fixes for e and epplets. Added -ecachedir option to change
+ its location.
+
+Marius Aamodt Eriksen <marius@linux.com>
+ "Focuslist includes shaded windows" patch.
+ "Focusing While Switching" patch.
+
+Kenneth Christiansen <kenneth@ripen.dk>,
+Birger Langkjer <birger.langkjer@image.dk>,
+ danish translation
+
+Matthias Warkus <mawa@iname.com>
+ german translation
+
+Antonio Ognio Cesti <ognio@altavista.net>
+ spanish translation
+
+Pedro Alexandre <miguel@linuxfreak.com>,
+Daniel Vieira Pereira <gunsmithcat@ip.pt>
+ portuguese translation
+
+Vladimir STEPANOV <stepanov@bird.iki.rssi.ru>
+ russion translation
+
+Bernt Holmberg <bernt@grub01.physto.se>
+ swedish translation
+
+Fatih Demir <kabalak@gmx.net>
+ Turkish translation
+
+Graham Roff <graham@licq.org>
+ dock app fix
+
+ITANI Eiichiro <emu@ceres.dti.ne.jp>
+ fix for font ascents
+
+Masahiko Mori <masa@cthulhu.engr.sgi.com>
+ much i18n stuff
+
+Laurence J. Lane <ljlane@debian.org>
+ minor stuff no one ever notices
+
+Matt Wilson <msw@redhat.com>
+ dox alpha patch
+
+(Real name?) <monkeyiq@flashmail.com>
+ Patch for the option to position windows
+ centered under the mouse pointer.
+
+Roberto Selbach Teixeira <maragato@conectiva.com.br>
+ pt_BR.po internationalization... :)
+
+Kim Woelders <kim@woelders.dk>
+ Extended WM Hints support
+
+Stuart Children <stuart@terminus.co.uk>
+ Spec file updates
+
+Michael Kim <lavnrose@e.sarang.net>
+ Korean config/theme files
+ Korean translation update
+
+Jaron Omega <jaron@sock-stream.net>
+ Selective transparency
+
+Ludwig Noujarret <ludwig@noujarret.com>
+ French translation updates
+
+Josh Holtrop <jholtrop@gmail.com>
+ Smarter resizing
+
+Kemal Sanjta <gomez@lugzdk.ba>
+ Bosnian translation
+
+Viktor Kojouharov <vkojouharov@gmail.com>
+ Bulgarian translation
+
+Horák Gyuri <dyuri@horak.hu>
+ Hungarian translation update
+
+Andreas Volz <andreas.volz@brachttal.net>
+ Icons in focus list
+ Icons in dialog buttons
+
+Rajsekar Manokaran <rajsekar@gmail.com>
+ Patch for ARGB client support
+
+Tres Melton <tres@mindspring.com>
+ Pseudotrans update fixes
+ Dialog slider fixes
+
+Peter Hyman <pete4abw@comcast.net>
+ Contributions to README-0.16.8
+ Session script handling suggestions and user documentation
+
+Yasufumi Haga <yasufumi.haga@nifty.com>
+ Japanese translation update
+ Contributions to README-0.16.8
+ README.xml
+
+Nathan Ingersoll <ningerso@gmail.com> (author),
+Ibukun Olumuyiwa <ibukun@computer.org>,
+Dan Sinclair <zero@perplexity.org>, and others
+ ecore_list.
+
+Tristan D. <trinine@free.fr>
+ French translation updates
+
+Pietro Cerutti <gahr@freebsd.org>
+ "alone" window operation
+ Optionally don't cover dragbar when maximising
+
+And others whose names we probably forgot to add (email us and we'll put you
+in here)
--- /dev/null
+
+Enlightenment Standards Compliance
+==================================
+
+Notation
+--------
+
+[ ] : not implemented
+[/] : partially implemented
+[+] : supported
+[-] : unsupported/unused/ignored
+
+
+Extended Window Manager Hints (EWMH) Compliance
+-----------------------------------------------
+
+AKA NetWM or freedesktop hints.
+
+Root Window Properties (and Related Messages)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+[+] _NET_SUPPORTED
+[+] _NET_CLIENT_LIST
+[+] _NET_CLIENT_LIST_STACKING
+[+] _NET_NUMBER_OF_DESKTOPS
+[+] _NET_DESKTOP_GEOMETRY
+[+] _NET_DESKTOP_VIEWPORT
+[+] _NET_CURRENT_DESKTOP
+[+] _NET_DESKTOP_NAMES
+[+] _NET_ACTIVE_WINDOW
+[+] _NET_WORKAREA
+[+] _NET_SUPPORTING_WM_CHECK
+[+] _NET_VIRTUAL_ROOTS
+[-] _NET_DESKTOP_LAYOUT
+[+] _NET_SHOWING_DESKTOP
+
+Other Root Window Messages
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+[+] _NET_CLOSE_WINDOW
+[+] _NET_MOVERESIZE_WINDOW
+[+] _NET_WM_MOVERESIZE
+ [+] _NET_WM_MOVERESIZE_SIZE_TOPLEFT
+ [+] _NET_WM_MOVERESIZE_SIZE_TOP
+ [+] _NET_WM_MOVERESIZE_SIZE_TOPRIGHT
+ [+] _NET_WM_MOVERESIZE_SIZE_RIGHT
+ [+] _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT
+ [+] _NET_WM_MOVERESIZE_SIZE_BOTTOM
+ [+] _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT
+ [+] _NET_WM_MOVERESIZE_SIZE_LEFT
+ [+] _NET_WM_MOVERESIZE_MOVE
+ [+] _NET_WM_MOVERESIZE_SIZE_KEYBOARD
+ [+] _NET_WM_MOVERESIZE_MOVE_KEYBOARD
+ [+] _NET_WM_MOVERESIZE_CANCEL
+[ ] _NET_RESTACK_WINDOW
+[ ] _NET_REQUEST_FRAME_EXTENTS
+
+Application Window Properties
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+[+] _NET_WM_NAME
+[ ] _NET_WM_VISIBLE_NAME
+[+] _NET_WM_ICON_NAME
+[ ] _NET_WM_VISIBLE_ICON_NAME
+[+] _NET_WM_DESKTOP
+[/] _NET_WM_WINDOW_TYPE
+ [+] _NET_WM_WINDOW_TYPE_DESKTOP
+ [+] _NET_WM_WINDOW_TYPE_DOCK
+ [/] _NET_WM_WINDOW_TYPE_TOOLBAR
+ [/] _NET_WM_WINDOW_TYPE_MENU
+ [/] _NET_WM_WINDOW_TYPE_UTILITY
+ [/] _NET_WM_WINDOW_TYPE_SPLASH
+ [/] _NET_WM_WINDOW_TYPE_DIALOG
+ [/] _NET_WM_WINDOW_TYPE_NORMAL
+[/] _NET_WM_STATE
+ [ ] _NET_WM_STATE_MODAL
+ [+] _NET_WM_STATE_STICKY
+ [+] _NET_WM_STATE_MAXIMIZED_VERT
+ [+] _NET_WM_STATE_MAXIMIZED_HORZ
+ [+] _NET_WM_STATE_SHADED
+ [+] _NET_WM_STATE_SKIP_TASKBAR
+ [+] _NET_WM_STATE_SKIP_PAGER
+ [+] _NET_WM_STATE_HIDDEN
+ [+] _NET_WM_STATE_FULLSCREEN
+ [+] _NET_WM_STATE_ABOVE
+ [+] _NET_WM_STATE_BELOW
+ [+] _NET_WM_STATE_DEMANDS_ATTENTION
+[+] _NET_WM_ALLOWED_ACTIONS
+ [+] _NET_WM_ACTION_MOVE
+ [+] _NET_WM_ACTION_RESIZE
+ [+] _NET_WM_ACTION_MINIMIZE
+ [+] _NET_WM_ACTION_SHADE
+ [+] _NET_WM_ACTION_STICK
+ [+] _NET_WM_ACTION_MAXIMIZE_HORZ
+ [+] _NET_WM_ACTION_MAXIMIZE_VERT
+ [+] _NET_WM_ACTION_FULLSCREEN
+ [+] _NET_WM_ACTION_CHANGE_DESKTOP
+ [+] _NET_WM_ACTION_CLOSE
+ [+] _NET_WM_ACTION_ABOVE
+ [+] _NET_WM_ACTION_BELOW
+[+] _NET_WM_STRUT
+[/] _NET_WM_STRUT_PARTIAL
+ Partial strut info not taken into account.
+[-] _NET_WM_ICON_GEOMETRY
+[+] _NET_WM_ICON
+[-] _NET_WM_PID
+[-] _NET_WM_HANDLED_ICONS
+[-] _NET_WM_USER_TIME
+[-] _NET_WM_USER_TIME_WINDOW
+[+] _NET_FRAME_EXTENTS
+
+Window Manager Protocols
+~~~~~~~~~~~~~~~~~~~~~~~~
+[ ] _NET_WM_PING
+[+] _NET_WM_SYNC_REQUEST
+ [+] _NET_WM_SYNC_REQUEST_COUNTER
+
+Other Properties
+~~~~~~~~~~~~~~~~
+[ ] _NET_WM_FULL_PLACEMENT
+
+Compositing Managers
+~~~~~~~~~~~~~~~~~~~~
+[+] _NET_WM_CM_Sn
+
+
+GNOME Compliance (_WIN_... hints)
+---------------------------------
+
+If support is enabled (configure --enable-hints-gnome) Enlightenment is GNOME(1)
+compliant according to http://developer.gnome.org/doc/standards/wm/book1.html.
+
+In case of ambiguities the EWMH specification takes precedence.
+
+
+KDE Compliance (KWM_... hints)
+---------------------------------
+
+These hints are considered obsolete and support has been removed after the
+0.16.6 release.
+
+
+ICCCM Compliance
+----------------
+
+Enlightenment intends to be compliant with the relevant sections of the ICCCM
+Version 2.0.
+
+In case of ambiguities the EWMH specification takes precedence.
--- /dev/null
+Copyright (C) 2000-2008 Carsten Haitzler, Geoff Harrison and various contributors
+Copyright (C) 2004-2008 Kim Woelders
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies of the Software, its documentation and marketing & publicity
+materials, and acknowledgment shall be given in the documentation, materials
+and software packages that this Software was used.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--- /dev/null
+-------------------------------------------------------------------------------
+
+Wed May 13 21:03:23 EDT 1998
+(Raster)
+Moved everything to autoconf/automake.
+Have done piles of the basic work on E 0.14
+Now things get serious with keeping a ChangeLog and stuff.
+
+-------------------------------------------------------------------------------
+
+Thu May 14 21:43:41 EDT 1998
+(Raster)
+Fixed some raising/lowering bugs for desktops (if 3 desktops were up the top
+one would dissapear behind the others when you moved a window that was on
+that desktop).
+Now E handles multi-depth servers fully - instead of not setting a root pixmap
+at all now it inits Imlib especialy for the root visual if the root visual
+doesn't match Imlib's chosen visual, and thus can set the bg on the root
+window even if it's a different visual to what E normally uses.
+Alo created a few more backgrounds for desktops to look cleaner and show off
+a bit more.
+
+-------------------------------------------------------------------------------
+
+Thu May 14 23:44:31 EDT 1998
+(Raster)
+Added STICK action to make windows stick/normal again (toggle it) and made
+sticky windows work (ie stick ABOVE every desktop) and not have anything
+overlap them.. except other sticky windows. :) Changed internal bindings to
+alt-left and alt-right arrow. Added a "slide back in place" action for
+sliding the current active desktop back shut - bound this to alt-down arrow.
+
+-------------------------------------------------------------------------------
+
+Fri May 15 11:20:47 EDT 1998
+(Raster)
+Cleaned up some desktop backgrounds.
+
+-------------------------------------------------------------------------------
+
+Sat May 16 12:05:53 EDT 1998
+(Raster)
+Added button dragging. Now you can drag buttons around your desktop at will,
+with a drage threshold/resistance which E uses to decide if its a drag or a
+click. There is a global action for all buttons that defines whihc mosue
+butotns/combos are used to init a button drag. This now means a user can
+customise his interface "on-the-fly" as needed. I am hoping that on exit E
+will be able to save the settings of all buttons to the user config so they
+come up in the same spot again on the next login.
+
+-------------------------------------------------------------------------------
+
+Sat May 16 23:00:51 EDT 1998
+(Raster)
+Okay I've gone stark raving mad. I just added some sound support into E.
+Also fixed on mapping/stacking bug too. Changed keybindings for exit to be
+alt-End too :)
+
+-------------------------------------------------------------------------------
+
+Sun May 17 17:02:41 EDT 1998
+(Raster)
+Added #ifdefs for ESD support - if esd isn't installed sound won't be
+compiled in at all.
+Fixed the ActionExec to check if the progrma can be executed at all first,
+(ie the user has exec permission ot the exe and it exists in the explicit
+full path or in the users shell path) - if it doesn't tell the user so.
+
+-------------------------------------------------------------------------------
+
+Sun May 17 23:46:55 EDT 1998
+(Raster)
+Added regex.c for regular expression matching (to be used to match client
+names/titlebars using only the "*" wildcard (that is all it supports). I
+coudl use full regex - I may do that in future, but for now I have rolled my
+own.
+
+-------------------------------------------------------------------------------
+
+Mon May 18 23:09:30 EDT 1998
+(Raster)
+Added functiosn to create BorderMatch objects in the List and to match
+window attributes with a BorderMatch Object and cose a window border style
+on this basis. Should *in theory* work - need at least a second border style
+to test this out on...
+Also added more asnity checks int he configure.in to save idiots form
+themselves if they have multiple libraries installed.
+
+-------------------------------------------------------------------------------
+
+Wed May 20 19:40:08 EDT 1998
+(Raster)
+Added more extended hints for clients to be able to report back to E their
+status so E can display icons etc. as will as to if the client is runing,
+idle, has an error etc.
+
+-------------------------------------------------------------------------------
+
+Fri May 22 14:33:28 EDT 1998
+(Raster)
+Screwed aroudn with the extended hints again... moulding them right now...
+they need work. Also last night and today completely moved ALL of E's source
+to use the interenal debugger system (with debug levels 0-9), that requires
+usi macros to start a functiona nd return from it always for internal
+accounting. A full release will just define these to be nothing and simple
+returns when needed, but for now they will be debugging features for
+optimisation purposes and weeding out bugs.
+
+-------------------------------------------------------------------------------
+
+Sun May 24 22:58:55 EDT 1998
+(Raster)
+fixed some rasing/lowering bewteen client windows bugs after having been
+mapped but not moved yet.
+
+-------------------------------------------------------------------------------
+
+Sun May 24 23:21:32 EDT 1998
+(Raster)
+added timers.c for a timer/interrupt handlign system to be started on. (ie
+call a function "In X milliseconds execute this function" and E will safely
+exex that function in X milliseconds (or as close to that as it can) - this
+needs a global timer queue to be set up, an inserter that will insert a new
+timer action into the queue at the right spot modifying the surrounding
+members, modifying the current itimer interrupt if needed. Also when an
+interrupt happens E should open a second display connection, and then send e
+a "fake" event (just a spurious ClientMessage will do or something just to
+make E stop sleeping on xNextEvent if it is), so it will go do its events
+and after the events are honored will enter the "check timer queu" function
+- see if the first member is ready to execute yet, and if it is, remove it
+fromt eh head of the queue, execute it, then setup an itimer interrupt for
+the next queue member if there is one. That is in a nutshell what I have in
+mind that will avoid Xlib sync lost errors (caused by an Xlib call being
+interrupted by an itimer fucntion that also calls Xlib calls, confusing the
+X server and Xlib itself). This should allow e to set arbitary numbers of
+events to happen in X time from now and it should all work. VERY handy for
+stuff like acounting (desktop accounting is currently done whenever you
+click the mouse - i really should do it every few seconds (lets say 10)),
+and autoraise - even animation is possible this way.
+
+-------------------------------------------------------------------------------
+
+Tue May 26 10:03:45 EDT 1998
+(Raster)
+Finally fixed my stacking problems. I wasn't creating/using/addingto/removing
+from the window stack for the desktop properly - makeing the windows go
+under the dragbar and buttons with "ontop=-1" (ie onbottom).
+
+-------------------------------------------------------------------------------
+
+Tue Jun 2 17:04:57 EDT 1998
+(Raster)
+I've been slack keeping up the changelog over Linxu Expo and stuff. Okay.
+Just fixed up some wrapper stuff (I didn't have all my memory
+allocation/freeing code properly wrapped, now it is and ebgugign is turned
+on - it will inform me if i free already freed or non alloced ram, or
+similar stuff with realloc).
+
+-------------------------------------------------------------------------------
+
+Tue Jun 2 22:22:00 EDT 1998
+(Mandrake)
+Okay, damnit. So now we have a finished (I think) config.c. Only things left
+before release now are to add the default strings file, add it to the install
+routine, convert test.c into main.c, and then write the default theme. Gee,
+not asking for much, am I? *grin* Well, time to send this puppy into cvs
+before the wrath of god strikes me down.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 3 00:03:00 EDT 1998
+(Mandrake)
+Ahoy, matey! -Wall -pedantic to the rescue. I've stripped out test.c to turn
+into main.c, I'm going to be adding that file with this update, too. config.c
+should be pretty much done, but I'm not sure if the
+GrabActionKey(ac->list[0])
+in Config_Keybind is going to work or not. raster was a little busy, so maybe
+I have to wait until tomorrow morning to find out. Got to remember to add in
+the sound action, too. I mangled a bunch of code to cease warnings, should
+make things a little happier (fixed a lot of signed / unsigned stuff, too --
+should make life easier when I decide to try to get this thing to compile on
+my alpha. This thing had better work. Well, I have GOT to get some sleep.
+You know, that work thing.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 3 02:04:04 EDT 1998
+(Raster)
+Fixed ALL the Warnings (except for the spurious warning from a system header
+- bugger if I know why that happens). Added themes and config dirs to cvs -
+empty though, and added them to the Makefile.am to start work on them. At
+least the directories will be created now. I need to work out how to create
+my own cusotm install procedure that wipes $(prefix)/enlightenment if it's
+there and also symlinks (ln -sf) $(prefix)/bin/enlightenment to point to
+$(prefix)/enlightenment/bin/enlightenment. Sofar the Automake docs don't
+help much.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 3 10:20:33 EDT 1998
+(Raster)
+Added more checks to configure.in to check for an old install of E and
+install in the same place if the user didn't select --prefix=something. Also
+added symlibk fomr $(prefix)/bin/enlightement to
+$(prefix)/enlightenment/bin/enlightenment.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 3 12:35:38 EDT 1998
+(Raster)
+Did some more configure.in cleanups, moved environment var settign to setup.c
+Turned memory debugging off.. this really slows stuff down
+
+-------------------------------------------------------------------------------
+
+Wed Jun 3 17:18:36 EDT 1998
+(Mandrake)
+*huff huff huff*
+Okay. so now I have added the config dir and the initial definitions file.
+That file will have to have a bunch more string definitions added to it, as
+I run across them in the config.c loading that I'm going to be undergoing
+in a little bit. But this should be enough for people to start actually
+noticing what is supposed to happen with this. (if only switch was more
+mandrake-friendly we wouldn't have this problem...) I may want to go back
+and macro out the switch statements with the ReturnStringReference thingie...
+That might make it look a little cleaner, at least. Still need to
+add EDBUG and ERETURN all throughout the config.c file
+
+-------------------------------------------------------------------------------
+
+Thu Jun 4 19:44:06 EDT 1998
+(Raster)
+Optimised shape changing to only reset the windows shape mask if the
+shape_chnages flag in Border is set (or on resize or client shape changes).
+Bundles of joy with more speed.
+
+-------------------------------------------------------------------------------
+
+Thu Jun 4 19:55:07 EDT 1998
+(Mandrake)
+Okay. Theme loading working its way into the default build. when main.c is
+replaced with test.c now it loads the default definitions file from
+ENLIGHTENMENT_ROOT/definitions (probably should use the config subdir or
+something for that... NOTE TO SELF: should probably change this later)
+LoadEConfig now happens off of main.c, as well, passing a configdir string
+into it, which is set to 0 now, so it should try loading a MAIN file out
+of your .enlightenment directory next. Which is what I am shooting for now.
+the next step is going to be an actual compile and runtime debugging of
+loading this default theme that I am brewing up as I write this. the
+default theme (in theory) should come with my next commit. Scary stuff,
+this is.
+
+-------------------------------------------------------------------------------
+
+Thu Jun 4 21:10:15 EDT 1998
+(Mandrake)
+Hello. it's me again. So I've added the stub of a MAIN file in the
+e/src/config directory. I'm also adding liberally to the definitions file.
+I'm getting nervous as more of this starts coming together. I'm trying to
+put some comments into the MAIN file as appropriate, too. I also realized
+that I need to do something about setting up local user configs (something
+I keep talking about but never actually put int) as well as local user
+definitions files that might need to go with the user configurations. Also
+I need to add a CONFIG_LOAD_FILE type to the config loader. I want peopele
+to be able to break this into multiple files again. maybe have like their
+"control" section and a bunch of LOAD commands in the primary file. So many
+things that I'm thinking of at the last minute...
+Hey, BTW... is LIST_TYPE_COUNT supposed to be set to the number of LIST_TYPE
+thingies there are? I upped the value to 13. (it was 11)
+
+-------------------------------------------------------------------------------
+
+Fri Jun 5 00:37:46 EDT 1998
+(Raster)
+Added ACTION_PLAYSOUNDCLASS action :)
+
+-------------------------------------------------------------------------------
+
+Sat Jun 6 21:14:34 EDT 1998
+(Mandrake)
+
+ARGH! I can't believe you ran INDENT on my files that I was working on.
+no wonder my freakin' macros weren't working right. I didn't even notice
+until I had already mangled large portions of code in config.c.
+*mandrake beams raster over the head with a large fish*
+for future reference, my indent command is
+indent -kr -ts4 -l80 -cli4
+Anyways. Added proper mask detection into the sucker. Now the keybinds should
+load properly I mapped Mod1Mask to Alt in the defintions file. What do 2-5
+do?
+
+-------------------------------------------------------------------------------
+
+Sat Jun 6 21:52:34 EDT 1998
+(Mandrake)
+
+Okay. fixed some config.c stuff, added more definitions (they just keep GOING
+and GOING and GOING) and added a bit more actionclasses to the MAIN file
+in configs. I keep running into stuff I forgot to take into account, so I'm
+going back and attempting to repair various bits as they strike me.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 6 22:44:45 EDT 1998
+(Mandrake)
+
+Put up the final to do list. (see Things.Left.etc)
+fixed up some more minor problems in config.c. Geez, I just keep running
+into oversight after oversight. You would think after working at it for
+so long it wouldn't have these little bugs in it, eh? More definitions
+(I think there are more definitions every time I do a commit now, though)
+Added the "next" subset as it will apply to action classes. I can't
+believe I didn't realize that the first time I went through. you need
+to be able to bind multiple actionlists. *DUH*
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 01:21:07 EDT 1998
+(Mandrake)
+
+Yet more config.c changes. Now I've got some of the borders loading off
+of the default config file, too. All the actionclasses from test.c are
+defined properly, too. the first of the imageclasses should be in
+the MAIN file, too. Somehow, I also forgot to link in Config_ImageClass from
+the default config loader. D'OH! fixed that. much better now.
+Also realized that ReadLRTB was not necessary for all imageclasses.
+Now it keeps a pointer to the last used and LRTB became a small subshell.
+Also, BORDERLESS type is in MAIN, and DEFAULT has been started. (needed
+to check something in now that I have this much modified since the last
+one) text classes are in the MAIN file now, too. Maybe I'll finish this
+some day in the very near future. More definitions for using fnlib,
+too. Decided to make MODE_VERBATIM the default mode for fonts, too
+(overrideable, of course)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 02:14:03 EDT 1998
+(Mandrake)
+
+More MAIN additions. Also, set FLAG_BUTTON as the default borderpart
+type. (that's the one I have been typing so damned much...)
+Also, I think I am going to make some of this wmin/wmax,hmin/hmax
+stuff oneliners so I can do like w 2 2 and define the wmin/max at the
+same time. same for the p/a combos like bxp/bxa and byp/bya and txp/tx§,
+etc... I think it might make more sense that way. also, ontop defaults to
+yes now. I'm tired of typing that, too *grin* Also, wmax is now automatically
+set to wmin's value if you don't set it (same with hmin/max). Also had a
+typo in config.c (thanks to frb) Anything I'm typing too much in the
+MAIN file is suddenly becoming default configuration options for stuff
+*grin* Wonder why that is?
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 11:35:06 EDT 1998
+(Mandrake)
+
+Still working on the default theme. Completed the DEFAULT borderclass.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 11:51:25 EDT 1998
+(Mandrake)
+
+Still working on the default theme. Completed the SHAPED borderclass.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 12:45:16 EDT 1998
+(Mandrake)
+
+Still working on the default theme. Completed sound initializations.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 13:06:38 EDT 1998
+(Mandrake)
+
+Still working on the default theme. Completed desktop initializations
+Also, icl defaults for backgrounds now set to 0 for r,g,b (didn't realize
+I didn't do that already) Buttons, here i come!
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 13:45:47 EDT 1998
+(Mandrake)
+
+Damnit I think the default theme is actually finished now. *sigh*
+Now it's time to debug the loader fully, eh? I set wmin=1, wmax=99999,
+hmin=1,hmax=99999 to buttons by default, too (because that seemed logical)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 18:38:28 EDT 1998
+(Mandrake)
+
+Okay. fixed up some warnings in compiling main.c. My local Makefile is
+now also modified to link main.o in instead of test.o. Loaded the default
+configuration finally, DAMNIT! HAHAHAHAHA it works! Well, kind of. Lots of
+bugs to work out, still, but this is a serious improvement. Only a few
+hours of hacking to get that to work.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 21:53:30 EDT 1998
+(Mandrake)
+
+Okay. Now I'm actually running off this config loading version. Only a couple
+of bugs left in the loader (besides the fact that it's still hardcoded to
+pull this bastard out of my home directory). Desktop buttons don't work right,
+and neither do Desktop settings loading. But for the most part it looks
+pretty good. There is prolly an updated definitions and MAIN file with this
+patch.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 23:04:08 EDT 1998
+(Mandrake)
+
+Damn this button loading piece of crap. This is seriously annoying now. fixed
+a few bugs in the loader but it's still giving me grief. lots of debug
+textual output in the loader still, but I got rid of most of it.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 7 23:15:10 EDT 1998
+(Raster)
+At last! I found the "spurious segfault" bug in E... thanks all to a fast
+machine and gimp... :) It wasa amatter of windows being destroyed by the
+clients before E finished mapping them. I've now apparently fixed that... :)
+
+-------------------------------------------------------------------------------
+
+Mon Jun 8 00:49:37 EDT 1998
+(Raster)
+Wheee fixed button loaidng bug.. moved LoadEConfig After MapUnmap(0); after
+ages of hunting this bastard down - also optimised initial butotn mapping
+and button changing (SimpleShowButton added). Also fixed config files...
+
+-------------------------------------------------------------------------------
+
+Mon Jun 8 01:11:52 EDT 1998
+(Mandrake)
+
+Damn it's good to have that bug fixed. now the MAIN file is loaded from the
+configs subdir of wherever you are. Much happier.
+
+
+-------------------------------------------------------------------------------
+
+Mon Jun 8 23:30:06 EDT 1998
+(Mandrake)
+
+Well, apparently it wasn't a config loading bug. the buttons worked just
+fine, I just forgot some stuff in the config file. fixed that.
+
+-------------------------------------------------------------------------------
+
+Tue Jun 9 22:27:34 EDT 1998
+(Mandrake)
+
+Added local user configs, also changed the loader to look in the right
+paths...
+
+-------------------------------------------------------------------------------
+
+Wed Jun 10 00:32:03 EDT 1998
+(Raster)
+
+Finally - cleaned up code, fixed stacking problem, made make install work..
+for now, new border theme, it's getting there....
+
+-------------------------------------------------------------------------------
+
+Wed Jun 10 01:33:48 EDT 1998
+(Mandrake)
+
+Okay... now we have a local.cfg file to copy around. the MAIN file has
+had it's pieces hacked out of it into a new file. Now users can happily
+hack what various pieces of their configuration do (and add extra stuff)
+without affecting the theme that they're using. happy happy.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 10 02:12:52 EDT 1998
+(Mandrake)
+
+fixed a couple of alert box thingies in the config loader which
+SOMEONE (who will remain nameless) commented out. that's gone.
+NOTE: imlib 1.6 is now required for this snapshot to run properly.
+someone make a new font, too, for the titlebar. it's beginning
+to hurt my eyes. too clashing. Also updated checklist
+
+-------------------------------------------------------------------------------
+
+Wed Jun 10 09:33:44 EDT 1998
+(Raster)
+Did a security AUDIT on E.... OOOOOOOOH CONFIG LOADER had mountians of
+exploits! (the writer of such code shall remain nameless). #if'd out an
+annoying alret box whne there isnt a local.cfg for the user, and only MAIN's
+-E should silently continu as this isn't a bad thing.
+
+Also added extra redundancy for whne Imageclasses defined for buttons cannot
+be found - instead an internal fallback (that is now created) is used.
+Also added a fallback border incase a DEFUALT border isn't defined. Also
+added fallback Imageclass setting for any border. It mightn't look pretty
+(okay it's not bad) but at least things work. Cleaned up 2 nasty wrnings in
+x.c
+
+-------------------------------------------------------------------------------
+
+Wed Jun 10 13:43:46 EDT 1998
+(Mandrake)
+
+Damnit that alert is useful. I _WANT_ to keep those defs in a seperate file
+and force them there. your MAIN file should not contain defs for the
+actionclasses, so you can hotswap themes at will, and keep local config options
+gotta enforce that one.
+
+-------------------------------------------------------------------------------
+
+Fri Jun 12 14:39:37 EDT 1998
+(Mandrake)
+
+Added some stuff to the imageclass loader so it now does the sticky and
+sticky_active portions, also fixed a bug in the sound on/off loader.
+Well, I thought I fixed it, anyways. Apparently it doesn't really
+affect trying to do sounds. i'm going to try fixing that.
+
+-------------------------------------------------------------------------------
+
+Fri Jun 12 18:04:06 EDT 1998
+(Mandrake)
+
+Got annoyed at not having a simple way to do ACTION_GOTO_DESK so
+fixed that. :) also added in bindings into default local.cfg file.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 12:21:09 EDT 1998
+(Mandrake)
+
+Apparently raster did some stuff without making notes in the changelog.
+have no idea, 'cept that now things are alert'ing again where they
+weren't supposed to. Oh well. fixed that. also fixed the alt-f1 ->
+alt-f8 stuff to do desktops 0-7 instead of 1-8 (forgot about the
+numbering from 0 thing)
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 12:21:09 EDT 1998
+(Raster)
+
+last night and today... I fixed all the snprintf's to be wrapped by Esnprintf
+and we have our own snprintf incase the system doesn't have one. I added
+MODe_DESKRAY and deskray stuf to put "tags" where the dragbar of each
+desktop is in deskray mode ontop of all desktops to be able to drag a
+desktop slid underneath others out when in this mode. -also added images for
+this.. it all works perfectly.,. added a ListIdemTypeID to list items by
+type ANd id (i now use i'ds to class buttons 0 is nromal "user buttons) 1 is
+dragbar, 2 is deskray .. etc..all internal use only). I also added images
+for verticla dragbar (looks much nicer now), made button dragging mroe
+efficient... fixed mandraked gotodesk action... :)
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 14:04:30 EDT 1998
+(Mandrake)
+
+added a little bit of a wrapper in ELoadImage() in draw.c to check
+a few path locations to find the image that we're going to try to load.
+now you shouldn't have to change subdirs for the images. Next to do
+the same thing for the sounds. then happy happy that'll be done.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 14:25:04 EDT 1998
+(Mandrake)
+
+Excellent. now sound loading has a wrapper around it, too. Things are
+looking to be shaping up. Now you don't have to do any special setup
+to run the default configuration, it should install nicely and run everything
+out of the default theme. next to actually parse the commandline and
+get the themepath. :)
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 15:55:47 EDT 1998
+(Raster)
+Fixed file.c's pathtoexec and pathtofile fucntiosn to handle absolute paths.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 16:43:01 EDT 1998
+(Mandrake)
+
+Made sure that the LoadWav and ELoadImage accept absolute paths (if
+they exist)
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 17:02:15 EDT 1998
+(Mandrake)
+
+Now we take a -theme argument on the commandline to set themepath.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 17:37:22 EDT 1998
+(Mandrake)
+
+added some more settings to the control section of the config file.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 20:37:20 EDT 1998
+(Mandrake)
+
+Now you can source files using the "file <filename>" operative but only
+in the primary loader... (there is a reason for this that I would
+like to solve so you can source at any point, but for now this will do)
+Also, I changed out some of the StringCount stuff that I had done earlier as a
+temporary hack that I forgot to remove (1 less global variable that should be
+gone anyways after the loader is done with its business...)
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 21:00:37 EDT 1998
+(Mandrake)
+
+Um... well the global variable hack is back. doesn't work yet without
+it. I _DO_ intend to fix that, however.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 13 21:12:20 EDT 1998
+(Mandrake)
+
+Oh yeah... fixed a bug in launching actions, too. I had been meaning to
+do that.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 12:11:43 EDT 1998
+(Mandrake)
+
+*sigh* finally tracked down a bug in the -theme parameter passing. It
+should actually work correctly now. Also removed some of my debugging
+comments.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 13:24:02 EDT 1998
+(Mandrake)
+
+ARGH! more -theme problems. fixed them. also, Chutt provided me
+with a patch that should lower the RSS in the sound.c department.
+put that in, too. (the -theme problem REQUIRED you give a -theme
+argument. that's taken care of now)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 13:34:04 EDT 1998
+(Mandrake)
+
+Also, turned off debug mode. fixed a bug in EDBUG() if DEBUG isn't
+defined. debug mode is much slower for certain things.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 14:28:16 EDT 1998
+(Raster)
+
+Added new font to theme - added stuff to config.c to add config dir
+./enlightenment and the themedir to fnlib'c search path so fonts can be
+included in themes (much nicer) - have a new font tin-e it's small as balls
+but readable - as long as you're not driving your monitor beyond what it can
+do.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 14:48:10 EDT 1998
+(Mandrake)
+
+Found and fixed a memory leak on changing drag directions.
+Might have noticed another memory leak, still investigating.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 16:47:05 EDT 1998
+(Raster)
+
+Added detaild memory debug output to aid in hunting down leaks.. hit left
+mouse and E will display (printf) a debug output
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 16:55:54 EDT 1998
+(Mandrake)
+
+Changed a few things in the local.cfg file.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 17:24:48 EDT 1998
+(Mandrake)
+
+-DDBUG_MEM and -DDEBUG should be done at compiletime, not in the source.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 17:46:56 EDT 1998
+(Mandrake)
+
+added BorderMatch loader.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 19:25:15 EDT 1998
+(Raster)
+
+Finished Colormodifer creation and applying in iclass.c - shoudl work in
+theory.. now we need a config loader section for this..... :) then i can try
+it out! :)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 20:39:22 EDT 1998
+(Mandrake)
+
+*sigh* this ecvs app thing is being a pain in the ass. removed some of it
+on my part. Blech. Fixed the BorderMatch loader to do something useful.
+(added definitions, changed config.c, conf.h)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 22:15:02 EDT 1998
+(Mandrake)
+
+Um, did you even bother attempting to compile cmclass.c? didn't think
+so. fixed compilation problems, also added into Makefile.am so
+now it should actually compile in (need to run autogen.sh again)
+Also fixed a bug in my last commit. I'm getting slow in
+my old age.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 14 23:51:37 EDT 1998
+(Mandrake)
+
+Fixed another bug in the damned bordermatch loader.
+
+-------------------------------------------------------------------------------
+
+Tue Jun 16 13:16:53 EDT 1998
+(Mandrake)
+
+SoundInit() was before LoadEConfig. DOH! fixed that.
+
+-------------------------------------------------------------------------------
+
+Tue Jun 16 19:18:04 EDT 1998
+(Mandrake)
+
+themes can now be put in ENLIGHTENMENT_ROOT/theme/ now, as well
+(absolute path is still checked first)
+
+-------------------------------------------------------------------------------
+
+Tue Jun 16 20:04:51 EDT 1998
+(Mandrake)
+
+Fleshed out the ColorModifier loader. unfortunately, since I don't know
+really what it's supposed to do, that makes testing a wee bit difficult.
+
+-------------------------------------------------------------------------------
+
+Fri Jun 19 01:42:02 EDT 1998
+(Mandrake)
+
+these are some notes from over the past few days...
+Been working on ImageClass stuff, realized that I didn't allow users
+to load disabled images for imageclasses. fixed that bug. also
+worked on class inheritance for the config loader, and allowing
+imageclasses to have their own overlays.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 20 17:54:10 EDT 1998
+(Raster)
+
+Fixed ColorModifierClasses to work with bakcgorunds and everything.. they
+work.. I just need mandrakes loaidng code to work and we're done there...
+changed the tin-e font to be cleanerm neater and easier to read. :)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 16:07:02 EDT 1998
+(Mandrake)
+
+Well, the colormodifier loader should work now okay. and yes, this font is
+much easier to read. I suppose I'm going to have to write a colormodifier
+configuration to read and muck with it now to make sure it works okay.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 16:20:46 EDT 1998
+(Mandrake)
+
+Hmm... forgot to let you apply colormodifier's to individual images in
+the imageclass. fixed that. now it'll apply to the whole class if you
+haven't defined a portion yet. :)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 19:02:51 EDT 1998
+(Mandrake)
+
+Now colormodifier curves take x/y coordinate pairs, and they can take
+a (theoretically) infinite set per. Much better.
+I.E.
+red 0,25 1,60 50,100
+I like that lots better than the other way I had.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 19:32:06 EDT 1998
+(Raster)
+
+fixed a typo in the actions defines that made it look ugly, fixed up the
+soudn class stuff to dynamically on demand load samples, and to fre samples
+form ram AND esd when soudn is turned off and reload them when turned on
+again on demand, on/off sound works properly now, with an icon/button to
+toggle it. Will be working on buttons mroe more stuff in E next...
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 20:53:22 EDT 1998
+(Mandrake)
+
+Now GetNextLine (text parser) will substitute in environment variables
+during config parsing with $VARIABLE substitution.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 21:34:17 EDT 1998
+(Raster)
+
+Added several border styles to the list of borders and bordermatches for
+them (SHAPED, TRANSIENT and non-resizable (FIXEDSIZE) windows) - and fixed
+the shaped window detection routines...
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 22:02:23 EDT 1998
+(Raster)
+
+made "borderless" windows that are borderless becuase the app requested
+being borderless via MWM hints arent slid onto sreen but mapped directly...
+
+-------------------------------------------------------------------------------
+
+Sun Jun 21 22:50:16 EDT 1998
+(Raster)
+
+made the arrangement algorithm avoid buttons when arranign windows on
+startup and cleanup... :)
+
+-------------------------------------------------------------------------------
+
+Mon Jun 22 11:10:23 EDT 1998
+(Raster)
+
+Added change focusmode button and images - didcovered now that
+click-to-focus over time has become completely fetn and am working on a fix...
+I HATE click-to-focus... its always the first thing to break.... DAMN DAMN
+
+-------------------------------------------------------------------------------
+
+Mon Jun 22 22:01:08 EDT 1998
+(Raster)
+
+Finally fixed click to focus.... WHEEEEEEEEEEEEEEEe! oh what funt hat was!
+
+-------------------------------------------------------------------------------
+
+Tue Jun 23 00:13:45 EDT 1998
+(Raster)
+
+fixed missing #ifdef in sound.c - updated things.to.do.....
+
+-------------------------------------------------------------------------------
+
+Tue Jun 23 14:53:30 EDT 1998
+(Raster)
+
+fixed pointer focus and tried a fix for click to focus to stop mandrake form
+whining....
+
+-------------------------------------------------------------------------------
+
+Tue Jun 23 15:23:08 EDT 1998
+(Raster)
+
+added button to change resizemode
+
+-------------------------------------------------------------------------------
+
+Wed Jun 24 01:33:15 EDT 1998
+(Raster)
+
+Added buttons for toggling mapslide and deskslide....
+
+-------------------------------------------------------------------------------
+
+Fri Jun 26 00:30:39 EDT 1998
+(Raster)
+
+Added buttons for cleanupslide, slidemode, dragdir and dragbarorder and
+created buttons for them to config them on the fly, and fixed a minor bug in
+the definitons file.. misc typo...
+
+-------------------------------------------------------------------------------
+
+Fri Jun 26 10:16:49 EDT 1998
+(Raster)
+
+Added options to the exit function for restart restart_theme and restart_wm
+(to restart another wm). :) also added more env vars set by E.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 27 15:20:09 EDT 1998
+(Raster)
+
+Lots of things:
+removed crappy (possibly copyrighted) bgs form the pix dir. Fixed
+backgroudns to use one of 3 defined.
+fixed desktp bg loader to re-use defined bgs
+fixed desktop loader and desktop bg refresher to work 100% properly on multi
+depth displays (eg 24+8) - foucn accelX has a bug in 24+8 whereby it "loses"
+the framebuffer bits for some windows.. will have to ship this off to xig.
+fixed desktop refresher to not accidentally load an extra background when
+flipping desktops.
+fixed dragbars for bottm and right configs to not accidentaly drag too far
+to the bottom and right
+fixed resizing of window for sizing to the left or up so it remains
+stationary, doesnt jump, and doesnt go sldiin away is i resize too clsoe to
+0 in those dirs.
+truned of dynamic border chaning caus enetscape does ugly things on tis
+transients when they close. not sure exactly why right now, but turning it
+off makes things ok again.
+added more icons for things like dragbar ordering dragdir chaningng and
+others...
+
+-------------------------------------------------------------------------------
+
+Sat Jun 27 18:09:32 EDT 1998
+(Raster)
+
+Added auto-save on exit funtion - changed config fielnames to be more human
+redable and make mroe sense
+added theme_pre.cfg file to read
+added the user_autosave.cfg at the end
+
+added signal handlers for every signals under the sun. (segfaqult, sigbus,
+sigfpe, usr1, usr2, hup etc....)
+
+-------------------------------------------------------------------------------
+
+Sun Jun 28 12:50:14 EDT 1998
+(Raster)
+
+modified button loader to look for previous button defs of that name first
+and if they exit the new entry modifies the old one rather than creating a
+new one... :) now i can go add button gemoetry saving to the saver too.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 28 13:43:50 EDT 1998
+(Raster)
+
+Wheeeeeeeeee! now E saves the position of all butotn son edit and whne u
+restart theyr'e just where oyu left them (and if you change rsolutions ie
+use the same configs on yer laptop) it will auto adjust for it :)
+neat eh?
+
+-------------------------------------------------------------------------------
+
+Sun Jun 28 21:18:40 EDT 1998
+(Raster)
+
+Okay added lots of icons for programs and button defs for tham.
+
+-------------------------------------------------------------------------------
+
+Mon Jun 29 00:28:40 EDT 1998
+(Raster)
+
+Added autosave toggle butotn - moved defautl butotn locations around, fixed
+variable completion bug in config.c
+
+-------------------------------------------------------------------------------
+
+Mon Jun 29 12:26:25 EDT 1998
+(Raster)
+
+fixed box resize and move nto to accidentally leave trails.
+
+-------------------------------------------------------------------------------
+
+Mon Jun 29 21:35:36 EDT 1998
+(Raster)
+
+Changed clock-to-focuse to raise on click too, fixed minor bug when moving
+and resizign widnows ANd chanign desktops....
+
+-------------------------------------------------------------------------------
+
+Mon Jun 29 22:56:31 EDT 1998
+(Raster)
+
+Woho! fixed lots and lots of fd leaks in sound... :) ooops
+
+-------------------------------------------------------------------------------
+
+Wed Jul 1 20:18:52 EDT 1998
+(Raster)
+
+fixed some other minor nigglies in drawing code.
+
+-------------------------------------------------------------------------------
+
+Thu Jul 2 20:39:00 EDT 1998
+(Raster)
+
+Added 2 more buttons for the desktop config and played wiht dox to make it
+slicker.. :)
+
+-------------------------------------------------------------------------------
+
+Fri Jul 3 03:19:14 EDT 1998
+(Raster)
+
+Made -theme work properly.
+added file seracher function and use that now for loading images and sounds.
+added theme finder function
+added .tar .tar.gz and dirtecotry theme handlign transparently.
+added code to clenaup .tar znd .tar.gz themes hwne done.
+made the move on desktops other than root not clicker untilt he window is
+dragged out of the bounds of that desktop - still flicker then but it's the
+best I can do.
+
+*** need to reorganise default theme stuff ot be nice and friendly to users
+AND theme makers alike.
+
+-------------------------------------------------------------------------------
+
+1998-07-05 Yo Ric Dude <ericmit@ix.netcom.com>
+
+ * sound.c (SoundPlay): added necessary changes for esound-0.2.4 api
+ change. All esd_open_sound() calls now require a string parameter if
+ a remote esd server is to be used, NULL for defaults. Also adds a
+ string parameter to the esd_sample_cache call, to identify the sample
+ by name. All samples currently have the name "E". TODO: make the
+ name an event type or sound filename. Also included fix to run sample
+ caching and playing off the same esd socket. A #if 0/1 block switches
+ between esound-0.2.3 workarounds and the new improved esound-0.2.4 api
+
+-------------------------------------------------------------------------------
+
+Mon Jul 6 10:32:26 EDT 1998
+(Mandrake)
+
+Ric forgot to actually make the stuff for 0.2.3 work with 0.2.3.
+fixed that.
+
+-------------------------------------------------------------------------------
+
+Wed Jul 8 00:08:21 EDT 1998
+(Raster)
+
+did lots of minor fixes - fixed theme extraction and file finders, changed
+alert messaged to be more helpful, fixed stuff to look smoother when
+flipping bakc to desktop 0, and whilst mappign buttons.......
+
+-------------------------------------------------------------------------------
+
+1998-07-05 Yo Ric Dude <ericmit@ix.netcom.com>
+
+ * sound.c: corrected parameter to esd_open_sound(). fixed 0.2.4
+ compatibility section. cvs versions of each should be in synch.
+ The calls to esd_open_sound(NULL) may break under esoundd-0.2.3.
+
+-------------------------------------------------------------------------------
+
+Wed Jul 8 20:59:29 EDT 1998
+(Mandrake)
+
+Due to incessant complaints via email, the default esd used in compiles is
+0.2.3 once again until 0.2.4 comes out. (change the #if 0/1 place to
+flipflop) Also, I think I added multi-key modifiers correctly. not
+fully tested, will probably do that a little later. Back to work on
+ConfigEdit...
+
+-------------------------------------------------------------------------------
+
+Wed Jul 8 22:23:53 EDT 1998
+(Raster)
+
+Due to lack of incessant complaints via email, the default esd used in
+compiles is 0.2.4 once again. (change the #if 0/1 place to
+flipflop) I also added hide and showing of buttons with actions (with lots
+of options) so u can clean out unused buttons as needed - even using regular
+expressions for butotn name matching... also fixed sticky window move bug
+and a mem leak int he doCleanup() function.
+
+-------------------------------------------------------------------------------
+
+Thu Jul 9 01:28:40 EDT 1998
+(Raster)
+
+Fixed sticky window drawing bug.
+Fixed bug in config loader for ctrl+lat and ctrl+shit+alt etc.. to work.
+did a bit of cleaning in the config files and chnaged all the keybindings to
+new ones, now things are much mroe sane...
+
+-------------------------------------------------------------------------------
+
+Sun Jul 12 13:40:02 EDT 1998
+(Mandrake)
+
+still updating stuff with configedit.
+
+-------------------------------------------------------------------------------
+
+Sun Jul 12 23:23:39 EDT 1998
+(Raster)
+
+fixed minor rpoblem with initiating other actions whilst another one is in
+prograss (ie basically move and resize actions) - excluded these other
+actions form being able to happen whilst these "continuing" actions are still
+going.
+
+-------------------------------------------------------------------------------
+
+Tue Jul 21 22:08:33 EDT 1998
+(Mandrake)
+
+Added Stalyn's xevent patch in. Hopefully his first of many contributions.
+It'll be nice if someone else joins the dev team. Anyways this patch should
+theoretically speed up pretty much all of normal operations, since it's the
+primary activity in the primary event loop. As soon as stayln gets cvs access
+I'll let him ramble about his change.
+
+-------------------------------------------------------------------------------
+
+Thu Jul 23 14:25:43 EDT 1998
+(Mandrake)
+
+Thanks to Ashley Clark for pointing out a fix for the problems that
+various people were having with EROOT not being set correctly (has to do
+with unexpected behaviours of putenv vs. setenv -- let's hope this one
+will work correctly)
+
+-------------------------------------------------------------------------------
+
+Tue Jul 28 21:16:26 EDT 1998
+(Mandrake)
+
+Muahahahaha. StringList compiled into the primary source tree now :)
+I'll try to state this whole thing with one commit (I hope this works enough)
+A lot of the more fundamental functionality of enl's file system structure
+has been moved into StringList (e/eStringList) as well as the StringList
+stuff itself, the debugging macros, et cetera. e/src/file.c is no more,
+also (fully a part of StringList lib). also, the Alertbox stuff (which
+will end up being generically useful for both console and X applications)
+was taken and put into StringList. expect a good deal more to go into
+the StringList library over the course of the week.
+
+-------------------------------------------------------------------------------
+
+Fri Jul 31 23:09:14 EDT 1998
+(Mandrake)
+
+Changed some stuff in main.c to use the new StringList generic alert box
+initialization stuff. Still have a bunch of work to do there, but it's
+coming along okay.
+
+-------------------------------------------------------------------------------
+
+Sat Aug 1 15:19:17 EDT 1998
+(Mandrake)
+
+Changed EExit() to return an int and take a (void *) as an argument in order
+to comply with the stuff that StringList wants. all files using EExit
+were affected.
+
+-------------------------------------------------------------------------------
+
+Sat Aug 1 16:19:06 EDT 1998
+(Mandrake)
+
+Changed the configure.in file to use imlib-config for stuff instead of checking
+for various libs (it's a better idea to let users selectively remove support
+from imlib if they feel like it, IMNSHO).
+
+-------------------------------------------------------------------------------
+
+Sun Aug 2 11:29:07 EDT 1998
+(Mandrake)
+
+Added a patch from Sung-Hyun Nam <namsh@lgic.co.kr> to support X fonts in
+text classes, as well as Fnlib fonts. Especially important for non-standard
+language fonts (like kanji, etc).
+
+-------------------------------------------------------------------------------
+
+Wed Aug 5 21:04:36 EDT 1998
+(Mandrake)
+
+Added in a patch from Kimball Thurston <kimball@sgrail.com> to attempt a little
+more cross-platform support. This should help things considerably.
+this includes alloca problems, as well as a setenv macro, and a #define for
+choosing the shell (IRIX apparently uses restricted mode ksh for its /bin/sh -
+evil!)
+
+-------------------------------------------------------------------------------
+
+Sat Aug 8 20:07:21 EDT 1998
+(Raster)
+
+Added minor change to CTF event passing code - added anti-aliased truetype
+font support.. :)
+
+-------------------------------------------------------------------------------
+
+Sun Aug 9 15:07:34 EDT 1998
+(Mandrake)
+
+Good lord. Removed ewin->state. Now THAT was a bit tricky. Everything looks
+okay. although after mucking with that I think that maybe I should have
+gone the other way :) a little of the iconification stuff in this check-in
+(lists.c changes specifically not going in due to severe breakage which happens
+at that point)
+
+-------------------------------------------------------------------------------
+
+Sun Aug 9 22:33:12 EDT 1998
+(Mandrake)
+
+More General Insanity. Progress on the iconification front. fixed the
+stuff I mangled in lists.c (put it back the old way, did a simple thing this
+time instead of the copmlicated window listing stuff) ACTION_ICONIFY is
+still iffy at best - but it does something now :)
+
+-------------------------------------------------------------------------------
+
+Tue Aug 11 12:15:23 EDT 1998
+(Mandrake)
+
+More Iconification stuff. almost works
+
+-------------------------------------------------------------------------------
+
+Wed Aug 12 13:05:48 EDT 1998
+(Mandrake)
+
+Iconification works. Well, at least kinda. Actionclasses are left over
+as a slight memory leak until I fix that. also they all look like the
+ACTION_EXIT button. they also all appear in the same location. well, to
+be honest there's a lot left to do, but at least this is the model that will
+work :)
+
+-------------------------------------------------------------------------------
+
+Wed Aug 12 19:38:41 EDT 1998
+(Raster)
+
+Added program specified position hint support - new default theme. fun.
+
+-------------------------------------------------------------------------------
+
+Thu Aug 13 16:29:39 EDT 1998
+(Stalyn)
+
+Well, i added basic support for dock apps. You can use your old and new
+WindowMaker dock apps. There is still lots to be done but this is pretty
+usable. You can change your dock icon in theme_pre.cfg, the one i included
+is just one i found on my hd. Hopefully raster will make a better looking
+one later.
+
+-------------------------------------------------------------------------------
+
+Fri Aug 14 13:28:51 EDT 1998
+(Raster)
+
+Fixed doc support - it actually now works - events are captured on "dock
+buttons" so you can drag them around - the events are also passed onto the
+dock client window, now random apps aren't docked anymore (fixed ICCCM stuff
+for that). Bascially it's working now - maybe not pretty.
+
+-------------------------------------------------------------------------------
+
+Fri Aug 14 17:04:27 EDT 1998
+(Raster)
+
+Added code to do slideouts - missingh config reading code for them though.
+need to write this in order to test.... :)
+
+-------------------------------------------------------------------------------
+
+Fri Aug 14 19:36:40 EDT 1998
+(Mandrake)
+
+Created the actual action class destructors. well, you don't really
+want to run a destructor of an actionclass from within itself. that was bad.
+(we sat staring at gdb for a while on that one *grin*)
+
+-------------------------------------------------------------------------------
+
+Sat Aug 15 16:52:27 EDT 1998
+(Mandrake)
+
+Fixed a leak in dockable apps where a useless actionclass was created on the
+button the apps dock themselves in. Should be much cleaner now :)
+
+-------------------------------------------------------------------------------
+
+Sat Aug 15 20:04:18 EDT 1998
+(Mandrake)
+
+Changed things to use DEFAULT_DOCK_BUTTON and DEFAULT_ICON_BUTTON
+also adddd the icon button def into theme_pre.cfg
+
+-------------------------------------------------------------------------------
+
+Sun Aug 16 01:34:57 EDT 1998
+(Mandrake)
+
+Added some config code for the slideout menus, but they don't actually
+work so don't bother.
+
+-------------------------------------------------------------------------------
+
+Sun Aug 16 02:56:26 EDT 1998
+(Raster)
+
+Slideouts now.. um.. work.. WHEEEEEEEEEEEEEEE What more ned I say.. need to
+actually assing sane actions to the slideout and maybe create some new
+actions... but it's there and waiting - the onyl thing.. auto reverse
+slideout direction if it can't fit on screen.
+
+-------------------------------------------------------------------------------
+
+Sun Aug 16 11:48:15 EDT 1998
+(Mandrake)
+
+pulled windowmatching stuff into it's own .c file
+
+-------------------------------------------------------------------------------
+
+Sun Aug 16 12:39:02 EDT 1998
+(Raster)
+
+Slideouts actually do just that now - slide out. use generic speed adjusting
+slide function, You can't drag the buttons out of slidouts now either...
+
+-------------------------------------------------------------------------------
+
+Mon Aug 17 00:33:29 EDT 1998
+(Mandrake)
+
+Changed everything that said BorderMatch to WindowMatch. CreateWindowMatch
+will no longer take a Border as a parameter in a moment (you assign that
+afterwards, as well as an Icon type, which the WindowMatch struct now also
+contains a pointer for)
+
+-------------------------------------------------------------------------------
+
+Mon Aug 17 10:37:15 EDT 1998
+(Raster)
+
+Fixed autosaver to flag buttons as default_show no if they're not visible -
+it wont autosave internal buttons now too. the button hider al;so wont go
+around hiding buttons in slidouts now. :)
+
+-------------------------------------------------------------------------------
+
+Mon Aug 17 22:33:34 EDT 1998
+(Stalyn)
+
+Alright, i added some code so the docks wont overlap and allows the user
+to define a starting dock position and the direction of the docks to be
+sorted. Mandrake will have to add config code for this to be usable.
+
+-------------------------------------------------------------------------------
+
+Tue Aug 18 00:40:40 EDT 1998
+(Mandrake)
+
+added configuration for mode.dockdirmode in control segment. also made
+up/down stuff accord with the other modes. default direction is
+right. you can add a
+dockdir right (left/up/down/right)
+in the user_main.cfg in the control {} segment
+
+-------------------------------------------------------------------------------
+
+Tue Aug 18 13:14:51 EDT 1998
+(Raster)
+
+Now E passes -pedantic again... :)
+
+-------------------------------------------------------------------------------
+
+Fri Aug 21 11:07:57 EDT 1998
+(Mandrake)
+
+Changed dox's configure.in to check for imlib-config, as well as updated
+E's configure.in to say imlib 1.8
+
+-------------------------------------------------------------------------------
+
+Tue Sep 22 11:54:36 CDT 1998 mej <mej@mw.3com.com>
+
+ * dox/Makefile.am, eesh/Makefile.am, src/Makefile.am: Added
+ -I$(prefix)/include to INCLUDES
+ * dox/configure.in, eesh/configure.in, src/configure.in: Removed '-g'
+ from CPPFLAGS. CPPFLAGS should only consist of flags for 'cpp' to
+ recognize, and '-g' isn't one of those. '-g' belongs in CFLAGS.
+
+-------------------------------------------------------------------------------
+
+Wed Sep 23 13:36:21 CDT 1998 mej <mej@mw.3com.com>
+
+ * src/tooltips.c: Fixed E seg faulting if the image classes for the
+ hard-coded tooltip were not found. (Or as raster would say,
+ pffffffft!)
+
+-------------------------------------------------------------------------------
+
+Mon Sep 28 11:09:43 CDT 1998 mej <mej@mw.3com.com>
+
+ * src/configs/user_main.cfg.in: Fixed typo "tootiptime"
+
+-------------------------------------------------------------------------------
+
+Wed Oct 7 19:36:58 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * auto* redo: consolidated configure.in's into one, made econfig.h
+ removed unecessary checks, used imlib and esd config macros,
+ split the libraries into separate variables, removed cruft
+
+-------------------------------------------------------------------------------
+
+Thu Oct 8 10:40:06 EDT 1998
+(Raster)
+
+Fixed E soe it BUILDS AGAIN - mising stuff like um.. oooh econfig.h.in ? and
+also made the header files include "../econfig.h" - also added better gnome
+hint support and more....
+
+-------------------------------------------------------------------------------
+
+Mon Oct 12 21:27:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * configure.in: Be nice to poor, confused people and guess some
+ LDFLAGS for them. Aren't I a sweetie? Mommy loves you.
+
+-------------------------------------------------------------------------------
+
+Tue Oct 13 21:03:59 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * fixes for make dist, auto* cleanups, a bit more mothering
+
+-------------------------------------------------------------------------------
+
+Thu Oct 22 09:38:18 EDT 1998
+(Mandrake)
+
+applied a spelling patch from James Fifield
+
+-------------------------------------------------------------------------------
+
+Sat Nov 14 23:28:46 EST 1998
+(Raster)
+
+Recent changes:
+added double click event
+added virtual desktop support (as in 1 large desktop) - the back end shoudl
+all be there... waiting for config changes to go throught to finish it off.
+
+-------------------------------------------------------------------------------
+
+Sun Nov 15 11:30:14 EST 1998
+(Raster)
+
+Please note.. src/ChangeLog actually has all the interesting stuff.... :) That
+is generally what gets updated.
+
+-------------------------------------------------------------------------------
+
+Tue Nov 24 21:31:56 EST 1998
+(Manish Vachharajani)
+
+add a #undef HAVE_SM to econfig.h.in
+
+-------------------------------------------------------------------------------
+
+Fri Dec 11 15:29:07 CST 1998
+(KainX)
+
+If FSSTD is enabled, honor configure flags that were getting ignored before,
+such as --bindir and --datadir.
+
+Also, the CPPFLAGS entry for ENLIGHTENMENT_* in epp/Makefile.am was removed
+since it is never used.
+
+-------------------------------------------------------------------------------
+
+1998-12-14 Herbert Valerio Riedel <hvr@hvrlab.ml.org>
+
+ * epp/cppmain.c: added #include <string.h>
+ * epp/cpplib.c: added #include <string.h>
+ * epp/cppexp.c: always #include <stdlib.h>
+ * epp/cppalloc.c: added #include <stdlib.h>
+
+-------------------------------------------------------------------------------
+
+Wed Dec 23 12:29:11 EST 1998
+(Mandrake)
+
+actually check for esd 0.2.7 if we say that's what we're looking for :)
+
+-------------------------------------------------------------------------------
+
+Thu Dec 24 13:02:00 EST 1998
+(Mandrake)
+
+cleaned up epp a little bit. indent should stop barfing on it, also removed
+all instances of alloca. also stopped a few places with potential crashes in
+free()'ing memory.
+
+-------------------------------------------------------------------------------
+
+Fri Dec 25 17:36:51 EST 1998
+(Mandrake)
+
+upped imlib requirement to 1.8.2
+
+-------------------------------------------------------------------------------
+
+Mon Dec 28 13:27:18 EST 1998
+(Mandrake)
+
+added --enable-sound=no option, for those people that want to force E to
+compile without sound.
+
+-------------------------------------------------------------------------------
+
+Mon Apr 5 19:35:03 PDT 1999
+(Yosh)
+
+${prefix} and friends aren't expanded in config headers, so put them back
+in the Makefile.am. Use DEFS instead of CPPFLAGS, since that solves the
+problem better anyway.
+
+-------------------------------------------------------------------------------
+
+Fri Jun 4 10:05:32 CDT 1999
+(KainX)
+
+Don't tell users to proceed with a "make" if the configure step fails.
+
+-------------------------------------------------------------------------------
+
+Fri Jun 25 10:22:21 CDT 1999
+(KainX)
+
+Patch for builddir != srcdir from Colin Gibbs <colin@pro-fusiononline.com>.
+
+-------------------------------------------------------------------------------
+
+Thu Jul 1 14:14:06 PDT 1999
+(Mandrake)
+
+stuff.
+
+-------------------------------------------------------------------------------
+
+Tue Aug 17 17:16:18 PDT 1999
+(Mandrake)
+
+stuff..
+
+-------------------------------------------------------------------------------
+
+Tue Oct 19 03:55:52 PDT 1999
+(Mandrake)
+
+RPM builds with --enable-upgrade=no by default.
+
+-------------------------------------------------------------------------------
+
+Sat Nov 6 10:21:24 PST 1999
+(Mandrake)
+
+added --disable-zoom configure option for people on alphas/etc.
+
+-------------------------------------------------------------------------------
+
+Mon Nov 8 12:03:58 PST 1999
+(Mandrake)
+
+upped the revision in CVS since there is at least one fix past 0.16.2 in cvs
+at this point. (and we might have to release this later)
+
+-------------------------------------------------------------------------------
+
+Mon Dec 6 20:12:00 PST 1999
+(Mandrake)
+
+changed this to be 0.16.4
+
+-------------------------------------------------------------------------------
+
+Wed Dec 8 10:16:21 PST 1999
+(Mandrake)
+
+fixed a typo in INSTALL pointed out by Peter Kjellerstedt
+<peter.kjellerstedt@axis.com>
+
+-------------------------------------------------------------------------------
+
+Wed Dec 8 10:31:47 PST 1999
+(Mandrake)
+
+upped esound requirement to 0.2.17 due to security fix
+
+-------------------------------------------------------------------------------
+
+Fri Dec 10 11:09:41 PST 1999
+(KainX)
+
+i18n patch and other fixes from Peter Kjellerstedt
+<peter.kjellerstedt@axis.com>.
+
+-------------------------------------------------------------------------------
+
+Tue Dec 21 11:07:46 PST 1999
+(Mandrake)
+
+added support for freetype in regular location OR in freetype/ subdirectory
+(like the new versions)
+
+-------------------------------------------------------------------------------
+
+Tue Dec 21 15:15:53 PST 1999
+(Mandrake)
+
+added gettext check to autogen.sh
+
+-------------------------------------------------------------------------------
+
+Wed Jan 5 00:05:04 CET 2000
+(Saur)
+
+Added en_US (American English) to the list of localized languages.
+
+-------------------------------------------------------------------------------
+
+Wed Jan 5 11:16:26 PST 2000
+(Mandrake)
+
+added patch from Alexandre David <adavid@DoCS.UU.SE> for KDE menu generation
+fixes
+
+-------------------------------------------------------------------------------
+
+Wed Feb 16 11:32:52 PST 2000
+(Mandrake)
+
+added tr.po
+
+-------------------------------------------------------------------------------
+
+Thu Feb 17 11:02:30 PST 2000
+(Mandrake)
+
+patch from Bob Arendt <rdarendt@cwcom.net> to fix a problem in eesh with tru64
+
+-------------------------------------------------------------------------------
+
+Thu Feb 17 11:11:46 PST 2000
+(Mandrake)
+
+removed some warnings, still a few left in dox/file.c
+
+-------------------------------------------------------------------------------
+
+Tue Mar 14 22:32:08 GMT 2000
+(gilbertt)
+
+Patches from Bob Arendt <rdarendt@cwcom.net> to enable a user-configurable
+cache-dir. Solves some preformance problems on NFS-mounted home directories.
+Also fixes a couple of bugs with the current -econfdir option.
+
+Patches here for scripts and stuff.
+
+-------------------------------------------------------------------------------
+
+Mon Mar 27 21:35:50 GMT 2000
+(gilbertt)
+
+.spec file fixups in preparation for 0.16.4
+
+-------------------------------------------------------------------------------
+
+Thu Jul 27 14:32:49 PDT 2000
+(Mandrake)
+
+this will be 0.16.5 :)
+
+-------------------------------------------------------------------------------
+
+Sat Oct 14 17:59:33 CDT 2000
+(Term)
+
+Bump up the minor version on a bunch of missed files.
+
+-------------------------------------------------------------------------------
+
+Mon Feb 4 10:39:42 EST 2002
+(KainX)
+
+Applied patch from Boris Buegling <boris@icculus.org> for XFree86 4.2.0.
+
+-------------------------------------------------------------------------------
+
+Sun Mar 23 22:45:31 EST 2003
+(KainX)
+
+Patch from Kim Woelders <kim@woelders.dk> for freedesktop.org WM hints.
+
+-------------------------------------------------------------------------------
+
+Sun Mar 23 22:59:34 EST 2003
+(KainX)
+
+Add Kim to the AUTHORS file, and run ecvs for the first time in ages.
+
+-------------------------------------------------------------------------------
+
+Wed Apr 2 17:46:57 EST 2003
+(KainX)
+
+Added the setup-gettext.sh script thanks to Christian Hammond
+<chipx86@gnupdate.org>.
+
+Replaced gettextize -f in autogen.sh with setup-gettext.sh.
+
+Removed all files in intl/ since they should now be autogenerated by
+whatever version of gettext is installed, and different versions have
+different files. Plus they're autogenerated anyway, so they shouldn't
+be in CVS to begin with.
+
+-------------------------------------------------------------------------------
+
+Wed Apr 2 17:54:45 EST 2003
+(KainX)
+
+Added latest patch from Kim Woelders <kim@woelders.dk> to fix setting
+of the _NET_DESKTOP_VIEWPORT hint.
+
+-------------------------------------------------------------------------------
+
+Thu Apr 3 11:32:31 EST 2003
+(KainX)
+
+Patch from Kim Woelders <kim@woelders.dk> to properly set
+_NET_DESKTOP_GEOMETRY on desktop resize.
+
+-------------------------------------------------------------------------------
+
+Sun Apr 6 20:53:20 EDT 2003
+(KainX)
+
+Latest patch for EWMH from Kim.
+
+-------------------------------------------------------------------------------
+
+Mon Apr 21 22:07:42 EDT 2003
+(KainX)
+
+Patch from Christian Hammond <chipx86@portaldesign.net> for native
+cursor support.
+
+Patch from Kim Woelders <kim@woelders.dk> for further hint work.
+
+Also fixed support for KDE hints.
+
+-------------------------------------------------------------------------------
+
+Sun Apr 27 18:29:09 CEST 2003
+(Kim)
+
+Fix (de-)iconify problem related to EWMH changes.
+
+-------------------------------------------------------------------------------
+
+Thu May 1 18:55:28 CEST 2003
+(Kim)
+
+Make auto* stop whining.
+Removed obsolete po/Makefile.in.in.
+
+-------------------------------------------------------------------------------
+
+Sun May 4 12:42:42 CEST 2003
+(Kim)
+
+Set _NET_ACTIVE_WINDOW (focus window) properly.
+Include E internal windows (dialogs, menus, iconboxes, and pagers) in _NET_CLIENT_LIST.
+Use _NET_WM_STATE_SKIP_PAGER and _NET_WM_STATE_SKIP_TASKBAR to hide them as desired.
+(fixes menu's in taskbar problem).
+(Re)enable focusing of dock type windows.
+Commented out some unused code (ewin->expanded_*).
+
+-------------------------------------------------------------------------------
+
+Sun May 4 21:14:35 EDT 2003
+(KainX)
+
+Fix a seg fault during restart. Also some cleanups.
+
+-------------------------------------------------------------------------------
+
+Wed May 14 21:37:17 CEST 2003
+(Kim)
+
+EWMH: String atoms should be UTF-8.
+Avoid compiler warnings due to include path (/usr/include) that shouldn't be given explicitly.
+
+-------------------------------------------------------------------------------
+
+Fri May 16 20:09:45 CEST 2003
+(Kim)
+
+Ignore internal buttons when placing windows (+I don't like duplicated code).
+Include .mo files in RPM's.
+
+-------------------------------------------------------------------------------
+
+Sun May 18 13:47:31 CEST 2003
+(Kim)
+
+Ignore internal buttons when stacking (+Only One stacking function).
+
+-------------------------------------------------------------------------------
+
+Thu May 22 15:09:11 EDT 2003
+(Mandrake)
+
+Updated .h files so that this sucker actually wants to build on my system.
+Sorry I've been AWOL for so long, life has been quite busy lately.
+
+-------------------------------------------------------------------------------
+
+Thu May 22 15:18:45 EDT 2003
+(Mandrake)
+
+remove a minor warning. don't know why indent went insane with that last
+commit, either. oh well.
+
+-------------------------------------------------------------------------------
+
+Fri May 30 22:36:17 CEST 2003
+(Kim)
+
+Reduce hint noise due to button ops.
+Attempt to fix fullscreen mode with XFree86-4.3.
+
+-------------------------------------------------------------------------------
+
+Sat May 31 10:25:49 CEST 2003
+(Kim)
+
+An attempt to avoid the multiplying epplets.
+
+-------------------------------------------------------------------------------
+
+Thu Jun 5 11:15:12 CEST 2003
+(Kim)
+
+Unshade if shaded when selecting window on window list. This makes it easier to
+retrieve windows lost by accidental shading (and seems to me to be the proper
+action anyway).
+Attempt #2 to fix fullscreen mode with XFree86-4.3.
+Fiddling a bit with _NET_ACTIVE_WINDOW hint handling.
+Clean compile of (normally disabled) debug stuff.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 8 15:26:35 CEST 2003
+(Kim)
+
+Oops - the scripts dropped out a while back - too much cleaning.
+The scripts are now back in, under $EROOT/scripts, nicely stashed away as they
+should be.
+
+Remove raised pager mini-window after pager click w.o. drag.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 11 22:58:23 CEST 2003
+(Kim)
+
+Implemented _NET_VIRTUAL_ROOTS.
+Partial fix to desktop switch focus problem. Should make the symptoms go away.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 15 23:44:26 CEST 2003
+(Kim)
+
+Set _NET_WM_STATE_HIDDEN when shaded.
+Don't set iconified when _NET_WM_STATE_HIDDEN is set (WM_STATE does that).
+
+Changed some 0.16.5 to 0.16.6.
+
+Make "make distcheck" work for me.
+
+Introduced debug_flags, minor cleanups.
+
+I don't think we should process property notify events. Kick me if I'm wrong.
+
+Ignore theme stuff (but not dont-cover windows) when placing windows and low on space.
+
+-------------------------------------------------------------------------------
+
+Mon Jun 16 21:05:11 CEST 2003
+(Kim)
+
+Corrected some property change event handling bugs.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 21 22:44:32 CEST 2003
+(Kim)
+
+Fix mem leak and possible segv introduced last time.
+
+Create ENL_MSG atom early (as was probably intended), fixes problem with
+receiving client messages with message_type None (+ cleanups).
+
+-------------------------------------------------------------------------------
+
+Sat Jul 12 07:31:04 CEST 2003
+(Kim)
+
+Enable showing window layer using eesh (patch from BAM <solnul@gmx.de>).
+
+kde.c cleanups: Remove some unused functions, make local functions static.
+
+Minor tooltip thingy (preparing to enable avoiding (un)mapping of unused bubbles).
+
+Remove some obsolete stuff doing nothing (mode.showicons, ShowIcons, HideIcons,
+HandlePager, external_pager_window).
+
+Bring back the maintenance menu.
+
+config.c cosmetics: Make local functions static.
+
+events.c cosmetics: Make local functions static.
+
+ewmh.c: Shut up indent.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jul 12 12:01:04 CEST 2003
+(Kim)
+
+Make XID stuff local to x.c.
+
+Do SaveSet ops (only) in ICCCM functions.
+
+Trivial cleanups of ICCCM_Adopt... functions.
+
+Remove som redundant DesktopRemoveEwin()'s.
+
+Fix problem with losing control over windows being deiconified (+cleanups).
+
+Avoid calling StackDesktops() before configuration has been read.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jul 12 17:09:47 CEST 2003
+(Kim)
+
+Ganymede theme: Fix some directory permissions.
+ShinyMetal theme: Remove .pager.cfg.swp.
+
+Only one ..._WM_CHECK window.
+Remove _NET_WM_VERSION (not defined in spec).
+Added ENLIGHTENMENT_VERSION property to root window.
+
+Added possibility to configure not to use fnlib (configure --without-fnlib).
+
+No global var should be named "id".
+
+-------------------------------------------------------------------------------
+
+Tue Jul 15 20:31:23 CEST 2003
+(Kim)
+
+Fix broken configure/install.
+
+-------------------------------------------------------------------------------
+
+Sun Jul 20 20:16:06 CEST 2003
+(Kim)
+
+Fix min/maximise bugs/inconsistencies, simplify code.
+Some xinerama code cleanups.
+
+Fix de-iconfy of windows not entirely on-screen.
+
+-------------------------------------------------------------------------------
+
+Wed Jul 23 20:03:28 CEST 2003
+(Kim)
+
+Fix "premature" commit of fix to deiconification problem :)
+
+-------------------------------------------------------------------------------
+
+Sun Aug 3 23:16:17 CEST 2003
+(Kim)
+
+Removed most URL's relating to required libraries.
+Patch from Onur Kucuk <onur@kablonet.com.tr> + additional removals.
+
+Added a new menu generation script that should find GNOME2/KDE3 apps too.
+
+Removed obsolete TODO.
+Added BUGS.
+
+-------------------------------------------------------------------------------
+
+Fri Aug 8 20:36:01 CEST 2003
+(Kim)
+
+BUGS: Added window list bug.
+
+Minor bug fixes to maximise code.
+Spanning Xinerama screens now requires "xinerama".
+
+-------------------------------------------------------------------------------
+
+Sun Aug 10 17:26:18 CEST 2003
+(Kim)
+
+Fixed focus list not always being closed when it should be.
+
+-------------------------------------------------------------------------------
+
+Thu Aug 14 23:56:03 CEST 2003
+(Kim)
+
+Polish config files collected into config.pl (like the Japanese ones).
+Removed various config file variants (*.{rh,kde,nokde,gmc,nogmc}.cfg).
+Removed "./" from config.ja (avoid ignoring error in "make distckeck").
+
+Added BUGS to RPM docs.
+
+-------------------------------------------------------------------------------
+
+Sun Aug 17 12:29:42 CEST 2003
+(Kim)
+
+Introduced IPC command abbreviations.
+
+Added possibility to use readline in eesh (--with-readline, default off).
+
+Do config file replacements atomically.
+Do save snaps on exit.
+
+GNOME(1) hint support now disabled by default.
+
+-------------------------------------------------------------------------------
+
+Sun Aug 17 15:28:17 CEST 2003
+(Kim)
+
+Removed possibility to use readline in eesh (readline is GPL, not LGPL).
+
+-------------------------------------------------------------------------------
+
+Tue Aug 19 00:24:41 CEST 2003
+(Kim)
+
+Gathered signal stuff in handlers.c.
+
+Implemented _NET_WORKAREA, patch from Roger Luethi <rl@hellgate.ch>.
+
+Attempted to sort out weirdness with ...e_session-XXXXXX.clients.?.
+Not entirely sure about this - please yell if it causes trouble.
+
+-------------------------------------------------------------------------------
+
+Fri Aug 22 22:56:32 CEST 2003
+(Kim)
+
+Updated BUGS for pre6.
+
+-------------------------------------------------------------------------------
+
+Wed Sep 3 19:23:14 CEST 2003
+(Kim)
+
+Fix making slightly offscreen (x/y < 0) windows sticky.
+This one caused (aot.) pagers and iconboxes to get lost when changing theme.
+
+-------------------------------------------------------------------------------
+
+Sat Sep 6 22:19:34 CEST 2003
+(Kim)
+
+Pre7.
+
+-------------------------------------------------------------------------------
+
+Sat Sep 6 22:54:02 CEST 2003
+(Kim)
+
+Forgot to bump Release no.
+
+-------------------------------------------------------------------------------
+
+Sun Sep 28 21:50:04 CEST 2003
+(Kim)
+
+Make desktop windows a bit stickier.
+Fix some missing initialisations/assignments.
+Attempt to fix segfaults caused by draw queue trouble.
+Added missing title on Epplets menu.
+Don't show dialog at startup when effects (ripples/waves) are enabled,
+move control of the effects to the FX settings dialog.
+
+-------------------------------------------------------------------------------
+
+Thu Oct 2 20:52:59 CEST 2003
+(Kim)
+
+Enable focusing on dock type windows (yet another time), and make them sticky.
+
+-------------------------------------------------------------------------------
+
+Sat Oct 4 14:56:29 CEST 2003
+(Kim)
+
+Removed unused scursor.c.
+
+-------------------------------------------------------------------------------
+
+Sat Oct 25 15:31:30 CEST 2003
+(Kim)
+
+BUGS updated (forgot to update for pre8).
+Don't overwrite file.menu and user_apps.menu when regenerating menus.
+Use eesh in EBIN.
+Fix click-to-focus, avoid references to closed windows.
+
+-------------------------------------------------------------------------------
+
+Tue Oct 28 21:17:00 CET 2003
+(Kim)
+
+Fix problem with applications that de-iconify their windows. This fix
+re-introduces a problem where E may lose control over a window that is
+iconified and de-iconified immediately after. Since this is an old bug
+we should be able to live with it until it is fixed properly.
+
+-------------------------------------------------------------------------------
+
+Wed Nov 5 18:58:51 CET 2003
+(Kim)
+
+Copyrights->2003.
+BUGS final touch.
+
+-------------------------------------------------------------------------------
+
+Sat Nov 8 11:57:22 CET 2003
+(Kim)
+
+Bye bye KDE(1).
+
+-------------------------------------------------------------------------------
+
+Sun Nov 9 01:09:35 CET 2003
+(Kim)
+
+Patch for desktop wraparound by Alan Schmitt <alan.schmitt@polytechnique.org>.
+Shuffled around some pager stuff.
+
+-------------------------------------------------------------------------------
+
+Mon Nov 10 00:59:56 CET 2003
+(Kim)
+
+Shuffling stuff around, cleanups.
+
+-------------------------------------------------------------------------------
+
+Sun Nov 16 00:08:35 CET 2003
+(Kim)
+
+Initial imlib2 port.
+Rely on DISPLAY, not -display when restarting WM.
+Use "fixed" as fallback font.
+
+-------------------------------------------------------------------------------
+
+Sun Nov 16 20:47:20 CET 2003
+(Kim)
+
+dox -> imlib2.
+
+-------------------------------------------------------------------------------
+
+Sat Nov 22 17:22:33 CET 2003
+(Kim)
+
+Enable focusing desktop app windows (e.g. nautilus), "breaks" sloppy focus
+when using such.
+Various fixups after imlib2 port.
+
+-------------------------------------------------------------------------------
+
+Mon Nov 24 18:08:11 CET 2003
+(Kim)
+
+Attempt to fix "walking" iconboxes in certain themes when not anchored
+left or top.
+Re-enable iconifying by dragging from pager to iconbox.
+Iconbox namespace and code shuffling.
+
+-------------------------------------------------------------------------------
+
+Sun Nov 30 16:37:42 CET 2003
+(Kim)
+
+Pager fixups after imlib2 port.
+Fix pager mini-window and tooltip unmapping.
+Pager code shuffling.
+
+-------------------------------------------------------------------------------
+
+Thu Dec 4 20:11:07 CET 2003
+(Kim)
+
+Fix initial default iconbox placement.
+Attempt to fix pager update glitch during desktop switch.
+Fix icons for apps specifying pixmap but no mask.
+
+-------------------------------------------------------------------------------
+
+Sun Dec 7 14:10:48 CET 2003
+(Kim)
+
+Button code and namespace shuffle.
+Added window id "shortcuts" for use with eesh
+ (based on patch by Mike Frysinger <vapier@gentoo.org>).
+
+-------------------------------------------------------------------------------
+
+Tue Dec 9 21:40:53 CET 2003
+(Kim)
+
+Use (v)snprintf from libc when available + assiociated fixups.
+Attempt to improve on remembered settings, now also using WM_WINDOW_ROLE.
+
+-------------------------------------------------------------------------------
+
+Sat Dec 13 15:15:24 CET 2003
+(Kim)
+
+Fix some compiler warnings.
+Collect freetype stuff in ttfont.c.
+Fix another pager mini-window tooltip bug.
+Minor pager and dialog event handler changes.
+Deleted unused mode item, moved a "private" one.
+
+-------------------------------------------------------------------------------
+
+Sun Dec 14 18:58:01 CET 2003
+(Kim)
+
+Menu code and namespace shuffle.
+With Imlib2, use Imlib2 font functions for TT font rendering.
+- This means that E no longer (explicitly) uses FreeType1.
+Using Imlib2 is now default configuration.
+Removed unused upgrade feature configuration.
+
+-------------------------------------------------------------------------------
+
+Sun Dec 21 13:41:36 CET 2003
+(Kim)
+
+Fixed segfault on menu reload after recent menu code changes.
+Removed neverraise window option (didn't do as intended).
+Introduced possibility to set _XROOT* hints always on root window.
+- Breaking the protocol but making e.g. gnome-panel transparency
+ work on other than the first desktop.
+Added possibility to set some of the more obscure window options.
+Fixed pager sizing at startup.
+Cleanups.
+
+-------------------------------------------------------------------------------
+
+Mon Dec 22 00:15:50 CET 2003
+(Kim)
+
+Apply window hints before saved settings.
+
+-------------------------------------------------------------------------------
+
+Sun Dec 28 19:01:54 CET 2003
+(Kim)
+
+Fixed initially shaded borders on external windows.
+Initial pseudo-transparency support.
+
+-------------------------------------------------------------------------------
+
+Sun Jan 4 19:32:44 CET 2004
+(Kim)
+
+Trivial dialog cleanups.
+Trivial sound cleanups.
+Trivial session cleanups.
+Removed the unfinished upgrade feature code.
+Added some event debugging code.
+
+-------------------------------------------------------------------------------
+
+Sun Jan 11 21:33:22 CET 2004
+(Kim)
+
+Slideout code and namespace shuffle.
+Border event handling code shuffle.
+Removed unused Container code.
+
+-------------------------------------------------------------------------------
+
+Mon Jan 12 22:22:17 CET 2004
+(Kim)
+
+Split the mode struct into configuration and state stuff.
+- Although purely cosmetical, this was quite a large change measured by
+ amount of changed lines.
+ However, over time I've had a lot of trouble figuring out which was what.
+
+-------------------------------------------------------------------------------
+
+Sun Jan 18 15:10:42 CET 2004
+(Kim)
+
+Pass the context ewin as parameter to the action handlers
+ (get rid of mode.ewin).
+
+-------------------------------------------------------------------------------
+
+Sun Jan 25 09:57:33 CET 2004
+(Kim)
+
+Fixups after recent changes.
+Focus code name space cleanup.
+
+-------------------------------------------------------------------------------
+
+Sun Feb 1 17:54:40 CET 2004
+(Kim)
+
+Shuffled around some focus and event handling code.
+Attempted to fix some focus problems.
+Fixed error in placement of initially shaded windows.
+Included ENLIGHTENMENT_RELEASE in version string.
+
+-------------------------------------------------------------------------------
+
+Sat Feb 7 02:45:42 CET 2004
+(Kim)
+
+Fixed some focus stuff.
+Shuffled around some configuration parameters.
+
+-------------------------------------------------------------------------------
+
+Mon Feb 9 00:17:13 CET 2004
+(Kim)
+
+Added indent profile.
+There is no point in having arrange.h when everything else is in E.h.
+Include esd.h only where needed.
+RememberWinList is used only in settings.c.
+Remove unused MatchEwinToSnapInfoAfter().
+Fix problem with windows going off in all directions after restart.
+
+-------------------------------------------------------------------------------
+
+Thu Feb 12 02:23:08 CET 2004
+(Kim)
+
+Added COMPLIANCE.
+Moved some event initialisation to events.c.
+Tidied up E.h a bit, removed some unused functions.
+Theme code and namespace shuffle.
+Moved around some desktop and background configuration items.
+Don't break window groups when iconifying.
+Changed default border maximise action from conservative to available.
+Added global theme transparency feature (not finished).
+
+-------------------------------------------------------------------------------
+
+Tue Feb 17 01:14:40 CET 2004
+(Kim)
+
+Ran indent in dox and eesh.
+Make sure pager and iconbox are resized during startup.
+Plugged very annoying grab leak, fixed click-to-focus.
+Redraw Dialogs and Menus after move if theme is transparent.
+Revert window placement when low on space to e16.5 behavior
+ (patch from Smoke <conrad@ceibhion.dhs.org>).
+
+-------------------------------------------------------------------------------
+
+Fri Feb 20 19:31:15 CET 2004
+(Kim)
+
+Fix bug in EwinIsOnScreen() causing focus trouble.
+By default blend tooltips onto root image if transparency is enabled.
+Fix layout of background dialog.
+Add some configuration request and focus setting debug stuff.
+Attempt to clean up move/resize code a bit.
+Remove unused modules.c.
+Remove __EMX__.
+
+-------------------------------------------------------------------------------
+
+Wed Feb 25 00:25:55 CET 2004
+(Kim)
+
+Fix various problems with pager dragging and focus.
+Fix pager update when dragging to other desktop.
+Try to put and end to windows getting lost (off desktop).
+Set skip-focus-list flag on iconboxes, menus, and pagers.
+Include no or all iconified windows in focus list.
+ (patch from Alan Schmitt <alan.schmitt@polytechnique.org>).
+Partial fix to broken click-to-focus.
+
+-------------------------------------------------------------------------------
+
+Mon Mar 1 22:11:37 CET 2004
+(Kim)
+
+More focus fixes.
+Renamed duplicate to Estrdup, introduced Estrndup.
+Preparing for _NET_WM_NAME (UTF-8).
+Do expose event compression.
+Fix update of E-internal windows after move/deskswitch when theme transparency
+is on.
+
+-------------------------------------------------------------------------------
+
+Fri Mar 5 18:21:47 CET 2004
+(Kim)
+
+Redraw borders after move when theme transparency is on. Cleanups.
+Refresh only relevant windows after desk switch.
+Do not require dox to be installed.
+Attempt to improve on quoting when parsing configuration files.
+
+-------------------------------------------------------------------------------
+
+Mon Mar 8 00:00:40 CET 2004
+(Kim)
+
+Fix cursor colors (patch from Smoke <conrad@ceibhion.dhs.org>).
+Improve on menu transparency. Avoid some unnecessary redraws.
+Show a bit more debug info for ConfigureRequest events.
+Skip transparency stuff for offscreen windows.
+Don't always set move mode for windows with transients or in group to opaque.
+
+-------------------------------------------------------------------------------
+
+Thu Mar 11 18:14:36 CET 2004
+(Kim)
+
+Attempt to fix the make install problem with recent gettext/auto* versions.
+Shuffled around some startup/debug stuff.
+Experimental RandR support configuration and code fragments.
+Bypass some obscure command preprocessing stuff (echo).
+Change some ALERT macro stuff to function calls.
+
+-------------------------------------------------------------------------------
+
+Fri Mar 12 00:57:16 CET 2004
+(Kim)
+
+Skip E-docs (now in edox-data package). Rename dox to edox. Correct error msg.
+Move src/themes/configs/ to config/.
+Various cosmetics.
+
+-------------------------------------------------------------------------------
+
+Sat Mar 13 15:09:32 CET 2004
+(Kim)
+
+Skip themes (now in etheme-<theme> packages).
+
+-------------------------------------------------------------------------------
+
+Tue Mar 16 23:28:37 CET 2004
+(Kim)
+
+Shuffle around some event handling code (arrange according to event number).
+Skip one level of event handling functions.
+Show annoying message about RandR screen size change, if enabled.
+Maintain a global window stacking order (not entirely finished).
+
+-------------------------------------------------------------------------------
+
+Thu Mar 18 12:10:13 EST 2004
+(Mandrake)
+
+Fixed a boatload of warnings. Commented out a couple of functions that
+were no longer being used. I fixed some of these warnings a few years ago
+and somehow *ahem* they were put back in ;)
+
+-------------------------------------------------------------------------------
+
+Fri Mar 19 01:40:39 CET 2004
+(Kim)
+
+Indent. Remove unused function. Comment comments.
+
+-------------------------------------------------------------------------------
+
+Sat Mar 20 17:14:56 CET 2004
+(Kim)
+
+Prepare to enable compiling the code with paranoid compiler settings.
+Use libc setenv when available.
+
+-------------------------------------------------------------------------------
+
+Sun Mar 21 02:54:46 CET 2004
+(Kim)
+
+Enable compiling with -Wwrite-strings.
+
+-------------------------------------------------------------------------------
+
+Mon Mar 22 18:13:11 CET 2004
+(Kim)
+
+Add some more debug stuff.
+Fix raise/lower for windows with transients.
+Fix viewport change (window sliding) for windows with transients.
+
+-------------------------------------------------------------------------------
+
+Fri Mar 26 23:07:27 CET 2004
+(Kim)
+
+Use new static stacking list whereever possible.
+Use unwrapped libc malloc/realloc/free by default.
+Fix bottom border when shaded, remove redundant window stacking.
+
+-------------------------------------------------------------------------------
+
+Wed Mar 31 21:58:20 CEST 2004
+(Kim)
+
+Simplify alert (GSOD) code. Less intensive use of macros.
+Set DISPLAY env var early. Fixes a problem with multihead and early alerts.
+Various trivial fixups.
+
+-------------------------------------------------------------------------------
+
+Fri Apr 2 01:26:26 CEST 2004
+(Kim)
+
+Improve on (click-to-) focus.
+Some more bits for UTF-8 support.
+Avoid crash with Absolute E theme.
+
+-------------------------------------------------------------------------------
+
+Mon Apr 5 00:12:38 CEST 2004
+(Kim)
+
+Force stretching (no tiling) if transparent (should be fixed some day).
+Add GetWinParent() for debugging.
+Ajust (primarily click-to-focus) context window behavior.
+Fix some EWin list stuff causing occasional segv.
+Add some stacking debug info.
+Speed up single window restacking operations, stacking code adjustments.
+
+-------------------------------------------------------------------------------
+
+Wed Apr 7 02:01:08 CEST 2004
+(Kim)
+
+The image border definition for Imlib2 seems to be slightly different than for
+Imlib1. Try to adjust so themes don't break.
+Fix IclassApplyCopy with transparency and shaped images (fixes ugly
+transparent menus).
+Play with event handling :)
+
+-------------------------------------------------------------------------------
+
+Wed Apr 7 17:09:42 CEST 2004
+(Kim)
+
+Shuffle around/clean up some master/slave state vars.
+Fix focus window selection when focused window is unmapped.
+
+-------------------------------------------------------------------------------
+
+Thu Apr 8 00:07:11 CEST 2004
+(Kim)
+
+A bit more event debug.
+Simplify ewin unmap/destroy handling (fixes "losing windows" bug).
+
+-------------------------------------------------------------------------------
+
+Fri Apr 9 00:33:46 CEST 2004
+(Kim)
+
+Introduce debug print function.
+Fix stacking after layer change.
+Fix segv when closing windows.
+Fix stacking after window move.
+Cleanups.
+
+-------------------------------------------------------------------------------
+
+Fri Apr 9 16:27:51 CEST 2004
+(Kim)
+
+Fix transparent, shaped border update after resize.
+Move edge window handling code to new edge.c.
+Close menu before performing action.
+Move global queue_up to Mode struct.
+Simplify border update code, partial fix to border updates after desk switch.
+
+-------------------------------------------------------------------------------
+
+Sat Apr 10 21:56:13 CEST 2004
+(Kim)
+
+Fix segv when closing windows.
+Move KillEwin code back where it belongs.
+Revert bad change to Unmap handling.
+Background code and namespace shuffle.
+
+-------------------------------------------------------------------------------
+
+Mon Apr 12 16:19:21 CEST 2004
+(Kim)
+
+Simplify background code.
+Refresh the desktop backgrounds when transparency is enabled (re-generate
+non full-sized ones).
+Shuffle around some window event configuration code (no functional changes).
+
+-------------------------------------------------------------------------------
+
+Thu Apr 15 22:08:25 CEST 2004
+(Kim)
+
+Attempt to set event masks consistently.
+Change some event debug printouts.
+Highlight only the focused window.
+
+-------------------------------------------------------------------------------
+
+Wed Apr 21 23:03:22 CEST 2004
+(Kim)
+
+Dialog windows do need the KeyPress and Expose events.
+Change context window from mouse-over to focus window.
+In focus list, show iconified window names in brackets (as suggested by Fletch).
+A few notes on installing the split distribution.
+De-couple the man page from dox MAIN page.
+Delete themes and online docs, these are now in separate packages.
+Another attempt at fixing the "losing windows" bug, adjust event masks.
+
+-------------------------------------------------------------------------------
+
+Sun Apr 25 20:56:22 CEST 2004
+(Kim)
+
+Fix segv on menu reload.
+Adjust event masks, add some EWin debug.
+Enable dock applets of size other than 64x64 (patch from Jonas Aaberg
+ <cja@gmx.net>).
+Portability fixes and auto* cleanups.
+Trivial fixes for compilation with imlib1.
+Avoid trashing the configuration.
+
+-------------------------------------------------------------------------------
+
+Mon Apr 26 23:35:15 CEST 2004
+(Kim)
+
+Fix special case of iconified startup.
+Move all IPC functions to ipc.c.
+
+-------------------------------------------------------------------------------
+
+Thu Apr 29 00:33:32 CEST 2004
+(Kim)
+
+Some mostly cosmetic changes to IPC window info functions.
+We do need SubstructureNotifyMask on the desktop.
+Debug printout for ReparentNotify event.
+Don't focus windows before they are mapped (fixes segv when new window is
+destroyed before it becomes mapped).
+
+-------------------------------------------------------------------------------
+
+Sat May 1 12:49:21 CEST 2004
+(Kim)
+
+Update the client stacking list properly.
+Fix segv in ScaleLine, simplify some code a bit.
+Fix pager background pixmap handling.
+
+-------------------------------------------------------------------------------
+
+Sun May 2 21:40:02 CEST 2004
+(Kim)
+
+Fix menu auto-regeneration when theme transparency is off.
+Fix iconbox images for apps that are iconified at startup and have no icons.
+Enable navigating the menus with the keyboard.
+
+-------------------------------------------------------------------------------
+
+Sat May 8 01:09:58 CEST 2004
+(Kim)
+
+Add X_CFLAGS to INCLUDES. Rename root to VRoot to avoid warnings with -Wshadow.
+Add hooks for _NET_SHOWING_DESKTOP.
+Improve on poor menu/keyboard navigation.
+Clear blocked signals at startup and exit.
+Set EDBUG_COREDUMP to get core dump in stead of GSOD.
+No longer use the DEFAULT theme link.
+Put the usual root menus on Ctrl-Shift-F1,2,3.
+
+-------------------------------------------------------------------------------
+
+Sun May 9 23:20:52 CEST 2004
+(Kim)
+
+Fix problem with multiple iconboxes (and probably other iconbox problems).
+Move some DEFS into config.h
+Fix floating window stacking after area/desk switch.
+Put Winops menu on Alt-Ctrl-w.
+Do keybord menu navigation without pointer warping.
+Do menu sliding more cleanly.
+
+-------------------------------------------------------------------------------
+
+Wed May 12 02:10:50 CEST 2004
+(Kim)
+
+Now including rephorm's winter theme.
+
+-------------------------------------------------------------------------------
+
+Wed May 19 01:50:12 CEST 2004
+(Kim)
+
+Spec file updates by Stuart Children <stuart@terminus.co.uk>.
+New logo in the about dialog.
+Fix broken IPC "save configuration" command.
+Ignore bogus Unmap message causing window to be unmanaged.
+Fix floating window movement (finally, I hope).
+
+-------------------------------------------------------------------------------
+
+Sat May 22 17:20:21 CEST 2004
+(Kim)
+
+Fix non-opaque moving window with transients.
+Don't restrict window placement requests.
+Add Korean config/theme files. Patch from Michael Kim <lavnrose@e.sarang.net>.
+Correct Danish translations file name.
+Some more preparations for UTF8.
+
+-------------------------------------------------------------------------------
+
+Sun May 23 18:19:25 CEST 2004
+(Kim)
+
+Clean up setting internal window name/class hints.
+Fix segv when there are no client windows.
+Added "verbose" command line option.
+Localisation/UTF8 fixed.
+
+-------------------------------------------------------------------------------
+
+Sun May 30 00:58:49 CEST 2004
+(Kim)
+
+Additional NULL pointer checks (fixes some segv's).
+Minor winter theme fixes
+- Bad permissions on vixar.ttf made "About this theme" empty.
+- Bad ICONBOX_COVER_.. image classes caused problems with transparent iconboxes.
+More spec file updates by Stuart Children <stuart@terminus.co.uk>
+Fix segv if UTF8 locale and not TT font.
+Attempt to improve dockapp handling.
+Introduce Ecalloc.
+Fix pager redraw on client unmap.
+Ignore WM_TRANSIENT_FOR if pointing to self (fixes Mathematica startup).
+
+-------------------------------------------------------------------------------
+
+Sun May 30 20:36:59 CEST 2004
+(Kim)
+
+Remove unused _XROOTWINDOW hint stuff.
+Fix various background pixmap related bugs.
+Enable using names in some IPC window info functions.
+Fix a few GC leaks.
+Let fixedpos window attribute not imply sticky.
+Simplify stick/unstick (fixes raise problem during unstick).
+
+-------------------------------------------------------------------------------
+
+Mon May 31 22:46:00 CEST 2004
+(Kim)
+
+Trivial prototype cleanup (EExit()).
+Introduced a new event handler registration/dispatching engine (not used yet).
+Don't zoom on desktop type (layer 0) windows in pager.
+Clean up hint handling at startup.
+Initial fullscreen window state handling.
+
+-------------------------------------------------------------------------------
+
+Thu Jun 3 20:36:55 CEST 2004
+(Kim)
+
+Fix answering 'no' to logout dialog.
+Fix saving info at exit + shuffle some code around.
+Set stacking order at exit.
+Fix RaiseLower segv.
+Selective Transparency - basic functionality (Jaron Omega <jaron@sock-stream.net>).
+
+-------------------------------------------------------------------------------
+
+Wed Jun 9 02:24:59 CEST 2004
+(Kim)
+
+Fix segv on group member exit + associated cleanups.
+Added some apps to the user menu. Patch by Kirby Kuehl <kkuehl@cisco.com>.
+Deiconify windows to position where it was iconified (whenever possible).
+Fix segv in menu keypress handling.
+Fix borders on initially shaded windows.
+Partial fix to clipped TT font text.
+Put lost warpfocused option back in.
+
+-------------------------------------------------------------------------------
+
+Fri Jun 18 20:04:49 CEST 2004
+(Kim)
+
+Raise on ACTION_FOCUS_SET.
+Localized menu generation (based on patch by Andreas Volz <lists@brachttal.net>).
+Localize menu title and item text.
+Selective Transparency - configuration (Jaron Omega <jaron@sock-stream.net>).
+Fix a number of bugs with pager clicking and dragging.
+Fix inappropriate re-use of cached mini-window image pixmaps.
+Read WM_TRANSIENT_FOR only on map or change + debug stuff.
+
+-------------------------------------------------------------------------------
+
+Sat Jun 19 03:51:03 CEST 2004
+(Kim)
+
+Another attempt to fix some window placement and saved settings issues.
+Transparency tweaks.
+Attempt to fix stacking and other problems with transients.
+
+-------------------------------------------------------------------------------
+
+Sun Jun 20 11:18:00 CEST 2004
+(Kim)
+
+Selective Transparency - config updates (Jaron Omega <jaron@sock-stream.net>).
+Enable continuing startup when there are errors in ...e_session-XXXXXX.
+
+-------------------------------------------------------------------------------
+
+Wed Jun 30 10:29:59 CEST 2004
+(Kim)
+
+Make buttons opaque (button transparency handling is missing).
+Cache borderpart ImageState (primarily to avoid flickering text on enter/leave).
+Fix several window placement bugs.
+Fix/align dox/src imlib2 TT font rendering stuff.
+Make compile with imlib1 + trivial fixes.
+Get the window placement right, I hope.
+Fix repositioning on border change.
+Fix edge flip with fullscreen windows.
+Fix initial window stacking if not on desk 0 + trivial stuff.
+Fix placement of windows with StaticGravity.
+Disable old x11amp hack (fixes broken rhythmbox "Small Display").
+Enable configuring no-input windows using menus + cosmetics.
+Fix minor glitch with coordinate window being mapped too early + cosmetics.
+Fix area updates (caused incorrect area switch on transient pop-up).
+Make FreeBSD happy.
+
+-------------------------------------------------------------------------------
+
+Mon Jul 5 00:55:42 CEST 2004
+(Kim)
+
+Introducing nested E. Maybe not really useful but good for debugging.
+Don't use the fallback border unless we have to.
+Trim eesh.
+Make fullscreen windows borderless.
+Handle struts, optionally ignore.
+Read the WM_COMMAND property for all group members.
+Fix a number of menu drawing issues.
+Don't unshade while iconified (caused un-deiconifiable windows).
+
+-------------------------------------------------------------------------------
+
+Mon Jul 5 23:28:51 CEST 2004
+(Kim)
+
+Allow _MOTIF_WM_HINTS to have only 4 elements (fixes blender, possibly others).
+Fix potential problem with initially sticky windows.
+Selective Transparency - A few tweaks (Jaron Omega <jaron@sock-stream.net>).
+Install display manager session file and startup script.
+
+-------------------------------------------------------------------------------
+
+Thu Jul 15 00:38:22 CEST 2004
+(Kim)
+
+INSTALL corrections (by Yasufumi Haga <yasufumi.haga@nifty.com>).
+French translation updates (by Ludwig Noujarret <ludwig@noujarret.com>).
+Make About box text localizable.
+Don't chase around after windows during startup.
+Fix problem showing in theme menu if theme dir contains file beginning with '.'.
+Stuff to help localizing e.g. menu strings.
+Shuffle some ICCCM client message code around.
+Mostly trivial EWin struct member renaming.
+Hmmm. Fix pager update for offscreen windows.
+Fix action when using keyboard to navigate menus + cleanups.
+
+
+-------------------------------------------------------------------------------
+
+Mon Jul 19 21:34:20 CEST 2004
+(Kim)
+
+Cursor code namespace cleanup.
+Enable configuring and set cursor on pointer grabs.
+IPC - Set focus by window name, help command cleanups.
+Focus fixes.
+Winter: Define new grab cursors in cursors.cfg, remove unused cursor stuff.
+Fix image class transparency bug.
+Remove BUGS.
+
+-------------------------------------------------------------------------------
+
+Fri Jul 23 22:37:47 CEST 2004
+(Kim)
+
+Smart resizing (by Josh Holtrop <jholtrop@gmail.com>).
+Fix image class transparency (correctly this time!).
+Fix focuslist trouble.
+
+
+-------------------------------------------------------------------------------
+
+Sun Jul 25 01:27:12 CEST 2004
+(Kim)
+
+0.16.7
+
+-------------------------------------------------------------------------------
+
+Sun Jul 25 12:51:32 CEST 2004
+(Kim)
+
+Bye bye Imlib1 and Fnlib.
+Remove unused clone stuff.
+Tidy up a bit (removed ancient ChangeLog's and other obsolete stuff).
+
+-------------------------------------------------------------------------------
+
+Tue Aug 3 22:32:40 CEST 2004
+(Kim)
+
+Fix incorrect menu placement (still not ok if deskslide is active).
+Valgrindings.
+Fix nastiness when there are more than 16 windows on one desk at startup.
+Fix desktop background thumbnail caching.
+Fix some initial desktop setup.
+Fix random killing when closing iconbox.
+
+-------------------------------------------------------------------------------
+
+Sun Aug 8 02:39:33 CEST 2004
+(Kim)
+
+Attempt to do something about the Restart Placement Bug.
+Enable showing some grab info.
+Fix segv in "Advanced Settings" dialog when dialog headers are enabled.
+Enable showing some menu info for debug (+tidy up some menu state stuff).
+Debug for tracking area and desktop changes.
+Debug commands to set/unset pointer grabs.
+
+-------------------------------------------------------------------------------
+
+Fri Aug 13 23:15:13 CEST 2004
+(Kim)
+
+--- 0.16.7.1 0.04 ---
+Fix window placement at (re)start (don't follow transients to leader).
+- Many thanks to Onur Kucuk <onur@delipenguen.net> for help to track this one
+ down.
+Use png (not ppm) for image chaching, avoid some code duplication.
+Debian build updates by Julien Portalier <trash@portalier.com>.
+Hide menus when switching desktop.
+
+-------------------------------------------------------------------------------
+
+Mon Aug 16 17:03:33 CEST 2004
+(Kim)
+
+--- 0.16.7.1 0.05 ---
+Fix button grabs not being released.
+- Thanks again to Onur Kucuk <onur@delipenguen.net> for finding a way to
+ reproduce this.
+Fix normal border when fullscreen at startup.
+
+-------------------------------------------------------------------------------
+
+Fri Aug 20 23:35:46 CEST 2004
+(Kim)
+
+--- 0.16.7.1 1 ---
+Remove empty epp/config.h causing trouble on some platforms.
+Add basic _NET_WM_WINDOW_OPACITY handling.
+
+-------------------------------------------------------------------------------
+
+Wed Aug 25 18:07:04 CEST 2004
+(Kim)
+
+--- 0.16.7.2 0.01 ---
+Bump version numbers.
+Make keys used for menu navigation configurable.
+ (patch from Alan Schmitt <alan.schmitt@polytechnique.org>).
+
+-------------------------------------------------------------------------------
+
+Tue Aug 31 19:25:59 CEST 2004
+(Kim)
+
+--- 0.16.7.2 0.02 ---
+Bosnian translation from Kemal Sanjta <gomez@lugzdk.ba>.
+Korean translation updates from Michael Kim <lavnrose@e.sarang.net>.
+Improve dockapp handling.
+
+-------------------------------------------------------------------------------
+
+Thu Sep 9 19:56:20 CEST 2004
+(Kim)
+
+--- 0.16.7.2 0.03 ---
+Improve KDE menu generation. Patch by obennett <obennett@hartford.edu>.
+Fix segv in debug command. Pointed out by Vadik Mironov <vadikmironoff@mtu-net.ru>.
+Remove unused files.
+Remove leftover debug stuff. Pointed out by Vadik Mironov <vadikmironoff@mtu-net.ru>.
+Fix potential problems in multihead startup.
+Eliminate getword().
+
+-------------------------------------------------------------------------------
+
+Sun Sep 19 12:58:19 CEST 2004
+(Kim)
+
+--- 0.16.7.2 0.04 ---
+Attempt to fix various sliding effects.
+Bulgarian translation by Viktor Kojouharov <vkojouharov@gmail.com>).
+Initial showing desktop support.
+
+-------------------------------------------------------------------------------
+
+Mon Oct 11 23:09:11 CEST 2004
+(Kim)
+
+--- 0.16.7.2 0.05 ---
+Fix remembered settings for slave WM's.
+Fix mapping a window requesting fullscreen mode.
+Try (again) to fix sliding effects.
+Improve KDE menu generation. Suggested by Sandy Weicks <sw98234@hotmail.com>.
+Remove unused scripts.
+Make "e_cache_clean all" clean all cache dirs (img/ too).
+Added option to raise fullscreen windows.
+Fix _XROOT... hack.
+
+-------------------------------------------------------------------------------
+
+Sat Nov 13 12:19:42 CET 2004
+(Kim)
+
+--- 0.16.7.2 0.06 ---
+Ignore ICCCM iconify while unmapped.
+Fix cancellation of border part action when leaving activated border part.
+Fix selecting "No Background" in background settings dialog.
+Added shade/unshade using mouse wheel to title bar actions.
+Fix _NET_WM_MOVERESIZE (button case).
+Don't update pager if not visible.
+Avoid problems due to recursive menus.
+
+-------------------------------------------------------------------------------
+
+Thu Dec 2 22:00:21 CET 2004
+(Kim)
+
+--- 0.16.7.2 0.07 ---
+Fix button stacking.
+Fix initially iconified windows.
+Attempt to fix pointer grab problem.
+Reduce size of H/V resize only regions.
+Fix remembered settings for apps setting WM_WINDOW_ROLE to random like value
+ "<name>-<pid>-<something>-<time>".
+Simplify eesh, enable one-liners like "eesh wl a".
+Fix some session management property types.
+More pointer grab fixes.
+Still more pointer grab stuff.
+Stack desktop windows below buttons.
+
+-------------------------------------------------------------------------------
+
+Fri Dec 10 20:46:24 CET 2004
+(Kim)
+
+--- 0.16.7.2 0.99.1 ---
+Add border frame action handling (enables things like auto shade/unshade).
+
+-------------------------------------------------------------------------------
+
+Tue Dec 14 22:59:25 CET 2004
+(Kim)
+
+--- 0.16.7.2 1 ---
+Fix handling of border parts where text state changes but image state doesn't.
+Fix startup position for shaded down- or right-shading windows.
+
+
+-------------------------------------------------------------------------------
+
+Fri Dec 17 21:07:37 CET 2004
+(Kim)
+
+Bump version numbers.
+Fix backgrounds with only non-fullscreen foreground image.
+Fix "Background Error! 1 references remain".
+
+-------------------------------------------------------------------------------
+
+Wed Dec 29 01:13:18 CET 2004
+(Kim)
+
+--- 0.16.8 0.01 ---
+
+-------------------------------------------------------------------------------
+
+Wed Jan 5 22:15:17 CET 2005
+(Kim)
+
+--- 0.16.8 0.02 ---
+Remember background for last desktop too.
+Fix actions with multiple commands.
+Bulgarian translation update (Viktor Kojouharov).
+Fix startup screen with dragbars disabled.
+Transparent menus.
+Keep startup windows raised.
+Fix kill function.
+Fix compile whithout HAVE_X11_SM_SMLIB_H.
+Fix warnings whithout HAVE_LIBESD.
+Remove obsolete localized config files.
+Add fullscreen default keybinding.
+Fix tooltip string localization.
+Fix problems with ontop, dialog, and menu window stacking.
+Fix various edge flipping bugs (window moving, multihead, configuration).
+Fix menu generation when iconv is not available.
+Fix skip window lists.
+Add qnd noshadow op.
+Fix menu lockup problem.
+Scale shadow opacity with window opacity.
+Fix clients being destroyed after MapRequest but before reparent.
+
+-------------------------------------------------------------------------------
+
+Sat Jan 22 18:45:03 CET 2005
+(Kim)
+
+--- 0.16.8 0.03 ---
+Make dockapps sticky by default.
+Fix some dockapp wonkyness.
+French translation update (Ludwig Noujarret).
+Create/destroy desktops as needed.
+Fix focus at startup.
+Fix composite repaint, taking opaque window clipping into account.
+Don't blurry shade shaped windows.
+Enable saving window shadowing state (phriedrich@gmx.de)
+Enable saving window opacity.
+More window ops in menu.
+Fix simultaneous saved settings dialogs for different windows.
+Snapshot code cleanups.
+Properly destroy dialogs when closed.
+Fix multihead focus.
+Spanish translation update (Jacinto Calvo Sintes).
+Menu fixes.
+Hungarian translation update (Horák Gyuri).
+Prevent shading windows from going off-screen.
+Improve sliding.
+
+
+-------------------------------------------------------------------------------
+
+Thu Feb 10 20:14:48 CET 2005
+(Kim)
+
+--- 0.16.8 0.04 ---
+Fix closing message boxes when re-generating menus.
+Attempt to improve badly behaving client handling.
+Fix pager update after desk switch.
+Bye bye EDBUG/EDBUG_RETURN.
+Add simple background load command.
+Optionally bypass logout dialog, optionally add reboot/halt to logout dialog.
+Render text into pixmaps for borders and buttons, avoiding expose events.
+Add/fix some default keybindings.
+Fix some dragbar ops.
+Deuglify fullscreen windows not filling available space.
+Handle screen resizing (xrandr). Event handling tweaks.
+Don't shade iconified windows.
+IPC - backward compatibility stuff, warp command.
+Workaround for image cache stuff on NFS mounts for linux (Jan Nordholz).
+Do not pass disp around everywhere.
+Add command to reload keybindings.
+Enable using named pixmap (debug option for now).
+Enable RandR support by default.
+Enable running scripts on startup/restart.
+Optionally show icons in focus list (Andreas Volz).
+Inhibit tooltips while showing focus list or menus.
+Systray fixes.
+
+
+-------------------------------------------------------------------------------
+
+Tue Mar 1 20:43:25 CET 2005
+(Kim)
+
+--- 0.16.8 0.05 ---
+Clean up atom stuff.
+Sync with ecore_x, some ecore_x candidates.
+Set _NET_FRAME_EXTENTS in stead of _E_FRAME_SIZE.
+Handle misbehaving apps sending client messages for withdrawn windows.
+Include README-0.16.8 in rpm.
+Fix key bindings for keysym names longer than 15 chars.
+64 bit arch.
+Enable function calls on "eesh set ..." to do reconfiguration.
+Ipc function cleanups/changes.
+Implement window matches doing window ops.
+Snapshot code updates, optionally track changes.
+Compatibility fix for E-Slides.
+Fix saving window settings on exit/restart.
+Added command to list keybindings.
+Show all (not only used) snaps in "Remember Settings ..." dialog.
+Bulgarian translation update (Viktor Kojouharov).
+Iconbox/systray fixes.
+Require imlib2 >= 1.2.0.
+Fix floating window stacking. Make menus floating.
+Fix client list order.
+Enable additional theme dir paths.
+Desktop fixes, namespace cleanups.
+Fix some memleaks.
+Handle startup window stacking via object stack.
+
+-------------------------------------------------------------------------------
+
+Sat Mar 19 12:02:15 CET 2005
+(Kim)
+
+--- 0.16.8 0.06 ---
+Event handling fixes and tweaks (avoid graphics exposure events). Cleanups.
+Use imlib2 for pager updates.
+Fix moving between offset desktops.
+Remember (certain types of) dockapps as such across restart.
+Fix button state saving. Save background and button configurations separately.
+Fix some startup/desk switch focusing issues.
+Fix background timeouts with offset desks.
+Use more ecore_x atom functions.
+Fix menu segv. Eliminate GetWinXY/WH.
+Fix bug causing lockups in multibyte locale's.
+Fix bad initial window geometry calculations.
+Add warp pointer to other screen command.
+Fix remembering command when it contains shell special or blank chars.
+Remove obsolete memory debugging feature.
+GSOD: Don't show unused buttons, don't try restarting/exiting E after forking.
+Don't show icons for iconified window transients in iconbox after restart.
+Initial hint setup tweaks.
+
+-------------------------------------------------------------------------------
+
+Sat Mar 26 13:09:50 CET 2005
+(Kim)
+
+--- 0.16.8 0.07 ---
+Update theme.
+Remove non-functional "external imageclass" stuff.
+Copyright updates. More enlightenment->e16.
+Simplify building non-final releases.
+Fix pointer focus on virtual roots.
+Fix type (may have caused trouble with focus list settings).
+Avoid confusion with edb. Fix null string item problem.
+Fix some remembered settings bugs.
+Fix various opacity setting bugs.
+Fix keygrabs handling (e.g. focus list staying up).
+
+-------------------------------------------------------------------------------
+
+Mon Apr 4 23:41:06 CEST 2005
+(Kim)
+
+--- 0.16.8 0.08 ---
+Correct group_op help text.
+Add option to send ICCCM ConfigureNotify's while moving (default off, was always on).
+Fix various menu animation/sliding bugs.
+Add warning if trying to enable composite when not available (Thanks emby).
+Fix button text.
+Add window op to enable/disable button grabs per client window.
+Fix menu opacity and stacking.
+Fix submenu alignment, limit number of menu items per column.
+Composite manager fixes and speedups.
+Clean up when exiting Alert().
+Remove broken -smfile command line option.
+Add -p (--config-prefix) command line option to set the configuration file prefix.
+Fix initial border assignment for internal windows.
+
+-------------------------------------------------------------------------------
+
+Thu Apr 14 22:47:03 CEST 2005
+(Kim)
+
+--- 0.16.8 0.09 ---
+Fix major picture leak.
+Clean up command line option handling.
+Fix various issues with options and restarting/session management.
+Simplify handling of top-level windows - part 1.
+
+-------------------------------------------------------------------------------
+
+Tue May 17 19:06:57 CEST 2005
+(Kim)
+
+Major changes:
+- Top-level window handling adapted for composite manager.
+- Composite manager now (mostly) works on all desktops.
+French translation update (Ludwig Noujarret).
+Initial ARGB client support (Rajsekar Manokaran).
+Fix cruft left some times after non-opaque resizing.
+Fix fullscreen window positioning after restart.
+Systray fixes (avoid crashing certain clients on close).
+Window shape fixes related to composite mode.
+Draw queue has been eliminated.
+
+-------------------------------------------------------------------------------
+
+Mon Jun 6 19:57:21 CEST 2005
+(Kim)
+
+--- 0.16.8 0.11 ---
+Fix segv in dialogs.
+Shape fixes.
+Fix focuslist icons interfering with iconbox ones.
+Add "warp always" focus option.
+Attempt to make client handling more solid.
+Attempt to improve focusing of new windows.
+Pager update fixes.
+Fix various window slidein issues.
+Composite manager fixes.
+Initial urgency and DEMANDS_ATTENTION support.
+Pseudo-trans update fixes (Tres Melton).
+
+-------------------------------------------------------------------------------
+
+Sat Jun 18 02:22:33 CEST 2005
+(Kim)
+
+--- 0.16.8 0.12 ---
+Scale default background. Cleanups (winter theme).
+Fix warnings on x86-64 (Tres Melton).
+Make dialog sliders behave when using mouse wheel (Tres Melton).
+Fix slideouts.
+Fix menu generation when PATH contains non-existing directories.
+Improve viewport switching with composite enabled.
+Remove some XSync's.
+Composite manager tweaks.
+Fix dialog segv and other issues.
+Fix starting/stopping composite manager.
+Fix crash on large client windows (dimension > 8192 pixels).
+Shape speedups, sanity check.
+Fix delay in main event loop, cleanups.
+Fix segv when lowering number of desktops.
+Speed up initial rendering of certain dialogs.
+Fix dragging pagers. Make pager scanning a bit more efficient.
+Fix transient placement.
+Focus tweaks.
+
+-------------------------------------------------------------------------------
+
+Thu Jun 30 15:23:58 CEST 2005
+(Kim)
+
+--- 0.16.8 0.13 ---
+Handle _NET_WM_ICON.
+Focus handling tweaks.
+Initial _NET_WM_ALLOWED_ACTIONS handling, cleanups.
+Action/grab tweaks, cleanups (should fix focus list lockup).
+Trivial stuff (function renaming, avoid referencing ewin list, eliminate
+ unnecessary casts).
+Eliminate xid list (now linked within struct).
+
+
+-------------------------------------------------------------------------------
+
+Mon Jul 11 22:16:56 CEST 2005
+(Kim)
+
+--- 0.16.8 0.14 ---
+Partial cleanup of client window property/state stuff.
+Set _NET_WM_ALLOWED_ACTIONS values properly.
+Move .desktop file to <datadir>/xsessions/.
+Handle _NET_WM_STRUT_PARTIAL (partial info not used in arrange/maximize code yet).
+Focus window on activated button binding with click-to-focus.
+Handle _NET_MOVERESIZE_WINDOW.
+Trivial namespace cleanup.
+Fix shading of shaped windows.
+Stuff for grabbing redirected windows.
+Enable showing offscreen windows via pager.
+Map virtual roots at creation (before creating named pixmaps for clients).
+
+-------------------------------------------------------------------------------
+
+Sun Jul 31 15:42:20 CEST 2005
+(Kim)
+
+--- 0.16.8 0.15 ---
+Fix sharp shadow bug.
+Fix "focus prev". Enable using up/down arrow keys with focus list.
+Iconox update tweak.
+Pager click fixes.
+Fix "Restart application on login" when WM_COMMAND is on group window.
+Urgency tweak.
+Add string splitting function. Rename string list functions.
+Fix bad _NET_WM_ICON consistency check.
+Fix segv on pager close.
+Fix focus to none.
+Fix composite manager enable/disable.
+Update default theme.
+Fix bad window sizing during unshade.
+Background generation tweaks, background selector speedups.
+Fix ugliness when deiconifying with composite enabled.
+Add override-redirect window translucency.
+Translucent resizing.
+Background generation tweaks, background selector speedups.
+Add .png to cached image file names.
+Fix bug when dragging window through edge flip. Minor pager scan speedup.
+
+
+-------------------------------------------------------------------------------
+
+Tue Aug 9 17:47:36 CEST 2005
+(Kim)
+
+--- 0.16.8 0.16 ---
+Move "hiwin" stuff to hiwin.c/h. Pager tweaks when composite is enabled.
+Bulgarian translation update (Viktor Kojouharov).
+Another partial cleanup of client window property/state stuff.
+Remove FAQ. It's still in man and dox.
+Dialog item text simplification.
+Fix slideouts.
+Wrap client window access.
+"get_client_info" is obsolete (use win_info).
+Pager tweaks.
+Live update of pager zoom windows when composite is enabled.
+Avoid some screen updates due to invisible object damage.
+Fix MouseUp deskbinding.
+Composite manager - Invalidate named pixmap on unmap, cleanups,
+ experimental override redirect handling modes.
+Eliminate old client order list. Shuffle some stuff around.
+Cleanups.
+Wrap XWarpPointer and XQueryPointer.
+
+-------------------------------------------------------------------------------
+
+Tue Aug 23 20:42:02 CEST 2005
+(Kim)
+
+--- 0.16.8 0.17 ---
+Dialog sliders - Don't callback on mouse down, fix klicking on knob.
+Fix occasional event loop delay.
+Speed up pseudotrans changes.
+Composite manager - Prepare for handling unredirected windows, cleanups.
+Enable actions on focus in/out.
+Attempt to fix issues with _XROOTPMAP_ID across restart.
+Fix adding desks, avoid some X-errors, cleanups.
+Name pagers Pager-<no> in stead of just <no>.
+Fix incorrect background pixmap size in certain situations.
+Fix root resizing.
+Move some global vars around, cleanups.
+Fix some focus issues.
+Move tooltip handling to source. Eliminate WindowAtXY().
+Fix slideouts (again).
+Fix occasionally missing images in dialogs.
+Button related cleanups.
+Fix segv's, X-errors, memleak, wrapping.
+Make default menus and action tooltips localizable.
+
+
+-------------------------------------------------------------------------------
+
+Tue Sep 20 19:36:08 CEST 2005
+(Kim)
+
+--- 0.16.8 0.18 ---
+Fix race in systray object registration.
+Fix toggling fixedpos, neverfocus, add fixedsize.
+Track window modality state (not honoured).
+Fix final position for non-opaque slideins.
+The beginnings of fading (OR fade-in for now).
+Focus stack tweak.
+Fix focus on multihead when entering empty screen.
+Delay sub-menu closing.
+Event handling tweaks. Global action events must occur on root window.
+Fade on opacity changes. Enable/disable fading in config dialog.
+Speed up stacking.
+Fade out on unmap. Destroy ends fading.
+Remove IPC copyright function - info is in AUTHORS and COPYING.
+Move README-0.16.8 to docs/.
+Add notes on 0.16.7.x configuration files (Andy Murren).
+
+-------------------------------------------------------------------------------
+
+Sat Oct 22 13:48:05 CEST 2005
+(Kim)
+
+--- 0.16.8 0.19 ---
+Fix potential segv while fading.
+Defer menu loading. Unload 5 min after last use.
+Fix various composite manager bugs (hidden damage, shape during fadeout, fading while sliding).
+Fix windows sliding in sometimes not being focused when they should.
+Speed up fullscreen mode toggling.
+Fix some systray race conditions.
+Fix dialog layout bug. Shuffle some dialog contents around.
+Change default dialog layout, remove redundant code.
+Fix geometry indicator during non-opaque resizing.
+Fix focus list sometimes not being closed.
+Smoother geometry indicator.
+Fix focus list rendering bug (reset shape before update). Restructure code.
+Save settings when exiting Desktop dialog.
+Force focus unset before leaving desk.
+Fix caching of imlib images (has been severely crippled for some time).
+Avoid shape processing for images with alpha set but no shape set.
+Set ICCCM configure position relative to desk origin.
+Tweak click-raises (raise if lowered after getting focus).
+Use timer events for startup windows.
+Fix non-opaque resizing.
+Fix pointer focus on window close.
+Click-raises tweak (don't set grabs if window cannot be raised).
+
+
+-------------------------------------------------------------------------------
+
+Tue Nov 29 21:41:22 CET 2005
+(Kim)
+
+--- 0.16.8 0.20 ---
+Fix bug in creation of new saved settings item.
+Avoid some X-errors caused by operations on destroyed windows.
+Fix bug in desktop background assignment.
+Clean up client adoption.
+Fix some snapshot bugs introduced recently (handle empty lines in config, get
+ group info before used).
+Fix various issues with iconification of transients and state updates.
+EWM hint support is no longer optional.
+Don't grab Alt F9-F12 by default.
+Reverse windowmatch.cfg list order (back to the way it was).
+Change window restart property to include only state not available elsewhere.
+Fix various fullscreen/maximized state bugs wrt. restart and locking.
+Switch desk/viewport on _NET_ACTIVE_WINDOW.
+Fix dialog layout bug.
+Fix CM bug with InputOnly windows.
+Discard events for destroyed windows.
+Fix bug in state update when losing focus.
+Fix several window group bugs.
+Fix fd leak.
+Empty string item in .cfg tweak.
+Don't inhibit fullscreen when maximized but forget maximized state.
+Session script changes.
+Move session settings to separate dialog.
+Add user info about session settings (Peter Hyman). Minor doc updates.
+Fix not shadowing desks, buttons etc.
+Don't chase sliding windows.
+Fix inconsistent focusing of sliding windows.
+Deiconify to current viewport.
+Introduce action source handling (locks).
+Fix grab update when changing focus settings.
+Focus own dialogs when mapped.
+Remember various flags.
+Fix non-opaque moves across desk switch.
+Fix incorrect or invalid background pixmaps in certain situations.
+
+
+-------------------------------------------------------------------------------
+
+Fri Dec 16 00:05:43 CET 2005
+(Kim)
+
+--- 0.16.8 pre1 ---
+Add show desktop IPC command ("desk clear").
+Abort fadeout if geometry is changed while unmapped.
+Use per desk background window.
+Fix setting no background.
+Fix bug in setting solid color bg.
+Fix bug when window is damaged and sharp shadows are enabled.
+Fix destruction of desk background window and composite update on desk switch.
+Drop obsolete man page until somebody bothers to update it.
+Fix pointer focus on desk switch.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jan 14 17:26:16 CET 2006
+(Kim)
+
+--- 0.16.8 pre2 ---
+Fix size indication when moving shaded window.
+Fix potential segv when reloading menus.
+Fix setting focusclick window attribute.
+Set focusclick attribute on desktop type windows.
+Make click-raises and click-to-focus independent options.
+Make click-raises default.
+Fix focusing focusclick windows in certain situations.
+Fix button slideouts on desks other than first.
+Fix desk button bindings when passed through by app.
+Fix scaled backgrounds with overlay image and overlay images with alpha.
+Run menu generation on startup only if menus subdir doesn't exist.
+Simplify pseudotrans code, fix iconbox transparency.
+Better parsing of Exec line in .desktop files (http://bugs.debian.org/345021).
+Show root tooltips only after move.
+Always set name on EObj's (debug).
+Fix scaling of fixed aspect ratio backgrounds.
+Fix bug with initially maximized/fullscreen windows.
+Fix slow logout with gnome-session.
+Fix timer event starvation by X events.
+- Thanks to Mark Bowyer for help to sort this out.
+Change timers to use absolute time.
+Go back to using single unredirected root background window (speeds up
+ composite considerably).
+Composite manager - Window shape must be clipped by window size.
+Combine some shadow parameters, change defaults.
+Change default ARGB client mode to borderless.
+Avoid setting shape to default (unshaped) on ShapeNotify when already set.
+ This fixes an event looping problem on Xsun where doing so generates
+ Shape (and Visibility) Notify events (Xsun bug?).
+- Thanks again to Mark Bowyer for help to track this down.
+Do full composite repaint on VT switch.
+Fix pseudotransparent iconbox on desk with no background.
+
+
+-------------------------------------------------------------------------------
+
+Tue Jan 24 20:34:43 CET 2006
+(Kim)
+
+--- 0.16.8 pre3 ---
+Set some keybindings on "OK" dialog.
+Fix changing no background to background.
+No longer use convert (ImageMagick) to create scaled icons in menu generation,
+but scale internally according to configuration setting.
+Allow setting border on windows with borderless hint.
+Fix potential missing server ungrab.
+Track top-level window shapedness.
+Unselect client window events on withdraw. This fixes trouble with certain
+kde(?) systray apps when not using the e16 systray. Thanks to Peter Hyman
+for going on about this :)
+
+
+-------------------------------------------------------------------------------
+
+Wed Feb 8 19:24:21 CET 2006
+(Kim)
+
+--- 0.16.8 ---
+Use default pager background in pagers for desk without background.
+Fix menu rendering after changing theme trans to 0.
+Add some missing localizable strings.
+Japanese translation update (Yasufumi Haga).
+Get rid of tooltips when closing window.
+Correct window position when dragging window through area/desk switch.
+Fix focus when dragging window through area/desk switch.
+Fix focus when entering desk where nothing should be focused.
+Freeze keyboard while switching area/desk.
+Fix focus stack after area/desk switch when using (sloppy) pointer focus.
+Remove support for ancient gettext versions.
+Quit pager zoom when leaving screen.
+
+
+-------------------------------------------------------------------------------
+
+Thu Feb 16 22:37:38 CET 2006
+(Kim)
+
+--- 0.16.8.1 0.01 ---
+Scale pagers on screen resolution change.
+Fix position after unshading certain borders. Cleanups.
+Add sanity check for background timeout value.
+
+
+-------------------------------------------------------------------------------
+
+Sun Feb 19 23:10:05 CET 2006
+(Kim)
+
+--- 0.16.8.1 0.02 ---
+Fix parsing menu files without newline at end of file.
+Move lists to Ecore_List.
+Rename some files.
+Quick fix for apps that want to inherit the root pixmap.
+Notes on tweaking the Aqua theme (Yasufumi Haga).
+
+
+-------------------------------------------------------------------------------
+
+Tue Feb 21 19:58:22 CET 2006
+(Kim)
+
+--- 0.16.8.1 0.03 ---
+Add move/resize functions with action source parameter.
+Yet another attempt to get pager scaling on resolution change right.
+Reenable having menu definitions in theme (hmm.. why did I take this out?).
+Fix background configuration when background is NONE.
+
+
+-------------------------------------------------------------------------------
+
+Fri Mar 3 00:07:10 CET 2006
+(Kim)
+
+--- 0.16.8.1 0.04 ---
+Rework background handling:
+- Only use root background overlay when composite is enabled
+- Improve handling of external backgrounds ("No Background")
+- Fix external background handling when composite is enabled
+Fix button shape change when composite is enabled.
+
+
+-------------------------------------------------------------------------------
+
+Wed Mar 15 19:13:54 CET 2006
+(Kim)
+
+--- 0.16.8.1 0.05 ---
+Make shadow opacity configurable.
+Disable pager "live" zoom mode when CM is inactive.
+Update pagers after fading.
+Simplify shadowing. Speed up fading with blurry shadows. Add silly shadow mode.
+Allow specifying any button in button bindings (not just 1-5).
+Only create default iconbox first time.
+Improve not composite redirecting override-redirect windows hack.
+
+
+-------------------------------------------------------------------------------
+
+Tue Mar 28 20:06:01 CEST 2006
+(Kim)
+
+--- 0.16.8.1 ---
+e16keyedit (version 0.3) now works with e16.8. Add notes/configuration data.
+Fix move window by area (eesh wop <id> area move x y).
+Simplify server extension handling. Initial screensaver extension stuff.
+Fix non-opaque slidein.
+Fix pager update on internal window unmap (revert recent change).
+
+
+-------------------------------------------------------------------------------
+
+Sun Apr 2 19:53:43 CEST 2006
+(Kim)
+
+--- 0.16.8.2 0.01 ---
+Wrap imlib.
+Attempt do useful window repositioning on screen size change.
+Fix IPC help formatting for a few items.
+Allow omitting "menus/" in menu path. May make migration from <16.8 less painful.
+Get rid of ~/.e16/e_config.bindings. Instead save key AND button binding to
+ ~/.e16/bindings.cfg when edited with e16keyedit. Rename ~/.e16/e_config.bindings
+ to ~/.e16/e_config.bindings.old after reading.
+ No more "unchangable" keybindings. All are exposed to e16keyedit.
+Clear maximized state on resize.
+Make window opaque when focused (window option, enabled by default).
+Clean up handling of opacity settings, move config options to misc.opacity.
+Opacity values in configuration are now 0-100 in stead of 0-255.
+Japanese translation update (Yasufumi Haga).
+
+
+-------------------------------------------------------------------------------
+
+Mon Apr 17 19:04:41 CEST 2006
+(Kim)
+
+--- 0.16.8.2 0.02 ---
+Faster, smoother rendering of dialogs (use bg pixmap, no longer using expose events).
+Move frequently used opaque type definitions to etypes.h.
+Hack to fix problem with composite opacity during non-opaque move/resize.
+Fix transparent iconbox.
+Introduce idlers.
+Fix grabbing bitmap icons.
+Japanese translation update (Yasufumi Haga).
+Improve window repositioning on screen size change.
+Fix building with libiconv (Mike Frysinger).
+Fix problem with background pixmaps being freed by mistake.
+Fix theme transparency with external background.
+Various build related tweaks:
+- Autogenerate spec file (now named e16.spec, was e.spec)
+- Minor changes to various version strings
+- Move timestamp.h to top dir.
+
+
+-------------------------------------------------------------------------------
+
+Fri Apr 28 20:36:30 CEST 2006
+(Kim)
+
+--- 0.16.8.2 0.03 ---
+Start renaming/rewrapping stuff preparing for other api changes.
+Revert bad change. ICCCM size matching should never increase size.
+Fix _XROOT... hint compatibility hack.
+Enable configuring internal and exported language.
+Fix progress bars with composite enabled.
+Fix winter theme progress bar images.
+Add feature to subdivide screen (xinerama style).
+Fix several bugs with maximizing windows.
+Fix bug when reparenting to nested E.
+Fix bug potentially causing eternal loop while sliding.
+
+
+-------------------------------------------------------------------------------
+
+Mon May 22 00:08:21 CEST 2006
+(Kim)
+
+--- 0.16.8.2 0.04 ---
+Change internal window handling API. Should make things slightly faster.
+Fix a number of window placement bugs.
+Attempt to fix occasional crashing of clients with systray windows on e16 exit.
+Fix potential configuration file corruption when running multihead.
+Faster TT font drawing.
+Fix border rendering for ARGB clients (requires imlib2 from CVS).
+
+
+-------------------------------------------------------------------------------
+
+Thu Jun 8 01:29:33 CEST 2006
+(Kim)
+
+--- 0.16.8.2 0.05 ---
+Fix killing clients (hmm... was broken quite a while back). (0.04)
+Speed up shape propagation.
+Fix drawing of vertical border text in certain themes.
+Add some sanity checking for pixmap cursors.
+Event debug cleanups.
+IPC window operation tweaks:
+- Enable targeting multiple windows (wildcard in name spec).
+- Enable non-group operations.
+Add background transparency "compatibility mode" option to configuration dialog.
+Don't reserve space for unmapped systray windows.
+Fix screen edge resistance in presence of windows with struts.
+ARGB window tweaks and testing stuff.
+Fix shutdown when using session manager.
+Fix shape update when client resizes after changing shape.
+Fix incorrect damage region when raise actually lowers and vice versa.
+Change default session script to run scripts in foreground.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jul 15 17:31:44 CEST 2006
+(Kim)
+
+--- 0.16.8.2 ---
+Fix pager zoom window shape bug.
+Fix initial menu rendering in certain situations.
+Update winter theme (localized font configuration files).
+Fix window stack getting messed up due to bug in handling of particular case
+of misbehaving clients (yet another variant of unmap/map without waiting for
+withdrawal).
+Fix exit/restart from GSOD.
+
+
+-------------------------------------------------------------------------------
+
+Mon Jul 24 21:05:36 CEST 2006
+(Kim)
+
+--- 0.16.8.3 0.01 ---
+Bump version, add revision to version info strings.
+Japanese translation update (Yasufumi Haga).
+Refactor dialog creation functions.
+Fix for autoconf-2.60 (datadir).
+Fix setting border style using winops menu.
+Fix closing logout dialog when using key bindings.
+Split up, shuffle around file.c (no real changes).
+Eliminate a lot of stat's during configuration file parsing.
+
+
+-------------------------------------------------------------------------------
+
+Sun Aug 13 14:46:37 CEST 2006
+(Kim)
+
+--- 0.16.8.3 0.02 ---
+Add usual keybindings to about dialog.
+Some more dialog creation refactoring bits.
+Rename some macros (_Ewin...) for consistency.
+Eliminate redundant macro (Xwin).
+Add override redirect flag to map event debug info.
+Fix some segv's in obscure situations.
+Still more dialog creation refactoring bits.
+Fix clients resizing while having bogus max size hint (KDE info windows).
+Fix incorrect menu placement near left screen edge.
+Fix config parameter type.
+Avoid dangling buffer. Eliminate some redundant code.
+Fix shape on pager zoom window (when composite is enabled).
+Defer tooltip realization.
+Add note about ARGB window borders.
+
+-------------------------------------------------------------------------------
+
+Thu Aug 17 23:21:24 CEST 2006
+(Kim)
+
+--- 0.16.8.3 ---
+
+-------------------------------------------------------------------------------
+
+Sun Aug 27 22:14:29 CEST 2006
+(Kim)
+
+--- 0.16.8.4 0.01 ---
+Enable emptying part of dialog and resizing dialog window.
+Add missing label text.
+Add data parameter to dialog keybinding callback.
+Use table with normal buttons in dialog footer.
+Add combined configuration dialog.
+Simplify dialogs (remove rarely used simple dialog variant).
+Shuffle _NET_WM_SYNC_REQUEST stuff around (still not active).
+Rename a few configuration items.
+Fix logout dialog layout.
+Do case insensitive searching with ipc window names (vapier).
+Trivial re-wrapping of XQueryPointer().
+
+
+-------------------------------------------------------------------------------
+
+Sat Sep 9 11:05:59 CEST 2006
+(Kim)
+
+--- 0.16.8.4 0.02 ---
+Avoid having to click twice to activate menu item.
+Split iconbox into container, iconbox, and systray.
+Add live pager update mode (when composite is enabled).
+Put menus on current desk in stead of floating on root.
+Fix missing/too many draws of the background selector window.
+Fix live pager updates and pager zooming for sticky windows
+ (Invalidate named pixmap on reparent).
+Fix memory leaks in combined dialog.
+Eliminate redundant geometry caching in top-level objects.
+
+-------------------------------------------------------------------------------
+
+Sun Sep 10 08:57:47 CEST 2006
+(Kim)
+
+--- 0.16.8.4 0.03 ---
+Fix build without composite.
+Avoid unnecessary library dependencies in eesh and edox. Cleanups.
+
+
+-------------------------------------------------------------------------------
+
+Wed Sep 20 18:56:15 CEST 2006
+(Kim)
+
+--- 0.16.8.4 0.04 ---
+Refactor/simplify, use execApplication in stead of plain fork/exec.
+Add hack to make apps lauched from e16 in window mode appear in the virtual
+ root in stead of the real root.
+Japanese translation update (Yasufumi Haga).
+Generalize selection handling. Manage _NET_WM_CM_Sx selection.
+- Should fix issues with recent gtk ARGB windows.
+Fix translation of button labels in combined settings dialog.
+Fix bug in dialog layout (table positioning) causing trouble (unselectable
+ items) primarily in combined settings dialog.
+Fix setting pager mode when compiled without composite.
+Set mask alpha threshold, if possible.
+
+
+-------------------------------------------------------------------------------
+
+Sun Oct 15 19:51:10 CEST 2006
+(Kim)
+
+--- 0.16.8.4 ---
+Set correct environment when starting remembered applications at startup.
+Fix pager updates in certain combinations of modes.
+Fix segv when creating second systray.
+Notes on configuration options, and other info bits.
+Add ipc/match bits to enable/disable fading of particular windows.
+Fix applying matches to internal client windows in certain situations.
+Fix potential segv when showing menu.
+Fix dialog image rendering in certain situations.
+
+
+-------------------------------------------------------------------------------
+
+Thu Nov 2 21:12:57 CET 2006
+(Kim)
+
+--- 0.16.8.5 0.01 ---
+Correct initial sizing of dialog window.
+Refactor font drawing code.
+Disable text rendering using XDrawString(16).
+- The code should never come in play anyway because of the "fixed" fallback
+ in the XCreateFontSet case.
+Add Xft support.
+Japanese translation update (Yasufumi Haga).
+No need to restart when changing override-redirect window opacity.
+Center unplaced dialogs on "parent"(if transient) or root.
+Add _NET_WM_SYNC_REQUEST support.
+
+
+-------------------------------------------------------------------------------
+
+Fri Nov 17 19:42:09 CET 2006
+(Kim)
+
+--- 0.16.8.5 0.02 ---
+Ignore bogus unmap events (before window is mapped) and synthetic unmap events.
+- Either would fix trouble with misbehaving client (gnome-terminal
+ configuration window).
+Enable setting focused/non-focused opacity independently.
+- Based on patch from Grant Wier.
+Fix shortening text to fit available space in certain combinations of locale
+ and font type.
+Update help for a number of IPC commands.
+
+
+-------------------------------------------------------------------------------
+
+Mon Nov 27 21:21:37 CET 2006
+(Kim)
+
+--- 0.16.8.5 0.03 ---
+IPC command "misc arrange" -> "desk arrange".
+Move move/resize event handling to more appropriate location.
+Split up, shuffle around, rename.
+Enable window matches on override-redirect windows (for compositing options).
+Set no-redirect flag on input-only windows (cosmetic/debug, has no real effect).
+Bad iconv conversion descriptor is not NULL but (iconv_t)(-1).
+Rewrap stuff related to WM_NAME/CLASS.
+EwinGetName -> EwinGetTitle.
+Rewrap more stuff related to WM_NAME/CLASS.
+Enable matching override-redirect windows by WM_CLASS.
+By default set opaque and fading off on xscreensaver window.
+Clean up move/resize event handling.
+Allow disabling theme localisation.
+Add Xft font configuration example.
+
+
+-------------------------------------------------------------------------------
+
+Sun Dec 10 18:13:19 CET 2006
+(Kim)
+
+--- 0.16.8.5 0.04 ---
+UCS-4 seems to be more portable than WCHAR_T.
+Xft font height tweak.
+Progressbars - Simplify, increase height to fit text, if needed.
+Add some font aliases. (config/fonts.cfg-xft_example)
+Fix setting hilited/clicked font in certain dialog widgets.
+Add missing e-mail address. (po/Makevars)
+Add session management support status to summary.
+Fix list of files containing translatable stuff.
+Disable translation of some error message stuff that might as well be left untranslated.
+Fix focused opacity stuff, add fading toggle. (config/menus.cfg)
+Reuse other text with same meaning. (config/actionclasses.cfg)
+
+
+-------------------------------------------------------------------------------
+
+Sat Dec 16 15:43:41 CET 2006
+(Kim)
+
+--- 0.16.8.5 ---
+
+-------------------------------------------------------------------------------
+
+Sun Jan 14 11:38:31 CET 2007
+(Kim)
+
+--- 0.16.8.6 0.01 ---
+Refactor iconbox animation code.
+Japanese translation update (Yasufumi Haga).
+Fix bug in dockapp placement (wrapping at right/lower edge). Fix by davey?
+Clean out unused duplicate backgrounds at startup.
+Minor reorganisation of some ewin internals.
+Fix build with ecore (ecore_list_find implemented in ecore).
+Move theme path related stuff out of eimage.c, add function to get image data.
+Add title to Window Options menu.
+Remove offensive pawn.png.
+Remove unneeded grab parameter (we always grab).
+Fix move through desk switch.
+Fix crash on opening certain dialogs when sound is enabled (Valdis Kletnieks).
+Danish translation update.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jan 20 14:53:41 CET 2007
+(Kim)
+
+--- 0.16.8.6 0.02 ---
+Fix segv in some obscure client exit scenarios involving reparent/destroy.
+Add more sanity checks in client container event handler.
+Refactor various file property test functions.
+Cleanups, enable compiling everything as if it were C++.
+Fix epp warnings.
+
+
+-------------------------------------------------------------------------------
+
+Thu Feb 1 23:44:09 CET 2007
+(Kim)
+
+--- 0.16.8.6 0.03 ---
+Disable unused feature (file name mapping) (epp).
+Suppress blank output lines (epp).
+Add command to show current screen size. Update screen command help.
+Make old sample scripts work.
+Add animators.
+Tweak timer event handling (run all expired timers at once).
+Use animator to slide startup windows.
+Highlight selected focus list item when clicked (noted by Warren Crossing).
+Move modifier mask stuff around. Avoid redundant key/button grab/ungrabs.
+Make focus list key handling somewhat less ugly.
+
+
+-------------------------------------------------------------------------------
+
+Thu Feb 8 22:09:11 CET 2007
+(Kim)
+
+--- 0.16.8.6 0.04 ---
+No shadow on kicker tooltip or screen saver windows.
+Do fading using animators.
+Use global animation time step.
+Update config item notes.
+Make shadow on/off change effective immediately.
+
+
+-------------------------------------------------------------------------------
+
+Tue Feb 20 18:45:20 CET 2007
+(Kim)
+
+--- 0.16.8.6 ---
+Japanese translation update (Yasufumi Haga).
+Add icon to iconbox after in stead of before animation.
+Disable dialog checkbox for non-functional "Button Image" feature.
+Add some checks to avoid imlib warnings.
+
+
+-------------------------------------------------------------------------------
+
+Fri Mar 9 00:47:46 CET 2007
+(Kim)
+
+--- 0.16.8.7 0.01 ---
+gettext should be external.
+Add MAINTAINERCLEANFILES.
+Add icon to xsession .desktop files.
+Fix configure with --x-includes and --x-libraries (thanks to Peter Hyman).
+Don't scan background directory at startup but when needed (menu or config dialog).
+Initial GLX config support.
+Fix some group handling breakage (broken since 0.16.8?).
+French translation update (Tristan D.).
+Correct translators mailing list.
+Disable non-functional group show/hide stuff.
+Add option to show windows on all desks in focus list.
+
+
+-------------------------------------------------------------------------------
+
+Wed Mar 14 00:25:26 CET 2007
+(Kim)
+
+--- 0.16.8.7 0.02 ---
+The CM now renders to the composite overlay window (if available).
+Fix segv on logout (thanks to Christian Klein). (fixup)
+Fix various updates when external background changes (was disabled?).
+Fix stacking before shade/unshade when "click-raises" is enabled (noted
+ by Sven Faerber).
+Show message when selecting "Composite Settings ..." and e16 is built
+ without composite support (suggested by Mike Frysinger).
+Don't unshade iconified windows on activation (revert to old behavior -
+ requested by Sven Faerber).
+
+
+-------------------------------------------------------------------------------
+
+Sun Mar 25 11:38:23 CEST 2007
+(Kim)
+
+--- 0.16.8.7 0.03 ---
+Revert not unshading iconified windows on activation.
+Inhibit unmaximizing in various situations, e.g. when shaded.
+Fix unmaximizing after shade/unshade (noted by Sven Faerber and Bradley Reed).
+Fix resizing normal->maximized->fullscreen and back.
+Fix preserving maximised state across restart.
+Use same configure.in/spec file setup in e16 and epplets.
+French translation update (Tristan D.).
+Fix "multiple deiconification" seen with e.g. claws-mail (noted by Bradley Reed).
+Move definition of __UNUSED__ to config.h.
+Add some glx support stuff.
+Add option to do edge flipping only when moving window (based on patch by
+ Peter Poulsen).
+Enable focusing windows not containing the pointer in pointer focus modes when
+using the focus list (noted by Peter Poulsen).
+Don't wipe m4/ on maintainer-clean.
+
+
+-------------------------------------------------------------------------------
+
+Sat Apr 14 12:40:57 CEST 2007
+(Kim)
+
+--- 0.16.8.7 0.04 ---
+Add some glx bits.
+Japanese translation update (Yasufumi Haga).
+Minor reorganization of internal window ops.
+Use anti-alias only when appropriate.
+Add magnifier window (eesh mag show).
+Handle switching between versions with minor ENL_DATA differences a bit better.
+Remove some unnecessary casts.
+Don't append newline to e16 ipc output (eesh).
+Fix windows sometimes getting stuck to pointer.
+Fix incorrect fading termination in certain situations.
+Add _NET_STARTUP_ID.
+Add ecore_x_netwm_startup_id_get().
+French translation update (Tristan D.).
+
+
+-------------------------------------------------------------------------------
+
+Sat Apr 21 00:22:48 CEST 2007
+(Kim)
+
+--- 0.16.8.7 0.05 ---
+Mozilla apps have changed WM_CLASS name to gecko.
+Split client message processing into client and root message parts.
+Don't use atom name in client message processing.
+Don't use atom name in property change processing.
+Add some new atoms (_NET_WM_ACTION_ABOVE/BELOW).
+Startup id bits.
+Remove unused ACTION_UNSHADE. Eliminate almost duplicate tooltip strings.
+Update config file string list.
+Danish translation update.
+
+
+-------------------------------------------------------------------------------
+
+Fri May 4 00:13:57 CEST 2007
+(Kim)
+
+--- 0.16.8.7 ---
+Avoid creating/destroying regions.
+Use some macros to simplify code. Minor reorganization of root stuff.
+Avoid creating/destroying regions - continued.
+Fix ugly black shadows on icons in transparent iconbox (noted by Atom Smasher).
+Fix repaint after changing shadow mode.
+
+
+-------------------------------------------------------------------------------
+
+Thu May 17 11:49:39 CEST 2007
+(Kim)
+
+--- 0.16.8.8 ---
+Bump version.
+Fix pagers when enabling after initially being disabled (noted by Dennis Nezic).
+Remove unused backup-....cfg stuff.
+Fix fallback textclass.
+Don't crash if trying to start when no theme is found. Add missing newline.
+Fix parsing title, name, and class matches in windowmatches.cfg (noted by Ted Baltz).
+Remove trailing dash in release version string.
+Enable setting imlib2 image cache size (debug).
+Eliminate some remainders from Window re-wrapping done a while back.
+
+
+-------------------------------------------------------------------------------
+
+Sat May 26 19:46:45 CEST 2007
+(Kim)
+
+--- 0.16.8.9 0.01 ---
+Bump version.
+Eliminate unused parameter in IPC functions. Move some stuff out of E.h.
+Tweak debug message printing.
+Tweak debug messages in configuration settings handling.
+Fix several issues around setting internal window title/class.
+Hungarian translation spelling corrections (Egmont Koblinger).
+Free un-loadable menu pixmaps some time after menu is closed.
+Make magnifier window title translatable.
+Move argb bit from Eobj down to Win struct.
+Set default pager mode to live.
+Move some window background pixmap handling down to Win layer.
+Fix edge flipping after desk switch.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jun 9 11:35:20 CEST 2007
+(Kim)
+
+--- 0.16.8.9 0.02 ---
+Fix extents invalidation when reparenting+moving while unmapped.
+Avoid area switch when activating window that is mostly offscreen (noted by Mike Frysinger).
+edox: Fix centering when running e16 in window.
+Change generated menu file references to be relative to ~/.e16/menus/.
+Use new destructive line parser to avoid a lot of strdup/free's.
+Move menus in menus.cfg to simple files (preserving backward compatibility).
+Make xsession stuff work - at least on Fedora.
+Japanese translation update (Yasufumi Haga).
+Defer image class color allocation until needed (most likely never).
+
+
+-------------------------------------------------------------------------------
+
+Tue Jun 19 20:52:47 CEST 2007
+(Kim)
+
+--- 0.16.8.9 0.03 ---
+French translation update (Tristan D.).
+Fix building with glx when glXBind/ReleaseTexImageEXT are not directly available
+ (based on patch by bene42).
+Use shaped window in stead of server grab/line draws for boxed move/resize mode
+ (old mode available with "eesh set misc.movres.old_mode 1").
+Disable slide-in until startup windows are gone.
+Use extents equal shape for objects without shadow.
+Correct damage update on shape change.
+Always focus unfocused window when clicked.
+Fix bug in left/top resizing when returning to starting point.
+
+
+-------------------------------------------------------------------------------
+
+Mon Jul 23 22:11:58 CEST 2007
+(Kim)
+
+--- 0.16.8.9 0.04 ---
+Fix some potential segv's.
+Add shaped window version of technical move/resize mode.
+Avoid move/resize updates when nothing has changed.
+Disable some code that should be redundant.
+CM: Minor optimisation for unshaped windows.
+Don't look up well-known atoms.
+CM: Avoid creating/destroying regions.
+No need for aliases in .menu files.
+Eliminate some pointer event processing.
+CM: Make it less likely that X-errors occur when window is unmapped.
+Simplify initial window management at startup.
+Fix incorrect menu placement in certain situations.
+CM: Debug tweaks.
+CM: Fix alternative composite manager mode of operation (compmgr.mode = 1).
+ Using this mode fixes a number of problems seen with override-redirect
+ client windows, e.g. xlock not receiving key presses.
+ Not sure if there are any problems with this or if it simply should be
+ the default.
+Move some window property derivation to allow tweaking stuff in snapshots.
+Add dialog option to select non-grabbing move/resize modes.
+Fix set/unset of raise/focus grabs in certain situations.
+Fix some dialog debug stuff.
+Fix some background dialog issues + tweak layout.
+Destroy unused top-level menus.
+Fix changing pager mode.
+Minor doc updates.
+Fix build without Xft.
+Use pkg-config for ecore stuff.
+Enable building without session management support.
+CM: Fix tooltip shape change in certain situations.
+Don't mask off events while switching area/desk. The amount of enter/leave
+ events during switches has been reduced considerably, and changing the event
+ masks causes more trouble than worth while (I think...).
+Get rid of spurious tooltips.
+Remove the "excessive flip check" limiting minimum time between edge flips.
+
+-------------------------------------------------------------------------------
+
+Sat Jul 28 16:08:32 CEST 2007
+(Kim)
+
+--- 0.16.8.9 0.05 ---
+Follow ecore_list name changes.
+Avoid some lagginess at end of desk switch.
+Disable theme localisation by default.
+Prefer Xft font configuration.
+
+
+-------------------------------------------------------------------------------
+
+Sat Aug 11 13:31:21 CEST 2007
+(Kim)
+
+--- 0.16.8.9 ---
+Fix rendering vertical (->down) text.
+Fix occasional bad tooltip placement.
+Fix evaluation of LOCALEDIR with new autosomething. Remove fsstd option.
+Spec file tweaks.
+Change configuration of alternative font configuration.
+Xft font is now selected using prefix "xft:".
+Fix valgrind complaint (drawable caching).
+Optionally use pango for font rendering.
+
+
+-------------------------------------------------------------------------------
+
+Sun Sep 23 14:51:38 CEST 2007
+(Kim)
+
+--- 0.16.8.10 0.01 ---
+Bump version.
+Change some libtool macro names to non-deprecated ones.
+Add AC_LIBTOOL_LANG_..._CONFIG magic to cut down configure speed a bit on
+ some platforms (as suggested by Andreas).
+Always enable warnings when using gcc. Fix warnings.
+Remove unmaintained debian stuff.
+Deactivate more code when disabling sound.
+XColor -> EColor, EGet/SetColor -> macros.
+Loadable module support bits.
+Split up font stuff, preparing for loadable font type handlers.
+Japanese translation update (Yasufumi Haga).
+Close systray if _NET_SYSTEM_TRAY_Sx selection is lost.
+Font and sound module bits.
+Deactivate unused code, trivial cleanups.
+Optionally build various bits (font,sound support) as loadable modules.
+Eliminate EXCreate/FreePixmap.
+Avoid some pixmap create/destroys.
+Simplify some imageclass functions (w,h are always window size).
+Add optional visibility hiding (only useful with modular build).
+Spec file fix for x86_64 (Peter Kjellerstedt).
+Enable setting default maximise policy.
+Startup id bits.
+Japanese translation update (Yasufumi Haga).
+
+-------------------------------------------------------------------------------
+
+Sun Sep 30 20:02:02 CEST 2007
+(Kim)
+
+--- 0.16.8.10 0.02 ---
+Fix infinite loop when regenerating menus.
+Fix potential incorrect termination of IPC connection, which could cause segv.
+eesh: Fix bad event loop causing hangs in certain situations.
+eesh: Always wait for ack (also with -e), otherwise the message could get lost.
+Screen stuff naming consistency and code tweaks.
+Fix xinerama head selection in certain situations.
+Fix menu placement on xinerama screens.
+Force new (default as of 0.16.8.9) composite manager mode at startup.
+
+-------------------------------------------------------------------------------
+
+Sat Oct 6 09:16:40 CEST 2007
+(Kim)
+
+--- 0.16.8.10 ---
+
+-------------------------------------------------------------------------------
+
+Sun Nov 18 11:21:30 CET 2007
+(Kim)
+
+--- 0.16.8.11 0.01 ---
+Fix reuse of freed pixmaps when using pseudo-transparency.
+edox: Various enhancements and cleanups:
+ Enable using arrow keys for navigation.
+ Enable reloading file ('r').
+Hide tooltips in various situations (showing focus list, window map, move, etc.).
+Find some more menu icons.
+Move to new AC_INIT style.
+Fix memory leak when xinerama is enabled (normally hit only once).
+Re-init xinerama info when screen size changes.
+Fix translucent moves of non-shaped windows (noted by Thanatermesis).
+Autofoo cleanups, move to bindir, pkgdatadir and friends.
+Menu whitespace cleanups, rename some items:
+ Enlightenment Epplets -> Epplets.
+ Restart Enlightenment -> Restart.
+Fix build when imlib_context_set_mask_alpha_threshold() is not available
+ (bugzilla 275).
+Fix edge flip after screen size change.
+Add magnifier to desktop menu.
+
+
+-------------------------------------------------------------------------------
+
+Sat Dec 15 13:47:45 CET 2007
+(Kim)
+
+--- 0.16.8.11 0.02 ---
+Disable pager debug.
+Shuffle comms/ipc stuff around a bit.
+Don't exit while in X error handler.
+Add registration of file descriptors to be handled in main event loop.
+Fix application resize locking.
+Don't restrict firefox resizing (fixes issue with open dialog).
+Fix trouble with nested exits. Debug stuff tweaks.
+Fix crash if font loading fails.
+Play with dbus - implement command interface.
+Add some info about xft/pango font selection in core themes.
+Define mask bitmaps in source to avoid depending on x11 bitmap package.
+
+-------------------------------------------------------------------------------
+
+Sat Dec 22 22:30:28 CET 2007
+(Kim)
+
+--- 0.16.8.11 0.03 ---
+Japanese translation update (Yasufumi Haga).
+Danish translation update.
+EImagePixmapFree->EImagePixmapsFree, add mask argument.
+Fix backward compatibility "named" menu hack (fixes border right click in many
+ themes).
+.desktop files: E -> E16.
+docs: Config settings update, remove obsolete note.
+Add missing quotes in enlightenment.menu (fixes restart/logout).
+Fix incorrect tracking of pointer motion when dragging window (noted by Jon Foster).
+edox: Deactivate use of XFontStruct (use XFontSet).
+edox: Fall back to "fixed" font.
+edox: Add ../ttfonts to TT font path.
+Remove vixar font from winter theme (in ABOUT, use vera).
+
+
+-------------------------------------------------------------------------------
+
+Wed Dec 26 00:56:00 CET 2007
+(Kim)
+
+--- 0.16.8.11 0.04 ---
+Fix more breakage around window movement.
+Prevent attempts to resize to less than 1x1.
+Handle h/v resize requests (_NET_WM_MOVERESIZE_SIZE_...) properly.
+
+
+-------------------------------------------------------------------------------
+
+Sat Jan 5 11:46:05 CET 2008
+(Kim)
+
+--- 0.16.8.11 0.05 ---
+Center title vertically within border.
+Fix more trouble during exit.
+Fix potential segv with broken themes (invalid border cfg).
+Simplify ImageclassApplySimple and ScaleRect.
+Mark deskray stuff as such.
+Remove black line at bottom of iconbox background image.
+Fix shaped menu shape.
+Simplify image/text class loading code.
+
+-------------------------------------------------------------------------------
+
+Fri Jan 11 22:42:42 CET 2008
+(Kim)
+
+--- 0.16.8.11 ---
+Avoid X-errors with borderless empty menus.
+Fix potential segv (eimage.c).
+Add sanity checks (oom cases).
+
+-------------------------------------------------------------------------------
+
+Tue Feb 5 22:16:40 CET 2008
+(Kim)
+
+--- 0.16.8.12 0.01 ---
+Bump version.
+French translation update (Tristan D.).
+Use wrapper function (XGetGeometry->EXGetGeometry).
+Fix showing tiled external pixmap in pager.
+Fix edge flip brokenness (thanks to Phillip Warner).
+Japanese translation update (Yasufumi Haga).
+Optionally use render for scaling.
+Use separate debug flags for timers and idlers.
+Cosmetics (pagers.c).
+Avoid unnecessary use of timers in pagers in live update mode.
+Enable showing differential time in debug output.
+Don't update fading windows in pager.
+New window placement algorithm. Should be better at handling crowded desktops
+ and windows with never_use_area attribute.
+Sound - Split loading and playing.
+Pager update tweaks.
+Fix compiler warnings (gcc 4.3?).
+Avoid some pixel copying in certain situations around ImageclassApplyCopy.
+Do update fading windows in pager (for now, tweaking needed here).
+Prepare for handling additional window flags in snapshots/across restart.
+Add a number of window flags to the remembered flag list.
+Fix missing argument in error message (Chris Craig, bug 378).
+
+
+-------------------------------------------------------------------------------
+
+Sat Feb 16 10:26:53 CET 2008
+(Kim)
+
+--- 0.16.8.12 ---
+Add some comments (src/ewins.h).
+Add configuration of default opacities.
+Cleanups.
+Add stuff for checking if various XSync's are really needed.
+
+
+-------------------------------------------------------------------------------
+
+Fri Mar 14 09:56:22 CET 2008
+(Kim)
+
+--- 0.16.8.13 0.01 ---
+Avoid building unused static libraries.
+Add some checking of printf style prototypes.
+Use XInternAtoms to speed up initial atom fetch.
+Assume free(0) is ok (if not HAVE_FREE_NULL_BUG will have to be defined).
+Disable broken image/text class destroy functions.
+Fix modules build.
+Japanese translation update (Yasufumi Haga).
+French translation update (Tristan D.).
+Call autosave() on eesh sound on/off.
+Optionally use PulseAudio to play sounds.
+Simplify X-error checking.
+Fix potential segv during translucent moves (noted by Pietro Cerutti, bug 392).
+Fix memory leak if translucent move initialisation fails.
+Fix bugs when shared memory image creation fails causing memory leak and X-errors.
+Various sound/module/visibility fixes.
+Add option to center new windows when desk is full (suggested by George L. Yermulnik).
+Pick up some kde4 apps in menu generation.
+Add shadow and fading flags to the remembered flag list.
+
+-------------------------------------------------------------------------------
+
+Thu Mar 27 00:21:35 CET 2008
+(Kim)
+
+--- 0.16.8.13 0.02 ---
+Japanese translation update (Yasufumi Haga).
+French translation update (Tristan D.).
+Speed up list iterators.
+Use ecore_list_for_each in stead of ECORE_LIST_FOR_EACH (faster).
+Add -brs to indent profile.
+Eliminate Constraints.
+Eliminate redundant RRoot variables.
+Eliminate redundant VRoot vars.
+Fix potential segv during window placement.
+Background scaling tweak (debian bug 471577).
+
+-------------------------------------------------------------------------------
+
+Thu Apr 3 19:48:45 CEST 2008
+(Kim)
+
+--- 0.16.8.13 0.03 ---
+Fix bug, avoid allocating excessively large arrays in window placement.
+Eliminate RRoot and VRoot.
+Rewrap more X stuff.
+Remove obsolete (I think) sgi _NO_ANSIMODE stuff. Cleanups.
+
+-------------------------------------------------------------------------------
+
+Thu May 1 13:33:22 CEST 2008
+(Kim)
+
+--- 0.16.8.13 ---
+
+-------------------------------------------------------------------------------
+
+Sat May 24 20:21:19 CEST 2008
+(Kim)
+
+--- 0.16.8.14 0.01 ---
+Fix updates on screen size change (broken in 0.16.8.13).
+Idler/Animator cleanups.
+Remove/comment out unused stuff.
+Simplify timers.
+
+
+-------------------------------------------------------------------------------
+
+Mon Jun 9 19:44:16 CEST 2008
+(Kim)
+
+--- 0.16.8.14 0.02 ---
+PulseAudio sound - Avoid lockup/crash if server is not present or dies.
+Fix ripples/waves on xorg 1.4 when compositing is active.
+Fix segv when main imageclass in tooltip is missing.
+Simplify shape functions.
+No need to fetch shape rects in EWindowGetShapePixmap().
+Fix pixmap leak in iconbox snapshots when compositing is active.
+Disable broken set area window match operation.
+Enable fading/shadow when desired (in stead of disabling when not).
+Enable not using ARGB frame for ARGB clients (selected by window match).
+
+
+-------------------------------------------------------------------------------
+
+Wed Jun 25 20:23:14 CEST 2008
+(Kim)
+
+--- 0.16.8.14 0.03 ---
+Set anti-alias when scaling tile.
+Add some configure option comments.
+Theme element fallback cleanups
+- don't create fallback classes before they are needed.
+- use of fallbacks was missing a number of places.
+- setting theme to "-" will run entirely on fallbacks.
+Fix rendering of imageclasses not based on images.
+Remove dialog slider border window (not used in any theme).
+Only one maximisation function.
+Correctly place/size apps requesting _NET_WM_STATE_MAXIMIZED_...
+
+
+-------------------------------------------------------------------------------
+
+Fri Jul 11 22:12:11 CEST 2008
+(Kim)
+
+--- 0.16.8.14 0.04 ---
+Fix potential crash if iconv_open fails.
+Issue warnings for unavailable encoding conversions.
+No need to convert between utf8 and utf8.
+Remove colormodifier stuff (this has afaict never worked in e16).
+Fix bad test for window being mapped during iconification (fall back to
+ app icon if app is initially iconified).
+Provide iconbox icon fallback if normal methods fail.
+Don't show iconbox animation if app is initially iconified.
+Play iconify sound only for selected iconbox.
+Fix various gravity issues.
+
+-------------------------------------------------------------------------------
+
+Sat Aug 9 14:51:26 CEST 2008
+(Kim)
+
+--- 0.16.8.14 ---
+Call move/resize function only if moving/resizing.
+Move config options to config.h.
+Cleanups around closing internal windows.
+Limit alert box size to screen size.
+Fix button stacking bug when char is unsigned.
+Use fallback imageclass a couple of places.
+Fix ImageclassApplySimple for imageclasses without image.
+Fix focusing new windows when using click-to-focus and all_new_windows_get_focus = 0.
+Make cache_clear/query all actually clear/query all caches (img was missing).
+Attempt to fix session (.desktop) stuff on various distros.
+Attempt to improve focus switching when not using focus list.
+
+
+-------------------------------------------------------------------------------
+
+Sat Aug 9 15:17:44 CEST 2008
+(Kim)
+
+--- 0.16.8.14 ---
+Fix config item size.
+
+
+-------------------------------------------------------------------------------
+
+Sat Nov 29 10:06:12 CET 2008
+(Kim)
+
+--- 0.16.8.15 0.01 ---
+Provide strcase functions if not available.
+e_gen_menu: Patch from gmk@caoslinux.org to find XFCE Terminal too.
+Fix "focus prev" when focus list is not enabled.
+Fix dox links followed by punctuation.
+Drop timestamp.h (rcs date tag).
+Avoid crash when showing "watch cursor" during restart in certain situations.
+If not showing startup windows don't show progress bars either (faster starup).
+In window mode, map virtual root earlier.
+Use XRenderCreateCursor for bitmap cursors when available.
+configure.in -> configure.ac
+Introduce EDEBUG_EXIT to exit during startup (debug stuff).
+Fix dialog text rendering in certain themes.
+Fix build on Solaris 10 (Don Harrop).
+ALL_LINGUAS -> po/LINGUAS.
+Rename no.po to nb.po and update (Kjartan Maraas).
+Eliminate dup in fullfileof().
+Look for theme in <path>/<themename>/e16 too (suggested by Don Harrop).
+Simplify activating configuration dialogs.
+Disable localization of theme files.
+Fix certain cases of text rendering on tiled pixmap (noted by Don Harrop).
+Clean up theme finding/listing.
+Enable selecting sound from other theme.
+PA sound: fix ('/'->'_' in sample name), fix lockup, cleanups.
+Tweak _NET_WM_STATE_ABOVE/BELOW client message handling.
+Fix certain group menu operations on unfocused window groups (e.g. pagers,
+ noted by Don Harrop).
+Fix incorrect group info in remember dialog.
+Fix breakage when group in snapshot is unknown.
+Fix group info sometimes not being saved.
+DialogAlert... -> Alert...
+Updated ja.po in E16 by Yasufumi Haga <yasufumi.haga@nifty.com>.
+Remove accumulated po cruft.
+No need to keep cursor pixmap file name.
+Free imagestate image file name when no longer needed.
+Enable // comments in theme files (suggested by Don Harrop).
+Don't look for background image files until actually used.
+Enable specifying theme default desktop background (suggested by Don Harrop).
+Enable rotating imageclass images (suggested by Don Harrop).
+Remove generation of menus from dirs with .desktop files.
+Fix potential segv when processing invalid menus.cfg.
+Max E_CFG_VERSION 1->2.
+Add DEFAULT_BACKGROUND macro.
+e_gen_menu: Don't quit when directory cannot be read.
+Config option theme.localise is gone.
+Add sanity check to avoid X-errors.
+Disable moving fixed position windows using pager (pfritz, ticket 116).
+Add winop "alone" to iconify windows on desktop excexpt the selected one (patch
+ by Pietro Cerutti).
+Fix various issues noted by Don Harrop
+- Fix using tiles in iconbox background
+- Fix breaking window group using winops menu
+- Fix virtual desktop configuration area when SETTINGS_AREADESK_AREA is shaped
+Fix handling of windows in multiple groups after restart.
+HAVE_XINERAMA->USE_XINERAMA as for the other extensions.
+Tweak "wop alone" and "show desktop" window selection.
+Tweaks around xinerama/screen handling.
+Slider tweaks.
+Make coordinate system in vertical sliders same as in horizontal.
+Fix dialog text redraws when bg is tiled.
+Remove some redundant dialog code. Fix Multiple desktop selector area update.
+Keep slider knob highlited when over (noted by Don Harrop).
+Fix certain cases of clicking in slider.
+Update donthide state if window properties change.
+Move compiler warning stuff to m4 macro. Add --enable-werror.
+We only need to save real border name.
+Change dragbar buttons to do next/prev in stead of raise/lower.
+Restore group border show/hide feature.
+Discard only generated background duplicates.
+Enable not scanning backgrounds when starting background dialog.
+Refactor config stuff. Fix setting MSB in hex value.
+Not using float config values.
+Optionally don't cover dragbar when maximising (patch by Pietro Cerutti).
+Remove ancient e_config.bindings compatibility fallback.
+
+-------------------------------------------------------------------------------
+
+Fri Jan 2 22:01:29 CET 2009
+(Kim)
+
+--- 0.16.8.15 ---
+Japanese translation update (Yasufumi Haga).
+Fix iconv related warnings on FreeBSD.
+Fix some warnings on FreeBSD (patch by Pietro Cerutti).
+Avoid destroying actionclasses, empty/refill in stead.
+Play sounds by number in stead of by name. Enable disabling specific sounds.
+Install Vera font as part of basic e16 stuff.
+only assign ssd->channels once
+Reload keybindings on MappingNotify.
+Fix imlib2/ttf text vertical positioning with certain fonts.
+edox: Add default background image.
+Adjust imlib2/ttf paths.
+imlib2/ttf loading tweaks.
+Add normal/bold.ttf as links to default fonts.
+Let e16 package provide e16-edox.
+Update theme (no fonts, use font name aliases).
+Remove theme.ttfont_path configuration option.
+
+-------------------------------------------------------------------------------
+
+Sat Feb 28 14:48:08 CET 2009
+(Kim)
+
+--- 0.16.8.15.002 ---
+Bump version. Version numbering tweaks.
+Free sound sample data when sample has been cached.
+French translation update (Tristan D.).
+Update list of translatable strings in config files.
+Japanese translation update (Yasufumi Haga).
+Avoid potential crashes in imageclass parsing.
+Prevent error message from loading imageclass without image file.
+Enable flipping imageclass images (suggested by Don Harrop).
+Don't complain about specified null theme.
+Expose bevels for theming.
+Russian translation update (sda).
+Enable building without dialogs.
+Fix bashism (Brian Cameron, ticket 199).
+Add docbook xml version of README-0.16.8 (Yasufumi Haga).
+Add autofoo to generate html docs from README-0.16.8.xml.
+Discard matching enter/motion/leave event sets (experimental, does this cause trouble?).
+Add autoshade window option (suggested by Don Harrop).
+Danish translation update.
+Do shading using animators.
+Remove explicit -L <prefix>/lib from LDFLAGS.
+Fix setting default opacity (don't vanish until unfocused).
+Fix building with ecore.
+Move edox help text to (almost clean) docbook xml, from which edox, html,
+ and man output can be generated.
+Enable move/resize using keyboard.
+German translation update (Peter Wehrfritz).
+Fix gnome/e16 session setup with recent gnome versions.
+Added Simplified Chinese translation (Aron Xu, Ni Hui).
+
+-------------------------------------------------------------------------------
+
+Sat Apr 18 21:33:26 CEST 2009
+(Kim)
+
+--- 0.99.99.002 ---
+Fix pointer/screen warp on certain(?) xorg versions.
+Fix move to other desk by pager drag when final drag distance is 0.
+Remove (useless, afaict) group mirror option.
+Simplify code around iconfify/shade/stick operations.
+Delay autoshading when leaving.
+Fix bug in keybindings reload on MappingNotify.
+Remove unnecessary function call.
+Enable setting shadow color.
+Fix update after systray icon size change for certain apps.
+German translation update (Peter Wehrfritz).
+Change font configuration search scheme.
+Update font configuration in winter theme.
+French translation update (Tristan D.).
+Remove obsolete ENLIGHTENMENT_VERSION_015, set correct version when calling epp.
+Bump version to 0.99.99.001. Remove somewhat old note about 0.16.8.
+Adjust various places showing the e16 version.
+Doc updates, mostly cosmetic.
+Update notes about configuration settings.
+Show opacity when changing by bindings.
+Update README-0.16.8.xml (Yasufumi Haga).
+Hack to make shift-alt-tab (actually anyothermodifiers-key) cycle backwards
+ though window list (ticket 271).
+Add theme (font) configuration dialog.
+Change default bindings to show the configuration dialog in stead of the
+ settings menu. Trim down settings menu.
+Danish tranlation update.
+Japanese translation update (Yasufumi Haga).
+Update notes on font selection.
+Include some stuff from README in README-0.16.8.
+Remove README.
+Rename README-0.16.8* to README*.
+Call XRefreshKeyboardMapping on MappingNotify.
+Remove default bindings and special commands to configure dragbar.
+Update e16keyedit helper file.
+
+-------------------------------------------------------------------------------
+
+Thu Apr 30 21:48:14 CEST 2009
+(Kim)
+
+--- 0.99.99.003 ---
+Revert "removal" of settings menu. In stead include stuff from the middle
+ mouse menu.
+Prefer larger images when looking for menu icons (Don Harrop).
+
+-------------------------------------------------------------------------------
+
+Thu Apr 30 21:48:14 CEST 2009
+(Kim)
+
+--- 0.99.99.901 ---
+Always destroy startup backgrounds as intended (noted by Don Harrop).
+Fix shift-alt-tab hack when caps/numlock etc. is on.
+Background scanning tweaks and cleanups.
+Report correct sound server name (noted by Don Harrop).
+Fix breakage when size hints specify an aspect ratio (debian bug 527989).
+Don't disable background scan progress bars when restarted.
+Japanese translation update (Yasufumi Haga).
+
+-------------------------------------------------------------------------------
+
+Wed Jun 3 18:09:01 CEST 2009
+(Kim)
+
+--- 1.0.0 ---
+Add italian translation (Massimo Maiurana).
+Danish translation update.
+e16keyedit helper file corrections (match stuff in bindings.cfg).
+French translation update (Tristan D.).
+Add esperanto translation (Olivier).
+Russian translation update (sda).
+Slide off-screen menus back in when showing sub-menu.
+Slide off-screen menus back in when hiding sub-menu and not showing new.
+Fix backgrounds menu disappearing after being shown.
+German translation update (Peter Wehrfritz).
+Fix potential crash in 'desk drag' command (Pietro Cerutti, ticket 326).
+Better pager size increments (fix for ticket 327).
+Aspect ratio handling tweaks (fix for ticket 327).
+Fix problem with incorrect xinerama screen info.
+Another attempt to improve aspect ratio handling (pager sizing).
+Add missing autosave when changing virtual desktop size.
--- /dev/null
+AUTOMAKE_OPTIONS = foreign
+
+ACLOCAL_AMFLAGS = -I m4
+
+MAINTAINERCLEANFILES = aclocal.m4 config.* compile configure depcomp \
+ install-sh ltmain.sh missing mkinstalldirs \
+ Makefile.in */Makefile.in */*/Makefile.in \
+ po/Makefile.in.in po/Makevars.template po/Rules-quot \
+ po/*.header po/*.sed po/*.sin po/e16.pot \
+ *~ */*~
+
+SUBDIRS = dox eesh epp src lib config themes fonts scripts misc docs po
+
+EXTRA_DIST = \
+sample-scripts/bouncingball.pl \
+sample-scripts/lcdmover.sh \
+sample-scripts/testroller.pl \
+sample-scripts/shade-pagers.pl \
+AUTHORS COMPLIANCE COPYING ChangeLog
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = .
+DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+ $(srcdir)/e16.spec.in $(top_srcdir)/configure AUTHORS COPYING \
+ ChangeLog TODO compile config.guess config.rpath config.sub \
+ depcomp install-sh ltmain.sh missing mkinstalldirs
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES = e16.spec
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-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 uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d $(distdir) \
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr $(distdir); }; }
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
+MAINTAINERCLEANFILES = aclocal.m4 config.* compile configure depcomp \
+ install-sh ltmain.sh missing mkinstalldirs \
+ Makefile.in */Makefile.in */*/Makefile.in \
+ po/Makefile.in.in po/Makevars.template po/Rules-quot \
+ po/*.header po/*.sed po/*.sin po/e16.pot \
+ *~ */*~
+
+SUBDIRS = dox eesh epp src lib config themes fonts scripts misc docs po
+EXTRA_DIST = \
+sample-scripts/bouncingball.pl \
+sample-scripts/lcdmover.sh \
+sample-scripts/testroller.pl \
+sample-scripts/shade-pagers.pl \
+AUTHORS COMPLIANCE COPYING ChangeLog
+
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
+ cd $(srcdir) && $(AUTOMAKE) --foreign \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+config.h: stamp-h1
+ @if test ! -f $@; then \
+ rm -f stamp-h1; \
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
+ else :; fi
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_srcdir) && $(AUTOHEADER)
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+e16.spec: $(top_builddir)/config.status $(srcdir)/e16.spec.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d $(distdir) || mkdir $(distdir)
+ @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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lzma*) \
+ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && cd $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @cd $(distuninstallcheck_dir) \
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
+ dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
+ distclean distclean-generic distclean-hdr distclean-libtool \
+ distclean-tags distcleancheck distdir distuninstallcheck 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-recursive 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:
--- /dev/null
+- Bugs
+ - Autosized iconboxes can wander off when resizing screen.
+ e.g. when anchored right and iconify-change size-deiconify.
+
+- Docs
+ - Update
+
+- Maybe some day...
+ - Fix blurred shadow on shaped windows.
+ - Defer border rendering?
+ - Theme Transparency (pseudotrans) is way slower than it needs to be.
+ - Partial strut handling in arrange/maximize code.
--- /dev/null
+# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This file 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.
+
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(AC_AUTOCONF_VERSION, [2.63],,
+[m4_warning([this file was generated for autoconf 2.63.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
+
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+
+# serial 52 AC_PROG_LIBTOOL
+
+
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
+# -----------------------------------------------------------
+# If this macro is not defined by Autoconf, define it here.
+m4_ifdef([AC_PROVIDE_IFELSE],
+ [],
+ [m4_define([AC_PROVIDE_IFELSE],
+ [m4_ifdef([AC_PROVIDE_$1],
+ [$2], [$3])])])
+
+
+# AC_PROG_LIBTOOL
+# ---------------
+AC_DEFUN([AC_PROG_LIBTOOL],
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [AC_LIBTOOL_CXX],
+ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
+ ])])
+dnl And a similar setup for Fortran 77 support
+ AC_PROVIDE_IFELSE([AC_PROG_F77],
+ [AC_LIBTOOL_F77],
+ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
+])])
+
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
+ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+ [AC_LIBTOOL_GCJ],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+ [AC_LIBTOOL_GCJ],
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
+ [AC_LIBTOOL_GCJ],
+ [ifdef([AC_PROG_GCJ],
+ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
+ ifdef([A][M_PROG_GCJ],
+ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
+ ifdef([LT_AC_PROG_GCJ],
+ [define([LT_AC_PROG_GCJ],
+ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
+])])# AC_PROG_LIBTOOL
+
+
+# _AC_PROG_LIBTOOL
+# ----------------
+AC_DEFUN([_AC_PROG_LIBTOOL],
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+# Prevent multiple expansion
+define([AC_PROG_LIBTOOL], [])
+])# _AC_PROG_LIBTOOL
+
+
+# AC_LIBTOOL_SETUP
+# ----------------
+AC_DEFUN([AC_LIBTOOL_SETUP],
+[AC_PREREQ(2.50)dnl
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_PROG_LD])dnl
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
+AC_REQUIRE([AC_PROG_NM])dnl
+
+AC_REQUIRE([AC_PROG_LN_S])dnl
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+AC_REQUIRE([AC_OBJEXT])dnl
+AC_REQUIRE([AC_EXEEXT])dnl
+dnl
+AC_LIBTOOL_SYS_MAX_CMD_LEN
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+AC_LIBTOOL_OBJDIR
+
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+_LT_AC_PROG_ECHO_BACKSLASH
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e 1s/^X//'
+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
+
+# Same as above, but do not quote variable references.
+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Constants:
+rm="rm -f"
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+ltmain="$ac_aux_dir/ltmain.sh"
+ofile="$default_ofile"
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+AC_CHECK_TOOL(AR, ar, false)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(STRIP, strip, :)
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+test -z "$AS" && AS=as
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+test -z "$LD" && LD=ld
+test -z "$LN_S" && LN_S="ln -s"
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+test -z "$NM" && NM=nm
+test -z "$SED" && SED=sed
+test -z "$OBJDUMP" && OBJDUMP=objdump
+test -z "$RANLIB" && RANLIB=:
+test -z "$STRIP" && STRIP=:
+test -z "$ac_objext" && ac_objext=o
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ AC_PATH_MAGIC
+ fi
+ ;;
+esac
+
+_LT_REQUIRED_DARWIN_CHECKS
+
+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
+enable_win32_dll=yes, enable_win32_dll=no)
+
+AC_ARG_ENABLE([libtool-lock],
+ [AC_HELP_STRING([--disable-libtool-lock],
+ [avoid locking (might break parallel builds)])])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+AC_ARG_WITH([pic],
+ [AC_HELP_STRING([--with-pic],
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
+ [pic_mode="$withval"],
+ [pic_mode=default])
+test -z "$pic_mode" && pic_mode=default
+
+# Use C for the default configuration in the libtool script
+tagname=
+AC_LIBTOOL_LANG_C_CONFIG
+_LT_AC_TAGCONFIG
+])# AC_LIBTOOL_SETUP
+
+
+# _LT_AC_SYS_COMPILER
+# -------------------
+AC_DEFUN([_LT_AC_SYS_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_AC_SYS_COMPILER
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+AC_DEFUN([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+ case $cc_temp in
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+])
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+AC_DEFUN([_LT_COMPILER_BOILERPLATE],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+AC_DEFUN([_LT_LINKER_BOILERPLATE],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm -r conftest*
+])# _LT_LINKER_BOILERPLATE
+
+# _LT_REQUIRED_DARWIN_CHECKS
+# --------------------------
+# Check for some things on darwin
+AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
+ case $host_os in
+ rhapsody* | darwin*)
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
+
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
+ [lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ echo "int foo(void){return 1;}" > conftest.c
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib ${wl}-single_module conftest.c
+ if test -f libconftest.dylib; then
+ lt_cv_apple_cc_single_mod=yes
+ rm -rf libconftest.dylib*
+ fi
+ rm conftest.c
+ fi])
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
+ [lt_cv_ld_exported_symbols_list],
+ [lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [lt_cv_ld_exported_symbols_list=yes],
+ [lt_cv_ld_exported_symbols_list=no])
+ LDFLAGS="$save_LDFLAGS"
+ ])
+ case $host_os in
+ rhapsody* | darwin1.[[0123]])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*)
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[[012]]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil="~$DSYMUTIL \$lib || :"
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+])
+
+# _LT_AC_SYS_LIBPATH_AIX
+# ----------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi],[])
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+])# _LT_AC_SYS_LIBPATH_AIX
+
+
+# _LT_AC_SHELL_INIT(ARG)
+# ----------------------
+AC_DEFUN([_LT_AC_SHELL_INIT],
+[ifdef([AC_DIVERSION_NOTICE],
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+ [AC_DIVERT_PUSH(NOTICE)])
+$1
+AC_DIVERT_POP
+])# _LT_AC_SHELL_INIT
+
+
+# _LT_AC_PROG_ECHO_BACKSLASH
+# --------------------------
+# Add some code to the start of the generated configure script which
+# will find an echo command which doesn't interpret backslashes.
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
+[_LT_AC_SHELL_INIT([
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+ ;;
+esac
+
+echo=${ECHO-echo}
+if test "X[$]1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X[$]1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $echo works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
+fi
+
+if test "X[$]1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+[$]*
+EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$ECHO"; then
+if test "X${echo_test_string+set}" != Xset; then
+# find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if (echo_test_string=`eval $cmd`) 2>/dev/null &&
+ echo_test_string=`eval $cmd` &&
+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
+ then
+ break
+ fi
+ done
+fi
+
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ echo="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$echo" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ echo='print -r'
+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
+ else
+ # Try using printf.
+ echo='printf %s\n'
+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "[$]0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ echo=echo
+ fi
+ fi
+ fi
+ fi
+fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+ECHO=$echo
+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
+ ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
+fi
+
+AC_SUBST(ECHO)
+])])# _LT_AC_PROG_ECHO_BACKSLASH
+
+
+# _LT_AC_LOCK
+# -----------
+AC_DEFUN([_LT_AC_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+ [AC_HELP_STRING([--disable-libtool-lock],
+ [avoid locking (might break parallel builds)])])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ libsuff=64
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+ [AC_LANG_PUSH(C)
+ AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+ AC_LANG_POP])
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+ AC_CHECK_TOOL(AS, as, false)
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
+ ;;
+ ])
+esac
+
+need_locks="$enable_libtool_lock"
+
+])# _LT_AC_LOCK
+
+
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
+[AC_REQUIRE([LT_AC_PROG_SED])
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$3"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ fi
+ $rm conftest*
+])
+
+if test x"[$]$2" = xyes; then
+ ifelse([$5], , :, [$5])
+else
+ ifelse([$6], , :, [$6])
+fi
+])# AC_LIBTOOL_COMPILER_OPTION
+
+
+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [ACTION-SUCCESS], [ACTION-FAILURE])
+# ------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $3"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
+ $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ else
+ $2=yes
+ fi
+ fi
+ $rm -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+])
+
+if test x"[$]$2" = xyes; then
+ ifelse([$4], , :, [$4])
+else
+ ifelse([$5], , :, [$5])
+fi
+])# AC_LIBTOOL_LINKER_OPTION
+
+
+# AC_LIBTOOL_SYS_MAX_CMD_LEN
+# --------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
+[# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
+ = "XX$teststring") >/dev/null 2>&1 &&
+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
+ lt_cv_sys_max_cmd_len=$new_result &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on massive
+ # amounts of additional arguments before passing them to the linker.
+ # It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+])
+if test -n $lt_cv_sys_max_cmd_len ; then
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+ AC_MSG_RESULT(none)
+fi
+])# AC_LIBTOOL_SYS_MAX_CMD_LEN
+
+
+# _LT_AC_CHECK_DLFCN
+# ------------------
+AC_DEFUN([_LT_AC_CHECK_DLFCN],
+[AC_CHECK_HEADERS(dlfcn.h)dnl
+])# _LT_AC_CHECK_DLFCN
+
+
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ---------------------------------------------------------------------
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+if test "$cross_compiling" = yes; then :
+ [$4]
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+[#line __oline__ "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ exit (status);
+}]
+EOF
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) $1 ;;
+ x$lt_dlneed_uscore) $2 ;;
+ x$lt_dlunknown|x*) $3 ;;
+ esac
+ else :
+ # compilation failed
+ $3
+ fi
+fi
+rm -fr conftest*
+])# _LT_AC_TRY_DLOPEN_SELF
+
+
+# AC_LIBTOOL_DLOPEN_SELF
+# ----------------------
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ])
+ ;;
+
+ *)
+ AC_CHECK_FUNC([shl_load],
+ [lt_cv_dlopen="shl_load"],
+ [AC_CHECK_LIB([dld], [shl_load],
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
+ [AC_CHECK_FUNC([dlopen],
+ [lt_cv_dlopen="dlopen"],
+ [AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
+ [AC_CHECK_LIB([svld], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
+ [AC_CHECK_LIB([dld], [dld_link],
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
+ ])
+ ])
+ ])
+ ])
+ ])
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ AC_CACHE_CHECK([whether a program can dlopen itself],
+ lt_cv_dlopen_self, [dnl
+ _LT_AC_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+ ])
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+ lt_cv_dlopen_self_static, [dnl
+ _LT_AC_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
+ ])
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+])# AC_LIBTOOL_DLOPEN_SELF
+
+
+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
+# ---------------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler
+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+ $rm -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+ fi
+ fi
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
+ $rm conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
+ $rm out/* && rmdir out
+ cd ..
+ rmdir conftest
+ $rm conftest*
+])
+])# AC_LIBTOOL_PROG_CC_C_O
+
+
+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
+# -----------------------------------------
+# Check to see if we can do hard links to lock some files if needed
+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
+[AC_REQUIRE([_LT_AC_LOCK])dnl
+
+hard_links="nottested"
+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ AC_MSG_CHECKING([if we can lock with hard links])
+ hard_links=yes
+ $rm conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ AC_MSG_RESULT([$hard_links])
+ if test "$hard_links" = no; then
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
+
+
+# AC_LIBTOOL_OBJDIR
+# -----------------
+AC_DEFUN([AC_LIBTOOL_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null])
+objdir=$lt_cv_objdir
+])# AC_LIBTOOL_OBJDIR
+
+
+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
+# ----------------------------------------------
+# Check hardcoding attributes.
+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_AC_TAGVAR(hardcode_action, $1)=
+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
+ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
+ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
+
+ # We can hardcode non-existant directories.
+ if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
+ test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
+ # Linking always hardcodes the temporary library directory.
+ _LT_AC_TAGVAR(hardcode_action, $1)=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ _LT_AC_TAGVAR(hardcode_action, $1)=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
+
+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
+
+
+# AC_LIBTOOL_SYS_LIB_STRIP
+# ------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
+[striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+fi
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+fi
+])# AC_LIBTOOL_SYS_LIB_STRIP
+
+
+# AC_LIBTOOL_SYS_DYNAMIC_LINKER
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_MSG_CHECKING([dynamic linker characteristics])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+m4_if($1,[],[
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`echo $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi])
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[[4-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[[45]]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $rm \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+ m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[[123]]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[[3-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+nto-qnx*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[[89]] | openbsd2.[[89]].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ shlibpath_overrides_runpath=no
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ shlibpath_overrides_runpath=yes
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test "$dynamic_linker" = no && can_build_shared=no
+
+AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
+[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
+sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
+[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
+sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
+
+
+# _LT_AC_TAGCONFIG
+# ----------------
+AC_DEFUN([_LT_AC_TAGCONFIG],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_ARG_WITH([tags],
+ [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
+ [include additional configurations @<:@automatic@:>@])],
+ [tagnames="$withval"])
+
+if test -f "$ltmain" && test -n "$tagnames"; then
+ if test ! -f "${ofile}"; then
+ AC_MSG_WARN([output file `$ofile' does not exist])
+ fi
+
+ if test -z "$LTCC"; then
+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
+ if test -z "$LTCC"; then
+ AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
+ else
+ AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
+ fi
+ fi
+ if test -z "$LTCFLAGS"; then
+ eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
+ fi
+
+ # Extract list of available tagged configurations in $ofile.
+ # Note that this assumes the entire list is on one line.
+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
+
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for tagname in $tagnames; do
+ IFS="$lt_save_ifs"
+ # Check whether tagname contains only valid characters
+ case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
+ "") ;;
+ *) AC_MSG_ERROR([invalid tag name: $tagname])
+ ;;
+ esac
+
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
+ then
+ AC_MSG_ERROR([tag name \"$tagname\" already exists])
+ fi
+
+ # Update the list of available tags.
+ if test -n "$tagname"; then
+ echo appending configuration tag \"$tagname\" to $ofile
+
+ case $tagname in
+ CXX)
+ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ AC_LIBTOOL_LANG_CXX_CONFIG
+ else
+ tagname=""
+ fi
+ ;;
+
+ F77)
+ if test -n "$F77" && test "X$F77" != "Xno"; then
+ AC_LIBTOOL_LANG_F77_CONFIG
+ else
+ tagname=""
+ fi
+ ;;
+
+ GCJ)
+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
+ AC_LIBTOOL_LANG_GCJ_CONFIG
+ else
+ tagname=""
+ fi
+ ;;
+
+ RC)
+ AC_LIBTOOL_LANG_RC_CONFIG
+ ;;
+
+ *)
+ AC_MSG_ERROR([Unsupported tag name: $tagname])
+ ;;
+ esac
+
+ # Append the new tag name to the list of available tags.
+ if test -n "$tagname" ; then
+ available_tags="$available_tags $tagname"
+ fi
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ # Now substitute the updated list of available tags.
+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
+ mv "${ofile}T" "$ofile"
+ chmod +x "$ofile"
+ else
+ rm -f "${ofile}T"
+ AC_MSG_ERROR([unable to update list of available tagged configurations.])
+ fi
+fi
+])# _LT_AC_TAGCONFIG
+
+
+# AC_LIBTOOL_DLOPEN
+# -----------------
+# enable checks for dlopen support
+AC_DEFUN([AC_LIBTOOL_DLOPEN],
+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
+])# AC_LIBTOOL_DLOPEN
+
+
+# AC_LIBTOOL_WIN32_DLL
+# --------------------
+# declare package support for building win32 DLLs
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
+])# AC_LIBTOOL_WIN32_DLL
+
+
+# AC_ENABLE_SHARED([DEFAULT])
+# ---------------------------
+# implement the --enable-shared flag
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+AC_DEFUN([AC_ENABLE_SHARED],
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE([shared],
+ [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
+ [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
+])# AC_ENABLE_SHARED
+
+
+# AC_DISABLE_SHARED
+# -----------------
+# set the default shared flag to --disable-shared
+AC_DEFUN([AC_DISABLE_SHARED],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_SHARED(no)
+])# AC_DISABLE_SHARED
+
+
+# AC_ENABLE_STATIC([DEFAULT])
+# ---------------------------
+# implement the --enable-static flag
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+AC_DEFUN([AC_ENABLE_STATIC],
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE([static],
+ [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
+ [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_static=]AC_ENABLE_STATIC_DEFAULT)
+])# AC_ENABLE_STATIC
+
+
+# AC_DISABLE_STATIC
+# -----------------
+# set the default static flag to --disable-static
+AC_DEFUN([AC_DISABLE_STATIC],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_STATIC(no)
+])# AC_DISABLE_STATIC
+
+
+# AC_ENABLE_FAST_INSTALL([DEFAULT])
+# ---------------------------------
+# implement the --enable-fast-install flag
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE([fast-install],
+ [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
+ [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
+])# AC_ENABLE_FAST_INSTALL
+
+
+# AC_DISABLE_FAST_INSTALL
+# -----------------------
+# set the default to --disable-fast-install
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_FAST_INSTALL(no)
+])# AC_DISABLE_FAST_INSTALL
+
+
+# AC_LIBTOOL_PICMODE([MODE])
+# --------------------------
+# implement the --with-pic flag
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
+AC_DEFUN([AC_LIBTOOL_PICMODE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+pic_mode=ifelse($#,1,$1,default)
+])# AC_LIBTOOL_PICMODE
+
+
+# AC_PROG_EGREP
+# -------------
+# This is predefined starting with Autoconf 2.54, so this conditional
+# definition can be removed once we require Autoconf 2.54 or later.
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
+ [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
+ then ac_cv_prog_egrep='grep -E'
+ else ac_cv_prog_egrep='egrep'
+ fi])
+ EGREP=$ac_cv_prog_egrep
+ AC_SUBST([EGREP])
+])])
+
+
+# AC_PATH_TOOL_PREFIX
+# -------------------
+# find a file program which can recognize shared library
+AC_DEFUN([AC_PATH_TOOL_PREFIX],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] | ?:[\\/]*])
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word. This closes a longstanding sh security hole.
+ ac_dummy="ifelse([$2], , $PATH, [$2])"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$1; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac])
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ AC_MSG_RESULT($MAGIC_CMD)
+else
+ AC_MSG_RESULT(no)
+fi
+])# AC_PATH_TOOL_PREFIX
+
+
+# AC_PATH_MAGIC
+# -------------
+# find a file program which can recognize a shared library
+AC_DEFUN([AC_PATH_MAGIC],
+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+ else
+ MAGIC_CMD=:
+ fi
+fi
+])# AC_PATH_MAGIC
+
+
+# AC_PROG_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([AC_PROG_LD],
+[AC_ARG_WITH([gnu-ld],
+ [AC_HELP_STRING([--with-gnu-ld],
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+ [test "$withval" = no || with_gnu_ld=yes],
+ [with_gnu_ld=no])
+AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by $CC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]]* | ?:[[\\/]]*)
+ re_direlt='/[[^/]][[^/]]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_PROG_LD_GNU
+])# AC_PROG_LD
+
+
+# AC_PROG_LD_GNU
+# --------------
+AC_DEFUN([AC_PROG_LD_GNU],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# AC_PROG_LD_GNU
+
+
+# AC_PROG_LD_RELOAD_FLAG
+# ----------------------
+# find reload flag for linker
+# -- PORTME Some linkers may need a different reload flag.
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+ lt_cv_ld_reload_flag,
+ [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+])# AC_PROG_LD_RELOAD_FLAG
+
+
+# AC_DEPLIBS_CHECK_METHOD
+# -----------------------
+# how to check for library dependencies
+# -- PORTME fill in with the dynamic library characteristics
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
+[AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[[4-9]]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[[45]]*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[[3-9]]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+nto-qnx*)
+ lt_cv_deplibs_check_method=unknown
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+])
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+])# AC_DEPLIBS_CHECK_METHOD
+
+
+# AC_PROG_NM
+# ----------
+# find the pathname to a BSD-compatible name lister
+AC_DEFUN([AC_PROG_NM],
+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
+[if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
+fi])
+NM="$lt_cv_path_NM"
+])# AC_PROG_NM
+
+
+# AC_CHECK_LIBM
+# -------------
+# check for math library
+AC_DEFUN([AC_CHECK_LIBM],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
+ # These system don't have libm, or don't need it
+ ;;
+*-ncr-sysv4.3*)
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
+ ;;
+*)
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
+ ;;
+esac
+])# AC_CHECK_LIBM
+
+
+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
+# -----------------------------------
+# sets LIBLTDL to the link flags for the libltdl convenience library and
+# LTDLINCL to the include flags for the libltdl header and adds
+# --enable-ltdl-convenience to the configure arguments. Note that
+# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
+# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
+# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
+# (note the single quotes!). If your package is not flat and you're not
+# using automake, define top_builddir and top_srcdir appropriately in
+# the Makefiles.
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+ case $enable_ltdl_convenience in
+ no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
+ "") enable_ltdl_convenience=yes
+ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
+ esac
+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+ # For backwards non-gettext consistent compatibility...
+ INCLTDL="$LTDLINCL"
+])# AC_LIBLTDL_CONVENIENCE
+
+
+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
+# -----------------------------------
+# sets LIBLTDL to the link flags for the libltdl installable library and
+# LTDLINCL to the include flags for the libltdl header and adds
+# --enable-ltdl-install to the configure arguments. Note that
+# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
+# and an installed libltdl is not found, it is assumed to be `libltdl'.
+# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
+# '${top_srcdir}/' (note the single quotes!). If your package is not
+# flat and you're not using automake, define top_builddir and top_srcdir
+# appropriately in the Makefiles.
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+ AC_CHECK_LIB(ltdl, lt_dlinit,
+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
+ [if test x"$enable_ltdl_install" = xno; then
+ AC_MSG_WARN([libltdl not installed, but installation disabled])
+ else
+ enable_ltdl_install=yes
+ fi
+ ])
+ if test x"$enable_ltdl_install" = x"yes"; then
+ ac_configure_args="$ac_configure_args --enable-ltdl-install"
+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+ else
+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
+ LIBLTDL="-lltdl"
+ LTDLINCL=
+ fi
+ # For backwards non-gettext consistent compatibility...
+ INCLTDL="$LTDLINCL"
+])# AC_LIBLTDL_INSTALLABLE
+
+
+# AC_LIBTOOL_CXX
+# --------------
+# enable support for C++ libraries
+AC_DEFUN([AC_LIBTOOL_CXX],
+[AC_REQUIRE([_LT_AC_LANG_CXX])
+])# AC_LIBTOOL_CXX
+
+
+# _LT_AC_LANG_CXX
+# ---------------
+AC_DEFUN([_LT_AC_LANG_CXX],
+[AC_REQUIRE([AC_PROG_CXX])
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
+])# _LT_AC_LANG_CXX
+
+# _LT_AC_PROG_CXXCPP
+# ------------------
+AC_DEFUN([_LT_AC_PROG_CXXCPP],
+[
+AC_REQUIRE([AC_PROG_CXX])
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ AC_PROG_CXXCPP
+fi
+])# _LT_AC_PROG_CXXCPP
+
+# AC_LIBTOOL_F77
+# --------------
+# enable support for Fortran 77 libraries
+AC_DEFUN([AC_LIBTOOL_F77],
+[AC_REQUIRE([_LT_AC_LANG_F77])
+])# AC_LIBTOOL_F77
+
+
+# _LT_AC_LANG_F77
+# ---------------
+AC_DEFUN([_LT_AC_LANG_F77],
+[AC_REQUIRE([AC_PROG_F77])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
+])# _LT_AC_LANG_F77
+
+
+# AC_LIBTOOL_GCJ
+# --------------
+# enable support for GCJ libraries
+AC_DEFUN([AC_LIBTOOL_GCJ],
+[AC_REQUIRE([_LT_AC_LANG_GCJ])
+])# AC_LIBTOOL_GCJ
+
+
+# _LT_AC_LANG_GCJ
+# ---------------
+AC_DEFUN([_LT_AC_LANG_GCJ],
+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
+ [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
+ [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
+ [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
+])# _LT_AC_LANG_GCJ
+
+
+# AC_LIBTOOL_RC
+# -------------
+# enable support for Windows resource files
+AC_DEFUN([AC_LIBTOOL_RC],
+[AC_REQUIRE([LT_AC_PROG_RC])
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
+])# AC_LIBTOOL_RC
+
+
+# AC_LIBTOOL_LANG_C_CONFIG
+# ------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined. Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
+AC_DEFUN([_LT_AC_LANG_C_CONFIG],
+[lt_save_CC="$CC"
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+AC_LIBTOOL_SYS_LIB_STRIP
+AC_LIBTOOL_DLOPEN_SELF
+
+# Report which library types will actually be built
+AC_MSG_CHECKING([if libtool supports shared libraries])
+AC_MSG_RESULT([$can_build_shared])
+
+AC_MSG_CHECKING([whether to build shared libraries])
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+esac
+AC_MSG_RESULT([$enable_shared])
+
+AC_MSG_CHECKING([whether to build static libraries])
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+AC_MSG_RESULT([$enable_static])
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_POP
+CC="$lt_save_CC"
+])# AC_LIBTOOL_LANG_C_CONFIG
+
+
+# AC_LIBTOOL_LANG_CXX_CONFIG
+# --------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined. Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
+[AC_LANG_PUSH(C++)
+AC_REQUIRE([AC_PROG_CXX])
+AC_REQUIRE([_LT_AC_PROG_CXXCPP])
+
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(module_cmds, $1)=
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Dependencies to place before and after the object being linked:
+_LT_AC_TAGVAR(predep_objects, $1)=
+_LT_AC_TAGVAR(postdep_objects, $1)=
+_LT_AC_TAGVAR(predeps, $1)=
+_LT_AC_TAGVAR(postdeps, $1)=
+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
+_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_LD=$LD
+lt_save_GCC=$GCC
+GCC=$GXX
+lt_save_with_gnu_ld=$with_gnu_ld
+lt_save_path_LD=$lt_cv_path_LD
+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+else
+ $as_unset lt_cv_prog_gnu_ld
+fi
+if test -n "${lt_cv_path_LDCXX+set}"; then
+ lt_cv_path_LD=$lt_cv_path_LDCXX
+else
+ $as_unset lt_cv_path_LD
+fi
+test -z "${LDCXX+set}" || LD=$LDCXX
+CC=${CXX-"c++"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+# We don't want -fno-exception wen compiling C++ code, so set the
+# no_builtin_flag separately
+if test "$GXX" = yes; then
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+else
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+fi
+
+if test "$GXX" = yes; then
+ # Set up default GNU C++ configuration
+
+ AC_PROG_LD
+
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
+ # archiving commands below assume that GNU ld is being used.
+ if test "$with_gnu_ld" = yes; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+ # investigate it a little bit more. (MM)
+ wlarc='${wl}'
+
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
+ grep 'no-whole-archive' > /dev/null; then
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ with_gnu_ld=no
+ wlarc=
+
+ # A generic and very simple default shared library creation
+ # command for GNU C++ for the case where it uses the native
+ # linker, instead of GNU ld. If possible, this setting should
+ # overridden to take advantage of the native linker features on
+ # the platform it is being used on.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ fi
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
+
+else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+fi
+
+# PORTME: fill in a description of your system's C++ link characteristics
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+_LT_AC_TAGVAR(ld_shlibs, $1)=yes
+case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+ if test "$GXX" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ _LT_AC_SYS_LIBPATH_AIX
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an empty executable.
+ _LT_AC_SYS_LIBPATH_AIX
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ darwin* | rhapsody*)
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
+ if test "$GXX" = yes ; then
+ output_verbose_link_cmd='echo'
+ _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
+ _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
+ fi
+ else
+ case $cc_basename in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ fi
+ ;;
+
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+ freebsd[[12]]*)
+ # C++ shared libraries reported to be fairly broken before switch to ELF
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ freebsd-elf*)
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ ;;
+ freebsd* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+ gnu*)
+ ;;
+ hpux9*)
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+ hpux10*|hpux11*)
+ if test $with_gnu_ld = no; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*) ;;
+ *)
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+ esac
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ esac
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ case $host_cpu in
+ hppa*64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test $with_gnu_ld = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ fi
+ else
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+ interix[[3-9]]*)
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+ irix5* | irix6*)
+ case $cc_basename in
+ CC*)
+ # SGI C++
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+
+ # Archives containing C++ object files must be created using
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
+ fi
+ fi
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+ esac
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+ ;;
+ icpc*)
+ # Intel C++
+ with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves.
+ case `$CC -V 2>&1` in
+ *"Version 7."*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 8.0 or newer
+ tmp_idyn=
+ case $host_cpu in
+ ia64*) tmp_idyn=' -i_dynamic';;
+ esac
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ ;;
+ cxx*)
+ # Compaq C++
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+ runpath_var=LD_RUN_PATH
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ m88k*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+ wlarc=
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ fi
+ # Workaround some broken pre-1.5 toolchains
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+ ;;
+ openbsd2*)
+ # C++ shared libraries are fairly broken
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ fi
+ output_verbose_link_cmd='echo'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ osf3*)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ cxx*)
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+ osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Archives containing C++ object files must be created using
+ # the KAI C++ compiler.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ cxx*)
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+ echo "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
+ $rm $lib.exp'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+ psos*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ lcc*)
+ # Lucid
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+ # The C++ compiler must be used to create the archive.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+ ;;
+ *)
+ # GNU C++ compiler with Solaris linker
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
+ if $CC --version | grep -v '^2\.7' > /dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
+ else
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
+ # platform.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
+ fi
+
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ ;;
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ # So that behaviour is only enabled if SCOABSPATH is set to a
+ # non-empty value in the environment. Most likely only useful for
+ # creating official distributions of packages.
+ # This is a hack until libtool officially supports absolute path
+ # names for shared libraries.
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+ vxworks*)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+esac
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+_LT_AC_TAGVAR(GCC, $1)="$GXX"
+_LT_AC_TAGVAR(LD, $1)="$LD"
+
+AC_LIBTOOL_POSTDEP_PREDEP($1)
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_POP
+CC=$lt_save_CC
+LDCXX=$LD
+LD=$lt_save_LD
+GCC=$lt_save_GCC
+with_gnu_ldcxx=$with_gnu_ld
+with_gnu_ld=$lt_save_with_gnu_ld
+lt_cv_path_LDCXX=$lt_cv_path_LD
+lt_cv_path_LD=$lt_save_path_LD
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+])# AC_LIBTOOL_LANG_CXX_CONFIG
+
+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
+# ------------------------------------
+# Figure out "hidden" library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library. It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
+int a;
+void foo (void) { a = 0; }
+EOF
+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+EOF
+],[$1],[F77],[cat > conftest.$ac_ext <<EOF
+ subroutine foo
+ implicit none
+ integer*4 a
+ a=0
+ return
+ end
+EOF
+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
+public class foo {
+ private int a;
+ public void bar (void) {
+ a = 0;
+ }
+};
+EOF
+])
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+ # Parse the compiler output and extract the necessary
+ # objects, libraries and library flags.
+
+ # Sentinel used to keep track of whether or not we are before
+ # the conftest object file.
+ pre_test_object_deps_done=no
+
+ # The `*' in the case matches for architectures that use `case' in
+ # $output_verbose_cmd can trigger glob expansion during the loop
+ # eval without this substitution.
+ output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
+
+ for p in `eval $output_verbose_link_cmd`; do
+ case $p in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test $p = "-L" \
+ || test $p = "-R"; then
+ prev=$p
+ continue
+ else
+ prev=
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ case $p in
+ -L* | -R*)
+ # Internal compiler library paths should come after those
+ # provided the user. The postdeps already come after the
+ # user supplied libs so there is no need to process them.
+ if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
+ else
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
+ fi
+ ;;
+ # The "-l" case would never come before the object being
+ # linked, so don't bother handling this case.
+ esac
+ else
+ if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
+ _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
+ else
+ _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
+ fi
+ fi
+ ;;
+
+ *.$objext)
+ # This assumes that the test object file only shows up
+ # once in the compiler output.
+ if test "$p" = "conftest.$objext"; then
+ pre_test_object_deps_done=yes
+ continue
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
+ _LT_AC_TAGVAR(predep_objects, $1)="$p"
+ else
+ _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
+ fi
+ else
+ if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
+ _LT_AC_TAGVAR(postdep_objects, $1)="$p"
+ else
+ _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
+else
+ echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$rm -f confest.$objext
+
+_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
+if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
+fi
+
+# PORTME: override above test on systems where it is broken
+ifelse([$1],[CXX],
+[case $host_os in
+interix[[3-9]]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ _LT_AC_TAGVAR(predep_objects,$1)=
+ _LT_AC_TAGVAR(postdep_objects,$1)=
+ _LT_AC_TAGVAR(postdeps,$1)=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ #
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # Adding this requires a known-good setup of shared libraries for
+ # Sun compiler versions before 5.6, else PIC objects from an old
+ # archive will be linked into the output, leading to subtle bugs.
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+esac
+])
+case " $_LT_AC_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+])# AC_LIBTOOL_POSTDEP_PREDEP
+
+# AC_LIBTOOL_LANG_F77_CONFIG
+# --------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined. Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
+[AC_REQUIRE([AC_PROG_F77])
+AC_LANG_PUSH(Fortran 77)
+
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(module_cmds, $1)=
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="\
+ program t
+ end
+"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${F77-"f77"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+AC_MSG_CHECKING([if libtool supports shared libraries])
+AC_MSG_RESULT([$can_build_shared])
+
+AC_MSG_CHECKING([whether to build shared libraries])
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+esac
+AC_MSG_RESULT([$enable_shared])
+
+AC_MSG_CHECKING([whether to build static libraries])
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+AC_MSG_RESULT([$enable_static])
+
+_LT_AC_TAGVAR(GCC, $1)="$G77"
+_LT_AC_TAGVAR(LD, $1)="$LD"
+
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_POP
+CC="$lt_save_CC"
+])# AC_LIBTOOL_LANG_F77_CONFIG
+
+
+# AC_LIBTOOL_LANG_GCJ_CONFIG
+# --------------------------
+# Ensure that the configuration vars for the C compiler are
+# suitably defined. Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
+[AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${GCJ-"gcj"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
+AC_LIBTOOL_PROG_COMPILER_PIC($1)
+AC_LIBTOOL_PROG_CC_C_O($1)
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
+AC_LIBTOOL_PROG_LD_SHLIBS($1)
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# AC_LIBTOOL_LANG_GCJ_CONFIG
+
+
+# AC_LIBTOOL_LANG_RC_CONFIG
+# -------------------------
+# Ensure that the configuration vars for the Windows resource compiler are
+# suitably defined. Those variables are subsequently used by
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
+AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
+AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
+[AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_AC_SYS_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${RC-"windres"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# AC_LIBTOOL_LANG_RC_CONFIG
+
+
+# AC_LIBTOOL_CONFIG([TAGNAME])
+# ----------------------------
+# If TAGNAME is not passed, then create an initial libtool script
+# with a default configuration from the untagged config vars. Otherwise
+# add code to config.status for appending the configuration named by
+# TAGNAME from the matching tagged config vars.
+AC_DEFUN([AC_LIBTOOL_CONFIG],
+[# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ _LT_AC_TAGVAR(compiler, $1) \
+ _LT_AC_TAGVAR(CC, $1) \
+ _LT_AC_TAGVAR(LD, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
+ _LT_AC_TAGVAR(old_archive_cmds, $1) \
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
+ _LT_AC_TAGVAR(predep_objects, $1) \
+ _LT_AC_TAGVAR(postdep_objects, $1) \
+ _LT_AC_TAGVAR(predeps, $1) \
+ _LT_AC_TAGVAR(postdeps, $1) \
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
+ _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
+ _LT_AC_TAGVAR(archive_cmds, $1) \
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
+ _LT_AC_TAGVAR(postinstall_cmds, $1) \
+ _LT_AC_TAGVAR(postuninstall_cmds, $1) \
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
+ _LT_AC_TAGVAR(allow_undefined_flag, $1) \
+ _LT_AC_TAGVAR(no_undefined_flag, $1) \
+ _LT_AC_TAGVAR(export_symbols_cmds, $1) \
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
+ _LT_AC_TAGVAR(hardcode_automatic, $1) \
+ _LT_AC_TAGVAR(module_cmds, $1) \
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) \
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
+ _LT_AC_TAGVAR(fix_srcfile_path, $1) \
+ _LT_AC_TAGVAR(exclude_expsyms, $1) \
+ _LT_AC_TAGVAR(include_expsyms, $1); do
+
+ case $var in
+ _LT_AC_TAGVAR(old_archive_cmds, $1) | \
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
+ _LT_AC_TAGVAR(archive_cmds, $1) | \
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
+ _LT_AC_TAGVAR(module_cmds, $1) | \
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
+ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
+
+ case $lt_echo in
+ *'\[$]0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
+ ;;
+ esac
+
+ifelse([$1], [],
+ [cfgfile="${ofile}T"
+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
+ $rm -f "$cfgfile"
+ AC_MSG_NOTICE([creating $ofile])],
+ [cfgfile="$ofile"])
+
+ cat <<__EOF__ >> "$cfgfile"
+ifelse([$1], [],
+[#! $SHELL
+
+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+# 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="$SED -e 1s/^X//"
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# The names of the tagged configurations supported by this script.
+available_tags=
+
+# ### BEGIN LIBTOOL CONFIG],
+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_LTCFLAGS
+
+# A language-specific compiler.
+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
+
+# Is the compiler the GNU C compiler?
+with_gcc=$_LT_AC_TAGVAR(GCC, $1)
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
+
+# The directories searched by this compiler when creating a shared
+# library
+compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=$lt_fix_srcfile_path
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
+
+# Symbols that must always be exported.
+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
+
+ifelse([$1],[],
+[# ### END LIBTOOL CONFIG],
+[# ### END LIBTOOL TAG CONFIG: $tagname])
+
+__EOF__
+
+ifelse([$1],[], [
+ case $host_os in
+ aix3*)
+ cat <<\EOF >> "$cfgfile"
+
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+EOF
+ ;;
+ esac
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" || \
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+])
+else
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
+fi
+])# AC_LIBTOOL_CONFIG
+
+
+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------------------
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
+
+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+ lt_cv_prog_compiler_rtti_exceptions,
+ [-fno-rtti -fno-exceptions], [],
+ [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
+fi
+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
+
+
+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+# ---------------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
+[AC_REQUIRE([AC_CANONICAL_HOST])
+AC_REQUIRE([LT_AC_PROG_SED])
+AC_REQUIRE([AC_PROG_NM])
+AC_REQUIRE([AC_OBJEXT])
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[[BCDT]]'
+ ;;
+cygwin* | mingw* | pw32*)
+ symcode='[[ABCDGISTW]]'
+ ;;
+hpux*) # Its linker distinguishes data from code symbols
+ if test "$host_cpu" = ia64; then
+ symcode='[[ABCDEGRST]]'
+ fi
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+ ;;
+linux* | k*bsd*-gnu)
+ if test "$host_cpu" = ia64; then
+ symcode='[[ABCDGIRSTW]]'
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[[BCDEGRST]]'
+ ;;
+osf*)
+ symcode='[[BCDEGQRST]]'
+ ;;
+solaris*)
+ symcode='[[BDRT]]'
+ ;;
+sco3.2v5*)
+ symcode='[[DT]]'
+ ;;
+sysv4.2uw2*)
+ symcode='[[DT]]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[[ABDT]]'
+ ;;
+sysv4)
+ symcode='[[DFNSTU]]'
+ ;;
+esac
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+ if AC_TRY_EVAL(ac_compile); then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
+
+ cat <<EOF >> conftest.$ac_ext
+#if defined (__STDC__) && __STDC__
+# define lt_ptr_t void *
+#else
+# define lt_ptr_t char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ lt_ptr_t address;
+}
+lt_preloaded_symbols[[]] =
+{
+EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
+ cat <<\EOF >> conftest.$ac_ext
+ {0, (lt_ptr_t) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+])
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ AC_MSG_RESULT(failed)
+else
+ AC_MSG_RESULT(ok)
+fi
+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+
+
+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
+# ---------------------------------------
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
+
+AC_MSG_CHECKING([for $compiler option to produce PIC])
+ ifelse([$1],[CXX],[
+ # C++ specific cases for pic, static, wl, etc.
+ if test "$GXX" = yes; then
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+ amigaos*)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | os2* | pw32*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+ *djgpp*)
+ # DJGPP does not support shared libraries at all
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix[[4-9]]*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ cxch68*)
+ # Green Hills C++ Compiler
+ # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+ ;;
+ esac
+ ;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case $cc_basename in
+ xlc*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ esac
+ ;;
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ freebsd* | dragonfly*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ if test "$host_cpu" != ia64; then
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ fi
+ ;;
+ aCC*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ interix*)
+ # This is c89, which is MS Visual C++ (no shared libs)
+ # Anyone wants to do a port?
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case $cc_basename in
+ CC*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ # CC pic flag -KPIC is the default.
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ KCC*)
+ # KAI C++ Compiler
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ icpc* | ecpc*)
+ # Intel C++
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler.
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ cxx*)
+ # Compaq C++
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd*)
+ ;;
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ cxx*)
+ # Digital/Compaq C++
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ psos*)
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ lcc*)
+ # Lucid
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ case $cc_basename in
+ CC*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
+ ;;
+ vxworks*)
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+],
+[
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ enable_shared=no
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case $cc_basename in
+ xlc*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ esac
+ ;;
+
+ mingw* | cygwin* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ m4_if([$1], [GCJ], [],
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC (with -KPIC) is the default.
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ newsos6)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ icc* | ecc*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ ccc*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All Alpha code is PIC.
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All OSF/1 code is PIC.
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ rdos*)
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ solaris*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ unicos*)
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+
+ uts4*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+])
+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
+ [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
+ [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
+ "" | " "*) ;;
+ *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
+ esac],
+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ *)
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
+ ;;
+esac
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
+ $lt_tmp_static_flag,
+ [],
+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
+])
+
+
+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
+# ------------------------------------
+# See if the linker supports building shared libraries.
+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
+[AC_REQUIRE([LT_AC_PROG_SED])dnl
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+ifelse([$1],[CXX],[
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ case $host_os in
+ aix[[4-9]]*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
+ ;;
+ cygwin* | mingw*)
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+ ;;
+ *)
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+ _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+],[
+ runpath_var=
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+ _LT_AC_TAGVAR(archive_cmds, $1)=
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=no
+ _LT_AC_TAGVAR(module_cmds, $1)=
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)=
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ _LT_AC_TAGVAR(include_expsyms, $1)=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+dnl Note also adjust exclude_expsyms for C++ above.
+ extract_expsyms_cmds=
+ # Just being paranoid about ensuring that cc_basename is set.
+ _LT_CC_BASENAME([$compiler])
+ case $host_os in
+ cygwin* | mingw* | pw32*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>/dev/null` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[[3-9]]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+ fi
+ ;;
+
+ amigaos*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+ # that the semantics of dynamic libraries on AmigaOS, at least up
+ # to version 4, is to share data among multiple programs linked
+ # with the same dynamic library. Since this doesn't match the
+ # behavior of shared libraries on other platforms, we can't use
+ # them.
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ interix[[3-9]]*)
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | k*bsd*-gnu)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ tmp_addflag=
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ *)
+ tmp_sharedflag='-shared' ;;
+ esac
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test $supports_anon_versioning = yes; then
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ $echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ cat <<EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+
+ if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
+ runpath_var=
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_AC_TAGVAR(archive_cmds, $1)=''
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ _LT_AC_SYS_LIBPATH_AIX
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an empty executable.
+ _LT_AC_SYS_LIBPATH_AIX
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ # see comment about different semantics on the GNU ld section
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ bsdi[[45]]*)
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
+ # FIXME: Should let the user specify the lib program.
+ _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ ;;
+
+ darwin* | rhapsody*)
+ case $host_os in
+ rhapsody* | darwin1.[[012]])
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
+ ;;
+ *) # Darwin 1.3 on
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ else
+ case ${MACOSX_DEPLOYMENT_TARGET} in
+ 10.[[012]])
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ ;;
+ 10.*)
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ if test "$GCC" = yes ; then
+ output_verbose_link_cmd='echo'
+ _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ else
+ case $cc_basename in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ fi
+ ;;
+
+ dgux*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ freebsd1*)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ newsos6)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ else
+ case $host_os in
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ ;;
+ *)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ os2*)
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ else
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ solaris*)
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+ else
+ wlarc=''
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
+ ;;
+ motorola)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4.3*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ fi
+])
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
+x|xyes)
+ # Assume -lc should be added
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $_LT_AC_TAGVAR(archive_cmds, $1) in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+ $rm conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
+ pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
+ if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
+ then
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+ else
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
+ fi
+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $rm conftest*
+ AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
+ ;;
+ esac
+ fi
+ ;;
+esac
+])# AC_LIBTOOL_PROG_LD_SHLIBS
+
+
+# _LT_AC_FILE_LTDLL_C
+# -------------------
+# Be careful that the start marker always follows a newline.
+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
+# /* ltdll.c starts here */
+# #define WIN32_LEAN_AND_MEAN
+# #include <windows.h>
+# #undef WIN32_LEAN_AND_MEAN
+# #include <stdio.h>
+#
+# #ifndef __CYGWIN__
+# # ifdef __CYGWIN32__
+# # define __CYGWIN__ __CYGWIN32__
+# # endif
+# #endif
+#
+# #ifdef __cplusplus
+# extern "C" {
+# #endif
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+# #ifdef __cplusplus
+# }
+# #endif
+#
+# #ifdef __CYGWIN__
+# #include <cygwin/cygwin_dll.h>
+# DECLARE_CYGWIN_DLL( DllMain );
+# #endif
+# HINSTANCE __hDllInstance_base;
+#
+# BOOL APIENTRY
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+# {
+# __hDllInstance_base = hInst;
+# return TRUE;
+# }
+# /* ltdll.c ends here */
+])# _LT_AC_FILE_LTDLL_C
+
+
+# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
+# ---------------------------------
+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
+
+
+# old names
+AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
+AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
+AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
+AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
+
+# This is just to silence aclocal about the macro not being used
+ifelse([AC_DISABLE_FAST_INSTALL])
+
+AC_DEFUN([LT_AC_PROG_GCJ],
+[AC_CHECK_TOOL(GCJ, gcj, no)
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
+ AC_SUBST(GCJFLAGS)
+])
+
+AC_DEFUN([LT_AC_PROG_RC],
+[AC_CHECK_TOOL(RC, windres, no)
+])
+
+
+# Cheap backport of AS_EXECUTABLE_P and required macros
+# from Autoconf 2.59; we should not use $as_executable_p directly.
+
+# _AS_TEST_PREPARE
+# ----------------
+m4_ifndef([_AS_TEST_PREPARE],
+[m4_defun([_AS_TEST_PREPARE],
+[if test -x / >/dev/null 2>&1; then
+ as_executable_p='test -x'
+else
+ as_executable_p='test -f'
+fi
+])])# _AS_TEST_PREPARE
+
+# AS_EXECUTABLE_P
+# ---------------
+# Check whether a file is executable.
+m4_ifndef([AS_EXECUTABLE_P],
+[m4_defun([AS_EXECUTABLE_P],
+[AS_REQUIRE([_AS_TEST_PREPARE])dnl
+$as_executable_p $1[]dnl
+])])# AS_EXECUTABLE_P
+
+# NOTE: This macro has been submitted for inclusion into #
+# GNU Autoconf as AC_PROG_SED. When it is available in #
+# a released version of Autoconf we should remove this #
+# macro and use it instead. #
+# LT_AC_PROG_SED
+# --------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible. Prefer GNU sed if found.
+AC_DEFUN([LT_AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && continue
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+])
+SED=$lt_cv_path_SED
+AC_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])
+
+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
+#
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
+#
+# 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
+# ----------------------------------
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+fi
+if test -n "$PKG_CONFIG"; then
+ _pkg_min_version=m4_default([$1], [0.9.0])
+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ PKG_CONFIG=""
+ fi
+
+fi[]dnl
+])# PKG_PROG_PKG_CONFIG
+
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+#
+# Check to see whether a particular set of modules exists. Similar
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
+#
+#
+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
+# this or PKG_CHECK_MODULES is called, or make sure to call
+# PKG_CHECK_EXISTS manually
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_EXISTS],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+if test -n "$PKG_CONFIG" && \
+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
+ m4_ifval([$2], [$2], [:])
+m4_ifvaln([$3], [else
+ $3])dnl
+fi])
+
+
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
+# ---------------------------------------------
+m4_define([_PKG_CONFIG],
+[if test -n "$$1"; then
+ pkg_cv_[]$1="$$1"
+ elif test -n "$PKG_CONFIG"; then
+ PKG_CHECK_EXISTS([$3],
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
+ [pkg_failed=yes])
+ else
+ pkg_failed=untried
+fi[]dnl
+])# _PKG_CONFIG
+
+# _PKG_SHORT_ERRORS_SUPPORTED
+# -----------------------------
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi[]dnl
+])# _PKG_SHORT_ERRORS_SUPPORTED
+
+
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
+# [ACTION-IF-NOT-FOUND])
+#
+#
+# Note that if there is a possibility the first call to
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
+#
+#
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_MODULES],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
+
+pkg_failed=no
+AC_MSG_CHECKING([for $1])
+
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
+
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
+and $1[]_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.])
+
+if test $pkg_failed = yes; then
+ _PKG_SHORT_ERRORS_SUPPORTED
+ if test $_pkg_short_errors_supported = yes; then
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
+ else
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
+
+ ifelse([$4], , [AC_MSG_ERROR(dnl
+[Package requirements ($2) were not met:
+
+$$1_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+_PKG_TEXT
+])],
+ [AC_MSG_RESULT([no])
+ $4])
+elif test $pkg_failed = untried; then
+ ifelse([$4], , [AC_MSG_FAILURE(dnl
+[The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+_PKG_TEXT
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
+ [$4])
+else
+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
+ AC_MSG_RESULT([yes])
+ ifelse([$3], , :, [$3])
+fi[]dnl
+])# PKG_CHECK_MODULES
+
+# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.10'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.10.1], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.10.1])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory. The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run. This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+# fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+# fails if $ac_aux_dir is absolute,
+# fails when called from a subdirectory in a VPATH build with
+# a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir. In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+# MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH. The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 8
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+ AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 9
+
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery. Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "GCJ", or "OBJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
+ [depcc="$$1" am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+ [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_$1_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ case $depmode in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode=$depmode \
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_$1_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE(dependency-tracking,
+[ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors])
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+#serial 3
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[for mf in $CONFIG_FILES; do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`AS_DIRNAME(["$file"])`
+ AS_MKDIR_P([$dirpart/$fdir])
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled. FIXME. This creates each `.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+])
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 8
+
+# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
+AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2008 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 13
+
+# This macro actually does too much. Some checks are only needed if
+# your package does certain things. But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition. After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.60])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AM_PROG_INSTALL_SH
+AM_PROG_INSTALL_STRIP
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+ [_AM_DEPENDENCIES(CC)],
+ [define([AC_PROG_CC],
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [_AM_DEPENDENCIES(CXX)],
+ [define([AC_PROG_CXX],
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+])
+])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated. The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot. For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
+# From Jim Meyering
+
+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 4
+
+AC_DEFUN([AM_MAINTAINER_MODE],
+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode is disabled by default
+ AC_ARG_ENABLE(maintainer-mode,
+[ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer],
+ USE_MAINTAINER_MODE=$enableval,
+ USE_MAINTAINER_MODE=no)
+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
+ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST(MAINT)dnl
+]
+)
+
+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
+
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 3
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+ am__include=include
+ am__quote=
+ _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ fi
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 5
+
+# AM_PROG_CC_C_O
+# --------------
+# Like AC_PROG_CC_C_O, but changed for automake.
+AC_DEFUN([AM_PROG_CC_C_O],
+[AC_REQUIRE([AC_PROG_CC_C_O])dnl
+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([compile])dnl
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+dnl Make sure AC_PROG_CC is never called again, or it will override our
+dnl setting of CC.
+m4_define([AC_PROG_CC],
+ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
+])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 5
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 3
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# ------------------------------
+# Set option NAME. Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ----------------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 4
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+ if test "$[*]" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+alias in your environment])
+ fi
+
+ test "$[2]" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries. This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test "$cross_compiling" != no; then
+ AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+#
+# This file 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.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.
+AM_MISSING_PROG([AMTAR], [tar])
+m4_if([$1], [v7],
+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+ [m4_case([$1], [ustar],, [pax],,
+ [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([m4/ac_attribute.m4])
+m4_include([m4/ac_warnflags.m4])
+m4_include([m4/codeset.m4])
+m4_include([m4/esd.m4])
+m4_include([m4/gettext.m4])
+m4_include([m4/iconv.m4])
+m4_include([m4/lib-ld.m4])
+m4_include([m4/lib-link.m4])
+m4_include([m4/lib-prefix.m4])
+m4_include([m4/nls.m4])
+m4_include([m4/po.m4])
+m4_include([m4/progtest.m4])
--- /dev/null
+#! /bin/sh
+# Wrapper for compilers which do not understand `-c -o'.
+
+scriptversion=2005-05-14.22
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Written by Tom Tromey <tromey@cygnus.com>.
+#
+# 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.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand `-c -o'.
+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file `INSTALL'.
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "compile $scriptversion"
+ exit $?
+ ;;
+esac
+
+ofile=
+cfile=
+eat=
+
+for arg
+do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as `compile cc -o foo foo.c'.
+ # So we strip `-o arg' only if arg is an object.
+ eat=1
+ case $2 in
+ *.o | *.obj)
+ ofile=$2
+ ;;
+ *)
+ set x "$@" -o "$2"
+ shift
+ ;;
+ esac
+ ;;
+ *.c)
+ cfile=$1
+ set x "$@" "$1"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+ # If no `-o' option was seen then we might have been invoked from a
+ # pattern rule where we don't need one. That is ok -- this is a
+ # normal compilation that the losing compiler can handle. If no
+ # `.c' file was seen then we are probably linking. That is also
+ # ok.
+ exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use `[/.-]' here to ensure that we don't use the same name
+# that we are using for the .o file. Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
+while true; do
+ if mkdir "$lockdir" >/dev/null 2>&1; then
+ break
+ fi
+ sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+ mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
--- /dev/null
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+
+timestamp='2008-01-23'
+
+# This file 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner <per@bothner.com>.
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep __ELF__ >/dev/null
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ exit ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[456])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ case ${UNAME_MACHINE} in
+ pc98)
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:[3456]*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T | authenticamd)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips
+ #undef mipsel
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mipsel
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips64
+ #undef mips64el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mips64el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips64
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+ # first see if it will tell us. cd to the root directory to prevent
+ # problems with other programs or directories called `ld' in the path.
+ # Set LC_ALL=C to ensure ld outputs messages in English.
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ | sed -ne '/supported targets:/!d
+ s/[ ][ ]*/ /g
+ s/.*supported targets: *//
+ s/ .*//
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ ;;
+ a.out-i386-linux)
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ exit ;;
+ coff-i386)
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+ exit ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ exit ;;
+ esac
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+ LIBC=gnu
+ #else
+ LIBC=gnuaout
+ #endif
+ #endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^LIBC/{
+ s: ::g
+ p
+ }'`"
+ test x"${LIBC}" != x && {
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit
+ }
+ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
+ ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i386.
+ echo i386-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes@openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf@swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches@gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
--- /dev/null
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
+/* Enable deskrays (not functional) */
+#undef ENABLE_DESKRAY
+
+/* Configuration dialog support */
+#undef ENABLE_DIALOGS
+
+/* GNOME(<2.0) Hints */
+#undef ENABLE_GNOME
+
+/* Define to 1 if translation of program messages to the user's native
+ language is requested. */
+#undef ENABLE_NLS
+
+/* Enable adjusting theme element pseudotransparency */
+#undef ENABLE_THEME_TRANSPARENCY
+
+/* Enable pseudotransparency */
+#undef ENABLE_TRANSPARENCY
+
+/* Define to 1 if you have the <alloca.h> header file. */
+#undef HAVE_ALLOCA_H
+
+/* Define to 1 if you have the <audiofile.h> header file. */
+#undef HAVE_AUDIOFILE_H
+
+/* Define to 1 if you have the `blumfrub' function. */
+#undef HAVE_BLUMFRUB
+
+/* Define to 1 if you have the `buckets_of_erogenous_nym' function. */
+#undef HAVE_BUCKETS_OF_EROGENOUS_NYM
+
+/* Define to 1 if you have the `buttox' function. */
+#undef HAVE_BUTTOX
+
+/* Define if the GNU dcgettext() function is already present or preinstalled.
+ */
+#undef HAVE_DCGETTEXT
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define if the GNU gettext() function is already present or preinstalled. */
+#undef HAVE_GETTEXT
+
+/* glXBindTexImageEXT is available */
+#undef HAVE_GLX_glXBindTexImageEXT
+
+/* Define to 1 if you have the <GL/glu.h> header file. */
+#undef HAVE_GL_GLU_H
+
+/* Define to 1 if you have the <GL/glx.h> header file. */
+#undef HAVE_GL_GLX_H
+
+/* Define to 1 if you have the <GL/gl.h> header file. */
+#undef HAVE_GL_GL_H
+
+/* Define if you have the iconv() function. */
+#undef HAVE_ICONV
+
+/* Imlib2 has imlib_context_disconnect_display */
+#undef HAVE_IMLIB_CONTEXT_DISCONNECT_DISPLAY
+
+/* Imlib2 has imlib_context_set_mask_alpha_threshold */
+#undef HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
+#undef HAVE_LANGINFO_CODESET
+
+/* Define to 1 if you have the `Fridge' library (-lFridge). */
+#undef HAVE_LIBFRIDGE
+
+/* Define to 1 if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
+/* Define to 1 if you have the `snprintf' function. */
+#undef HAVE_SNPRINTF
+
+/* Sound support */
+#undef HAVE_SOUND
+
+/* EsounD sound support */
+#undef HAVE_SOUND_ESD
+
+/* PulseAudio sound support */
+#undef HAVE_SOUND_PA
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#undef HAVE_STDARG_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#undef HAVE_STRCASECMP
+
+/* Define to 1 if you have the `strcasestr' function. */
+#undef HAVE_STRCASESTR
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strndup' function. */
+#undef HAVE_STRNDUP
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the `unsetenv' function. */
+#undef HAVE_UNSETENV
+
+/* Define to 1 if you have the <wctype.h> header file. */
+#undef HAVE_WCTYPE_H
+
+/* Define to 1 if you have the <X11/extensions/Xcomposite.h> header file. */
+#undef HAVE_X11_EXTENSIONS_XCOMPOSITE_H
+
+/* Define to 1 if you have the <X11/extensions/Xdamage.h> header file. */
+#undef HAVE_X11_EXTENSIONS_XDAMAGE_H
+
+/* Define to 1 if you have the <X11/extensions/Xfixes.h> header file. */
+#undef HAVE_X11_EXTENSIONS_XFIXES_H
+
+/* Define to 1 if you have the <X11/extensions/Xrandr.h> header file. */
+#undef HAVE_X11_EXTENSIONS_XRANDR_H
+
+/* Define to 1 if you have the <X11/extensions/Xrender.h> header file. */
+#undef HAVE_X11_EXTENSIONS_XRENDER_H
+
+/* Define to 1 if you have the <X11/SM/SMlib.h> header file. */
+#undef HAVE_X11_SM_SMLIB_H
+
+/* Define to 1 if your compiler has __attribute__ */
+#undef HAVE___ATTRIBUTE__
+
+/* Define as const if the declaration of iconv() needs const. */
+#undef ICONV_CONST
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+#undef NO_MINUS_C_MINUS_O
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#undef RETSIGTYPE
+
+/* The size of `int', as computed by sizeof. */
+#undef SIZEOF_INT
+
+/* The size of `long', as computed by sizeof. */
+#undef SIZEOF_LONG
+
+/* The size of `wchar_t', as computed by sizeof. */
+#undef SIZEOF_WCHAR_T
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Composite support */
+#undef USE_COMPOSITE
+
+/* dbus support */
+#undef USE_DBUS
+
+/* Use libecore */
+#undef USE_ECORE
+
+/* Use libecore_x */
+#undef USE_ECORE_X
+
+/* Use external init window during restart */
+#undef USE_EXT_INIT_WIN
+
+/* GLX support */
+#undef USE_GLX
+
+/* Loadable module support */
+#undef USE_MODULES
+
+/* pango-xft support */
+#undef USE_PANGO
+
+/* Use window mode helper library */
+#undef USE_ROOTHACKLIB
+
+/* Session management support */
+#undef USE_SM
+
+/* Use audiofile sound loader */
+#undef USE_SOUND_LOADER_AUDIOFILE
+
+/* Xft support */
+#undef USE_XFT
+
+/* Xinerama support */
+#undef USE_XINERAMA
+
+/* RandR support */
+#undef USE_XRANDR
+
+/* ScreenSaver support */
+#undef USE_XSCREENSAVER
+
+/* SYNC support */
+#undef USE_XSYNC
+
+/* Version number of package */
+#undef VERSION
+
+/* Zoom Support */
+#undef WITH_ZOOM
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+# undef WORDS_BIGENDIAN
+# endif
+#endif
+
+/* Define to 1 if the X Window System is missing or not being used. */
+#undef X_DISPLAY_MISSING
+
+/* Enable extensions */
+#undef _GNU_SOURCE
+
+/* Macro declaring a function argument to be unused */
+#undef __UNUSED__
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
--- /dev/null
+#! /bin/sh
+# Output a system dependent set of variables, describing how to set the
+# run time search path of shared libraries in an executable.
+#
+# Copyright 1996-2003 Free Software Foundation, Inc.
+# Taken from GNU libtool, 2001
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+# 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+#
+# The first argument passed to this file is the canonical host specification,
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
+# should be set by the caller.
+#
+# The set of defined variables is at the end of this script.
+
+# Known limitations:
+# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
+# than 256 bytes, otherwise the compiler driver will dump core. The only
+# known workaround is to choose shorter directory names for the build
+# directory and/or the installation directory.
+
+# All known linkers require a `.a' archive for static linking (except M$VC,
+# which needs '.lib').
+libext=a
+shrext=.so
+
+host="$1"
+host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
+
+wl=
+if test "$GCC" = yes; then
+ wl='-Wl,'
+else
+ case "$host_os" in
+ aix*)
+ wl='-Wl,'
+ ;;
+ mingw* | pw32* | os2*)
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ wl='-Wl,'
+ ;;
+ irix5* | irix6* | nonstopux*)
+ wl='-Wl,'
+ ;;
+ newsos6)
+ ;;
+ linux*)
+ case $CC in
+ icc|ecc)
+ wl='-Wl,'
+ ;;
+ ccc)
+ wl='-Wl,'
+ ;;
+ esac
+ ;;
+ osf3* | osf4* | osf5*)
+ wl='-Wl,'
+ ;;
+ sco3.2v5*)
+ ;;
+ solaris*)
+ wl='-Wl,'
+ ;;
+ sunos4*)
+ wl='-Qoption ld '
+ ;;
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ wl='-Wl,'
+ ;;
+ sysv4*MP*)
+ ;;
+ uts4*)
+ ;;
+ esac
+fi
+
+# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
+
+hardcode_libdir_flag_spec=
+hardcode_libdir_separator=
+hardcode_direct=no
+hardcode_minus_L=no
+
+case "$host_os" in
+ cygwin* | mingw* | pw32*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+esac
+
+ld_shlibs=yes
+if test "$with_gnu_ld" = yes; then
+ case "$host_os" in
+ aix3* | aix4* | aix5*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ fi
+ ;;
+ amigaos*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+ # that the semantics of dynamic libraries on AmigaOS, at least up
+ # to version 4, is to share data among multiple programs linked
+ # with the same dynamic library. Since this doesn't match the
+ # behavior of shared libraries on other platforms, we can use
+ # them.
+ ld_shlibs=no
+ ;;
+ beos*)
+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+ :
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ cygwin* | mingw* | pw32*)
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ :
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ netbsd*)
+ ;;
+ solaris* | sysv5*)
+ if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+ :
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ sunos4*)
+ hardcode_direct=yes
+ ;;
+ *)
+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+ :
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+ if test "$ld_shlibs" = yes; then
+ # Unlike libtool, we use -rpath here, not --rpath, since the documented
+ # option of GNU ld is called -rpath, not --rpath.
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ fi
+else
+ case "$host_os" in
+ aix3*)
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L=yes
+ if test "$GCC" = yes; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+ aix4* | aix5*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ else
+ aix_use_runtimelinking=no
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ esac
+ fi
+ hardcode_direct=yes
+ hardcode_libdir_separator=':'
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[012]|aix4.[012].*)
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ hardcode_direct=yes
+ else
+ # We have old collect2
+ hardcode_direct=unsupported
+ hardcode_minus_L=yes
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_libdir_separator=
+ fi
+ esac
+ fi
+ # Begin _LT_AC_SYS_LIBPATH_AIX.
+ echo 'int main () { return 0; }' > conftest.c
+ ${CC} ${LDFLAGS} conftest.c -o conftest
+ aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+ if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
+}'`
+ fi
+ if test -z "$aix_libpath"; then
+ aix_libpath="/usr/lib:/lib"
+ fi
+ rm -f conftest.c conftest
+ # End _LT_AC_SYS_LIBPATH_AIX.
+ if test "$aix_use_runtimelinking" = yes; then
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ else
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ fi
+ fi
+ ;;
+ amigaos*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ # see comment about different semantics on the GNU ld section
+ ld_shlibs=no
+ ;;
+ bsdi4*)
+ ;;
+ cygwin* | mingw* | pw32*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec=' '
+ libext=lib
+ ;;
+ darwin* | rhapsody*)
+ if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
+ hardcode_direct=no
+ fi
+ ;;
+ dgux*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ ;;
+ freebsd1*)
+ ld_shlibs=no
+ ;;
+ freebsd2.2*)
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ ;;
+ freebsd2*)
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ ;;
+ freebsd*)
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ ;;
+ hpux9*)
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ hpux10* | hpux11*)
+ if test "$with_gnu_ld" = no; then
+ case "$host_cpu" in
+ hppa*64*)
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=no
+ ;;
+ ia64*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=no
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ *)
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ esac
+ fi
+ ;;
+ irix5* | irix6* | nonstopux*)
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+ netbsd*)
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ ;;
+ newsos6)
+ hardcode_direct=yes
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+ openbsd*)
+ hardcode_direct=yes
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ else
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ ;;
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ osf3*)
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+ osf4* | osf5*)
+ if test "$GCC" = yes; then
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ else
+ # Both cc and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ hardcode_libdir_separator=:
+ ;;
+ sco3.2v5*)
+ ;;
+ solaris*)
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ sunos4*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ ;;
+ sysv4)
+ case $host_vendor in
+ sni)
+ hardcode_direct=yes # is this really true???
+ ;;
+ siemens)
+ hardcode_direct=no
+ ;;
+ motorola)
+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ ;;
+ sysv4.3*)
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ ld_shlibs=yes
+ fi
+ ;;
+ sysv4.2uw2*)
+ hardcode_direct=yes
+ hardcode_minus_L=no
+ ;;
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
+ ;;
+ sysv5*)
+ hardcode_libdir_flag_spec=
+ ;;
+ uts4*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ ;;
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+fi
+
+# Check dynamic linker characteristics
+# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
+libname_spec='lib$name'
+case "$host_os" in
+ aix3*)
+ ;;
+ aix4* | aix5*)
+ ;;
+ amigaos*)
+ ;;
+ beos*)
+ ;;
+ bsdi4*)
+ ;;
+ cygwin* | mingw* | pw32*)
+ shrext=.dll
+ ;;
+ darwin* | rhapsody*)
+ shrext=.dylib
+ ;;
+ dgux*)
+ ;;
+ freebsd1*)
+ ;;
+ freebsd*)
+ ;;
+ gnu*)
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case "$host_cpu" in
+ ia64*)
+ shrext=.so
+ ;;
+ hppa*64*)
+ shrext=.sl
+ ;;
+ *)
+ shrext=.sl
+ ;;
+ esac
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case "$host_os" in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
+ *) libsuff= shlibsuff= ;;
+ esac
+ ;;
+ esac
+ ;;
+ linux*oldld* | linux*aout* | linux*coff*)
+ ;;
+ linux*)
+ ;;
+ netbsd*)
+ ;;
+ newsos6)
+ ;;
+ nto-qnx)
+ ;;
+ openbsd*)
+ ;;
+ os2*)
+ libname_spec='$name'
+ shrext=.dll
+ ;;
+ osf3* | osf4* | osf5*)
+ ;;
+ sco3.2v5*)
+ ;;
+ solaris*)
+ ;;
+ sunos4*)
+ ;;
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ ;;
+ sysv4*MP*)
+ ;;
+ uts4*)
+ ;;
+esac
+
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
+shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
+escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
+
+sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
+
+# How to pass a linker flag through the compiler.
+wl="$escaped_wl"
+
+# Static library suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally "so").
+shlibext="$shlibext"
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator="$hardcode_libdir_separator"
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct="$hardcode_direct"
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L="$hardcode_minus_L"
+
+EOF
--- /dev/null
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+
+timestamp='2008-01-16'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray)
+ os=
+ basic_machine=$1
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fido | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore | mep \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64vr | mips64vrel \
+ | mips64orion | mips64orionel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | mt \
+ | msp430 \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | z8k)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nios-* | nios2-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc) basic_machine=powerpc-unknown
+ ;;
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tic54x | c54x*)
+ basic_machine=tic54x-unknown
+ os=-coff
+ ;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
+ tile*)
+ basic_machine=tile-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
--- /dev/null
+SUBDIRS = pix
+
+configdir = $(pkgdatadir)/config
+config_DATA = \
+ definitions \
+ actionclasses.cfg bindings.cfg matches.cfg menus.cfg \
+ e16keyedit.db \
+ fonts.xft.cfg fonts.pango.cfg
+
+menudir = $(pkgdatadir)/config/menus
+menu_DATA = \
+ desktop.menu enlightenment.menu maintenance.menu settings.menu \
+ winops.menu winops_groups.menu winops_layer.menu \
+ winops_misc.menu winops_opacity.menu winops_size.menu
+
+EXTRA_DIST = $(config_DATA) $(menu_DATA) strings.c
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = config
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-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 uninstall-recursive
+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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(configdir)" "$(DESTDIR)$(menudir)"
+configDATA_INSTALL = $(INSTALL_DATA)
+menuDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(config_DATA) $(menu_DATA)
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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 = pix
+configdir = $(pkgdatadir)/config
+config_DATA = \
+ definitions \
+ actionclasses.cfg bindings.cfg matches.cfg menus.cfg \
+ e16keyedit.db \
+ fonts.xft.cfg fonts.pango.cfg
+
+menudir = $(pkgdatadir)/config/menus
+menu_DATA = \
+ desktop.menu enlightenment.menu maintenance.menu settings.menu \
+ winops.menu winops_groups.menu winops_layer.menu \
+ winops_misc.menu winops_opacity.menu winops_size.menu
+
+EXTRA_DIST = $(config_DATA) $(menu_DATA) strings.c
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign config/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign config/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
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-configDATA: $(config_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(configdir)" || $(MKDIR_P) "$(DESTDIR)$(configdir)"
+ @list='$(config_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(configDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(configdir)/$$f'"; \
+ $(configDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(configdir)/$$f"; \
+ done
+
+uninstall-configDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(config_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(configdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(configdir)/$$f"; \
+ done
+install-menuDATA: $(menu_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(menudir)" || $(MKDIR_P) "$(DESTDIR)$(menudir)"
+ @list='$(menu_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(menuDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(menudir)/$$f'"; \
+ $(menuDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(menudir)/$$f"; \
+ done
+
+uninstall-menuDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(menu_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(menudir)/$$f'"; \
+ rm -f "$(DESTDIR)$(menudir)/$$f"; \
+ done
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(DATA)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(configdir)" "$(DESTDIR)$(menudir)"; 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:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-configDATA install-menuDATA
+
+install-dvi: install-dvi-recursive
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+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: uninstall-configDATA uninstall-menuDATA
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic clean-libtool \
+ ctags ctags-recursive distclean distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-configDATA \
+ 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-menuDATA \
+ 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-recursive uninstall uninstall-am \
+ uninstall-configDATA uninstall-menuDATA
+
+# 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:
--- /dev/null
+#include <definitions>
+
+__E_CFG_VERSION 0
+
+/*
+******************************************************************************
+* Internally used and looked for actions
+******************************************************************************
+* ACTION_BUTTON_DRAG is looked for by e to determine what "action" by a user
+* will be applied to every button to start a button drag. if u dont like just
+* moving and dragging (in case you accidentally keep doing it to buttons)
+* add a modifer like alt, so u need to hold alt down whilst dragging to
+* actually drag the button around
+*/
+__ACLASS __BGN
+ __NAME ACTION_BUTTON_DRAG
+ __TOOLTIP_TEXT "Click and drag to move desktop"
+ __TOOLTIP_TEXT "(on any desktop but desktop 0)"
+ __TYPE __TYPE_NORMAL
+ __ALLOW_ANY_BUTTON __ON
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_KEY __ON
+ __EVENT __MOUSE_PRESS
+ __ACTION __A_DRAG_BUTTON
+__END
+
+/*
+******************************************************************************
+* Actionclasses for buttons
+******************************************************************************
+*/
+
+__ACLASS __BGN
+ __NAME ACTION_GOTO_DESK_NEXT
+ __TOOLTIP_TEXT "Switch Desktops"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Go to the next desktop."
+ __ALLOW_ANY_BUTTON __ON
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __EVENT __MOUSE_RELEASE
+ __ACTION __A_DESKTOP_NEXT
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_GOTO_DESK_PREV
+ __TOOLTIP_TEXT "Switch Desktops"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Go to the previous desktop."
+ __ALLOW_ANY_BUTTON __ON
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __EVENT __MOUSE_RELEASE
+ __ACTION __A_DESKTOP_PREV
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_MOVE
+ __TOOLTIP_TEXT "Move"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Move this window."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 1
+ __ACTION __A_MOVE
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Shade/Unshade this window."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 2
+ __ACTION __A_SHADE
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Show the Window Options menu."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 3
+ __ACTION __A_SHOW_MENU "winops.menu"
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Shade/Unshade this window."
+ __EVENT __DOUBLE_CLICK
+ __BUTTON 1
+ __ACTION __A_SHADE
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Show/Hide group borders."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 2
+ __MODIFIER_KEY __SHIFT
+ __ACTION __A_SHOWHIDE_GROUP
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Start a group."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 1
+ __MODIFIER_KEY __SHIFT
+ __ACTION __A_START_GROUP
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Add to current group."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 1
+ __MODIFIER_KEY __CTRL
+ __ACTION __A_ADD_TO_GROUP
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Break this window's group."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 1
+ __MODIFIER_KEY __CTRL_SHIFT
+ __ACTION __A_BREAK_GROUP
+
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Shade."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 4
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ACTION __A_SHADE on
+
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Unshade."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 5
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ACTION __A_SHADE off
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_RESIZE
+ __TOOLTIP_TEXT "Resize"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Resize this window."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 1
+ __ACTION __A_RESIZE
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Move this window."
+ __BUTTON 3
+ __ACTION __A_MOVE
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_RESIZE_H
+ __TOOLTIP_TEXT "Resize Horizontally"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Resize this window horizontally."
+ __EVENT __MOUSE_PRESS
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __BUTTON 1
+ __ACTION __A_RESIZE_H
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Move this window."
+ __BUTTON 3
+ __ACTION __A_MOVE
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_RESIZE_V
+ __TOOLTIP_TEXT "Resize Vertically"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Resize this window vertically."
+ __EVENT __MOUSE_PRESS
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __BUTTON 1
+ __ACTION __A_RESIZE_V
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Move this window."
+ __BUTTON 3
+ __ACTION __A_MOVE
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_KILL
+ __TOOLTIP_TEXT "Close"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Close this window."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __BUTTON 1
+ __ACTION __A_KILL
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Forcibly destroy this window."
+ __BUTTON 3
+ __ACTION __A_KILL_NASTY
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_MAXH
+ __TOOLTIP_TEXT "Maximize Height"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Toggle between maximum screen height and normal height."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_MAX_HEIGHT
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_MAXW
+ __TOOLTIP_TEXT "Maximize Width"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Toggle between maximum screen width and normal width."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_MAX_WIDTH
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_MAX
+ __TOOLTIP_TEXT "Maximize"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Toggle between maximum screen size and normal size."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __BUTTON 1
+ __ACTION __A_MAX_SIZE
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Toggle between maximum screen width and normal width."
+ __BUTTON 2
+ __ACTION __A_MAX_WIDTH
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Toggle between maximum screen height and normal height."
+ __BUTTON 3
+ __ACTION __A_MAX_HEIGHT
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_SEND_NEXT
+ __TOOLTIP_TEXT "Send To Another Desktop"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Send this Window to the next desktop."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_SEND_TO_NEXT_DESK
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_SEND_PREV
+ __TOOLTIP_TEXT "Send To Another Desktop"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Send this Window to the previous desktop."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_SEND_TO_PREV_DESK
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_SNAPSHOT
+ __TOOLTIP_TEXT "Snapshot"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "This button does nothing interesting."
+ __ALLOW_ANY_BUTTON __ON
+ __EVENT __MOUSE_RELEASE
+ __ACTION __A_SNAPSHOT
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_SHADE
+ __TOOLTIP_TEXT "Shade/Unshade"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Shade/Unshade this window."
+ __ALLOW_ANY_BUTTON __ON
+ __EVENT __MOUSE_RELEASE
+ __ACTION __A_SHADE
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_MENU
+ __TOOLTIP_TEXT "Window Options"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Show the Window Options menu."
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __EVENT __MOUSE_PRESS
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_SHOW_MENU "winops.menu"
+__END
+
+
+__ACLASS __BGN
+ __NAME ACTION_ICONIFY
+ __TOOLTIP_TEXT "Iconify"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Iconify (Minimize) this window."
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __EVENT __MOUSE_RELEASE
+ __BUTTON 1
+ __ACTION __A_ICONIFY
+ __NEXT_ACTION
+ __TOOLTIP_ACTION_TEXT "Show the Window Options menu."
+ __EVENT __MOUSE_PRESS
+ __BUTTON 3
+ __ACTION __A_SHOW_MENU "winops.menu"
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_WINDOW_SLIDEOUT
+ __TOOLTIP_TEXT "More Buttons"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Show more buttons."
+ __ALLOW_ANY_BUTTON __ON
+ __EVENT __MOUSE_RELEASE
+ __ACTION __A_SLIDEOUT mainwindowslider
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_RAISE
+ __TOOLTIP_TEXT "Raise"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Raise this window to the top."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_RAISE
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_LOWER
+ __TOOLTIP_TEXT "Lower"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Lower this window."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_LOWER
+__END
+
+__ACLASS __BGN
+ __NAME ACTION_STICK
+ __TOOLTIP_TEXT "Stick/Unstick"
+ __TYPE __TYPE_NORMAL
+ __TOOLTIP_ACTION_TEXT "Toggle the Omnipresent (visible on all Desktops) state of this window."
+ __EVENT __MOUSE_RELEASE
+ __ALLOW_ANY_MODIFIER_KEYS __ON
+ __ALLOW_ANY_BUTTON __ON
+ __ACTION __A_STICK
+__END
+
+/* For autoshading borders */
+__ACLASS __BGN
+ __NAME ACTION_AUTOSHADE
+ __TYPE __TYPE_NORMAL
+ __EVENT __MOUSE_ENTER
+ __ACTION __A_SHADE off
+ __NEXT_ACTION
+ __EVENT __MOUSE_LEAVE
+ __ACTION __A_SHADE on
+__END
--- /dev/null
+# Default button- and keybindings.
+
+# Button binding definition line:
+# <Button action> <Modifiers> <Button> <Action>
+#
+# Key binding definition line:
+# <Key action> <Modifiers> <Key> <Action>
+#
+# <Button action>:
+# MouseDown, MouseUp, MouseDouble, MouseIn, MouseOut
+#
+# <Key action>:
+# KeyDown, KeyUp
+#
+# <Modifiers>: One or more of
+# - None
+# * Any
+# A Alt
+# C Ctrl
+# S Shift
+# 1-5 Modifier 1-5
+#
+# <Button>:
+# Button number
+#
+# <Key>:
+# Key name
+#
+# <Action>:
+# Any IPC action. Use "eesh help full" to see possibilities.
+
+
+# Global button bindings... specially named actionclass that applies to
+# all client windows - so you can bind "alt - left click" to move the
+# window, raise it or something....
+Aclass BUTTONBINDINGS normal
+MouseDown A 1 wop * mo ptr
+MouseDown AS 1 wop = mo ptr
+MouseDouble A 1 wop * shade
+MouseDown A 2 wop * sz ptr
+MouseDouble A 2 wop * th available
+MouseDown A 3 menus show winops.menu
+# May be used to control opacity with mouse
+#MouseDown A 4 wop * focused_opacity +10
+#MouseDown A 5 wop * focused_opacity -10
+#MouseDown AC 4 wop * opacity +10
+#MouseDown AC 5 wop * opacity -10
+
+
+# Mouse presses on the desktop background ....
+Aclass DESKBINDINGS normal
+Tooltip Clicking your mouse on the desktop will perform
+Tooltip the following actions
+MouseDown - 1 menus show file.menu
+Tooltip Display User Menus
+MouseDown C 1 menus show enlightenment.menu
+Tooltip Display Enlightenment Menu
+MouseDown 4 1 menus show settings.menu
+Tooltip Display Settings Menu
+MouseDown - 2 menus show enlightenment.menu
+Tooltip Display Enlightenment Menu
+MouseDown A 2 menus show windowlist
+Tooltip Display Task List Menu
+MouseDown C 2 menus show deskmenu
+Tooltip Display Desktop Menu
+MouseDown S 2 menus show groupmenu
+Tooltip Display Group Menu
+MouseDown - 3 menus show settings.menu
+Tooltip Display Settings Menu
+MouseDown * 4 desk prev
+Tooltip Go Back a Desktop
+MouseDown * 5 desk next
+Tooltip Go Forward a Desktop
+
+
+# Default keybindings
+Aclass KEYBINDINGS global
+KeyDown CA Home desk arrange size
+KeyDown CA Insert exec Eterm
+KeyDown CA Delete exit logout
+KeyDown CA End exit restart
+KeyDown CA Right desk next
+KeyDown CA Left desk prev
+KeyDown CA Return desk this
+KeyDown SA Down area move 0 1
+KeyDown SA Up area move 0 -1
+KeyDown SA Left area move -1 0
+KeyDown SA Right area move 1 0
+KeyDown A F1 desk goto 0
+KeyDown A F2 desk goto 1
+KeyDown A F3 desk goto 2
+KeyDown A F4 desk goto 3
+KeyDown A F5 desk goto 4
+KeyDown A F6 desk goto 5
+KeyDown A F7 desk goto 6
+KeyDown A F8 desk goto 7
+KeyDown A Tab focus next
+#KeyDown C Tab warp screen
+KeyDown CA Up wop * raise
+KeyDown CA Down wop * lower
+KeyDown CA x wop * close
+KeyDown CA k wop * kill
+KeyDown CA s wop * stick
+KeyDown CA i wop * iconify
+KeyDown CA r wop * shade
+KeyDown CA f wop * fullscreen
+KeyDown CA m wop * ts conservative
+KeyDown CA w menus show winops.menu
+KeyDown A Return wop * zoom
+# Move/resize using keyboard
+#KeyDown CS m wop * move kbd
+#KeyDown CS s wop * size kbd
+KeyDown CS F1 menus show file.menu
+KeyDown CS F2 menus show enlightenment.menu
+KeyDown CS F3 menus show settings.menu
+KeyDown CS F4 menus show windowlist
+# The previously "unchangable" keybindings
+KeyDown CA a button_show all
+KeyDown CA b button_show
+KeyDown CA c button_show buttons CONFIG*
--- /dev/null
+/*******************************************************************/
+/* This is Enlightenment's definition macro file */
+/* This file determines keyword values and conveience macros for E */
+/* This file is sourced for every file E has to parse */
+/*******************************************************************/
+#ifndef __E16_DEFINITIONS__
+#define __E16_DEFINITIONS__
+
+/* section begin/end stuff */
+#define __BGN 999
+#define __END 1000
+
+#define __E_CFG_VERSION 1001
+
+/* booleans */
+#define __OFF 0
+#define __ON 1
+#define __NO 0
+#define __YES 1
+
+/* focus mode options */
+#define __POINTER 0
+#define __SLOPPY 1
+#define __CLICK_TO_FOCUS 2
+
+/* move and resize mode */
+#define __OPAQUE 0
+#define __LINES 1
+#define __BOX 2
+#define __SHADE 3
+#define __BOXSHADE 4
+/* for move mode only */
+#define __TRANSLUCENT 5
+/* move and resize geometry display modes */
+#define __NO_GEOMINFO 0
+#define __CENTER_GEOMINFO 1
+#define __CORNER_GEOMINFO 2
+
+
+/* positioning and direction */
+#define __LEFT 0
+#define __RIGHT 1
+#define __TOP 2
+#define __BOTTOM 3
+#define __UP 2
+#define __DOWN 3
+
+/* attributes */
+#define __FLAG_TITLE 1
+#define __FLAG_MINI_ICON 2
+#define __FLAG_FIXED_HORIZONTAL 4
+#define __FLAG_FIXED_VERTICAL 8
+#define __FLAG_FIXED 12
+
+/* fill rules for imageclasses */
+#define __STRETCH 0
+#define __TILE_H 1
+#define __TILE_V 2
+#define __TILE 3
+#define __INTEGER_TILE_H 4
+#define __INTEGER_TILE_V 8
+#define __INTEGER_TILE 12
+
+/* major sections in the config */
+#define __CONTROL 0
+#define __TCLASS 1
+#define __MENU 2
+#define __BORDER 3
+#define __BUTTON 4
+#define __DESKTOP 5
+#define __SOUND 9
+#define __ACLASS 11
+#define __ICLASS 12
+#define __MATCH_WINDOW 14
+#define __COLOR_MODIFIER 15
+#define __SLIDEOUT 16
+#define __FX 18
+#define __ICONBOX 19
+#define __EXTRAS 20
+#define __FONTS 21
+
+#define __MENU_STYLE 699
+#define __BORDER_PART 505
+
+#define __TOOLTIP_TEXT 17
+#define __TOOLTIP 17
+
+#define __NAME 100
+
+#define __FONT 203
+#define __ORIENTATION 200
+#define __JUSTIFICATION 201
+#define __DRAWING_EFFECT 204
+#define __FORGROUND_COLOR 205
+#define __BACKGROUND_COLOR 206
+#define __FONT_TO_RIGHT 0
+#define __FONT_TO_DOWN 1
+#define __FONT_TO_UP 2
+#define __FONT_TO_LEFT 3
+
+#define __EFFECT_NORMAL 0
+#define __EFFECT_SHADOW 1
+#define __EFFECT_OUTLINE 2
+
+#define __FOCUS_MODE 307
+#define __MOVE_MODE 311
+#define __RESIZE_MODE 312
+#define __GEOMINFO_MODE 1371
+#define __SLIDE_MODE 313
+#define __SLIDE_ON_CLEANUP 314
+#define __SLIDE_ON_MAP 315
+#define __SPEED_OF_MAPPING_SLIDING 316
+#define __SPEED_OF_CLEANUP_SLIDING 317
+#define __TIMEOUT_FOR_DESKTOP_BACKGROUNDS 320
+#define __RESISTANCE_TO_MOVE_A_BUTTON 321
+#define __AUTOMATICALLY_SAVE_CONFIG 324
+#define __DOCK_DIRECTION 325
+#define __SHADING_SPEED 326
+#define __TOOLTIPS 327
+#define __TOOLTIP_TIMEOUT 328
+#define __START_POSITION_OF_DOCK 330
+#define __USE_SAVEUNDERS 331
+#define __MENUS_SLIDE_OUT 332
+#define __NUMBER_OF_DESKTOPS 333
+#define __BE_PARANOID_ABOUT_SAVING_MEMORY 334
+#define __TRANSIENTS_FOLLOW_GROUP_LEADER 335
+#define __SWITCH_TO_DESKTOP_WHERE_TRANSIENT_MAPS 336
+#define __SHOW_ICONIFIED_ICONS 337
+#define __AUTORAISE 338
+#define __AUTORAISE_TIMEOUT 339
+#define __ALL_NEW_WINDOWS_GET_FOCUS 340
+#define __NEW_TRANSIENTS_GET_FOCUS 341
+#define __NEW_TRANSIENTS_GET_FOCUS_IF_GROUP_IS_FOCUSED 342
+#define __MANUAL_WINDOW_PLACEMENT 343
+#define __WARP_POINTER_ON_NEXT_FOCUS 345
+#define __EDGE_FLIP_RESISTANCE 346
+#define __SHOW_PAGERS 347
+#define __PAGER_DISPLAY_HIQ 348
+#define __PAGER_DISPLAY_SNAPSHOTS 349
+#define __ANIMATE_WINDOW_SHADING 350
+#define __MENUS_ONSCREEN 351
+#define __PREFER_USER_BACKGROUNDS 1350
+#define __ZOOM_PAGER_WINDOWS 1351
+#define __SHOW_PAGER_WINDOW_TITLE 1352
+#define __RAISE_WINDOW_ON_NEXT_FOCUS 1353
+#define __DISPLAY_WARP 1354
+#define __WARP_POINTER_AFTER_FOCUS 1355
+#define __PAGER_SCANSPEED 1356
+#define __GROUP_BORDER 1358
+#define __GROUP_KILL 1359
+#define __GROUP_MOVE 1360
+#define __GROUP_RAISE 1361
+#define __GROUP_ICONIFY 1362
+#define __GROUP_STICK 1363
+#define __GROUP_SHADE 1364
+#define __GROUP_MIRROR 1365
+#define __KDE_SUPPORT 1366
+#define __CLICKS_ALWAYS_RAISE_WINDOWS 1367
+#define __ROOT_WINDOW_TOOLTIP 1368
+#define __PAGER_BUTTONS 1369
+
+#define __DIRECTION_OF_DESKTOP_DRAG 400
+#define __WIDTH_OF_DRAGBAR 401
+#define __ORDER_OF_BUTTONS_ON_DRAGBAR 402
+#define __LENGTH_OF_DRAGBAR 403
+#define __DESKTOPS_SLIDE_IN 404
+#define __SPEED_OF_DESKTOP_SLIDE 405
+#define __HIGH_QUALITY_BACKGROUNDS 406
+#define __DESKTOP_AREA_SIZE 407
+
+#define __NORMAL 5
+#define __CLICKED 352
+#define __HILITED 353
+#define __NORMAL_ACTIVE 354
+#define __CLICKED_ACTIVE 355
+#define __HILITED_ACTIVE 356
+#define __EDGE_SCALING 357
+#define __PADDING 358
+#define __NORMAL_STICKY 359
+#define __CLICKED_STICKY 360
+#define __HILITED_STICKY 361
+#define __NORMAL_ACTIVE_STICKY 362
+#define __NORMAL_ACTIVE_CLICKED 363
+#define __NORMAL_ACTIVE_HILITED 364
+#define __CLICKED_ACTIVE_STICKY 363
+#define __HILITED_ACTIVE_STICKY 364
+#define __MODIFIER 370
+#define __FILLRULE 371
+#define __TRANSPARENT 372
+
+#define __ROTATE 373
+#define __ROTATE_90 1
+#define __ROTATE_180 2
+#define __ROTATE_270 3
+#define __FLIP 373
+#define __FLIP_HORIZONTAL 4
+#define __FLIP_90 5
+#define __FLIP_VERTICAL 6
+#define __FLIP_270 7
+
+#define __BEVEL 374
+#define __BEVEL_AMIGA 1
+#define __BEVEL_MOTIF 2
+#define __BEVEL_NEXT 3
+#define __BEVEL_DOUBLE 4
+#define __BEVEL_WIDEDOUBLE 5
+#define __BEVEL_THINPOINT 6
+#define __BEVEL_THICKPOINT 7
+
+#define __KEEP_ON_TOP 453
+#define __FLAGS 454
+#define __IS_A_REGION 455
+#define __MIN_WIDTH 456
+#define __MAX_WIDTH 457
+#define __TOPLEFT_ORIGIN 467
+#define __TOPLEFT_X_PERCENTAGE 458
+#define __TOPLEFT_X_ABSOLUTE 459
+#define __TOPLEFT_Y_PERCENTAGE 460
+#define __TOPLEFT_Y_ABSOLUTE 461
+#define __BOTTOMRIGHT_ORIGIN 462
+#define __BOTTOMRIGHT_X_PERCENTAGE 463
+#define __BOTTOMRIGHT_X_ABSOLUTE 464
+#define __BOTTOMRIGHT_Y_PERCENTAGE 465
+#define __BOTTOMRIGHT_Y_ABSOLUTE 466
+#define __MIN_HEIGHT 468
+#define __MAX_HEIGHT 469
+#define __KEEP_WHEN_SHADED 470
+#define __BORDER_SIZE_LEFT 501
+#define __BORDER_SIZE_RIGHT 502
+#define __BORDER_SIZE_TOP 503
+#define __BORDER_SIZE_BOTTOM 504
+#define __SHADE_DIRECTION 506
+#define __CHANGES_SHAPE 507
+#define __BORDER_GROUP_NAME 508
+
+#define __X_ORIGIN 528
+#define __Y_ORIGIN 529
+#define __X_ABSOLUTE 530
+#define __X_PERCENTAGE 531
+#define __Y_ABSOLUTE 532
+#define __Y_PERCENTAGE 533
+#define __X_SIZE_PERCENTAGE 534
+#define __Y_SIZE_PERCENTAGE 535
+#define __X_SIZE_ABSOLUTE 536
+#define __Y_SIZE_ABSOLUTE 537
+#define __USE_SIZE_OF_IMAGE 538
+#define __PUT_ON_DESKTOP 539
+#define __MAKE_STICKY 540
+#define __IS_INTERNAL 541
+#define __SHOW_BY_DEFAULT 542
+#define __LABEL 543
+
+#define __SOLID_COLOR 560
+#define __BACKGROUND_LAYER 561
+#define __FORGROUND_LAYER 562
+#define __USE_ON_DESKTOP 564
+#define __DESKTOP_ALL -1
+
+#define __TYPE_NORMAL 5
+#define __TYPE_GLOBAL 7
+
+/* possible actions that can be performed */
+#define __A_EXEC exec
+#define __A_CMD
+
+#define __A_NONE nop
+#define __A_EXIT exit
+#define __A_ALERT alert
+#define __A_SHOW_MENU menus show
+#define __A_HIDE_MENU menus hide
+#define __A_CLEANUP misc arrange
+#define __A_ABOUT about
+
+#define __A_MOVE wop * mo ptr
+#define __A_RESIZE wop * sz ptr
+#define __A_RAISE wop * ra
+#define __A_LOWER wop * lo
+#define __A_RESIZE_H wop * sz ptr-h
+#define __A_RESIZE_V wop * sz ptr-v
+#define __A_KILL wop * close
+#define __A_KILL_NASTY wop * kill
+#define __A_STICK wop * st
+#define __A_ICONIFY wop * ic
+#define __A_SHADE wop * sh
+#define __A_MAX_HEIGHT wop * th
+#define __A_MAX_WIDTH wop * tw
+#define __A_MAX_SIZE wop * ts
+#define __A_SET_LAYER wop * la
+#define __A_SNAPSHOT remember * all
+#define __A_ZOOM wop * zoom
+#define __A_FULLSCREEN wop * fs
+#define __A_RAISE_LOWER wop * raiselower
+#define __A_SET_BORDER wop * bo
+#define __A_MOVE_CONSTRAINED 79
+
+#define __A_ICONIFY_NG wop % ic
+#define __A_KILL_NG wop % close
+#define __A_MOVE_NG wop % mo ptr
+#define __A_RAISE_NG wop % ra
+#define __A_LOWER_NG wop % lo
+#define __A_STICK_NG wop % st
+#define __A_SHADE_NG wop % sh
+#define __A_RAISE_LOWER_NG wop % raiselower
+#define __A_SET_BORDER_NG wop % bo
+
+#define __A_SKIPFOCUS wop * skipfocus
+#define __A_SKIPTASK wop * skiptask
+#define __A_SKIPWINLIST wop * skipwinlist
+#define __A_NEVERFOCUS wop * no_wm_focus
+#define __A_SKIPLISTS wop * skiplists
+#define __A_SWAPMOVE wop * swapmove
+
+#define __A_SEND_TO_NEXT_DESK wop * desk next
+#define __A_SEND_TO_PREV_DESK wop * desk prev
+#define __A_MOVE_WIN_TO_AREA wop * area
+#define __A_MOVE_WIN_BY_AREA wop * arel
+#define __A_MOVE_WIN_TO_LINEAR_AREA 74
+#define __A_MOVE_WIN_BY_LINEAR_AREA 75
+
+#define __A_DESKTOP_NEXT desk next
+#define __A_DESKTOP_PREV desk prev
+#define __A_DESKTOP_RAISE desk raise
+#define __A_DESKTOP_LOWER desk lower
+#define __A_DESKTOP_DRAG desk drag
+#define __A_DESKTOP_INPLACE desk this
+#define __A_GOTO_DESK desk goto
+
+#define __A_AREA_SET area set
+#define __A_AREA_MOVE_BY area move
+
+#define __A_DRAG_BUTTON button mo ptr
+
+#define __A_FOCUSMODE_SET 23
+#define __A_MOVEMODE_SET 24
+#define __A_RESIZEMODE_SET 25
+#define __A_SLIDEMODE_SET 26
+#define __A_CLEANUPSLIDE_SET 27
+#define __A_MAPSLIDE_SET 28
+#define __A_SOUND_SET 29
+#define __A_BUTTONMOVE_RESIST_SET 30
+#define __A_DESKTOPBG_TIMEOUT_SET 31
+#define __A_MAPSLIDE_SPEED_SET 32
+#define __A_CLEANUPSLIDE_SPEED_SET 33
+#define __A_DRAGDIR_SET 34
+#define __A_DRAGBAR_ORDER_SET 35
+#define __A_DRAGBAR_WIDTH_SET 36
+#define __A_DRAGBAR_LENGTH_SET 37
+#define __A_DESKSLIDE_SET 38
+#define __A_DESKSLIDE_SPEED_SET 39
+#define __A_HIQUALITYBG_SET 40
+
+#define __A_PLAYSOUNDCLASS 41
+#define __A_DESKRAY 43
+#define __A_AUTOSAVE_SET 44
+#define __A_HIDESHOW_BUTTON button_show
+#define __A_SLIDEOUT slideout
+#define __A_SCROLL_WINDOWS 48
+#define __A_TOOLTIP_SET 57
+#define __A_FOCUS_NEXT focus next
+#define __A_FOCUS_PREV focus prev
+#define __A_FOCUS_SET 60
+#define __A_BACKGROUND_SET bg use
+
+#define __A_WARP_POINTER 66
+#define __A_AREA_LINEAR_SET 70
+#define __A_AREA_LINEAR_MOVE_BY 71
+#define __A_FX 73
+#define __A_SET_PAGER_HIQ 76
+#define __A_SET_PAGER_SNAP 77
+#define __A_TYPE_TEXT 80
+
+#define __A_START_GROUP gop * start
+#define __A_ADD_TO_GROUP gop * add
+#define __A_REMOVE_FROM_GROUP gop * del
+#define __A_BREAK_GROUP gop * break
+#define __A_SHOWHIDE_GROUP gop * showhide
+
+#define __A_CREATE_ICONBOX ibox new
+
+#define __MODIFIER_KEY 101
+#define __TYPE 102
+#define __ALLOW_ANY_MODIFIER_KEYS 103
+#define __ACTION 104
+#define __KEY 427
+#define __EVENT 428
+#define __ALLOW_ANY_BUTTON 930
+#define __ALLOW_ANY_KEY 931
+#define __NEXT_ACTION 105
+#define __TOOLTIP_ACTION_TEXT 107
+
+#define __NONE 0
+#define __SHIFT 900
+#define __LOCK 901
+#define __CTRL 902
+#define __ALT 903
+#define __META2 904
+#define __META3 905
+#define __WINDOWS_KEY 906
+#define __META5 907
+#define __CTRL_ALT 910
+#define __CTRL_SHIFT 911
+#define __ALT_SHIFT 912
+#define __CTRL_ALT_SHIFT 913
+#define __CTRL_META4 914
+#define __SHIFT_META4 915
+#define __CTRL_META4_SHIFT 916
+#define __CTRL_META5 917
+#define __SHIFT_META5 918
+#define __CTRL_META5_SHIFT 919
+#define __WINDOWS_SHIFT 920
+#define __WINDOWS_CTRL 921
+#define __WINDOWS_ALT 922
+
+
+#define __MOUSE_PRESS 0
+#define __MOUSE_RELEASE 1
+#define __MOUSE_ENTER 2
+#define __MOUSE_LEAVE 3
+#define __KEY_PRESS 4
+#define __KEY_RELEASE 5
+#define __DOUBLE_CLICK 6
+#define __FOCUS_IN 7
+#define __FOCUS_OUT 8
+
+#define __USE_BORDER 480
+#define __HAS_NAME 481
+#define __HAS_CLASS 482
+#define __HAS_TITLE 483
+#define __IS_IN_WIDTH_RANGE 484
+#define __IS_IN_HEIGHT_RANGE 485
+#define __IS_TRANSIENT 486
+#define __CANNOT_RESIZE_HORIZONTALLY 487
+#define __CANNOT_RESIZE_VERTICALLY 488
+#define __IS_SHAPED 489
+#define __USE_ICON 490
+#define __MAKE_WINDOW_STICKY 492
+
+#define __RED 600
+#define __GREEN 601
+#define __BLUE 602
+
+#define __SLIDE_DIRECTION 620
+
+#define __TOOLTIP_ICON 640
+#define __BUBBLE1_ICLASS 641
+#define __BUBBLE2_ICLASS 642
+#define __BUBBLE3_ICLASS 643
+#define __BUBBLE4_ICLASS 644
+#define __DISTANCE 645
+#define __TOOLTIP_HELP_ICON 646
+
+#define __BG_ICLASS 700
+#define __ITEM_ICLASS 701
+#define __SUBMENU_ICLASS 702
+#define __USE_ITEM_BACKGROUNDS 703
+#define __MAXIMUM_NUMBER_OF_COLUMNS 704
+#define __MAXIMUM_NUMBER_OF_ROWS 705
+#define __STYLE 706
+#define __MENU_ITEM 707
+#define __SUMENU 708
+#define __MENU_ACTION 709
+#define __MENU_PREBUILT 710
+#define __MENU_TITLE 711
+
+#define __CURSOR 800
+#define __BG_COLOR 801
+#define __FG_COLOR 802
+#define __XBM_FILE 803
+#define __NATIVE_ID 804
+
+#define __TRANSPARENCY 2001
+#define __SHOW_NAMES 2002
+#define __ICON_SIZE 2003
+#define __ICON_MODE 2004
+#define __SCROLLBAR_SIDE 2005
+#define __SCROLLBAR_ARROWS 2006
+#define __AUTOMATIC_RESIZE 2007
+#define __SHOW_ICON_BASE 2008
+#define __SCROLLBAR_AUTOHIDE 2009
+#define __COVER_HIDE 2010
+#define __RESIZE_ANCHOR 2011
+#define __ICONBOX_ANIMATE 2012
+#define __EXTRA_HEAD 2013
+
+#define __HORIZONTAL 0
+#define __VERTICAL 1
+#define __BAR_TOP 0
+#define __BAR_LEFT 0
+#define __BAR_BOTTOM 1
+#define __BAR_RIGHT 1
+#define __START 0
+#define __BOTH 1
+#define __FINISH 2
+#define __NEITHER 3
+
+/* Native cursor definitions */
+#define XC_NONE 999
+#define XC_x_CURSOR 0
+#define XC_ARROW 2
+#define XC_BASED_ARROW_DOWN 4
+#define XC_BASED_ARROW_UP 6
+#define XC_BOAT 8
+#define XC_BOGOSITY 10
+#define XC_BOTTOM_LEFT_CORNER 12
+#define XC_BOTTOM_RIGHT_CORNER 14
+#define XC_BOTTOM_SIDE 16
+#define XC_BOTTOM_TEE 18
+#define XC_BOX_SPIRAL 20
+#define XC_CENTER_PTR 22
+#define XC_CIRCLE 24
+#define XC_CLOCK 26
+#define XC_COFFEE_MUG 28
+#define XC_CROSS 30
+#define XC_CROSS_REVERSE 32
+#define XC_CROSSHAIR 34
+#define XC_DIAMOND_CROSS 36
+#define XC_DOT 38
+#define XC_DOTBOX 40
+#define XC_DOUBLE_ARROW 42
+#define XC_DRAFT_LARGE 44
+#define XC_DRAFT_SMALL 46
+#define XC_DRAPED_BOX 48
+#define XC_EXCHANGE 50
+#define XC_FLEUR 52
+#define XC_GOBBLER 54
+#define XC_GUMBY 56
+#define XC_HAND1 58
+#define XC_HAND2 60
+#define XC_HEART 62
+#define XC_ICON 64
+#define XC_IRON_CROSS 66
+#define XC_LEFT_PTR 68
+#define XC_LEFT_SIDE 70
+#define XC_LEFT_TEE 72
+#define XC_LEFTBUTTON 74
+#define XC_LL_ANGLE 76
+#define XC_LR_ANGLE 78
+#define XC_MAN 80
+#define XC_MIDDLEBUTTON 82
+#define XC_MOUSE 84
+#define XC_PENCIL 86
+#define XC_PIRATE 88
+#define XC_PLUS 90
+#define XC_QUESTION_ARROW 92
+#define XC_RIGHT_PTR 94
+#define XC_RIGHT_SIDE 96
+#define XC_RIGHT_TEE 98
+#define XC_RIGHTBUTTON 100
+#define XC_RTL_LOGO 102
+#define XC_SAILBOAT 104
+#define XC_SB_DOWN_ARROW 106
+#define XC_SB_H_DOUBLE_ARROW 108
+#define XC_SB_LEFT_ARROW 110
+#define XC_SB_RIGHT_ARROW 112
+#define XC_SB_UP_ARROW 114
+#define XC_SB_V_DOUBLE_ARROW 116
+#define XC_SHUTTLE 118
+#define XC_SIZING 120
+#define XC_SPIDER 122
+#define XC_SPRAYCAN 124
+#define XC_STAR 126
+#define XC_TARGET 128
+#define XC_TCROSS 130
+#define XC_TOP_LEFT_ARROW 132
+#define XC_TOP_LEFT_CORNER 134
+#define XC_TOP_RIGHT_CORNER 136
+#define XC_TOP_SIDE 138
+#define XC_TOP_TEE 140
+#define XC_TREK 142
+#define XC_UL_ANGLE 144
+#define XC_UMBRELLA 146
+#define XC_UR_ANGLE 148
+#define XC_WATCH 150
+#define XC_XTERM 152
+
+/*******************************************************************/
+/* Convenience macros to make configuring E SO much simpler */
+/*******************************************************************/
+
+/*********** Window match convenience macros ***********************/
+#define USE_BORDER_FOR_CLIENT_WITH_TITLE(title, border) \
+__MATCH_WINDOW __BGN;\
+ __NAME border"_MATCH";\
+ __USE_BORDER border;\
+ __HAS_TITLE title;\
+__END
+
+#define USE_BORDER_FOR_CLIENT_WITH_NAME(name, border) \
+__MATCH_WINDOW __BGN;\
+ __NAME border"_MATCH";\
+ __USE_BORDER border;\
+ __HAS_NAME name;\
+__END
+
+#define USE_BORDER_FOR_CLIENT_WITH_CLASS(class, border) \
+__MATCH_WINDOW __BGN;\
+ __NAME border"_MATCH";\
+ __USE_BORDER border;\
+ __HAS_CLASS class;\
+__END
+
+#define USE_BORDER_FOR_TRANSIENT_CLIENT(border) \
+__MATCH_WINDOW __BGN;\
+ __NAME border"_MATCH";\
+ __USE_BORDER border;\
+ __IS_TRANSIENT __ON;\
+ __END
+
+#define USE_BORDER_FOR_UNRESIZABLE_CLIENT(border) \
+__MATCH_WINDOW __BGN;\
+ __NAME border"_MATCH";\
+ __USE_BORDER border;\
+ __CANNOT_RESIZE_HORIZONTALLY __ON;\
+ __CANNOT_RESIZE_VERTICALLY __ON;\
+__END
+
+#define USE_BORDER_FOR_SHAPED_CLIENT(border) \
+__MATCH_WINDOW __BGN;\
+ __NAME border"_MATCH";\
+ __USE_BORDER border;\
+ __IS_SHAPED __ON;\
+__END
+
+#define USE_ICON_IMAGECLASS_FOR_CLIENT_TITLE(title, iclass) \
+__MATCH_WINDOW __BGN;\
+ __NAME iclass"_MATCH";\
+ __USE_ICON iclass;\
+ __HAS_TITLE title;\
+__END
+
+#define USE_ICON_IMAGECLASS_FOR_CLIENT_NAME(name, iclass) \
+__MATCH_WINDOW __BGN;\
+ __NAME iclass"_MATCH";\
+ __USE_ICON iclass;\
+ __HAS_NAME name;\
+__END
+
+#define USE_ICON_IMAGECLASS_FOR_CLIENT_CLASS(class, iclass) \
+__MATCH_WINDOW __BGN;\
+ __NAME iclass"_MATCH";\
+ __USE_ICON iclass;\
+ __HAS_CLASS class;\
+__END
+
+#define USE_ICON_IMAGE_FOR_CLIENT_TITLE(title, image) \
+__ICLASS __BGN;\
+ __NAME image"_ICLASS";\
+ __NORMAL image;\
+__END;\
+__MATCH_WINDOW __BGN;\
+ __NAME image"_MATCH";\
+ __USE_ICON image"_ICLASS";\
+ __HAS_TITLE title;\
+__END
+
+#define USE_ICON_IMAGE_FOR_CLIENT_NAME(name, image) \
+__ICLASS __BGN;\
+ __NAME image"_ICLASS";\
+ __NORMAL image;\
+__END;\
+__MATCH_WINDOW __BGN;\
+ __NAME image"_MATCH";\
+ __USE_ICON image"_ICLASS";\
+ __HAS_NAME name;\
+__END
+
+#define USE_ICON_IMAGE_FOR_CLIENT_CLASS(class, image) \
+__ICLASS __BGN;\
+ __NAME image"_ICLASS";\
+ __NORMAL image;\
+__END;\
+__MATCH_WINDOW __BGN;\
+ __NAME image"_MATCH";\
+ __USE_ICON image"_ICLASS";\
+ __HAS_CLASS class;\
+__END
+
+#define USE_ICON_IMAGES_FOR_CLIENT_TITLE(title, image, image2, image3) \
+__ICLASS __BGN;\
+ __NAME image"_ICLASS";\
+ __NORMAL image;\
+ __HILITED image2;\
+ __CLICKED image3;\
+__END;\
+__MATCH_WINDOW __BGN;\
+ __NAME image"_MATCH";\
+ __USE_ICON image"_ICLASS";\
+ __HAS_TITLE title;\
+__END
+
+#define USE_ICON_IMAGES_FOR_CLIENT_NAME(name, image, image2, image3) \
+__ICLASS __BGN;\
+ __NAME image"_ICLASS";\
+ __NORMAL image;\
+ __HILITED image2;\
+ __CLICKED image3;\
+__END;\
+ __MATCH_WINDOW __BGN;\
+ __NAME image"_MATCH";\
+ __USE_ICON image"_ICLASS";\
+ __HAS_NAME name;\
+__END
+
+#define MAKE_WINDOW_STICKY_BY_TITLE(title) \
+__MATCH_WINDOW __BGN;\
+ __NAME title_"STICKYTITLE";\
+ __MAKE_WINDOW_STICKY 1;\
+ __HAS_TITLE title;\
+__END
+
+#define MAKE_WINDOW_STICKY_BY_CLASS(class) \
+__MATCH_WINDOW __BGN;\
+ __NAME class"_STICKYCLASS";\
+ __MAKE_WINDOW_STICKY 1;\
+ __HAS_CLASS class;\
+__END
+
+#define MAKE_WINDOW_STICKY_BY_NAME(name) \
+__MATCH_WINDOW __BGN;\
+ __NAME name"_STICKYNAME";\
+ __MAKE_WINDOW_STICKY 1;\
+ __HAS_NAME name;\
+__END
+
+#define WINDOW_ON_DESK_BY_NAME(name,desk) \
+__MATCH_WINDOW __BGN;\
+ __NAME name"_DESKNAME";\
+ __DESKTOP desk;\
+ __HAS_NAME name;\
+__END
+
+#define WINDOW_ON_DESK_BY_TITLE(title,desk) \
+__MATCH_WINDOW __BGN;\
+ __NAME title"_DESKTITLE";\
+ __DESKTOP desk;\
+ __HAS_TITLE title;\
+__END
+
+#define WINDOW_ON_DESK_BY_CLASS(class,desk) \
+__MATCH_WINDOW __BGN;\
+ __NAME class"_DESKCLASS";\
+ __DESKTOP desk;\
+ __HAS_TITLE class;\
+__END
+
+/*********** Menu creation macros **********************************/
+#define BEGIN_NEW_DIRSCAN_MENU(name, style, directory) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "dirscan" directory
+
+#define BEGIN_NEW_GNOME_MENU(name, style, directory) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "gnome" directory
+
+#define BEGIN_NEW_BORDERS_MENU(name, style) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "borders"
+
+#define BEGIN_NEW_THEMES_MENU(name, style) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "themes"
+
+#define BEGIN_NEW_WINDOWLIST_MENU(name, style) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "windowlist"
+
+#define BEGIN_NEW_DESKTOPWINDOWLIST_MENU(name, style) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "desktopwindowlist"
+
+#define ADD_MENU_TITLE(name) \
+ __MENU_TITLE name
+
+#define BEGIN_NEW_FILE_MENU(name, style, thefile) \
+__MENU __BGN;\
+ __MENU_PREBUILT name style "file" thefile
+
+#define NORMAL_MENU_STYLE_VERTICAL(name, border, tclass, bg_iclass, item_iclass, submenu_iclass, max_items) \
+__MENU_STYLE __BGN;\
+ __NAME name;\
+ __BORDER border;\
+ __TCLASS tclass;\
+ __BG_ICLASS bg_iclass;\
+ __ITEM_ICLASS item_iclass;\
+ __SUBMENU_ICLASS submenu_iclass;\
+ __USE_ITEM_BACKGROUNDS __OFF;\
+ __MAXIMUM_NUMBER_OF_ROWS max_items;\
+__END
+
+#define NORMAL_MENU_STYLE_HORIZONTAL(name, border, tclass, bg_iclass, item_iclass, submenu_iclass, max_items) \
+__MENU_STYLE __BGN;\
+ __NAME name;\
+ __BORDER border;\
+ __TCLASS tclass;\
+ __BG_ICLASS bg_iclass;\
+ __ITEM_ICLASS item_iclass;\
+ __SUBMENU_ICLASS submenu_iclass;\
+ __USE_ITEM_BACKGROUNDS __OFF;\
+ __MAXIMUM_NUMBER_OF_COLUMNS max_items;\
+__END
+
+#define NEXTSTEP_MENU_STYLE_VERTICAL(name, border, tclass, item_iclass, submenu_iclass, max_items) \
+__MENU_STYLE __BGN;\
+ __NAME name;\
+ __BORDER border;\
+ __TCLASS tclass;\
+ __ITEM_ICLASS item_iclass;\
+ __SUBMENU_ICLASS submenu_iclass;\
+ __USE_ITEM_BACKGROUNDS __ON;\
+ __MAXIMUM_NUMBER_OF_ROWS max_items;\
+__END
+
+#define NEXTSTEP_MENU_STYLE_HORIZONTAL(name, border, tclass, item_iclass, submenu_iclass, max_items) \
+__MENU_STYLE __BGN;\
+ __NAME name;\
+ __BORDER border;\
+ __TCLASS tclass;\
+ __ITEM_ICLASS item_iclass;\
+ __SUBMENU_ICLASS submenu_iclass;\
+ __USE_ITEM_BACKGROUNDS __ON;\
+ __MAXIMUM_NUMBER_OF_COLUMNS max_items;\
+__END
+
+#define BEGIN_NEW_MENU(name, style) \
+__MENU __BGN;\
+ __NAME name;\
+ __STYLE style
+
+#define END_MENU \
+__END
+
+#define ADD_MENU_ITEM(text, icon_iclass, action, parameters) \
+ __MENU_ITEM icon_iclass text;\
+ __MENU_ACTION action parameters
+
+#define ADD_MENU_TEXT_ITEM(text, action, parameters) \
+ __MENU_ITEM "NULL" text;\
+ __MENU_ACTION action parameters
+
+#define ADD_MENU_ICON_ITEM(icon_iclass, action, parameters) \
+ __MENU_ITEM icon_iclass;\
+ __MENU_ACTION action parameters
+
+#define ADD_MENU_SUBMENU_ITEM(text, icon_iclass, submenu_name) \
+ __SUMENU submenu_name icon_iclass text
+
+#define ADD_MENU_SUBMENU_TEXT_ITEM(text, submenu_name) \
+ __SUMENU submenu_name "NULL" text
+
+#define ADD_MENU_SUBMENU_ICON_ITEM(icon_iclass, submenu_name) \
+ __SUMENU submenu_name icon_iclass
+
+/*********** Tooltip creation macros *******************************/
+#define DEFINE_TOOLTIP(name, main_iclass, cloud1_iclass, cloud2_iclass, cloud3_iclass, cloud4_iclass, tclass, distance) \
+__TOOLTIP __BGN;\
+ __NAME name;\
+ __ICLASS main_iclass;\
+ __BUBBLE1_ICLASS cloud1_iclass;\
+ __BUBBLE2_ICLASS cloud2_iclass;\
+ __BUBBLE3_ICLASS cloud3_iclass;\
+ __BUBBLE4_ICLASS cloud4_iclass;\
+ __TOOLTIP_HELP_ICON "DO_HELP_BUTTON";\
+ __TCLASS tclass;\
+ __DISTANCE distance;\
+__END
+
+#define DEFINE_TOOLTIP_WITH_LOGO(name, main_iclass, cloud1_iclass, cloud2_iclass, cloud3_iclass, cloud4_iclass, tclass, distance, logo) \
+__TOOLTIP __BGN;\
+ __NAME name;\
+ __ICLASS main_iclass;\
+ __BUBBLE1_ICLASS cloud1_iclass;\
+ __BUBBLE2_ICLASS cloud2_iclass;\
+ __BUBBLE3_ICLASS cloud3_iclass;\
+ __BUBBLE4_ICLASS cloud4_iclass;\
+ __TOOLTIP_HELP_ICON logo;\
+ __TCLASS tclass;\
+ __DISTANCE distance;\
+__END
+
+#define DEFINE_TOOLTIP_SIMPLE(name, iclass, tclass, distance) \
+__TOOLTIP __BGN;\
+ __NAME name;\
+ __ICLASS iclass;\
+ __TCLASS tclass;\
+ __DISTANCE distance;\
+__END
+
+/*********** Sound creation macros *******************************/
+#define BEGIN_SOUND \
+__SOUND __BGN
+
+#define END_SOUND \
+__END
+
+/*********** Sound creation macros *******************************/
+#define BEGIN_SLIDEOUT(name, direction) \
+__SLIDEOUT __BGN;\
+ __NAME name;\
+ __SLIDE_DIRECTION direction
+
+#define ADD_BUTTON_TO_SLIDEOUT(name) \
+ __BUTTON name
+
+#define END_SLIDEOUT \
+__END
+
+/*********** Desktop BG creation macros ***************************/
+#define BEGIN_BACKGROUND(name) \
+__DESKTOP __BGN;\
+ __NAME name
+
+#define END_BACKGROUND \
+__END
+
+#define SET_SOLID(color) \
+ __SOLID_COLOR color
+
+#define ON_DESKTOP(num) \
+ __USE_ON_DESKTOP num
+
+#define DEFAULT_BACKGROUND \
+ __USE_ON_DESKTOP __DESKTOP_ALL
+
+#define ADD_BACKGROUND_TILED(file)\
+ __BACKGROUND_LAYER file 1 1 0 0 0 0
+
+#define ADD_BACKGROUND_SCALED(file)\
+ __BACKGROUND_LAYER file 0 0 0 0 1024 1024
+
+#define ADD_BACKGROUND_TILED_SCALED_VERTICALLY(file)\
+ __BACKGROUND_LAYER file 1 0 0 0 0 1024
+
+#define ADD_BACKGROUND_TILED_SCALED_HORIZONTALLY(file)\
+ __BACKGROUND_LAYER file 1 0 0 0 1024 0
+
+#define ADD_BACKGROUND_CENTERED(file)\
+ __BACKGROUND_LAYER file 0 1 512 512 0 0
+
+#define ADD_BACKGROUND_TILED_CENTER(file)\
+ __BACKGROUND_LAYER file 1 1 512 512 0 0
+
+#define ADD_BACKGROUND_SCALED_RETAIN_ASPECT(file)\
+ __BACKGROUND_LAYER file 0 1 512 512 1024 1024
+
+#define ADD_BACKGROUND_TILED_SCALED_RETAIN_ASPECT(file)\
+ __BACKGROUND_LAYER file 1 1 512 512 1024 1024
+
+#define ADD_OVERLAY_IMAGE_CENTERED(file) \
+ __FORGROUND_LAYER file 1 512 512 0 0
+
+#define ADD_OVERLAY_IMAGE_TOP_LEFT(file) \
+ __FORGROUND_LAYER file 1 0 0 0 0
+
+#define ADD_OVERLAY_IMAGE_TOP_RIGHT(file) \
+ __FORGROUND_LAYER file 1 1024 0 0 0
+
+#define ADD_OVERLAY_IMAGE_BOTTOM_LEFT(file) \
+ __FORGROUND_LAYER file 1 0 1024 0 0
+
+#define ADD_OVERLAY_IMAGE_BOTTOM_RIGHT(file) \
+ __FORGROUND_LAYER file 1 1024 1024 0 0
+
+#define ADD_OVERLAY_IMAGE_BOTTOM_MIDDLE(file) \
+ __FORGROUND_LAYER file 1 512 1024 0 0
+
+#define ADD_OVERLAY_IMAGE_TOP_MIDDLE(file) \
+ __FORGROUND_LAYER file 1 512 0 0 0
+
+#define ADD_OVERLAY_IMAGE_LEFT_MIDDLE(file) \
+ __FORGROUND_LAYER file 1 0 512 0 0
+
+#define ADD_OVERLAY_IMAGE_RIGHT_MIDDLE(file) \
+ __FORGROUND_LAYER file 1 1024 512 0 0
+
+#define ADD_OVERLAY_IMAGE_SCALED(file) \
+ __FORGROUND_LAYER file 0 0 0 1024 1024
+
+#define ADD_OVERLAY_IMAGE_ASPECT(file) \
+ __FORGROUND_LAYER file 1 512 512 1024 1024
+
+#define ADD_BACKGROUND_SCALED_RETAIN_ASPECT_ALIGN_RIGHT(file)\
+ __BACKGROUND_LAYER file 0 1 1024 512 0 1024
+
+#define ADD_BACKGROUND_SCALED_RETAIN_ASPECT_ALIGN_LEFT(file)\
+ __BACKGROUND_LAYER file 0 1 0 512 0 1024
+
+#define ADD_BACKGROUND_SCALED_RETAIN_ASPECT_ALIGN_TOP(file)\
+ __BACKGROUND_LAYER file 0 1 512 0 1024 0
+
+#define ADD_BACKGROUND_SCALED_RETAIN_ASPECT_ALIGN_BOTTOM(file)\
+ __BACKGROUND_LAYER file 0 1 512 1024 1024 0
+
+/*********** Directory definition macros **************************/
+#define E_SCRIPTS_DIR ENLIGHTENMENT_ROOT/scripts/
+
+#endif /* __E16_DEFINITIONS__ */
--- /dev/null
+"Desktop Operations" "ROOT"
+"Backgrounds" NULL menu BACKGROUNDS_MENU
+"Cleanup Desktop" NULL "desk arrange"
+"Goto Next Desktop" NULL "desk next"
+"Goto Previous Desktop" NULL "desk prev"
+"Create New Iconbox" NULL "ibox new"
+"Create Systray" NULL "ibox new _ST_"
+"Show Magnifier" NULL mag
--- /dev/null
+# Action/Command database for e16keyedit.
+#
+# "<Action description>", <editable>, "<command>"
+#
+# If the command is omitted/invalid the action will be unavailable.
+#
+"Run command", 1, "exec "
+
+"Restart Enlightenment", 0, "restart"
+"Exit Enlightenment", 0, "exit"
+
+"Goto Next Desktop", 0, "desk next"
+"Goto Previous Deskop", 0, "desk prev"
+"Goto Desktop", 1, "desk goto "
+"Raise Desktop", 0, "desk raise"
+"Lower Desktop", 0, "desk lower"
+"Reset Desktop In Place", 0, "desk this"
+
+"Toggle Deskrays", 0, NULL
+
+"Cleanup Windows", 0, "desk arrange size"
+
+"Scroll Windows to left", 0, NULL
+"Scroll Windows to right", 0, NULL
+"Scroll Windows up", 0, NULL
+"Scroll Windows down", 0, NULL
+"Scroll Windows by [X Y] pixels", 1, NULL
+
+"Move mouse pointer to next screen", 0, "warp screen"
+
+"Move mouse pointer to left", 0, "warp rel -1 0"
+"Move mouse pointer to right", 0, "warp rel 1 0"
+"Move mouse pointer up", 0, "warp rel 0 -1"
+"Move mouse pointer down", 0, "warp rel 0 1"
+"Move mouse pointer by [X Y]", 1, "warp rel "
+
+"Goto Desktop area [X Y]", 1, "area goto"
+"Move to Desktop area on the left", 0, "area move -1 0"
+"Move to Desktop area on the right", 0, "area move 1 0"
+"Move to Desktop area above", 0, "area move 0 -1"
+"Move to Desktop area below", 0, "area move 0 1"
+
+"Raise Window", 0, "wop * raise"
+"Lower Window", 0, "wop * lower"
+"Close Window", 0, "wop * close"
+"Annihilate Window", 0, "wop * kill"
+"Stick / Unstick Window", 0, "wop * stick"
+"Iconify Window", 0, "wop * iconify"
+"Shade / Unshade Window", 0, "wop * shade"
+"Maximise Height of Window", 0, "wop * th conservative"
+"Maximise Height of Window to available space", 0, "wop * th available"
+"Maximise Height of Window to whole screen", 0, "wop * th"
+"Maximise Width of Window", 0, "wop * tw conservative"
+"Maximise Width of Window to available space", 0, "wop * tw available"
+"Maximise Width of Window to whole screen", 0, "wop * tw"
+"Maximise Size of Window", 0, "wop * ts conservative"
+"Maximise Size of Window to available space", 0, "wop * ts available"
+"Maximise Size of Window to whole screen", 0, "wop * ts"
+"Toggle Window fullscreen state", 0, "wop * fullscreen"
+"Toggle Window zoom state", 0, "wop * zoom"
+"Send window to next desktop", 0, "wop * desk next"
+"Send window to previous desktop", 0, "wop * desk prev"
+"Switch focus to next window", 0, "focus next"
+"Switch focus to previous window", 0, "focus prev"
+"Glue / Unglue Window to Desktop screen", 0, "wop * no_user_move"
+"Set Window layer to On Top", 0, "wop * layer 20"
+"Set Window layer to Above", 0, "wop * layer 6"
+"Set Window layer to Normal", 0, "wop * layer 4"
+"Set Window layer to Below", 0, "wop * layer 2"
+"Set Window layer", 1, "wop * layer "
+"Move Window to area on left", 0, "wop * area move -1 0"
+"Move Window to area on right", 0, "wop * area move 1 0"
+"Move Window to area above", 0, "wop * area move 0 -1"
+"Move Window to area below", 0, "wop * area move 0 1"
+"Move Window by area [X Y]", 1, "wop * area move "
+"Move Window to area [X Y]", 1, "wop * area "
+"Move Window using keyboard", 0, "wop * move kbd"
+"Resize Window using keyboard", 0, "wop * size kbd"
+
+"Set Window border style to the Default", 0, "wop * border DEFAULT"
+"Set Window border style to the Borderless", 0, "wop * border BORDERLESS"
+
+"Forget everything about Window", 0, "wop * snap none"
+"Remember all Window settings", 0, "wop * snap all"
+"Remember Window Border", 0, "wop * snap border"
+"Remember Window Desktop", 0, "wop * snap desktop"
+"Remember Window Desktop Area", 0, "wop * snap area"
+"Remember Window Size", 0, "wop * snap size"
+"Remember Window Location", 0, "wop * snap location"
+"Remember Window Layer", 0, "wop * snap layer"
+"Remember Window Stickyness", 0, "wop * snap sticky"
+"Remember Window Shadedness", 0, "wop * snap shade"
+
+"Show Root Menu", 0, "menus show enlightenment.menu"
+"Show Winops Menu", 0, "menus show winops.menu"
+"Show Named Menu", 1, "menus show "
+
+"Show configuration dialog", 0, "cfg"
+"Show configuration dialog", 1, "cfg "
+
+"Goto Linear Area", 0, NULL
+"Previous Linear Area", 0, NULL
+"Next Linear Area", 0, NULL
+
+# The previously "unchangable" keybindings
+"Toggle all Buttons on/off", 0, "button_show all"
+"Toggle selected Buttons on/off", 1, "button_show buttons "
+"Toggle theme/user Buttons on/off", 0, "button_show"
--- /dev/null
+"Enlightenment" "ROOT"
+"User Menus" NULL menu file.menu
+"Settings" NULL cfg
+"Desktop" NULL menu desktop.menu
+"Themes" NULL menu themes
+"Maintenance" NULL menu maintenance.menu
+"Help" NULL exec "edox $EROOT/E-docs"
+"About Enlightenment" NULL about
+"About this theme" NULL exec "edox $ETHEME/ABOUT"
+"Restart" NULL "exit restart"
+"Log Out" NULL "exit logout"
--- /dev/null
+/* Pango font example */
+#include <definitions>
+__E_CFG_VERSION 1
+__FONTS __BGN
+
+font-default "pango:sans bold 8"
+
+font-border "pango:sans bold 8"
+font-border-italic "pango:sans italic 8"
+font-border-small "pango:sans 6"
+
+font-coords "pango:sans bold 8"
+
+font-dialog "pango:sans 8"
+font-dialog-hilite "pango:sans bold 8"
+font-dialog-italic "pango:sans italic 8"
+
+font-epplet "pango:sans 6"
+font-epplet-small "pango:sans 6"
+font-epplet-medium "pango:sans 8"
+font-epplet-large "pango:sans 10"
+
+font-focus "pango:sans bold 8"
+
+font-iconbox "pango:sans bold 8"
+
+font-init "pango:sans bold 9"
+
+font-menu "pango:sans 8"
+
+font-pager "pango:sans bold 8"
+
+font-tooltip "pango:sans bold 8"
+
+__END
--- /dev/null
+/* Xft font example */
+#include <definitions>
+__E_CFG_VERSION 1
+__FONTS __BGN
+
+font-default "xft:sans-8:bold"
+
+font-border "xft:sans-8:bold"
+font-border-italic "xft:sans-8:italic"
+font-border-small "xft:sans-6"
+
+font-coords "xft:sans-8:bold"
+
+font-dialog "xft:sans-8"
+font-dialog-hilite "xft:sans-8:bold"
+font-dialog-italic "xft:sans-8:italic"
+
+font-epplet "xft:sans-6"
+font-epplet-small "xft:sans-6"
+font-epplet-medium "xft:sans-8"
+font-epplet-large "xft:sans-10"
+
+font-focus "xft:sans-8:bold"
+
+font-iconbox "xft:sans-8:bold"
+
+font-init "xft:sans-9:bold"
+
+font-menu "xft:sans-8"
+
+font-pager "xft:sans-8:bold"
+
+font-tooltip "xft:sans-8:bold"
+
+__END
--- /dev/null
+"Maintenance" "ROOT"
+"Purge config file cache" NULL exec "sh $EROOT/scripts/e_cache_clean config"
+"Purge pager background cache" NULL exec "sh $EROOT/scripts/e_cache_clean pager"
+"Purge background selector cache" NULL exec "sh $EROOT/scripts/e_cache_clean bgsel"
+"Purge all caches" NULL exec "sh $EROOT/scripts/e_cache_clean all"
+"Query config file cache usage" NULL exec "sh $EROOT/scripts/e_cache_query config"
+"Query pager background cache usage" NULL exec "sh $EROOT/scripts/e_cache_query pager"
+"Query background selector cache usage" NULL exec "sh $EROOT/scripts/e_cache_query bgsel"
+"Query all cache usage" NULL exec "sh $EROOT/scripts/e_cache_query all"
+"Regenerate Menus" NULL exec "perl $EROOT/scripts/e_gen_menu"
--- /dev/null
+# Default window match rules
+
+# Window match definition line:
+# <Match type> <Match value> <Operation type> <Operation arguments>
+#
+# <Match type>:
+# Title Match WM_NAME property
+# Name Match name part of WM_CLASS property
+# Class Match class part of WM_CLASS property
+# Size Match window size
+# Width Match window width
+# Height Match window height
+# Prop Match window "property"
+#
+# <Match value>:
+# Title, Name, Class: String, may contain wildcards(*)
+# Size: {>|<}<width>x<height>
+# Width, Height: [!]<min>-<max>
+# Prop: [!]{Transient|Shaped|Fixedsize|FixedWidth|FixedHeight}
+#
+# <Operation type>:
+# Border: Use specified border
+# Icon: Use specified icon
+# Winop: Perform window operation(s)
+#
+# <Operation arguments>:
+# Border: Border name
+# Icon: Icon file name
+# Winop: Window operation(s) (as in eesh wop <id> <operation>)
+# Multiple may be given, e.g. "stick on:layer 5"
+#
+#
+# Default borders
+Prop Transient Border TRANSIENT
+Prop Shaped Border SHAPED
+Prop FixedSize Border FIXED_SIZE
+Class Enlightenment_IconBox Border ICONBOX
+Class Enlightenment_Dialog Border DIALOG
+Class Enlightenment_Pager Border PAGER
+
+# Default icons
+Class Eterm Icon pix/mon.png
+Class XTerm Icon pix/mon.png
+Class GnomeTerminal Icon pix/mon.png
+Class xmms Icon pix/note.png
+Class Mozilla Icon pix/spider.png
+Class Gimp Icon pix/apple.png
+Class Enlightenment_Dialog Icon pix/pumpkin.png
+Class Xawtv Icon pix/tv2.png
+Class Enlightenment_Pager Icon pix/tv2.png
+
+# Misc.
+Name *screensaver Winop fade off:opacity 100:shadow off
+Class Kicker Winop shadow off
+
+# Specific app hacks - May get fixed, may break stuff in old versions
+Name Gecko Winop no_app_move
+Name gecko Winop no_app_move
+#Class Eterm Winop opacity 0
--- /dev/null
+#include <definitions>
+
+__E_CFG_VERSION 0
+
+/* recursively scan $HOME/.e16/backgrounds and build menu if images
+ * are there */
+BEGIN_NEW_DIRSCAN_MENU("BACKGROUNDS_MENU", "ROOT_IMAGE", ECONFDIR"/backgrounds")
+ADD_MENU_TITLE("Backgrounds")
+END_MENU
--- /dev/null
+epixdir = $(pkgdatadir)/config/pix
+
+epix_DATA = wait1.png wait2.png wait3.png wait4.png \
+ wait5.png wait6.png wait7.png wait8.png \
+ wait9.png wait10.png wait11.png wait12.png \
+ pager.png moveres.png focus.png fx.png tips.png \
+ sound.png place.png raise.png about.png desktops.png \
+ areas.png bg.png key_ctrl.png key_lock.png key_mod1.png \
+ key_mod2.png key_mod3.png key_mod4.png key_mod5.png \
+ key_shift.png mouse_0.png mouse_1.png mouse_2.png \
+ mouse_3.png mouse_4.png mouse_5.png mouse_any.png \
+ key_blank.png snapshots.png \
+ apple.png calc.png clock.png easter.png mon.png note.png \
+ pumpkin.png spider.png tv2.png world.png \
+ elogo48.png
+
+EXTRA_DIST = $(epix_DATA)
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = config/pix
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(epixdir)"
+epixDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(epix_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+epixdir = $(pkgdatadir)/config/pix
+epix_DATA = wait1.png wait2.png wait3.png wait4.png \
+ wait5.png wait6.png wait7.png wait8.png \
+ wait9.png wait10.png wait11.png wait12.png \
+ pager.png moveres.png focus.png fx.png tips.png \
+ sound.png place.png raise.png about.png desktops.png \
+ areas.png bg.png key_ctrl.png key_lock.png key_mod1.png \
+ key_mod2.png key_mod3.png key_mod4.png key_mod5.png \
+ key_shift.png mouse_0.png mouse_1.png mouse_2.png \
+ mouse_3.png mouse_4.png mouse_5.png mouse_any.png \
+ key_blank.png snapshots.png \
+ apple.png calc.png clock.png easter.png mon.png note.png \
+ pumpkin.png spider.png tv2.png world.png \
+ elogo48.png
+
+EXTRA_DIST = $(epix_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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign config/pix/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign config/pix/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
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-epixDATA: $(epix_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(epixdir)" || $(MKDIR_P) "$(DESTDIR)$(epixdir)"
+ @list='$(epix_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(epixDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(epixdir)/$$f'"; \
+ $(epixDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(epixdir)/$$f"; \
+ done
+
+uninstall-epixDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(epix_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(epixdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(epixdir)/$$f"; \
+ done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(epixdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-epixDATA
+
+install-dvi: install-dvi-am
+
+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
+
+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-epixDATA
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ 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-epixDATA 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 \
+ uninstall uninstall-am uninstall-epixDATA
+
+# 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:
--- /dev/null
+"Settings" "ROOT"
+"Settings" NULL cfg
+"Desktop" NULL menu desktop.menu
+"Themes" NULL menu themes
+"Maintenance" NULL menu maintenance.menu
+"Help" NULL exec "edox $EROOT/E-docs"
+"About Enlightenment" NULL about
+"About this theme" NULL exec "edox $ETHEME/ABOUT"
+"Restart" NULL "exit restart"
+"Log Out" NULL "exit logout"
--- /dev/null
+#define _(x) x
+
+const char *txt[] = {
+/* actionclasses.cfg */
+_("Click and drag to move desktop\n(on any desktop but desktop 0)"),
+_("Switch Desktops"),
+_("Go to the next desktop."),
+_("Switch Desktops"),
+_("Go to the previous desktop."),
+_("Move"),
+_("Move this window."),
+_("Shade/Unshade this window."),
+_("Show the Window Options menu."),
+_("Shade/Unshade this window."),
+_("Show/Hide group borders."),
+_("Start a group."),
+_("Add to current group."),
+_("Break this window's group."),
+_("Shade."),
+_("Unshade."),
+_("Resize"),
+_("Resize this window."),
+_("Move this window."),
+_("Resize Horizontally"),
+_("Resize this window horizontally."),
+_("Move this window."),
+_("Resize Vertically"),
+_("Resize this window vertically."),
+_("Move this window."),
+_("Close"),
+_("Close this window."),
+_("Forcibly destroy this window."),
+_("Maximize Height"),
+_("Toggle between maximum screen height and normal height."),
+_("Maximize Width"),
+_("Toggle between maximum screen width and normal width."),
+_("Maximize"),
+_("Toggle between maximum screen size and normal size."),
+_("Toggle between maximum screen width and normal width."),
+_("Toggle between maximum screen height and normal height."),
+_("Send To Another Desktop"),
+_("Send this Window to the next desktop."),
+_("Send To Another Desktop"),
+_("Send this Window to the previous desktop."),
+_("Snapshot"),
+_("This button does nothing interesting."),
+_("Shade/Unshade"),
+_("Shade/Unshade this window."),
+_("Window Options"),
+_("Show the Window Options menu."),
+_("Iconify"),
+_("Iconify (Minimize) this window."),
+_("Show the Window Options menu."),
+_("More Buttons"),
+_("Show more buttons."),
+_("Raise"),
+_("Raise this window to the top."),
+_("Lower"),
+_("Lower this window."),
+_("Stick/Unstick"),
+_("Toggle the Omnipresent (visible on all Desktops) state of this window."),
+/* bindings.cfg */
+_("Clicking your mouse on the desktop will perform\nthe following actions"),
+_("Display User Menus"),
+_("Display Enlightenment Menu"),
+_("Display Settings Menu"),
+_("Display Enlightenment Menu"),
+_("Display Task List Menu"),
+_("Display Desktop Menu"),
+_("Display Group Menu"),
+_("Display Settings Menu"),
+_("Go Back a Desktop"),
+_("Go Forward a Desktop"),
+/* fonts.pango.cfg */
+/* fonts.xft.cfg */
+/* matches.cfg */
+/* menus.cfg */
+_("Backgrounds"),
+/* desktop.menu */
+_("Desktop Operations"),
+_("Backgrounds"),
+_("Cleanup Desktop"),
+_("Goto Next Desktop"),
+_("Goto Previous Desktop"),
+_("Create New Iconbox"),
+_("Create Systray"),
+_("Show Magnifier"),
+/* enlightenment.menu */
+_("Enlightenment"),
+_("User Menus"),
+_("Settings"),
+_("Desktop"),
+_("Themes"),
+_("Maintenance"),
+_("Help"),
+_("About Enlightenment"),
+_("About this theme"),
+_("Restart"),
+_("Log Out"),
+/* maintenance.menu */
+_("Maintenance"),
+_("Purge config file cache"),
+_("Purge pager background cache"),
+_("Purge background selector cache"),
+_("Purge all caches"),
+_("Query config file cache usage"),
+_("Query pager background cache usage"),
+_("Query background selector cache usage"),
+_("Query all cache usage"),
+_("Regenerate Menus"),
+/* settings.menu */
+_("Settings"),
+_("Settings"),
+_("Desktop"),
+_("Themes"),
+_("Maintenance"),
+_("Help"),
+_("About Enlightenment"),
+_("About this theme"),
+_("Restart"),
+_("Log Out"),
+/* winops.menu */
+_("Window Options"),
+_("Close"),
+_("Annihilate"),
+_("Iconify"),
+_("Leave Alone"),
+_("Raise"),
+_("Lower"),
+_("Shade/Unshade"),
+_("Stick/Unstick"),
+_("Remember..."),
+_("Window Size"),
+_("Set Stacking"),
+_("Set Border Style"),
+_("Window Groups"),
+_("Opacity"),
+_("Miscellaneous"),
+/* winops_groups.menu */
+_("Groups"),
+_("Configure this window's group(s)"),
+_("Start a new group"),
+_("Add this window to the current group"),
+_("Select group to add this window to"),
+_("Remove this window from a group"),
+_("Destroy a group this window belongs to"),
+/* winops_layer.menu */
+_("Stacking"),
+_("Below"),
+_("Normal"),
+_("Above"),
+_("On Top"),
+/* winops_misc.menu */
+_("Miscellaneous"),
+_("Toggle Skip Window Lists"),
+_("Toggle Fixed Position"),
+_("Toggle Fixed Size"),
+_("Toggle Never Focus"),
+_("Toggle Click to Focus"),
+_("Toggle Never Use Area"),
+_("Toggle Button Grabs"),
+_("Toggle Autoshade"),
+/* winops_opacity.menu */
+_("Opacity"),
+_("Default"),
+_("20%"),
+_("40%"),
+_("60%"),
+_("80%"),
+_("100%"),
+_("Focused opacity 100%"),
+_("Focused opacity follows unfocused"),
+_("Toggle Fading"),
+_("Toggle Shadows"),
+/* winops_size.menu */
+_("Size"),
+_("Max Size Toggle"),
+_("Available Max Size Toggle"),
+_("Absolute Max Size Toggle"),
+_("Span Xinerama Screens"),
+_("Max Height Toggle"),
+_("Available Max Height Toggle"),
+_("Absolute Max Height Toggle"),
+_("Max Width Toggle"),
+_("Available Max Width Toggle"),
+_("Absolute Max Width Toggle"),
+_("Fullscreen/Normal"),
+_("Zoom/Unzoom"),
+
+_("User Menus"),
+_("User Application List"),
+_("Other"),
+_("Epplets"),
+_("Restart"),
+_("Log Out"),
+};
--- /dev/null
+"Window Options" "EMPTY"
+"Close" NULL "wop * close"
+"Annihilate" NULL "wop * kill"
+"Iconify" NULL "wop * iconify"
+"Leave Alone" NULL "wop * alone"
+"Raise" NULL "wop * raise"
+"Lower" NULL "wop * lower"
+"Shade/Unshade" NULL "wop * shade"
+"Stick/Unstick" NULL "wop * stick"
+"Remember..." NULL "wop * snap dialog"
+"Window Size" NULL menu winops_size.menu
+"Set Stacking" NULL menu winops_layer.menu
+"Set Border Style" NULL menu borders
+"Window Groups" NULL menu winops_groups.menu
+"Opacity" NULL menu winops_opacity.menu
+"Miscellaneous" NULL menu winops_misc.menu
--- /dev/null
+"Groups" "EMPTY"
+"Configure this window's group(s)" NULL "groups cfg group"
+"Start a new group" NULL "gop * start"
+"Add this window to the current group" NULL "gop * add"
+"Select group to add this window to" NULL "groups cfg add"
+"Remove this window from a group" NULL "groups cfg del"
+"Destroy a group this window belongs to" NULL "groups cfg break"
+#"Show/Hide this window's group(s)" NULL "gop * showhide"
--- /dev/null
+"Stacking" "EMPTY"
+"Below" NULL "wop * la 2"
+"Normal" NULL "wop * la 4"
+"Above" NULL "wop * la 6"
+"On Top" NULL "wop * la 8"
--- /dev/null
+"Miscellaneous" "EMPTY"
+"Toggle Skip Window Lists" NULL "wop * skiplists"
+"Toggle Fixed Position" NULL "wop * no_user_move"
+"Toggle Fixed Size" NULL "wop * no_user_size"
+"Toggle Never Focus" NULL "wop * no_wm_focus"
+"Toggle Click to Focus" NULL "wop * focusclick"
+"Toggle Never Use Area" NULL "wop * never_use_area"
+"Toggle Button Grabs" NULL "wop * no_button_grabs"
+"Toggle Autoshade" NULL "wop * autoshade"
--- /dev/null
+"Opacity" "EMPTY"
+"Default" NULL "wop * op 0"
+"20%" NULL "wop * op 20"
+"40%" NULL "wop * op 40"
+"60%" NULL "wop * op 60"
+"80%" NULL "wop * op 80"
+"100%" NULL "wop * op 100"
+"Focused opacity 100%" NULL "wop * focused_opacity 100"
+"Focused opacity follows unfocused" NULL "wop * focused_opacity 0"
+"Toggle Fading" NULL "wop * fade"
+"Toggle Shadows" NULL "wop * shadow"
--- /dev/null
+"Size" "EMPTY"
+"Max Size Toggle" NULL "wop * ts conservative"
+"Available Max Size Toggle" NULL "wop * ts available"
+"Absolute Max Size Toggle" NULL "wop * ts absolute"
+"Span Xinerama Screens" NULL "wop * ts xinerama"
+
+"Max Height Toggle" NULL "wop * th conservative"
+"Available Max Height Toggle" NULL "wop * th available"
+"Absolute Max Height Toggle" NULL "wop * th absolute"
+
+"Max Width Toggle" NULL "wop * tw conservative"
+"Available Max Width Toggle" NULL "wop * tw available"
+"Absolute Max Width Toggle" NULL "wop * tw absolute"
+
+"Fullscreen/Normal" NULL "wop * full"
+"Zoom/Unzoom" NULL "wop * zoom"
--- /dev/null
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.63 for e16 1.0.0.
+#
+# Report bugs to <enlightenment-devel@lists.sourceforge.net>.
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+if test "x$CONFIG_SHELL" = x; then
+ if (eval ":") 2>/dev/null; then
+ as_have_required=no
+else
+ as_have_required=no
+fi
+
+ if test $as_have_required = no && (eval ":
+(as_func_return () {
+ (exit \$1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0) || { (exit 1); exit 1; }
+
+(
+ as_lineno_1=\$LINENO
+ as_lineno_2=\$LINENO
+ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
+ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
+") 2> /dev/null; then
+ :
+else
+ as_candidate_shells=
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ case $as_dir in
+ /*)
+ for as_base in sh bash ksh sh5; do
+ as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
+ done;;
+ esac
+done
+IFS=$as_save_IFS
+
+
+ for as_shell in $as_candidate_shells $SHELL; do
+ # Try only shells that exist, to save several forks.
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { ("$as_shell") 2> /dev/null <<\_ASEOF
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+_ASEOF
+}; then
+ CONFIG_SHELL=$as_shell
+ as_have_required=no
+ if { "$as_shell" 2> /dev/null <<\_ASEOF
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+(as_func_return () {
+ (exit $1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = "$1" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test $exitcode = 0) || { (exit 1); exit 1; }
+
+(
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
+
+_ASEOF
+}; then
+ break
+fi
+
+fi
+
+ done
+
+ if test "x$CONFIG_SHELL" != x; then
+ for as_var in BASH_ENV ENV
+ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+ done
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+fi
+
+
+ if test $as_have_required = no; then
+ echo This script requires a shell more modern than all the
+ echo shells that I found on your system. Please install a
+ echo modern shell, or manually run the script under such a
+ echo shell if you do have one.
+ { (exit 1); exit 1; }
+fi
+
+
+fi
+
+fi
+
+
+
+(eval "as_func_return () {
+ (exit \$1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0") || {
+ echo No shell found that supports shell functions.
+ echo Please tell bug-autoconf@gnu.org about your system,
+ echo including any error possibly output before this message.
+ echo This can help us improve future autoconf versions.
+ echo Configuration will now proceed without shell functions.
+}
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, and appends
+ # trailing '-' during substitution so that $LINENO is not a special
+ # case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
+ ;;
+esac
+
+echo=${ECHO-echo}
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $echo works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "$0" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+$*
+EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$ECHO"; then
+if test "X${echo_test_string+set}" != Xset; then
+# find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if (echo_test_string=`eval $cmd`) 2>/dev/null &&
+ echo_test_string=`eval $cmd` &&
+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
+ then
+ break
+ fi
+ done
+fi
+
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ echo="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$echo" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ echo='print -r'
+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
+ else
+ # Try using printf.
+ echo='printf %s\n'
+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ echo="$CONFIG_SHELL $0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ echo="$CONFIG_SHELL $0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "$0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ echo=echo
+ fi
+ fi
+ fi
+ fi
+fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+ECHO=$echo
+if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
+ ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
+fi
+
+
+
+
+exec 7<&0 </dev/null 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Identity of this package.
+PACKAGE_NAME='e16'
+PACKAGE_TARNAME='e16'
+PACKAGE_VERSION='1.0.0'
+PACKAGE_STRING='e16 1.0.0'
+PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net'
+
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='LTLIBOBJS
+LIBOBJS
+E_X_LIBS
+CWARNFLAGS
+HAVE_XMLTO_FALSE
+HAVE_XMLTO_TRUE
+XMLTO
+BUILD_MODULES_FALSE
+BUILD_MODULES_TRUE
+BUILD_ROOTHACKLIB_FALSE
+BUILD_ROOTHACKLIB_TRUE
+DLOPEN_LIBS
+ENABLE_DBUS_FALSE
+ENABLE_DBUS_TRUE
+DBUS_LIBS
+DBUS_CFLAGS
+ENABLE_COMPOSITE_FALSE
+ENABLE_COMPOSITE_TRUE
+XINERAMA_LIBS
+ENABLE_GLX_FALSE
+ENABLE_GLX_TRUE
+GLX_LIBS
+ECORE_LIBS
+ECORE_CFLAGS
+USE_LIBXFT_FALSE
+USE_LIBXFT_TRUE
+XFT_LIBS
+XFT_CFLAGS
+USE_LIBPANGO_FALSE
+USE_LIBPANGO_TRUE
+PANGO_LIBS
+PANGO_CFLAGS
+SM_LIBS
+IMLIB2_LIBS
+IMLIB2_CFLAGS
+USE_LIBESD_FALSE
+USE_LIBESD_TRUE
+ESD_LIBS
+ESD_CFLAGS
+ESD_CONFIG
+USE_LIBPA_FALSE
+USE_LIBPA_TRUE
+AUDIOFILE_LIBS
+AUDIOFILE_CFLAGS
+PA_LIBS
+PA_CFLAGS
+ENABLE_GNOME_FALSE
+ENABLE_GNOME_TRUE
+POSUB
+LTLIBINTL
+LIBINTL
+INTLLIBS
+MSGMERGE
+XGETTEXT
+GMSGFMT
+MSGFMT
+USE_NLS
+MKINSTALLDIRS
+LTLIBICONV
+LIBICONV
+USE_ESNPRINTF_FALSE
+USE_ESNPRINTF_TRUE
+X_EXTRA_LIBS
+X_LIBS
+X_PRE_LIBS
+X_CFLAGS
+XMKMF
+LIBTOOL
+NMEDIT
+DSYMUTIL
+RANLIB
+AR
+ECHO
+LN_S
+SED
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+EGREP
+GREP
+CPP
+PKG_CONFIG
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__quote
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+MAINT
+MAINTAINER_MODE_FALSE
+MAINTAINER_MODE_TRUE
+E_RPM_REVISION
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_maintainer_mode
+enable_dependency_tracking
+enable_shared
+enable_static
+enable_fast_install
+with_gnu_ld
+enable_libtool_lock
+with_pic
+with_tags
+with_x
+enable_rpath
+with_libiconv_prefix
+enable_nls
+with_libintl_prefix
+enable_hints_gnome
+enable_sound
+enable_sound_pulse
+enable_sound_esound
+with_esd_prefix
+with_esd_exec_prefix
+enable_esdtest
+enable_sm
+enable_pango
+enable_xft
+enable_ecore
+enable_glx
+enable_xinerama
+enable_zoom
+enable_xsync
+enable_xscrnsaver
+enable_xrandr
+enable_composite
+enable_dbus
+enable_roothacklib
+enable_modules
+enable_visibility_hiding
+enable_dialogs
+enable_docs
+enable_gcc_cpp
+enable_werror
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+PKG_CONFIG
+CPP
+XMKMF
+PA_CFLAGS
+PA_LIBS
+AUDIOFILE_CFLAGS
+AUDIOFILE_LIBS
+IMLIB2_CFLAGS
+IMLIB2_LIBS
+PANGO_CFLAGS
+PANGO_LIBS
+XFT_CFLAGS
+XFT_LIBS
+ECORE_CFLAGS
+ECORE_LIBS
+DBUS_CFLAGS
+DBUS_LIBS'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; }
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+ { (exit 1); exit 1; }; }
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ { $as_echo "$as_me: error: missing argument to $ac_option" >&2
+ { (exit 1); exit 1; }; }
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
+ { (exit 1); exit 1; }; } ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+ { (exit 1); exit 1; }; }
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used." >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ { $as_echo "$as_me: error: working directory cannot be determined" >&2
+ { (exit 1); exit 1; }; }
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
+ { (exit 1); exit 1; }; }
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+ { (exit 1); exit 1; }; }
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
+ { (exit 1); exit 1; }; }
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures e16 1.0.0 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/e16]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+
+X features:
+ --x-includes=DIR X include files are in DIR
+ --x-libraries=DIR X library files are in DIR
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of e16 1.0.0:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer
+ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors
+ --enable-shared[=PKGS] build shared libraries [default=yes]
+ --enable-static[=PKGS] build static libraries [default=no]
+ --enable-fast-install[=PKGS]
+ optimize for fast installation [default=yes]
+ --disable-libtool-lock avoid locking (might break parallel builds)
+ --disable-rpath do not hardcode runtime library paths
+ --disable-nls do not use Native Language Support
+ --enable-hints-gnome compile with GNOME(<2.0) hints support [default=no]
+ --enable-sound compile with sound support [default=yes]
+ --enable-sound-pulse compile with PulseAudio sound support [default=no]
+ --enable-sound-esound compile with EsounD sound support [default=yes]
+ --disable-esdtest Do not try to compile and run a test ESD program
+ --enable-sm compile with session management support [default=yes]
+ --enable-pango compile with pango-xft support [default=no]
+ --enable-xft compile with Xft support [default=yes]
+ --enable-ecore use ecore functions (for testing only - DO NOT USE!) [default=no]
+ --enable-glx compile with GLX support (experimental) [default=no]
+ --enable-xinerama compile with xinerama support [default=yes]
+ --enable-zoom compile with zoom support [default=yes]
+ --enable-xsync compile with SYNC support [default=yes]
+ --enable-xscrnsaver compile with ScreenSaver support (experimental/not useful) [default=no]
+ --enable-xrandr compile with RandR support [default=yes]
+ --enable-composite compile with Composite support [default=yes]
+ --enable-dbus compile with D-Bus support (experimental) [default=no]
+ --enable-roothacklib build window mode helper library [default=yes]
+ --enable-modules enable support for loadable modules [default=no]
+ --enable-visibility-hiding enable visibility hiding [default=no]
+ --enable-dialogs enable support for configuration dialogs [default=yes]
+ --enable-docs install html docs [default=yes]
+ --enable-gcc-cpp compile everything as if it were C++ [default=no]
+ --enable-werror treat compiler warnings as errors [default=no]
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-pic try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-tags[=TAGS] include additional configurations [automatic]
+ --with-x use the X Window System
+ --with-gnu-ld assume the C compiler uses GNU ld default=no
+ --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
+ --without-libiconv-prefix don't search for libiconv in includedir and libdir
+ --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
+ --without-libintl-prefix don't search for libintl in includedir and libdir
+ --with-esd-prefix=PFX Prefix where ESD is installed (optional)
+ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ PKG_CONFIG path to pkg-config utility
+ CPP C preprocessor
+ XMKMF Path to xmkmf, Makefile generator for X Window System
+ PA_CFLAGS C compiler flags for PA, overriding pkg-config
+ PA_LIBS linker flags for PA, overriding pkg-config
+ AUDIOFILE_CFLAGS
+ C compiler flags for AUDIOFILE, overriding pkg-config
+ AUDIOFILE_LIBS
+ linker flags for AUDIOFILE, overriding pkg-config
+ IMLIB2_CFLAGS
+ C compiler flags for IMLIB2, overriding pkg-config
+ IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
+ PANGO_CFLAGS
+ C compiler flags for PANGO, overriding pkg-config
+ PANGO_LIBS linker flags for PANGO, overriding pkg-config
+ XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
+ XFT_LIBS linker flags for XFT, overriding pkg-config
+ ECORE_CFLAGS
+ C compiler flags for ECORE, overriding pkg-config
+ ECORE_LIBS linker flags for ECORE, overriding pkg-config
+ DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
+ DBUS_LIBS linker flags for DBUS, overriding pkg-config
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <enlightenment-devel@lists.sourceforge.net>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+e16 configure 1.0.0
+generated by GNU Autoconf 2.63
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by e16 $as_me 1.0.0, which was
+generated by GNU Autoconf 2.63. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
+ 2)
+ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ ac_configure_args="$ac_configure_args '$ac_arg'"
+ ;;
+ esac
+ done
+done
+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) $as_unset $ac_var ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ cat <<\_ASBOX
+## ------------------- ##
+## File substitutions. ##
+## ------------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ ac_site_file1=$CONFIG_SITE
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test -r "$ac_site_file"; then
+ { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file"
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+am__api_version='1.10'
+
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
+$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
+alias in your environment" >&5
+$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
+alias in your environment" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
+Check your system clock" >&5
+$as_echo "$as_me: error: newly created file is older than distributed files!
+Check your system clock" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+{ $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+test "$program_prefix" != NONE &&
+ program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+done
+IFS=$as_save_IFS
+
+fi
+
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ test -d ./--version && rmdir ./--version
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AWK+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:$LINENO: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
+$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE='e16'
+ VERSION='1.0.0'
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.
+
+AMTAR=${AMTAR-"${am_missing_run}tar"}
+
+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
+
+
+
+
+
+
+E_RPM_REVISION=1
+
+
+# reasonable guesses for where stuff is installed
+if test "x$prefix" = "xNONE"; then
+ prefix=$ac_default_prefix
+fi
+if test "x$exec_prefix" = "xNONE"; then
+ exec_prefix=$prefix
+fi
+
+{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
+$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
+ # Check whether --enable-maintainer-mode was given.
+if test "${enable_maintainer_mode+set}" = set; then
+ enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
+else
+ USE_MAINTAINER_MODE=no
+fi
+
+ { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
+$as_echo "$USE_MAINTAINER_MODE" >&6; }
+ if test $USE_MAINTAINER_MODE = yes; then
+ MAINTAINER_MODE_TRUE=
+ MAINTAINER_MODE_FALSE='#'
+else
+ MAINTAINER_MODE_TRUE='#'
+ MAINTAINER_MODE_FALSE=
+fi
+
+ MAINT=$MAINTAINER_MODE_TRUE
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler --version >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler -v >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler -V >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { (ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+
+{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+if test -z "$ac_file"; then
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: C compiler cannot create executables
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+ if { ac_try='./$ac_file'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if test "${ac_cv_objext+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_compiler_gnu=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_compiler_gnu=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ CFLAGS=""
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_c89=$ac_arg
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:$LINENO: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:$LINENO: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+ am__include=include
+ am__quote=
+ _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ fi
+fi
+
+
+{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then
+ enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+fi
+
+
+
+depcc="$CC" am_compiler_list=
+
+{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ case $depmode in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode=$depmode \
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CC_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+ am__fastdepCC_TRUE=
+ am__fastdepCC_FALSE='#'
+else
+ am__fastdepCC_TRUE='#'
+ am__fastdepCC_FALSE=
+fi
+
+
+if test "x$CC" != xcc; then
+ { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
+$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
+else
+ { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
+$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
+fi
+set dummy $CC; ac_cc=`$as_echo "$2" |
+ sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
+if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+# Make sure it works both with $CC and with simple cc.
+# We do the test twice because some compilers refuse to overwrite an
+# existing .o file with -o, though they will create one.
+ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
+rm -f conftest2.*
+if { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ test -f conftest2.$ac_objext && { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); };
+then
+ eval ac_cv_prog_cc_${ac_cc}_c_o=yes
+ if test "x$CC" != xcc; then
+ # Test first that cc exists at all.
+ if { ac_try='cc -c conftest.$ac_ext >&5'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
+ rm -f conftest2.*
+ if { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ test -f conftest2.$ac_objext && { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); };
+ then
+ # cc works too.
+ :
+ else
+ # cc exists but doesn't like -o.
+ eval ac_cv_prog_cc_${ac_cc}_c_o=no
+ fi
+ fi
+ fi
+else
+ eval ac_cv_prog_cc_${ac_cc}_c_o=no
+fi
+rm -f core conftest*
+
+fi
+if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_MINUS_C_MINUS_O 1
+_ACEOF
+
+fi
+
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
+if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+
+
+
+{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+
+
+
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_path_PKG_CONFIG"; then
+ ac_pt_PKG_CONFIG=$PKG_CONFIG
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
+if test -n "$ac_pt_PKG_CONFIG"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
+$as_echo "$ac_pt_PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_PKG_CONFIG" = x; then
+ PKG_CONFIG=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ PKG_CONFIG=$ac_pt_PKG_CONFIG
+ fi
+else
+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
+fi
+
+fi
+if test -n "$PKG_CONFIG"; then
+ _pkg_min_version=0.9.0
+ { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ PKG_CONFIG=""
+ fi
+
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ # Broken: success on invalid input.
+continue
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ # Broken: success on invalid input.
+continue
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ :
+else
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if test "${ac_cv_path_EGREP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_header_stdc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_header_stdc=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then
+ :
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
+
+fi
+
+
+# Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then
+ enableval=$enable_shared; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_shared=yes
+fi
+
+
+# Check whether --enable-static was given.
+if test "${enable_static+set}" = set; then
+ enableval=$enable_static; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_static=no
+fi
+
+
+
+
+
+# Check whether --enable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then
+ enableval=$enable_fast_install; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_fast_install=yes
+fi
+
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
+$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
+ { (exit 1); exit 1; }; }
+
+{ $as_echo "$as_me:$LINENO: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if test "${ac_cv_build+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
+$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
+ { (exit 1); exit 1; }; }
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
+$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
+$as_echo "$as_me: error: invalid value of canonical build" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:$LINENO: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if test "${ac_cv_host+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
+$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
+$as_echo "$as_me: error: invalid value of canonical host" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
+if test "${lt_cv_path_SED+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && continue
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+
+fi
+
+SED=$lt_cv_path_SED
+
+{ $as_echo "$as_me:$LINENO: result: $SED" >&5
+$as_echo "$SED" >&6; }
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | ?:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+ { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if test "${lt_cv_path_LD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ { $as_echo "$as_me:$LINENO: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
+$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
+{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if test "${lt_cv_prog_gnu_ld+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
+$as_echo_n "checking for $LD option to reload object files... " >&6; }
+if test "${lt_cv_ld_reload_flag+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_reload_flag='-r'
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
+$as_echo "$lt_cv_ld_reload_flag" >&6; }
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+
+{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
+$as_echo_n "checking for BSD-compatible nm... " >&6; }
+if test "${lt_cv_path_NM+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
+$as_echo "$lt_cv_path_NM" >&6; }
+NM="$lt_cv_path_NM"
+
+{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
+if test "${lt_cv_deplibs_check_method+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[4-9]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[45]*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[3-9]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+nto-qnx*)
+ lt_cv_deplibs_check_method=unknown
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
+$as_echo "$lt_cv_deplibs_check_method" >&6; }
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Check whether --enable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+ enableval=$enable_libtool_lock;
+fi
+
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '#line 5391 "configure"' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ libsuff=64
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
+if test "${lt_cv_cc_needs_belf+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ lt_cv_cc_needs_belf=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ lt_cv_cc_needs_belf=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
+$as_echo "$lt_cv_cc_needs_belf" >&6; }
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+
+esac
+
+need_locks="$enable_libtool_lock"
+
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+
+
+
+
+
+
+
+
+
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+for ac_header in dlfcn.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## -------------------------------------------------------- ##
+## Report this to enlightenment-devel@lists.sourceforge.net ##
+## -------------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
+# find the maximum length of command line arguments
+{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
+if test "${lt_cv_sys_max_cmd_len+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
+ = "XX$teststring") >/dev/null 2>&1 &&
+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
+ lt_cv_sys_max_cmd_len=$new_result &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on massive
+ # amounts of additional arguments before passing them to the linker.
+ # It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+
+fi
+
+if test -n $lt_cv_sys_max_cmd_len ; then
+ { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: none" >&5
+$as_echo "none" >&6; }
+fi
+
+
+
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[BCDT]'
+ ;;
+cygwin* | mingw* | pw32*)
+ symcode='[ABCDGISTW]'
+ ;;
+hpux*) # Its linker distinguishes data from code symbols
+ if test "$host_cpu" = ia64; then
+ symcode='[ABCDEGRST]'
+ fi
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+ ;;
+linux* | k*bsd*-gnu)
+ if test "$host_cpu" = ia64; then
+ symcode='[ABCDGIRSTW]'
+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[BCDEGRST]'
+ ;;
+osf*)
+ symcode='[BCDEGQRST]'
+ ;;
+solaris*)
+ symcode='[BDRT]'
+ ;;
+sco3.2v5*)
+ symcode='[DT]'
+ ;;
+sysv4.2uw2*)
+ symcode='[DT]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[ABDT]'
+ ;;
+sysv4)
+ symcode='[DFNSTU]'
+ ;;
+esac
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[ABCDGIRSTW]' ;;
+esac
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
+ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
+
+ cat <<EOF >> conftest.$ac_ext
+#if defined (__STDC__) && __STDC__
+# define lt_ptr_t void *
+#else
+# define lt_ptr_t char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ lt_ptr_t address;
+}
+lt_preloaded_symbols[] =
+{
+EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
+ cat <<\EOF >> conftest.$ac_ext
+ {0, (lt_ptr_t) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&5
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&5
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
+ fi
+ else
+ echo "$progname: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+
+fi
+
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ { $as_echo "$as_me:$LINENO: result: failed" >&5
+$as_echo "failed" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: ok" >&5
+$as_echo "ok" >&6; }
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
+$as_echo_n "checking for objdir... " >&6; }
+if test "${lt_cv_objdir+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
+$as_echo "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e 1s/^X//'
+sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Constants:
+rm="rm -f"
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+ltmain="$ac_aux_dir/ltmain.sh"
+ofile="$default_ofile"
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AR+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { $as_echo "$as_me:$LINENO: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_AR="ar"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+else
+ AR="$ac_cv_prog_AR"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_RANLIB+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+test -z "$AS" && AS=as
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+test -z "$LD" && LD=ld
+test -z "$LN_S" && LN_S="ln -s"
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+test -z "$NM" && NM=nm
+test -z "$SED" && SED=sed
+test -z "$OBJDUMP" && OBJDUMP=objdump
+test -z "$RANLIB" && RANLIB=:
+test -z "$STRIP" && STRIP=:
+test -z "$ac_objext" && ac_objext=o
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+for cc_temp in $compiler""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/${ac_tool_prefix}file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ { $as_echo "$as_me:$LINENO: checking for file" >&5
+$as_echo_n "checking for file... " >&6; }
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
+ ;;
+esac
+
+
+ case $host_os in
+ rhapsody* | darwin*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DSYMUTIL"; then
+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+DSYMUTIL=$ac_cv_prog_DSYMUTIL
+if test -n "$DSYMUTIL"; then
+ { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
+$as_echo "$DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DSYMUTIL"; then
+ ac_ct_DSYMUTIL=$DSYMUTIL
+ # Extract the first word of "dsymutil", so it can be a program name with args.
+set dummy dsymutil; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DSYMUTIL"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
+if test -n "$ac_ct_DSYMUTIL"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
+$as_echo "$ac_ct_DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_DSYMUTIL" = x; then
+ DSYMUTIL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DSYMUTIL=$ac_ct_DSYMUTIL
+ fi
+else
+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_NMEDIT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NMEDIT"; then
+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+NMEDIT=$ac_cv_prog_NMEDIT
+if test -n "$NMEDIT"; then
+ { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
+$as_echo "$NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NMEDIT"; then
+ ac_ct_NMEDIT=$NMEDIT
+ # Extract the first word of "nmedit", so it can be a program name with args.
+set dummy nmedit; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NMEDIT"; then
+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
+if test -n "$ac_ct_NMEDIT"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
+$as_echo "$ac_ct_NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NMEDIT" = x; then
+ NMEDIT=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NMEDIT=$ac_ct_NMEDIT
+ fi
+else
+ NMEDIT="$ac_cv_prog_NMEDIT"
+fi
+
+
+ { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
+$as_echo_n "checking for -single_module linker flag... " >&6; }
+if test "${lt_cv_apple_cc_single_mod+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ echo "int foo(void){return 1;}" > conftest.c
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib ${wl}-single_module conftest.c
+ if test -f libconftest.dylib; then
+ lt_cv_apple_cc_single_mod=yes
+ rm -rf libconftest.dylib*
+ fi
+ rm conftest.c
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
+ { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
+if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ lt_cv_ld_exported_symbols_list=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ lt_cv_ld_exported_symbols_list=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+ case $host_os in
+ rhapsody* | darwin1.[0123])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*)
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[012]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil="~$DSYMUTIL \$lib || :"
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+
+
+enable_dlopen=yes
+enable_win32_dll=no
+
+# Check whether --enable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+ enableval=$enable_libtool_lock;
+fi
+
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+
+# Check whether --with-pic was given.
+if test "${with_pic+set}" = set; then
+ withval=$with_pic; pic_mode="$withval"
+else
+ pic_mode=default
+fi
+
+test -z "$pic_mode" && pic_mode=default
+
+# Use C for the default configuration in the libtool script
+tagname=
+lt_save_CC="$CC"
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm -r conftest*
+
+
+
+lt_prog_compiler_no_builtin_flag=
+
+if test "$GCC" = yes; then
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
+
+
+{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:7075: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:7079: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
+
+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+ :
+fi
+
+fi
+
+lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
+
+ if test "$GCC" = yes; then
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_static='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic='-fno-common'
+ ;;
+
+ interix[3-9]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared=no
+ enable_shared=no
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic=-Kconform_pic
+ fi
+ ;;
+
+ hpux*)
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ ;;
+
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ else
+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ darwin*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ case $cc_basename in
+ xlc*)
+ lt_prog_compiler_pic='-qnocommon'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ esac
+ ;;
+
+ mingw* | cygwin* | pw32* | os2*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ icc* | ecc*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ rdos*)
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ lt_prog_compiler_wl='-Qoption ld ';;
+ *)
+ lt_prog_compiler_wl='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl='-Qoption ld '
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ lt_prog_compiler_pic='-Kconform_pic'
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ unicos*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_can_build_shared=no
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic='-pic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared=no
+ ;;
+ esac
+ fi
+
+{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
+$as_echo "$lt_prog_compiler_pic" >&6; }
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+
+{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
+if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_pic_works=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:7365: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:7369: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_pic_works=yes
+ fi
+ fi
+ $rm conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
+ case $lt_prog_compiler_pic in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+ esac
+else
+ lt_prog_compiler_pic=
+ lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic=
+ ;;
+ *)
+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+ ;;
+esac
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
+{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if test "${lt_cv_prog_compiler_static_works+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_static_works=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&5
+ $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ else
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ fi
+ $rm -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_static_works" = xyes; then
+ :
+else
+ lt_prog_compiler_static=
+fi
+
+
+{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test "${lt_cv_prog_compiler_c_o+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $rm -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:7473: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $rm conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
+ $rm out/* && rmdir out
+ cd ..
+ rmdir conftest
+ $rm conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
+$as_echo_n "checking if we can lock with hard links... " >&6; }
+ hard_links=yes
+ $rm conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
+$as_echo "$hard_links" >&6; }
+ if test "$hard_links" = no; then
+ { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+ runpath_var=
+ allow_undefined_flag=
+ enable_shared_with_static_runtimes=no
+ archive_cmds=
+ archive_expsym_cmds=
+ old_archive_From_new_cmds=
+ old_archive_from_expsyms_cmds=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ thread_safe_flag_spec=
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_flag_spec_ld=
+ hardcode_libdir_separator=
+ hardcode_direct=no
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ link_all_deplibs=unknown
+ hardcode_automatic=no
+ module_cmds=
+ module_expsym_cmds=
+ always_export_symbols=no
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+ extract_expsyms_cmds=
+ # Just being paranoid about ensuring that cc_basename is set.
+ for cc_temp in $compiler""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+
+ case $host_os in
+ cygwin* | mingw* | pw32*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ ld_shlibs=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+ export_dynamic_flag_spec='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>/dev/null` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[3-9]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+
+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
+ # that the semantics of dynamic libraries on AmigaOS, at least up
+ # to version 4, is to share data among multiple programs linked
+ # with the same dynamic library. Since this doesn't match the
+ # behavior of shared libraries on other platforms, we can't use
+ # them.
+ ld_shlibs=no
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ allow_undefined_flag=unsupported
+ always_export_symbols=no
+ enable_shared_with_static_runtimes=yes
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ interix[3-9]*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | k*bsd*-gnu)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ tmp_addflag=
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ *)
+ tmp_sharedflag='-shared' ;;
+ esac
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test $supports_anon_versioning = yes; then
+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ $echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ cat <<EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+
+ if test "$ld_shlibs" = no; then
+ runpath_var=
+ hardcode_libdir_flag_spec=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds=''
+ hardcode_direct=yes
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[012]|aix4.[012].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" && \
+ strings "$collect2name" | grep resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ hardcode_direct=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L=yes
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_libdir_separator=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag='-berok'
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag="-z nodefs"
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag=' ${wl}-bernotok'
+ allow_undefined_flag=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec='$convenience'
+ archive_cmds_need_lc=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ # see comment about different semantics on the GNU ld section
+ ld_shlibs=no
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_From_new_cmds='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ fix_srcfile_path='`cygpath -w "$srcfile"`'
+ enable_shared_with_static_runtimes=yes
+ ;;
+
+ darwin* | rhapsody*)
+ case $host_os in
+ rhapsody* | darwin1.[012])
+ allow_undefined_flag='${wl}-undefined ${wl}suppress'
+ ;;
+ *) # Darwin 1.3 on
+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
+ allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ else
+ case ${MACOSX_DEPLOYMENT_TARGET} in
+ 10.[012])
+ allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
+ ;;
+ 10.*)
+ allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ archive_cmds_need_lc=no
+ hardcode_direct=no
+ hardcode_automatic=yes
+ hardcode_shlibpath_var=unsupported
+ whole_archive_flag_spec=''
+ link_all_deplibs=yes
+ if test "$GCC" = yes ; then
+ output_verbose_link_cmd='echo'
+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ else
+ case $cc_basename in
+ xlc*)
+ output_verbose_link_cmd='echo'
+ archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ ;;
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+ fi
+ ;;
+
+ dgux*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ freebsd1*)
+ ld_shlibs=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ export_dynamic_flag_spec='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+
+ hardcode_direct=yes
+ export_dynamic_flag_spec='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ hardcode_libdir_flag_spec_ld='+b $libdir'
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ ;;
+ *)
+ hardcode_direct=yes
+ export_dynamic_flag_spec='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec_ld='-rpath $libdir'
+ fi
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ link_all_deplibs=yes
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ newsos6)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_shlibpath_var=no
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ hardcode_libdir_separator=:
+ ;;
+
+ solaris*)
+ no_undefined_flag=' -z text'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
+ else
+ wlarc=''
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_shlibpath_var=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ link_all_deplibs=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds='$CC -r -o $output$reload_objs'
+ hardcode_direct=no
+ ;;
+ motorola)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4.3*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ export_dynamic_flag_spec='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+ no_undefined_flag='${wl}-z,text'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ no_undefined_flag='${wl}-z,text'
+ allow_undefined_flag='${wl}-z,nodefs'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ export_dynamic_flag_spec='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+ fi
+
+{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
+$as_echo "$ld_shlibs" >&6; }
+test "$ld_shlibs" = no && can_build_shared=no
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
+ $rm conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl
+ pic_flag=$lt_prog_compiler_pic
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag
+ allow_undefined_flag=
+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
+ (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ then
+ archive_cmds_need_lc=no
+ else
+ archive_cmds_need_lc=yes
+ fi
+ allow_undefined_flag=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $rm conftest*
+ { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
+$as_echo "$archive_cmds_need_lc" >&6; }
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
+$as_echo_n "checking dynamic linker characteristics... " >&6; }
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`echo $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[4-9]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $rm \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[123]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[3-9]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+nto-qnx*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ shlibpath_overrides_runpath=no
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ shlibpath_overrides_runpath=yes
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
+$as_echo "$dynamic_linker" >&6; }
+test "$dynamic_linker" = no && can_build_shared=no
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
+fi
+
+sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
+fi
+
+sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" || \
+ test -n "$runpath_var" || \
+ test "X$hardcode_automatic" = "Xyes" ; then
+
+ # We can hardcode non-existant directories.
+ if test "$hardcode_direct" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
+ test "$hardcode_minus_L" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action=unsupported
+fi
+{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
+$as_echo "$hardcode_action" >&6; }
+
+if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+striplib=
+old_striplib=
+{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
+$as_echo_n "checking whether stripping libraries is possible... " >&6; }
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+ ;;
+ *)
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ ;;
+ esac
+fi
+
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dl_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
+$as_echo_n "checking for shl_load... " >&6; }
+if test "${ac_cv_func_shl_load+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char shl_load (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shl_load
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_shl_load || defined __stub___shl_load
+choke me
+#endif
+
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_shl_load=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_shl_load=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+$as_echo "$ac_cv_func_shl_load" >&6; }
+if test "x$ac_cv_func_shl_load" = x""yes; then
+ lt_cv_dlopen="shl_load"
+else
+ { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+$as_echo_n "checking for shl_load in -ldld... " >&6; }
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dld_shl_load=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dld_shl_load=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
+if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
+else
+ { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
+$as_echo_n "checking for dlopen... " >&6; }
+if test "${ac_cv_func_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char dlopen (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef dlopen
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_dlopen || defined __stub___dlopen
+choke me
+#endif
+
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
+$as_echo "$ac_cv_func_dlopen" >&6; }
+if test "x$ac_cv_func_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen"
+else
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dl_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+$as_echo_n "checking for dlopen in -lsvld... " >&6; }
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_svld_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_svld_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
+if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+ { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+$as_echo_n "checking for dld_link in -ldld... " >&6; }
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dld_dld_link=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dld_dld_link=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
+if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
+$as_echo_n "checking whether a program can dlopen itself... " >&6; }
+if test "${lt_cv_dlopen_self+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+#line 9871 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ exit (status);
+}
+EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
+$as_echo "$lt_cv_dlopen_self" >&6; }
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
+if test "${lt_cv_dlopen_self_static+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self_static=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<EOF
+#line 9971 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ exit (status);
+}
+EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
+$as_echo "$lt_cv_dlopen_self_static" >&6; }
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+
+
+# Report which library types will actually be built
+{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
+$as_echo_n "checking if libtool supports shared libraries... " >&6; }
+{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
+$as_echo "$can_build_shared" >&6; }
+
+{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
+$as_echo_n "checking whether to build shared libraries... " >&6; }
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case $host_os in
+aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+aix[4-9]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
+$as_echo "$enable_shared" >&6; }
+
+{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
+$as_echo_n "checking whether to build static libraries... " >&6; }
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
+$as_echo "$enable_static" >&6; }
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler \
+ CC \
+ LD \
+ lt_prog_compiler_wl \
+ lt_prog_compiler_pic \
+ lt_prog_compiler_static \
+ lt_prog_compiler_no_builtin_flag \
+ export_dynamic_flag_spec \
+ thread_safe_flag_spec \
+ whole_archive_flag_spec \
+ enable_shared_with_static_runtimes \
+ old_archive_cmds \
+ old_archive_from_new_cmds \
+ predep_objects \
+ postdep_objects \
+ predeps \
+ postdeps \
+ compiler_lib_search_path \
+ compiler_lib_search_dirs \
+ archive_cmds \
+ archive_expsym_cmds \
+ postinstall_cmds \
+ postuninstall_cmds \
+ old_archive_from_expsyms_cmds \
+ allow_undefined_flag \
+ no_undefined_flag \
+ export_symbols_cmds \
+ hardcode_libdir_flag_spec \
+ hardcode_libdir_flag_spec_ld \
+ hardcode_libdir_separator \
+ hardcode_automatic \
+ module_cmds \
+ module_expsym_cmds \
+ lt_cv_prog_compiler_c_o \
+ fix_srcfile_path \
+ exclude_expsyms \
+ include_expsyms; do
+
+ case $var in
+ old_archive_cmds | \
+ old_archive_from_new_cmds | \
+ archive_cmds | \
+ archive_expsym_cmds | \
+ module_cmds | \
+ module_expsym_cmds | \
+ old_archive_from_expsyms_cmds | \
+ export_symbols_cmds | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
+
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
+ ;;
+ esac
+
+cfgfile="${ofile}T"
+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
+ $rm -f "$cfgfile"
+ { $as_echo "$as_me:$LINENO: creating $ofile" >&5
+$as_echo "$as_me: creating $ofile" >&6;}
+
+ cat <<__EOF__ >> "$cfgfile"
+#! $SHELL
+
+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+# 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="$SED -e 1s/^X//"
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# The names of the tagged configurations supported by this script.
+available_tags=
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_LTCFLAGS
+
+# A language-specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps
+
+# The directories searched by this compiler when creating a shared
+# library
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=$lt_fix_srcfile_path
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# ### END LIBTOOL CONFIG
+
+__EOF__
+
+
+ case $host_os in
+ aix3*)
+ cat <<\EOF >> "$cfgfile"
+
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+EOF
+ ;;
+ esac
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" || \
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+
+else
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+
+# Check whether --with-tags was given.
+if test "${with_tags+set}" = set; then
+ withval=$with_tags; tagnames="$withval"
+fi
+
+
+if test -f "$ltmain" && test -n "$tagnames"; then
+ if test ! -f "${ofile}"; then
+ { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
+$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
+ fi
+
+ if test -z "$LTCC"; then
+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
+ if test -z "$LTCC"; then
+ { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
+$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
+ else
+ { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
+$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
+ fi
+ fi
+ if test -z "$LTCFLAGS"; then
+ eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
+ fi
+
+ # Extract list of available tagged configurations in $ofile.
+ # Note that this assumes the entire list is on one line.
+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
+
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for tagname in $tagnames; do
+ IFS="$lt_save_ifs"
+ # Check whether tagname contains only valid characters
+ case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
+ "") ;;
+ *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
+$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
+ then
+ { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
+$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ # Update the list of available tags.
+ if test -n "$tagname"; then
+ echo appending configuration tag \"$tagname\" to $ofile
+
+ case $tagname in
+ CXX)
+ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ :
+ else
+ tagname=""
+ fi
+ ;;
+
+ F77)
+ if test -n "$F77" && test "X$F77" != "Xno"; then
+ :
+ else
+ tagname=""
+ fi
+ ;;
+
+ GCJ)
+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
+ :
+ else
+ tagname=""
+ fi
+ ;;
+
+ RC)
+
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+objext_RC=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$rm conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$rm -r conftest*
+
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+CC=${RC-"windres"}
+compiler=$CC
+compiler_RC=$CC
+for cc_temp in $compiler""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+
+lt_cv_prog_compiler_c_o_RC=yes
+
+# The else clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+ # See if we are running on zsh, and set the options which allow our commands through
+ # without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+ # Now quote all the things that may contain metacharacters while being
+ # careful not to overquote the AC_SUBSTed values. We take copies of the
+ # variables and quote the copies for generation of the libtool script.
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
+ SED SHELL STRIP \
+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
+ deplibs_check_method reload_flag reload_cmds need_locks \
+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
+ lt_cv_sys_global_symbol_to_c_name_address \
+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+ old_postinstall_cmds old_postuninstall_cmds \
+ compiler_RC \
+ CC_RC \
+ LD_RC \
+ lt_prog_compiler_wl_RC \
+ lt_prog_compiler_pic_RC \
+ lt_prog_compiler_static_RC \
+ lt_prog_compiler_no_builtin_flag_RC \
+ export_dynamic_flag_spec_RC \
+ thread_safe_flag_spec_RC \
+ whole_archive_flag_spec_RC \
+ enable_shared_with_static_runtimes_RC \
+ old_archive_cmds_RC \
+ old_archive_from_new_cmds_RC \
+ predep_objects_RC \
+ postdep_objects_RC \
+ predeps_RC \
+ postdeps_RC \
+ compiler_lib_search_path_RC \
+ compiler_lib_search_dirs_RC \
+ archive_cmds_RC \
+ archive_expsym_cmds_RC \
+ postinstall_cmds_RC \
+ postuninstall_cmds_RC \
+ old_archive_from_expsyms_cmds_RC \
+ allow_undefined_flag_RC \
+ no_undefined_flag_RC \
+ export_symbols_cmds_RC \
+ hardcode_libdir_flag_spec_RC \
+ hardcode_libdir_flag_spec_ld_RC \
+ hardcode_libdir_separator_RC \
+ hardcode_automatic_RC \
+ module_cmds_RC \
+ module_expsym_cmds_RC \
+ lt_cv_prog_compiler_c_o_RC \
+ fix_srcfile_path_RC \
+ exclude_expsyms_RC \
+ include_expsyms_RC; do
+
+ case $var in
+ old_archive_cmds_RC | \
+ old_archive_from_new_cmds_RC | \
+ archive_cmds_RC | \
+ archive_expsym_cmds_RC | \
+ module_cmds_RC | \
+ module_expsym_cmds_RC | \
+ old_archive_from_expsyms_cmds_RC | \
+ export_symbols_cmds_RC | \
+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
+ postinstall_cmds | postuninstall_cmds | \
+ old_postinstall_cmds | old_postuninstall_cmds | \
+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+ # Double-quote double-evaled strings.
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+ ;;
+ *)
+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+ ;;
+ esac
+ done
+
+ case $lt_echo in
+ *'\$0 --fallback-echo"')
+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
+ ;;
+ esac
+
+cfgfile="$ofile"
+
+ cat <<__EOF__ >> "$cfgfile"
+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_RC
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A C compiler.
+LTCC=$lt_LTCC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_LTCFLAGS
+
+# A language-specific compiler.
+CC=$lt_compiler_RC
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC_RC
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# The linker used to build libraries.
+LD=$lt_LD_RC
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$lt_STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS="$AS"
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_RC
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='$shrext_cmds'
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_RC
+pic_mode=$pic_mode
+
+# What is the maximum length of a command?
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_RC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds_RC
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds_RC
+archive_expsym_cmds=$lt_archive_expsym_cmds_RC
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=$lt_module_cmds_RC
+module_expsym_cmds=$lt_module_expsym_cmds_RC
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=$lt_predep_objects_RC
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=$lt_postdep_objects_RC
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=$lt_predeps_RC
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=$lt_postdeps_RC
+
+# The directories searched by this compiler when creating a shared
+# library
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_RC
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_RC
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_RC
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_RC
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
+
+# If ld is used when linking, flag to hardcode \$libdir into
+# a binary during linking. This must work even if \$libdir does
+# not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
+
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct_RC
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L_RC
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
+
+# Set to yes if building a shared library automatically hardcodes DIR into the library
+# and all subsequent libraries and executables linked against it.
+hardcode_automatic=$hardcode_automatic_RC
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_RC
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=$lt_fix_srcfile_path
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols_RC
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_RC
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_RC
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_RC
+
+# ### END LIBTOOL TAG CONFIG: $tagname
+
+__EOF__
+
+
+else
+ # If there is no Makefile yet, we rely on a make rule to execute
+ # `config.status --recheck' to rerun these tests and create the
+ # libtool script then.
+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
+ if test -f "$ltmain_in"; then
+ test -f Makefile && make "$ltmain"
+ fi
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+ ;;
+
+ *)
+ { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
+$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+
+ # Append the new tag name to the list of available tags.
+ if test -n "$tagname" ; then
+ available_tags="$available_tags $tagname"
+ fi
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ # Now substitute the updated list of available tags.
+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
+ mv "${ofile}T" "$ofile"
+ chmod +x "$ofile"
+ else
+ rm -f "${ofile}T"
+ { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
+$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+fi
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+# Prevent multiple expansion
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for X" >&5
+$as_echo_n "checking for X... " >&6; }
+
+
+# Check whether --with-x was given.
+if test "${with_x+set}" = set; then
+ withval=$with_x;
+fi
+
+# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+if test "x$with_x" = xno; then
+ # The user explicitly disabled X.
+ have_x=disabled
+else
+ case $x_includes,$x_libraries in #(
+ *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
+$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
+ { (exit 1); exit 1; }; };; #(
+ *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # One or both of the vars are not set, and there is no cached value.
+ac_x_includes=no ac_x_libraries=no
+rm -f -r conftest.dir
+if mkdir conftest.dir; then
+ cd conftest.dir
+ cat >Imakefile <<'_ACEOF'
+incroot:
+ @echo incroot='${INCROOT}'
+usrlibdir:
+ @echo usrlibdir='${USRLIBDIR}'
+libdir:
+ @echo libdir='${LIBDIR}'
+_ACEOF
+ if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
+ # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ for ac_var in incroot usrlibdir libdir; do
+ eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
+ done
+ # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
+ for ac_extension in a so sl dylib la dll; do
+ if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
+ test -f "$ac_im_libdir/libX11.$ac_extension"; then
+ ac_im_usrlibdir=$ac_im_libdir; break
+ fi
+ done
+ # Screen out bogus values from the imake configuration. They are
+ # bogus both because they are the default anyway, and because
+ # using them would break gcc on systems where it needs fixed includes.
+ case $ac_im_incroot in
+ /usr/include) ac_x_includes= ;;
+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
+ esac
+ case $ac_im_usrlibdir in
+ /usr/lib | /usr/lib64 | /lib | /lib64) ;;
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
+ esac
+ fi
+ cd ..
+ rm -f -r conftest.dir
+fi
+
+# Standard set of common directories for X headers.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+ac_x_header_dirs='
+/usr/X11/include
+/usr/X11R6/include
+/usr/X11R5/include
+/usr/X11R4/include
+
+/usr/include/X11
+/usr/include/X11R6
+/usr/include/X11R5
+/usr/include/X11R4
+
+/usr/local/X11/include
+/usr/local/X11R6/include
+/usr/local/X11R5/include
+/usr/local/X11R4/include
+
+/usr/local/include/X11
+/usr/local/include/X11R6
+/usr/local/include/X11R5
+/usr/local/include/X11R4
+
+/usr/X386/include
+/usr/x386/include
+/usr/XFree86/include/X11
+
+/usr/include
+/usr/local/include
+/usr/unsupported/include
+/usr/athena/include
+/usr/local/x11r5/include
+/usr/lpp/Xamples/include
+
+/usr/openwin/include
+/usr/openwin/share/include'
+
+if test "$ac_x_includes" = no; then
+ # Guess where to find include files, by looking for Xlib.h.
+ # First, try using that file with no special directory specified.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ # We can compile using X headers with no special include directory.
+ac_x_includes=
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ for ac_dir in $ac_x_header_dirs; do
+ if test -r "$ac_dir/X11/Xlib.h"; then
+ ac_x_includes=$ac_dir
+ break
+ fi
+done
+fi
+
+rm -f conftest.err conftest.$ac_ext
+fi # $ac_x_includes = no
+
+if test "$ac_x_libraries" = no; then
+ # Check for the libraries.
+ # See if we find them without any special options.
+ # Don't add to $LIBS permanently.
+ ac_save_LIBS=$LIBS
+ LIBS="-lX11 $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+int
+main ()
+{
+XrmInitialize ()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ LIBS=$ac_save_LIBS
+# We can link X programs with no special library path.
+ac_x_libraries=
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ LIBS=$ac_save_LIBS
+for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
+do
+ # Don't even attempt the hair of trying to link an X program!
+ for ac_extension in a so sl dylib la dll; do
+ if test -r "$ac_dir/libX11.$ac_extension"; then
+ ac_x_libraries=$ac_dir
+ break 2
+ fi
+ done
+done
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi # $ac_x_libraries = no
+
+case $ac_x_includes,$ac_x_libraries in #(
+ no,* | *,no | *\'*)
+ # Didn't find X, or a directory has "'" in its name.
+ ac_cv_have_x="have_x=no";; #(
+ *)
+ # Record where we found X for the cache.
+ ac_cv_have_x="have_x=yes\
+ ac_x_includes='$ac_x_includes'\
+ ac_x_libraries='$ac_x_libraries'"
+esac
+fi
+;; #(
+ *) have_x=yes;;
+ esac
+ eval "$ac_cv_have_x"
+fi # $with_x != no
+
+if test "$have_x" != yes; then
+ { $as_echo "$as_me:$LINENO: result: $have_x" >&5
+$as_echo "$have_x" >&6; }
+ no_x=yes
+else
+ # If each of the values was on the command line, it overrides each guess.
+ test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ # Update the cache value to reflect the command line values.
+ ac_cv_have_x="have_x=yes\
+ ac_x_includes='$x_includes'\
+ ac_x_libraries='$x_libraries'"
+ { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
+$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
+fi
+
+if test "$no_x" = yes; then
+ # Not all programs may use this symbol, but it does not hurt to define it.
+
+cat >>confdefs.h <<\_ACEOF
+#define X_DISPLAY_MISSING 1
+_ACEOF
+
+ X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+else
+ if test -n "$x_includes"; then
+ X_CFLAGS="$X_CFLAGS -I$x_includes"
+ fi
+
+ # It would also be nice to do this for all -L options, not just this one.
+ if test -n "$x_libraries"; then
+ X_LIBS="$X_LIBS -L$x_libraries"
+ # For Solaris; some versions of Sun CC require a space after -R and
+ # others require no space. Words are not sufficient . . . .
+ { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
+$as_echo_n "checking whether -R must be followed by a space... " >&6; }
+ ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+ ac_xsave_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ X_LIBS="$X_LIBS -R$x_libraries"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ LIBS="$ac_xsave_LIBS -R $x_libraries"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ X_LIBS="$X_LIBS -R $x_libraries"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { $as_echo "$as_me:$LINENO: result: neither works" >&5
+$as_echo "neither works" >&6; }
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_c_werror_flag=$ac_xsave_c_werror_flag
+ LIBS=$ac_xsave_LIBS
+ fi
+
+ # Check for system-dependent libraries X programs must link with.
+ # Do this before checking for the system-independent R6 libraries
+ # (-lICE), since we may need -lsocket or whatever for X linking.
+
+ if test "$ISC" = yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+ else
+ # Martyn Johnson says this is needed for Ultrix, if the X
+ # libraries were built with DECnet support. And Karl Berry says
+ # the Alpha needs dnet_stub (dnet does not exist).
+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XOpenDisplay ();
+int
+main ()
+{
+return XOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
+$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
+if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dnet_ntoa ();
+int
+main ()
+{
+return dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dnet_dnet_ntoa=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dnet_dnet_ntoa=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
+$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
+if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
+fi
+
+ if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
+$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
+if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet_stub $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dnet_ntoa ();
+int
+main ()
+{
+return dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dnet_stub_dnet_ntoa=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dnet_stub_dnet_ntoa=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
+$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
+if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
+fi
+
+ fi
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$ac_xsave_LIBS"
+
+ # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
+ # to get the SysV transport functions.
+ # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
+ # needs -lnsl.
+ # The nsl library prevents programs from opening the X display
+ # on Irix 5.2, according to T.E. Dickey.
+ # The functions gethostbyname, getservbyname, and inet_addr are
+ # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
+ { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
+$as_echo_n "checking for gethostbyname... " >&6; }
+if test "${ac_cv_func_gethostbyname+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define gethostbyname innocuous_gethostbyname
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char gethostbyname (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef gethostbyname
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gethostbyname ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_gethostbyname || defined __stub___gethostbyname
+choke me
+#endif
+
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_gethostbyname=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_gethostbyname=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
+$as_echo "$ac_cv_func_gethostbyname" >&6; }
+
+ if test $ac_cv_func_gethostbyname = no; then
+ { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
+$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
+if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lnsl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_nsl_gethostbyname=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_nsl_gethostbyname=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
+$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
+if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+fi
+
+ if test $ac_cv_lib_nsl_gethostbyname = no; then
+ { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
+$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
+if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lbsd $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_bsd_gethostbyname=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_bsd_gethostbyname=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
+$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
+if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
+fi
+
+ fi
+ fi
+
+ # lieder@skyler.mavd.honeywell.com says without -lsocket,
+ # socket/setsockopt and other routines are undefined under SCO ODT
+ # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ # on later versions), says Simon Leinen: it contains gethostby*
+ # variants that don't use the name server (or something). -lsocket
+ # must be given before -lnsl if both are needed. We assume that
+ # if connect needs -lnsl, so does gethostbyname.
+ { $as_echo "$as_me:$LINENO: checking for connect" >&5
+$as_echo_n "checking for connect... " >&6; }
+if test "${ac_cv_func_connect+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define connect to an innocuous variant, in case <limits.h> declares connect.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define connect innocuous_connect
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char connect (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef connect
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char connect ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_connect || defined __stub___connect
+choke me
+#endif
+
+int
+main ()
+{
+return connect ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_connect=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_connect=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
+$as_echo "$ac_cv_func_connect" >&6; }
+
+ if test $ac_cv_func_connect = no; then
+ { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
+$as_echo_n "checking for connect in -lsocket... " >&6; }
+if test "${ac_cv_lib_socket_connect+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char connect ();
+int
+main ()
+{
+return connect ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_socket_connect=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_socket_connect=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
+$as_echo "$ac_cv_lib_socket_connect" >&6; }
+if test "x$ac_cv_lib_socket_connect" = x""yes; then
+ X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+fi
+
+ fi
+
+ # Guillermo Gomez says -lposix is necessary on A/UX.
+ { $as_echo "$as_me:$LINENO: checking for remove" >&5
+$as_echo_n "checking for remove... " >&6; }
+if test "${ac_cv_func_remove+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define remove to an innocuous variant, in case <limits.h> declares remove.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define remove innocuous_remove
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char remove (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef remove
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char remove ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_remove || defined __stub___remove
+choke me
+#endif
+
+int
+main ()
+{
+return remove ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_remove=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_remove=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
+$as_echo "$ac_cv_func_remove" >&6; }
+
+ if test $ac_cv_func_remove = no; then
+ { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
+$as_echo_n "checking for remove in -lposix... " >&6; }
+if test "${ac_cv_lib_posix_remove+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lposix $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char remove ();
+int
+main ()
+{
+return remove ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_posix_remove=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_posix_remove=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
+$as_echo "$ac_cv_lib_posix_remove" >&6; }
+if test "x$ac_cv_lib_posix_remove" = x""yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+fi
+
+ fi
+
+ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ { $as_echo "$as_me:$LINENO: checking for shmat" >&5
+$as_echo_n "checking for shmat... " >&6; }
+if test "${ac_cv_func_shmat+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shmat innocuous_shmat
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char shmat (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shmat
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shmat ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_shmat || defined __stub___shmat
+choke me
+#endif
+
+int
+main ()
+{
+return shmat ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_shmat=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_shmat=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
+$as_echo "$ac_cv_func_shmat" >&6; }
+
+ if test $ac_cv_func_shmat = no; then
+ { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
+$as_echo_n "checking for shmat in -lipc... " >&6; }
+if test "${ac_cv_lib_ipc_shmat+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lipc $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shmat ();
+int
+main ()
+{
+return shmat ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_ipc_shmat=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_ipc_shmat=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
+$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
+if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+fi
+
+ fi
+ fi
+
+ # Check for libraries that X11R6 Xt/Xaw programs need.
+ ac_save_LDFLAGS=$LDFLAGS
+ test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ # check for ICE first), but we must link in the order -lSM -lICE or
+ # we get undefined symbols. So assume we have SM if we have ICE.
+ # These have to be linked with before -lX11, unlike the other
+ # libraries we check for below, so use a different variable.
+ # John Interrante, Karl Berry
+ { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
+$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
+if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char IceConnectionNumber ();
+int
+main ()
+{
+return IceConnectionNumber ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_ICE_IceConnectionNumber=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_ICE_IceConnectionNumber=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
+$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
+if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
+ X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+fi
+
+ LDFLAGS=$ac_save_LDFLAGS
+
+fi
+
+
+
+
+
+
+for ac_header in alloca.h locale.h stdarg.h wctype.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## -------------------------------------------------------- ##
+## Report this to enlightenment-devel@lists.sourceforge.net ##
+## -------------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
+$as_echo_n "checking return type of signal handlers... " >&6; }
+if test "${ac_cv_type_signal+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <signal.h>
+
+int
+main ()
+{
+return *(signal (0, 0)) (0) == 1;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_type_signal=int
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_signal=void
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
+$as_echo "$ac_cv_type_signal" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define RETSIGTYPE $ac_cv_type_signal
+_ACEOF
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
+$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
+if test "${ac_cv_c_bigendian+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_bigendian=unknown
+ # See if we're dealing with a universal compiler.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifndef __APPLE_CC__
+ not a universal capable compiler
+ #endif
+ typedef int dummy;
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+
+ # Check for potential -arch flags. It is not universal unless
+ # there are some -arch flags. Note that *ppc* also matches
+ # ppc64. This check is also rather less than ideal.
+ case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
+ *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
+ esac
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+ #include <sys/param.h>
+
+int
+main ()
+{
+#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
+ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
+ && LITTLE_ENDIAN)
+ bogus endian macros
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+ #include <sys/param.h>
+
+int
+main ()
+{
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_c_bigendian=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_c_bigendian=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <limits.h>
+
+int
+main ()
+{
+#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
+ bogus endian macros
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ # It does; now see whether it defined to _BIG_ENDIAN or not.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <limits.h>
+
+int
+main ()
+{
+#ifndef _BIG_ENDIAN
+ not big endian
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_c_bigendian=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_c_bigendian=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # Compile a test program.
+ if test "$cross_compiling" = yes; then
+ # Try to guess by grepping values from an object file.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+short int ascii_mm[] =
+ { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+ short int ascii_ii[] =
+ { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+ int use_ascii (int i) {
+ return ascii_mm[i] + ascii_ii[i];
+ }
+ short int ebcdic_ii[] =
+ { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+ short int ebcdic_mm[] =
+ { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+ int use_ebcdic (int i) {
+ return ebcdic_mm[i] + ebcdic_ii[i];
+ }
+ extern int foo;
+
+int
+main ()
+{
+return use_ascii (foo) == use_ebcdic (foo);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
+ ac_cv_c_bigendian=yes
+ fi
+ if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if test "$ac_cv_c_bigendian" = unknown; then
+ ac_cv_c_bigendian=no
+ else
+ # finding both strings is unlikely to happen, but who knows?
+ ac_cv_c_bigendian=unknown
+ fi
+ fi
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+
+ /* Are we little or big endian? From Harbison&Steele. */
+ union
+ {
+ long int l;
+ char c[sizeof (long int)];
+ } u;
+ u.l = 1;
+ return u.c[sizeof (long int) - 1] == 1;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_bigendian=no
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_c_bigendian=yes
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
+$as_echo "$ac_cv_c_bigendian" >&6; }
+ case $ac_cv_c_bigendian in #(
+ yes)
+ cat >>confdefs.h <<\_ACEOF
+#define WORDS_BIGENDIAN 1
+_ACEOF
+;; #(
+ no)
+ ;; #(
+ universal)
+
+cat >>confdefs.h <<\_ACEOF
+#define AC_APPLE_UNIVERSAL_BUILD 1
+_ACEOF
+
+ ;; #(
+ *)
+ { { $as_echo "$as_me:$LINENO: error: unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" >&5
+$as_echo "$as_me: error: unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+
+{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
+if test "${ac_cv_c_const+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+/* FIXME: Include the comments suggested by Paul. */
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this. */
+ typedef int charset[2];
+ const charset cs;
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* AIX XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ pcpcc = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+ { /* SCO 3.2v4 cc rejects this. */
+ char *t;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ if (s) return 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; };
+ struct s *b; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ if (!foo) return 0;
+ }
+ return !cs[0] && !zero.x;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_c_const=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_c_const=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
+$as_echo "$ac_cv_c_const" >&6; }
+if test $ac_cv_c_const = no; then
+
+cat >>confdefs.h <<\_ACEOF
+#define const /**/
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for inline" >&5
+$as_echo_n "checking for inline... " >&6; }
+if test "${ac_cv_c_inline+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_c_inline=$ac_kw
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ test "$ac_cv_c_inline" != no && break
+done
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
+$as_echo "$ac_cv_c_inline" >&6; }
+
+
+case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+ ;;
+esac
+
+
+ { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
+$as_echo_n "checking for __attribute__... " >&6; }
+ if test "${ac_cv___attribute__+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+int
+main ()
+{
+int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv___attribute__=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv___attribute__=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+ if test "$ac_cv___attribute__" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE___ATTRIBUTE__ 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define __UNUSED__ __attribute__((unused))
+_ACEOF
+
+ else
+
+cat >>confdefs.h <<\_ACEOF
+#define __UNUSED__ /**/
+_ACEOF
+
+ fi
+ { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
+$as_echo "$ac_cv___attribute__" >&6; }
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of int" >&5
+$as_echo_n "checking size of int... " >&6; }
+if test "${ac_cv_sizeof_int+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_int=$ac_lo;;
+'') if test "$ac_cv_type_int" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (int)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_int=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (int)); }
+static unsigned long int ulongval () { return (long int) (sizeof (int)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (int))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (int))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (int))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_int=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_int" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (int)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_int=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
+$as_echo "$ac_cv_sizeof_int" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_INT $ac_cv_sizeof_int
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of long" >&5
+$as_echo_n "checking size of long... " >&6; }
+if test "${ac_cv_sizeof_long+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_long=$ac_lo;;
+'') if test "$ac_cv_type_long" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_long=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (long)); }
+static unsigned long int ulongval () { return (long int) (sizeof (long)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (long))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (long))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (long))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_long=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_long" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_long=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
+$as_echo "$ac_cv_sizeof_long" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG $ac_cv_sizeof_long
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
+$as_echo_n "checking size of wchar_t... " >&6; }
+if test "${ac_cv_sizeof_wchar_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_wchar_t=$ac_lo;;
+'') if test "$ac_cv_type_wchar_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_wchar_t=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (wchar_t)); }
+static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (wchar_t))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (wchar_t))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (wchar_t))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_wchar_t=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_wchar_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_wchar_t=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
+$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
+_ACEOF
+
+
+
+
+for ac_func in snprintf
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+ if test "x$ac_cv_func_snprintf" != "xyes"; then
+ USE_ESNPRINTF_TRUE=
+ USE_ESNPRINTF_FALSE='#'
+else
+ USE_ESNPRINTF_TRUE='#'
+ USE_ESNPRINTF_FALSE=
+fi
+
+
+
+for ac_func in strcasecmp strcasestr
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in setenv unsetenv
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in strdup strndup
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in blumfrub
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+for ac_func in buckets_of_erogenous_nym
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+for ac_func in buttox
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+ if test "X$prefix" = "XNONE"; then
+ acl_final_prefix="$ac_default_prefix"
+ else
+ acl_final_prefix="$prefix"
+ fi
+ if test "X$exec_prefix" = "XNONE"; then
+ acl_final_exec_prefix='${prefix}'
+ else
+ acl_final_exec_prefix="$exec_prefix"
+ fi
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
+ prefix="$acl_save_prefix"
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
+$as_echo_n "checking for ld used by GCC... " >&6; }
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | [A-Za-z]:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the path of ld
+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+ { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if test "${acl_cv_path_LD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$LD"; then
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ acl_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some GNU ld's only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ test "$with_gnu_ld" != no && break
+ else
+ test "$with_gnu_ld" != yes && break
+ fi
+ fi
+ done
+ IFS="$ac_save_ifs"
+else
+ acl_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$acl_cv_path_LD"
+if test -n "$LD"; then
+ { $as_echo "$as_me:$LINENO: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
+$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
+{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if test "${acl_cv_prog_gnu_ld+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ acl_cv_prog_gnu_ld=yes
+else
+ acl_cv_prog_gnu_ld=no
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
+$as_echo "$acl_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$acl_cv_prog_gnu_ld
+
+
+
+ { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
+$as_echo_n "checking for shared library run path origin... " >&6; }
+if test "${acl_cv_rpath+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
+ . ./conftest.sh
+ rm -f ./conftest.sh
+ acl_cv_rpath=done
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
+$as_echo "$acl_cv_rpath" >&6; }
+ wl="$acl_cv_wl"
+ libext="$acl_cv_libext"
+ shlibext="$acl_cv_shlibext"
+ hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
+ hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
+ hardcode_direct="$acl_cv_hardcode_direct"
+ hardcode_minus_L="$acl_cv_hardcode_minus_L"
+ # Check whether --enable-rpath was given.
+if test "${enable_rpath+set}" = set; then
+ enableval=$enable_rpath; :
+else
+ enable_rpath=yes
+fi
+
+
+
+
+
+
+
+
+ use_additional=yes
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+
+# Check whether --with-libiconv-prefix was given.
+if test "${with_libiconv_prefix+set}" = set; then
+ withval=$with_libiconv_prefix;
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/lib"
+ fi
+ fi
+
+fi
+
+ LIBICONV=
+ LTLIBICONV=
+ INCICONV=
+ rpathdirs=
+ ltrpathdirs=
+ names_already_handled=
+ names_next_round='iconv '
+ while test -n "$names_next_round"; do
+ names_this_round="$names_next_round"
+ names_next_round=
+ for name in $names_this_round; do
+ already_handled=
+ for n in $names_already_handled; do
+ if test "$n" = "$name"; then
+ already_handled=yes
+ break
+ fi
+ done
+ if test -z "$already_handled"; then
+ names_already_handled="$names_already_handled $name"
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
+ eval value=\"\$HAVE_LIB$uppername\"
+ if test -n "$value"; then
+ if test "$value" = yes; then
+ eval value=\"\$LIB$uppername\"
+ test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
+ eval value=\"\$LTLIB$uppername\"
+ test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
+ else
+ :
+ fi
+ else
+ found_dir=
+ found_la=
+ found_so=
+ found_a=
+ if test $use_additional = yes; then
+ if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
+ found_dir="$additional_libdir"
+ found_so="$additional_libdir/lib$name.$shlibext"
+ if test -f "$additional_libdir/lib$name.la"; then
+ found_la="$additional_libdir/lib$name.la"
+ fi
+ else
+ if test -f "$additional_libdir/lib$name.$libext"; then
+ found_dir="$additional_libdir"
+ found_a="$additional_libdir/lib$name.$libext"
+ if test -f "$additional_libdir/lib$name.la"; then
+ found_la="$additional_libdir/lib$name.la"
+ fi
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ for x in $LDFLAGS $LTLIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ case "$x" in
+ -L*)
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
+ if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
+ found_dir="$dir"
+ found_so="$dir/lib$name.$shlibext"
+ if test -f "$dir/lib$name.la"; then
+ found_la="$dir/lib$name.la"
+ fi
+ else
+ if test -f "$dir/lib$name.$libext"; then
+ found_dir="$dir"
+ found_a="$dir/lib$name.$libext"
+ if test -f "$dir/lib$name.la"; then
+ found_la="$dir/lib$name.la"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ if test "X$found_dir" != "X"; then
+ break
+ fi
+ done
+ fi
+ if test "X$found_dir" != "X"; then
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
+ if test "X$found_so" != "X"; then
+ if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ else
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $found_dir"
+ fi
+ if test "$hardcode_direct" = yes; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ else
+ if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $found_dir"
+ fi
+ else
+ haveit=
+ for x in $LDFLAGS $LIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
+ fi
+ if test "$hardcode_minus_L" != no; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ else
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
+ fi
+ fi
+ fi
+ fi
+ else
+ if test "X$found_a" != "X"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
+ else
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
+ fi
+ fi
+ additional_includedir=
+ case "$found_dir" in
+ */lib | */lib/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
+ additional_includedir="$basedir/include"
+ ;;
+ esac
+ if test "X$additional_includedir" != "X"; then
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ for x in $CPPFLAGS $INCICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ fi
+ if test -n "$found_la"; then
+ save_libdir="$libdir"
+ case "$found_la" in
+ */* | *\\*) . "$found_la" ;;
+ *) . "./$found_la" ;;
+ esac
+ libdir="$save_libdir"
+ for dep in $dependency_libs; do
+ case "$dep" in
+ -L*)
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
+ if test "X$additional_libdir" != "X/usr/lib"; then
+ haveit=
+ if test "X$additional_libdir" = "X/usr/local/lib"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ haveit=
+ for x in $LDFLAGS $LIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
+ fi
+ fi
+ haveit=
+ for x in $LDFLAGS $LTLIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ ;;
+ -R*)
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
+ if test "$enable_rpath" != no; then
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $dir"
+ fi
+ fi
+ ;;
+ -l*)
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
+ ;;
+ *.la)
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+ ;;
+ *)
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
+ ;;
+ esac
+ done
+ fi
+ else
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
+ fi
+ fi
+ fi
+ done
+ done
+ if test "X$rpathdirs" != "X"; then
+ if test -n "$hardcode_libdir_separator"; then
+ alldirs=
+ for found_dir in $rpathdirs; do
+ alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
+ done
+ acl_save_libdir="$libdir"
+ libdir="$alldirs"
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
+ else
+ for found_dir in $rpathdirs; do
+ acl_save_libdir="$libdir"
+ libdir="$found_dir"
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
+ done
+ fi
+ fi
+ if test "X$ltrpathdirs" != "X"; then
+ for found_dir in $ltrpathdirs; do
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
+ done
+ fi
+
+
+
+
+
+
+
+ am_save_CPPFLAGS="$CPPFLAGS"
+
+ for element in $INCICONV; do
+ haveit=
+ for x in $CPPFLAGS; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
+ fi
+ done
+
+
+ { $as_echo "$as_me:$LINENO: checking for iconv" >&5
+$as_echo_n "checking for iconv... " >&6; }
+if test "${am_cv_func_iconv+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+ am_cv_func_iconv="no, consider installing GNU libiconv"
+ am_cv_lib_iconv=no
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <iconv.h>
+int
+main ()
+{
+iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ am_cv_func_iconv=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$am_cv_func_iconv" != yes; then
+ am_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBICONV"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <iconv.h>
+int
+main ()
+{
+iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ am_cv_lib_iconv=yes
+ am_cv_func_iconv=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$am_save_LIBS"
+ fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
+$as_echo "$am_cv_func_iconv" >&6; }
+ if test "$am_cv_func_iconv" = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ICONV 1
+_ACEOF
+
+ fi
+ if test "$am_cv_lib_iconv" = yes; then
+ { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
+$as_echo_n "checking how to link with libiconv... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
+$as_echo "$LIBICONV" >&6; }
+ else
+ CPPFLAGS="$am_save_CPPFLAGS"
+ LIBICONV=
+ LTLIBICONV=
+ fi
+
+
+
+ if test "$am_cv_func_iconv" = yes; then
+ { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
+$as_echo_n "checking for iconv declaration... " >&6; }
+ if test "${am_cv_proto_iconv+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include <stdlib.h>
+#include <iconv.h>
+extern
+#ifdef __cplusplus
+"C"
+#endif
+#if defined(__STDC__) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+#else
+size_t iconv();
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ am_cv_proto_iconv_arg1=""
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ am_cv_proto_iconv_arg1="const"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
+fi
+
+ am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
+ { $as_echo "$as_me:$LINENO: result: ${ac_t:-
+ }$am_cv_proto_iconv" >&5
+$as_echo "${ac_t:-
+ }$am_cv_proto_iconv" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define ICONV_CONST $am_cv_proto_iconv_arg1
+_ACEOF
+
+ fi
+
+
+ { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
+$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
+if test "${am_cv_langinfo_codeset+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <langinfo.h>
+int
+main ()
+{
+char* cs = nl_langinfo(CODESET);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ am_cv_langinfo_codeset=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ am_cv_langinfo_codeset=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
+$as_echo "$am_cv_langinfo_codeset" >&6; }
+ if test $am_cv_langinfo_codeset = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LANGINFO_CODESET 1
+_ACEOF
+
+ fi
+
+
+
+ MKINSTALLDIRS=
+ if test -n "$ac_aux_dir"; then
+ case "$ac_aux_dir" in
+ /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
+ *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
+ esac
+ fi
+ if test -z "$MKINSTALLDIRS"; then
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
+ fi
+
+
+
+ { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
+$as_echo_n "checking whether NLS is requested... " >&6; }
+ # Check whether --enable-nls was given.
+if test "${enable_nls+set}" = set; then
+ enableval=$enable_nls; USE_NLS=$enableval
+else
+ USE_NLS=yes
+fi
+
+ { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
+$as_echo "$USE_NLS" >&6; }
+
+
+
+
+
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat >conf$$.file <<_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file >/dev/null 2>&1; then
+ ac_executable_p="test -x"
+else
+ ac_executable_p="test -f"
+fi
+rm -f conf$$.file
+
+# Extract the first word of "msgfmt", so it can be a program name with args.
+set dummy msgfmt; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_MSGFMT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case "$MSGFMT" in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
+ ;;
+ *)
+ ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$ac_save_IFS"
+ test -z "$ac_dir" && ac_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
+ if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
+ (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
+ ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
+ break 2
+ fi
+ fi
+ done
+ done
+ IFS="$ac_save_IFS"
+ test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
+ ;;
+esac
+fi
+MSGFMT="$ac_cv_path_MSGFMT"
+if test "$MSGFMT" != ":"; then
+ { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
+$as_echo "$MSGFMT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ # Extract the first word of "gmsgfmt", so it can be a program name with args.
+set dummy gmsgfmt; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_GMSGFMT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $GMSGFMT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
+ ;;
+esac
+fi
+GMSGFMT=$ac_cv_path_GMSGFMT
+if test -n "$GMSGFMT"; then
+ { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
+$as_echo "$GMSGFMT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat >conf$$.file <<_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file >/dev/null 2>&1; then
+ ac_executable_p="test -x"
+else
+ ac_executable_p="test -f"
+fi
+rm -f conf$$.file
+
+# Extract the first word of "xgettext", so it can be a program name with args.
+set dummy xgettext; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_XGETTEXT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case "$XGETTEXT" in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
+ ;;
+ *)
+ ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$ac_save_IFS"
+ test -z "$ac_dir" && ac_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
+ if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
+ (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
+ ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
+ break 2
+ fi
+ fi
+ done
+ done
+ IFS="$ac_save_IFS"
+ test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
+ ;;
+esac
+fi
+XGETTEXT="$ac_cv_path_XGETTEXT"
+if test "$XGETTEXT" != ":"; then
+ { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
+$as_echo "$XGETTEXT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ rm -f messages.po
+
+
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat >conf$$.file <<_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file >/dev/null 2>&1; then
+ ac_executable_p="test -x"
+else
+ ac_executable_p="test -f"
+fi
+rm -f conf$$.file
+
+# Extract the first word of "msgmerge", so it can be a program name with args.
+set dummy msgmerge; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_MSGMERGE+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case "$MSGMERGE" in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
+ ;;
+ *)
+ ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$ac_save_IFS"
+ test -z "$ac_dir" && ac_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
+ if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
+ ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
+ break 2
+ fi
+ fi
+ done
+ done
+ IFS="$ac_save_IFS"
+ test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
+ ;;
+esac
+fi
+MSGMERGE="$ac_cv_path_MSGMERGE"
+if test "$MSGMERGE" != ":"; then
+ { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
+$as_echo "$MSGMERGE" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "$GMSGFMT" != ":"; then
+ if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
+ (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
+ : ;
+ else
+ GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
+ { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
+$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
+ GMSGFMT=":"
+ fi
+ fi
+
+ if test "$XGETTEXT" != ":"; then
+ if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
+ (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
+ : ;
+ else
+ { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
+$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
+ XGETTEXT=":"
+ fi
+ rm -f messages.po
+ fi
+
+ ac_config_commands="$ac_config_commands default-1"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
+$as_echo_n "checking whether NLS is requested... " >&6; }
+ # Check whether --enable-nls was given.
+if test "${enable_nls+set}" = set; then
+ enableval=$enable_nls; USE_NLS=$enableval
+else
+ USE_NLS=yes
+fi
+
+ { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
+$as_echo "$USE_NLS" >&6; }
+
+
+
+
+ LIBINTL=
+ LTLIBINTL=
+ POSUB=
+
+ if test "$USE_NLS" = "yes"; then
+ gt_use_preinstalled_gnugettext=no
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
+$as_echo_n "checking for GNU gettext in libc... " >&6; }
+if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libintl.h>
+extern int _nl_msg_cat_cntr;
+extern int *_nl_domain_bindings;
+int
+main ()
+{
+bindtextdomain ("", "");
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ gt_cv_func_gnugettext1_libc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ gt_cv_func_gnugettext1_libc=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
+$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
+
+ if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
+
+
+
+
+
+ am_save_CPPFLAGS="$CPPFLAGS"
+
+ for element in $INCICONV; do
+ haveit=
+ for x in $CPPFLAGS; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
+ fi
+ done
+
+
+ { $as_echo "$as_me:$LINENO: checking for iconv" >&5
+$as_echo_n "checking for iconv... " >&6; }
+if test "${am_cv_func_iconv+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+ am_cv_func_iconv="no, consider installing GNU libiconv"
+ am_cv_lib_iconv=no
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <iconv.h>
+int
+main ()
+{
+iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ am_cv_func_iconv=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$am_cv_func_iconv" != yes; then
+ am_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBICONV"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <iconv.h>
+int
+main ()
+{
+iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ am_cv_lib_iconv=yes
+ am_cv_func_iconv=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$am_save_LIBS"
+ fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
+$as_echo "$am_cv_func_iconv" >&6; }
+ if test "$am_cv_func_iconv" = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ICONV 1
+_ACEOF
+
+ fi
+ if test "$am_cv_lib_iconv" = yes; then
+ { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
+$as_echo_n "checking how to link with libiconv... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
+$as_echo "$LIBICONV" >&6; }
+ else
+ CPPFLAGS="$am_save_CPPFLAGS"
+ LIBICONV=
+ LTLIBICONV=
+ fi
+
+
+
+
+
+
+ use_additional=yes
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+
+# Check whether --with-libintl-prefix was given.
+if test "${with_libintl_prefix+set}" = set; then
+ withval=$with_libintl_prefix;
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/lib"
+ fi
+ fi
+
+fi
+
+ LIBINTL=
+ LTLIBINTL=
+ INCINTL=
+ rpathdirs=
+ ltrpathdirs=
+ names_already_handled=
+ names_next_round='intl '
+ while test -n "$names_next_round"; do
+ names_this_round="$names_next_round"
+ names_next_round=
+ for name in $names_this_round; do
+ already_handled=
+ for n in $names_already_handled; do
+ if test "$n" = "$name"; then
+ already_handled=yes
+ break
+ fi
+ done
+ if test -z "$already_handled"; then
+ names_already_handled="$names_already_handled $name"
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
+ eval value=\"\$HAVE_LIB$uppername\"
+ if test -n "$value"; then
+ if test "$value" = yes; then
+ eval value=\"\$LIB$uppername\"
+ test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
+ eval value=\"\$LTLIB$uppername\"
+ test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
+ else
+ :
+ fi
+ else
+ found_dir=
+ found_la=
+ found_so=
+ found_a=
+ if test $use_additional = yes; then
+ if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
+ found_dir="$additional_libdir"
+ found_so="$additional_libdir/lib$name.$shlibext"
+ if test -f "$additional_libdir/lib$name.la"; then
+ found_la="$additional_libdir/lib$name.la"
+ fi
+ else
+ if test -f "$additional_libdir/lib$name.$libext"; then
+ found_dir="$additional_libdir"
+ found_a="$additional_libdir/lib$name.$libext"
+ if test -f "$additional_libdir/lib$name.la"; then
+ found_la="$additional_libdir/lib$name.la"
+ fi
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ for x in $LDFLAGS $LTLIBINTL; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ case "$x" in
+ -L*)
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
+ if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
+ found_dir="$dir"
+ found_so="$dir/lib$name.$shlibext"
+ if test -f "$dir/lib$name.la"; then
+ found_la="$dir/lib$name.la"
+ fi
+ else
+ if test -f "$dir/lib$name.$libext"; then
+ found_dir="$dir"
+ found_a="$dir/lib$name.$libext"
+ if test -f "$dir/lib$name.la"; then
+ found_la="$dir/lib$name.la"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ if test "X$found_dir" != "X"; then
+ break
+ fi
+ done
+ fi
+ if test "X$found_dir" != "X"; then
+ LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
+ if test "X$found_so" != "X"; then
+ if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
+ else
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $found_dir"
+ fi
+ if test "$hardcode_direct" = yes; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
+ else
+ if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $found_dir"
+ fi
+ else
+ haveit=
+ for x in $LDFLAGS $LIBINTL; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
+ fi
+ if test "$hardcode_minus_L" != no; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
+ else
+ LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
+ fi
+ fi
+ fi
+ fi
+ else
+ if test "X$found_a" != "X"; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
+ else
+ LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
+ fi
+ fi
+ additional_includedir=
+ case "$found_dir" in
+ */lib | */lib/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
+ additional_includedir="$basedir/include"
+ ;;
+ esac
+ if test "X$additional_includedir" != "X"; then
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ for x in $CPPFLAGS $INCINTL; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ fi
+ if test -n "$found_la"; then
+ save_libdir="$libdir"
+ case "$found_la" in
+ */* | *\\*) . "$found_la" ;;
+ *) . "./$found_la" ;;
+ esac
+ libdir="$save_libdir"
+ for dep in $dependency_libs; do
+ case "$dep" in
+ -L*)
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
+ if test "X$additional_libdir" != "X/usr/lib"; then
+ haveit=
+ if test "X$additional_libdir" = "X/usr/local/lib"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ haveit=
+ for x in $LDFLAGS $LIBINTL; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
+ fi
+ fi
+ haveit=
+ for x in $LDFLAGS $LTLIBINTL; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ ;;
+ -R*)
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
+ if test "$enable_rpath" != no; then
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $dir"
+ fi
+ fi
+ ;;
+ -l*)
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
+ ;;
+ *.la)
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+ ;;
+ *)
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
+ LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
+ ;;
+ esac
+ done
+ fi
+ else
+ LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
+ LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
+ fi
+ fi
+ fi
+ done
+ done
+ if test "X$rpathdirs" != "X"; then
+ if test -n "$hardcode_libdir_separator"; then
+ alldirs=
+ for found_dir in $rpathdirs; do
+ alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
+ done
+ acl_save_libdir="$libdir"
+ libdir="$alldirs"
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
+ else
+ for found_dir in $rpathdirs; do
+ acl_save_libdir="$libdir"
+ libdir="$found_dir"
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
+ done
+ fi
+ fi
+ if test "X$ltrpathdirs" != "X"; then
+ for found_dir in $ltrpathdirs; do
+ LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
+ done
+ fi
+
+ { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
+$as_echo_n "checking for GNU gettext in libintl... " >&6; }
+if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ gt_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $INCINTL"
+ gt_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBINTL"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libintl.h>
+extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+"C"
+#endif
+const char *_nl_expand_alias ();
+int
+main ()
+{
+bindtextdomain ("", "");
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ gt_cv_func_gnugettext1_libintl=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ gt_cv_func_gnugettext1_libintl=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
+ LIBS="$LIBS $LIBICONV"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <libintl.h>
+extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+"C"
+#endif
+const char *_nl_expand_alias ();
+int
+main ()
+{
+bindtextdomain ("", "");
+return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ LIBINTL="$LIBINTL $LIBICONV"
+ LTLIBINTL="$LTLIBINTL $LTLIBICONV"
+ gt_cv_func_gnugettext1_libintl=yes
+
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ fi
+ CPPFLAGS="$gt_save_CPPFLAGS"
+ LIBS="$gt_save_LIBS"
+fi
+{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
+$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
+ fi
+
+ if test "$gt_cv_func_gnugettext1_libc" = "yes" \
+ || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
+ && test "$PACKAGE" != gettext-runtime \
+ && test "$PACKAGE" != gettext-tools; }; then
+ gt_use_preinstalled_gnugettext=yes
+ else
+ LIBINTL=
+ LTLIBINTL=
+ INCINTL=
+ fi
+
+
+
+ if test "$gt_use_preinstalled_gnugettext" = "yes" \
+ || test "$nls_cv_use_gnu_gettext" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_NLS 1
+_ACEOF
+
+ else
+ USE_NLS=no
+ fi
+ fi
+
+ { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
+$as_echo_n "checking whether to use NLS... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
+$as_echo "$USE_NLS" >&6; }
+ if test "$USE_NLS" = "yes"; then
+ { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
+$as_echo_n "checking where the gettext function comes from... " >&6; }
+ if test "$gt_use_preinstalled_gnugettext" = "yes"; then
+ if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
+ gt_source="external libintl"
+ else
+ gt_source="libc"
+ fi
+ else
+ gt_source="included intl directory"
+ fi
+ { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
+$as_echo "$gt_source" >&6; }
+ fi
+
+ if test "$USE_NLS" = "yes"; then
+
+ if test "$gt_use_preinstalled_gnugettext" = "yes"; then
+ if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
+ { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
+$as_echo_n "checking how to link with libintl... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
+$as_echo "$LIBINTL" >&6; }
+
+ for element in $INCINTL; do
+ haveit=
+ for x in $CPPFLAGS; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
+ fi
+ done
+
+ fi
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_GETTEXT 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_DCGETTEXT 1
+_ACEOF
+
+ fi
+
+ POSUB=po
+ fi
+
+
+
+ INTLLIBS="$LIBINTL"
+
+
+
+
+
+
+
+
+# Check whether --enable-hints-gnome was given.
+if test "${enable_hints_gnome+set}" = set; then
+ enableval=$enable_hints_gnome;
+else
+ enable_hints_gnome=no
+fi
+
+
+if test "x$enable_hints_gnome" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_GNOME 1
+_ACEOF
+
+fi
+ if test "x$enable_hints_gnome" = "xyes"; then
+ ENABLE_GNOME_TRUE=
+ ENABLE_GNOME_FALSE='#'
+else
+ ENABLE_GNOME_TRUE='#'
+ ENABLE_GNOME_FALSE=
+fi
+
+
+# Check whether --enable-sound was given.
+if test "${enable_sound+set}" = set; then
+ enableval=$enable_sound;
+else
+ enable_sound=yes
+fi
+
+if test "x$enable_sound" = "xyes"; then
+ # Check whether --enable-sound_pulse was given.
+if test "${enable_sound_pulse+set}" = set; then
+ enableval=$enable_sound_pulse;
+else
+ enable_sound_pulse=no
+fi
+
+ # Check whether --enable-sound_esound was given.
+if test "${enable_sound_esound+set}" = set; then
+ enableval=$enable_sound_esound;
+else
+ enable_sound_esound=yes
+fi
+
+fi
+enable_sound=no
+
+if test "x$enable_sound_pulse" = "xyes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for PA" >&5
+$as_echo_n "checking for PA... " >&6; }
+
+if test -n "$PA_CFLAGS"; then
+ pkg_cv_PA_CFLAGS="$PA_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse\"") >&5
+ ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_PA_CFLAGS=`$PKG_CONFIG --cflags "libpulse" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$PA_LIBS"; then
+ pkg_cv_PA_LIBS="$PA_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse\"") >&5
+ ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_PA_LIBS=`$PKG_CONFIG --libs "libpulse" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ PA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse" 2>&1`
+ else
+ PA_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$PA_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ enable_sound_pulse=no
+elif test $pkg_failed = untried; then
+ enable_sound_pulse=no
+else
+ PA_CFLAGS=$pkg_cv_PA_CFLAGS
+ PA_LIBS=$pkg_cv_PA_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ :
+fi
+fi
+if test "x$enable_sound_pulse" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SOUND 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SOUND_PA 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_SOUND_LOADER_AUDIOFILE 1
+_ACEOF
+
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for AUDIOFILE" >&5
+$as_echo_n "checking for AUDIOFILE... " >&6; }
+
+if test -n "$AUDIOFILE_CFLAGS"; then
+ pkg_cv_AUDIOFILE_CFLAGS="$AUDIOFILE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audiofile\"") >&5
+ ($PKG_CONFIG --exists --print-errors "audiofile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_AUDIOFILE_CFLAGS=`$PKG_CONFIG --cflags "audiofile" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$AUDIOFILE_LIBS"; then
+ pkg_cv_AUDIOFILE_LIBS="$AUDIOFILE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audiofile\"") >&5
+ ($PKG_CONFIG --exists --print-errors "audiofile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_AUDIOFILE_LIBS=`$PKG_CONFIG --libs "audiofile" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "audiofile" 2>&1`
+ else
+ AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "audiofile" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$AUDIOFILE_PKG_ERRORS" >&5
+
+ { { $as_echo "$as_me:$LINENO: error: Package requirements (audiofile) were not met:
+
+$AUDIOFILE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
+and AUDIOFILE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+" >&5
+$as_echo "$as_me: error: Package requirements (audiofile) were not met:
+
+$AUDIOFILE_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
+and AUDIOFILE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+" >&2;}
+ { (exit 1); exit 1; }; }
+elif test $pkg_failed = untried; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
+and AUDIOFILE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
+and AUDIOFILE_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+else
+ AUDIOFILE_CFLAGS=$pkg_cv_AUDIOFILE_CFLAGS
+ AUDIOFILE_LIBS=$pkg_cv_AUDIOFILE_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ :
+fi
+ enable_sound=pulseaudio
+ enable_sound_esound=no
+ PA_LIBS="$PA_LIBS $AUDIOFILE_LIBS"
+fi
+ if test "x$enable_sound_pulse" = "xyes"; then
+ USE_LIBPA_TRUE=
+ USE_LIBPA_FALSE='#'
+else
+ USE_LIBPA_TRUE='#'
+ USE_LIBPA_FALSE=
+fi
+
+
+if test "x$enable_sound_esound" = "xyes"; then
+
+# Check whether --with-esd-prefix was given.
+if test "${with_esd_prefix+set}" = set; then
+ withval=$with_esd_prefix; esd_prefix="$withval"
+else
+ esd_prefix=""
+fi
+
+
+# Check whether --with-esd-exec-prefix was given.
+if test "${with_esd_exec_prefix+set}" = set; then
+ withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
+else
+ esd_exec_prefix=""
+fi
+
+# Check whether --enable-esdtest was given.
+if test "${enable_esdtest+set}" = set; then
+ enableval=$enable_esdtest;
+else
+ enable_esdtest=yes
+fi
+
+
+ if test x$esd_exec_prefix != x ; then
+ esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
+ if test x${ESD_CONFIG+set} != xset ; then
+ ESD_CONFIG=$esd_exec_prefix/bin/esd-config
+ fi
+ fi
+ if test x$esd_prefix != x ; then
+ esd_args="$esd_args --prefix=$esd_prefix"
+ if test x${ESD_CONFIG+set} != xset ; then
+ ESD_CONFIG=$esd_prefix/bin/esd-config
+ fi
+ fi
+
+ # Extract the first word of "esd-config", so it can be a program name with args.
+set dummy esd-config; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $ESD_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
+ ;;
+esac
+fi
+ESD_CONFIG=$ac_cv_path_ESD_CONFIG
+if test -n "$ESD_CONFIG"; then
+ { $as_echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
+$as_echo "$ESD_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ min_esd_version=0.2.17
+ { $as_echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
+$as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
+ no_esd=""
+ if test "$ESD_CONFIG" = "no" ; then
+ no_esd=yes
+ else
+ ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
+ ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
+
+ esd_major_version=`$ESD_CONFIG $esd_args --version | \
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+ esd_minor_version=`$ESD_CONFIG $esd_args --version | \
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
+ esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
+ if test "x$enable_esdtest" = "xyes" ; then
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $ESD_CFLAGS"
+ LIBS="$LIBS $ESD_LIBS"
+ rm -f conf.esdtest
+ if test "$cross_compiling" = yes; then
+ echo $ac_n "cross compiling; assumed OK... $ac_c"
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <esd.h>
+
+char*
+my_strdup (char *str)
+{
+ char *new_str;
+
+ if (str)
+ {
+ new_str = malloc ((strlen (str) + 1) * sizeof(char));
+ strcpy (new_str, str);
+ }
+ else
+ new_str = NULL;
+
+ return new_str;
+}
+
+int main ()
+{
+ int major, minor, micro;
+ char *tmp_version;
+
+ system ("touch conf.esdtest");
+
+ /* HP/UX 9 (%@#!) writes to sscanf strings */
+ tmp_version = my_strdup("$min_esd_version");
+ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
+ printf("%s, bad version string\n", "$min_esd_version");
+ exit(1);
+ }
+
+ if (($esd_major_version > major) ||
+ (($esd_major_version == major) && ($esd_minor_version > minor)) ||
+ (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
+ {
+ return 0;
+ }
+ else
+ {
+ printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
+ printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
+ printf("*** best to upgrade to the required version.\n");
+ printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
+ printf("*** to point to the correct copy of esd-config, and remove the file\n");
+ printf("*** config.cache before re-running configure\n");
+ return 1;
+ }
+}
+
+
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+no_esd=yes
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ if test "x$no_esd" = x ; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ :
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ if test "$ESD_CONFIG" = "no" ; then
+ echo "*** The esd-config script installed by ESD could not be found"
+ echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
+ echo "*** your path, or set the ESD_CONFIG environment variable to the"
+ echo "*** full path to esd-config."
+ else
+ if test -f conf.esdtest ; then
+ :
+ else
+ echo "*** Could not run ESD test program, checking why..."
+ CFLAGS="$CFLAGS $ESD_CFLAGS"
+ LIBS="$LIBS $ESD_LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#include <stdio.h>
+#include <esd.h>
+
+int
+main ()
+{
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ echo "*** The test program compiled, but did not run. This usually means"
+ echo "*** that the run-time linker is not finding ESD or finding the wrong"
+ echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
+ echo "*** is required on your system"
+ echo "***"
+ echo "*** If you have an old version installed, it is best to remove it, although"
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ echo "*** The test program failed to compile or link. See the file config.log for the"
+ echo "*** exact error that occured. This usually means ESD was incorrectly installed"
+ echo "*** or that you have moved ESD since it was installed. In the latter case, you"
+ echo "*** may want to edit the esd-config script: $ESD_CONFIG"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ ESD_CFLAGS=""
+ ESD_LIBS=""
+
+ enable_sound_esound=no
+ { $as_echo "$as_me:$LINENO: WARNING: EsounD sound support was requested but not found." >&5
+$as_echo "$as_me: WARNING: EsounD sound support was requested but not found." >&2;}
+
+ fi
+
+
+ rm -f conf.esdtest
+
+
+for ac_header in audiofile.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## -------------------------------------------------------- ##
+## Report this to enlightenment-devel@lists.sourceforge.net ##
+## -------------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ enable_sound_esound=no
+fi
+
+done
+
+fi
+if test "x$enable_sound_esound" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SOUND 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SOUND_ESD 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_SOUND_LOADER_AUDIOFILE 1
+_ACEOF
+
+ enable_sound=esound
+fi
+ if test "x$enable_sound_esound" = "xyes"; then
+ USE_LIBESD_TRUE=
+ USE_LIBESD_FALSE='#'
+else
+ USE_LIBESD_TRUE='#'
+ USE_LIBESD_FALSE=
+fi
+
+
+# Save CPPFLAGS/LDFLAGS and add X_... to each
+SAVE_CPPFLAGS="$CPPFLAGS"
+SAVE_LDFLAGS="$LDFLAGS"
+CPPFLAGS="$X_CFLAGS $CPPFLAGS"
+LDFLAGS="$X_LIBS $LDFLAGS"
+
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for IMLIB2" >&5
+$as_echo_n "checking for IMLIB2... " >&6; }
+
+if test -n "$IMLIB2_CFLAGS"; then
+ pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2 >= 1.2.0\"") >&5
+ ($PKG_CONFIG --exists --print-errors "imlib2 >= 1.2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2 >= 1.2.0" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$IMLIB2_LIBS"; then
+ pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2 >= 1.2.0\"") >&5
+ ($PKG_CONFIG --exists --print-errors "imlib2 >= 1.2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2 >= 1.2.0" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "imlib2 >= 1.2.0" 2>&1`
+ else
+ IMLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "imlib2 >= 1.2.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$IMLIB2_PKG_ERRORS" >&5
+
+ { { $as_echo "$as_me:$LINENO: error: Package requirements (imlib2 >= 1.2.0) were not met:
+
+$IMLIB2_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables IMLIB2_CFLAGS
+and IMLIB2_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+" >&5
+$as_echo "$as_me: error: Package requirements (imlib2 >= 1.2.0) were not met:
+
+$IMLIB2_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables IMLIB2_CFLAGS
+and IMLIB2_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+" >&2;}
+ { (exit 1); exit 1; }; }
+elif test $pkg_failed = untried; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables IMLIB2_CFLAGS
+and IMLIB2_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables IMLIB2_CFLAGS
+and IMLIB2_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+else
+ IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
+ IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ have_good_imlib2=yes
+fi
+{ $as_echo "$as_me:$LINENO: checking for imlib_context_set_mask_alpha_threshold in -lImlib2" >&5
+$as_echo_n "checking for imlib_context_set_mask_alpha_threshold in -lImlib2... " >&6; }
+if test "${ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lImlib2 $IMLIB2_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char imlib_context_set_mask_alpha_threshold ();
+int
+main ()
+{
+return imlib_context_set_mask_alpha_threshold ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold" >&5
+$as_echo "$ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold" >&6; }
+if test "x$ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD 1
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for imlib_context_disconnect_display in -lImlib2" >&5
+$as_echo_n "checking for imlib_context_disconnect_display in -lImlib2... " >&6; }
+if test "${ac_cv_lib_Imlib2_imlib_context_disconnect_display+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lImlib2 $IMLIB2_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char imlib_context_disconnect_display ();
+int
+main ()
+{
+return imlib_context_disconnect_display ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Imlib2_imlib_context_disconnect_display=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Imlib2_imlib_context_disconnect_display=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib2_imlib_context_disconnect_display" >&5
+$as_echo "$ac_cv_lib_Imlib2_imlib_context_disconnect_display" >&6; }
+if test "x$ac_cv_lib_Imlib2_imlib_context_disconnect_display" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_IMLIB_CONTEXT_DISCONNECT_DISPLAY 1
+_ACEOF
+
+fi
+
+
+# Check whether --enable-sm was given.
+if test "${enable_sm+set}" = set; then
+ enableval=$enable_sm;
+else
+ enable_sm=yes
+fi
+
+if test "x$enable_sm" = "xyes"; then
+
+for ac_header in X11/SM/SMlib.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## -------------------------------------------------------- ##
+## Report this to enlightenment-devel@lists.sourceforge.net ##
+## -------------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ enable_sm=no
+fi
+
+done
+
+ { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
+$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
+if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lSM $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char SmcOpenConnection ();
+int
+main ()
+{
+return SmcOpenConnection ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_SM_SmcOpenConnection=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_SM_SmcOpenConnection=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
+$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
+if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
+ SM_LIBS="-lSM -lICE"
+else
+ enable_sm=no
+fi
+
+
+fi
+if test "x$enable_sm" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_SM 1
+_ACEOF
+
+fi
+
+# Check whether --enable-pango was given.
+if test "${enable_pango+set}" = set; then
+ enableval=$enable_pango;
+else
+ enable_pango=no
+fi
+
+if test "x$enable_pango" = "xyes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for PANGO" >&5
+$as_echo_n "checking for PANGO... " >&6; }
+
+if test -n "$PANGO_CFLAGS"; then
+ pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
+ ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$PANGO_LIBS"; then
+ pkg_cv_PANGO_LIBS="$PANGO_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
+ ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoxft" 2>&1`
+ else
+ PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoxft" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$PANGO_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ enable_pango=no
+elif test $pkg_failed = untried; then
+ enable_pango=no
+else
+ PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
+ PANGO_LIBS=$pkg_cv_PANGO_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_PANGO 1
+_ACEOF
+
+fi
+fi
+ if test "x$enable_pango" = "xyes"; then
+ USE_LIBPANGO_TRUE=
+ USE_LIBPANGO_FALSE='#'
+else
+ USE_LIBPANGO_TRUE='#'
+ USE_LIBPANGO_FALSE=
+fi
+
+
+# Check whether --enable-xft was given.
+if test "${enable_xft+set}" = set; then
+ enableval=$enable_xft;
+else
+ enable_xft=yes
+fi
+
+if test "x$enable_xft" = "xyes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for XFT" >&5
+$as_echo_n "checking for XFT... " >&6; }
+
+if test -n "$XFT_CFLAGS"; then
+ pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
+ ($PKG_CONFIG --exists --print-errors "xft") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$XFT_LIBS"; then
+ pkg_cv_XFT_LIBS="$XFT_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
+ ($PKG_CONFIG --exists --print-errors "xft") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1`
+ else
+ XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XFT_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ enable_xft=no
+elif test $pkg_failed = untried; then
+ enable_xft=no
+else
+ XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
+ XFT_LIBS=$pkg_cv_XFT_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_XFT 1
+_ACEOF
+
+fi
+fi
+ if test "x$enable_xft" = "xyes"; then
+ USE_LIBXFT_TRUE=
+ USE_LIBXFT_FALSE='#'
+else
+ USE_LIBXFT_TRUE='#'
+ USE_LIBXFT_FALSE=
+fi
+
+
+# Check whether --enable-ecore was given.
+if test "${enable_ecore+set}" = set; then
+ enableval=$enable_ecore;
+else
+ enable_ecore=no
+fi
+
+if test "x$enable_ecore" = "xyes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for ECORE" >&5
+$as_echo_n "checking for ECORE... " >&6; }
+
+if test -n "$ECORE_CFLAGS"; then
+ pkg_cv_ECORE_CFLAGS="$ECORE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ecore ecore-x\"") >&5
+ ($PKG_CONFIG --exists --print-errors "ecore ecore-x") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ECORE_CFLAGS=`$PKG_CONFIG --cflags "ecore ecore-x" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ECORE_LIBS"; then
+ pkg_cv_ECORE_LIBS="$ECORE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ecore ecore-x\"") >&5
+ ($PKG_CONFIG --exists --print-errors "ecore ecore-x") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ECORE_LIBS=`$PKG_CONFIG --libs "ecore ecore-x" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ECORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore ecore-x" 2>&1`
+ else
+ ECORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore ecore-x" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ECORE_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ enable_ecore=no
+elif test $pkg_failed = untried; then
+ enable_ecore=no
+else
+ ECORE_CFLAGS=$pkg_cv_ECORE_CFLAGS
+ ECORE_LIBS=$pkg_cv_ECORE_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_ECORE 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_ECORE_X 1
+_ACEOF
+
+fi
+fi
+
+# Is this reasonably correct?
+# Check whether --enable-glx was given.
+if test "${enable_glx+set}" = set; then
+ enableval=$enable_glx;
+else
+ enable_glx=no
+fi
+
+if test "x$enable_glx" = "xyes"; then
+
+
+
+for ac_header in GL/gl.h GL/glu.h GL/glx.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## -------------------------------------------------------- ##
+## Report this to enlightenment-devel@lists.sourceforge.net ##
+## -------------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ { { $as_echo "$as_me:$LINENO: error: Cannot find GLX headers" >&5
+$as_echo "$as_me: error: Cannot find GLX headers" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+done
+
+ { $as_echo "$as_me:$LINENO: checking for glXCreateNewContext in -lGL" >&5
+$as_echo_n "checking for glXCreateNewContext in -lGL... " >&6; }
+if test "${ac_cv_lib_GL_glXCreateNewContext+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lGL $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char glXCreateNewContext ();
+int
+main ()
+{
+return glXCreateNewContext ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_GL_glXCreateNewContext=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_GL_glXCreateNewContext=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateNewContext" >&5
+$as_echo "$ac_cv_lib_GL_glXCreateNewContext" >&6; }
+if test "x$ac_cv_lib_GL_glXCreateNewContext" = x""yes; then
+
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_GLX 1
+_ACEOF
+
+ GLX_LIBS="-lGL -lGLU"
+
+else
+
+ { { $as_echo "$as_me:$LINENO: error: Cannot find GLX libraries" >&5
+$as_echo "$as_me: error: Cannot find GLX libraries" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+
+ { $as_echo "$as_me:$LINENO: checking for glXBindTexImageEXT in -lGL" >&5
+$as_echo_n "checking for glXBindTexImageEXT in -lGL... " >&6; }
+if test "${ac_cv_lib_GL_glXBindTexImageEXT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lGL $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char glXBindTexImageEXT ();
+int
+main ()
+{
+return glXBindTexImageEXT ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_GL_glXBindTexImageEXT=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_GL_glXBindTexImageEXT=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXBindTexImageEXT" >&5
+$as_echo "$ac_cv_lib_GL_glXBindTexImageEXT" >&6; }
+if test "x$ac_cv_lib_GL_glXBindTexImageEXT" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_GLX_glXBindTexImageEXT 1
+_ACEOF
+
+fi
+
+
+fi
+ if test "x$enable_glx" = "xyes"; then
+ ENABLE_GLX_TRUE=
+ ENABLE_GLX_FALSE='#'
+else
+ ENABLE_GLX_TRUE='#'
+ ENABLE_GLX_FALSE=
+fi
+
+
+{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
+$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
+if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XShapeQueryExtension ();
+int
+main ()
+{
+return XShapeQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xext_XShapeQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xext_XShapeQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
+ E_X_LIBS="-lXext $E_X_LIBS"
+else
+ { { $as_echo "$as_me:$LINENO: error: Shape support is required but was not found" >&5
+$as_echo "$as_me: error: Shape support is required but was not found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+
+# Check whether --enable-xinerama was given.
+if test "${enable_xinerama+set}" = set; then
+ enableval=$enable_xinerama;
+else
+ enable_xinerama=yes
+fi
+
+if test "x$enable_xinerama" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
+$as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
+if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXinerama -lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XineramaQueryExtension ();
+int
+main ()
+{
+return XineramaQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xinerama_XineramaQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xinerama_XineramaQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_XINERAMA 1
+_ACEOF
+
+ XINERAMA_LIBS="-lXinerama"
+else
+ enable_xinerama=no
+ { $as_echo "$as_me:$LINENO: WARNING: Xinerama support was requested but not found" >&5
+$as_echo "$as_me: WARNING: Xinerama support was requested but not found" >&2;}
+fi
+
+fi
+
+
+# Check whether --enable-zoom was given.
+if test "${enable_zoom+set}" = set; then
+ enableval=$enable_zoom;
+else
+ enable_zoom=yes
+fi
+
+if test "x$enable_zoom" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
+$as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
+if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXxf86vm -lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XF86VidModeQueryExtension ();
+int
+main ()
+{
+return XF86VidModeQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define WITH_ZOOM 1
+_ACEOF
+
+ E_X_LIBS="-lXxf86vm $E_X_LIBS"
+else
+ enable_zoom=no
+ { $as_echo "$as_me:$LINENO: WARNING: Zoom support was requested but not found" >&5
+$as_echo "$as_me: WARNING: Zoom support was requested but not found" >&2;}
+fi
+
+fi
+
+# Check whether --enable-xsync was given.
+if test "${enable_xsync+set}" = set; then
+ enableval=$enable_xsync;
+else
+ enable_xsync=yes
+fi
+
+if test "x$enable_xsync" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for XSyncQueryExtension in -lXext" >&5
+$as_echo_n "checking for XSyncQueryExtension in -lXext... " >&6; }
+if test "${ac_cv_lib_Xext_XSyncQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XSyncQueryExtension ();
+int
+main ()
+{
+return XSyncQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xext_XSyncQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xext_XSyncQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XSyncQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xext_XSyncQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xext_XSyncQueryExtension" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_XSYNC 1
+_ACEOF
+
+else
+ enable_xsync=no
+ { $as_echo "$as_me:$LINENO: WARNING: Sync support was requested but not found" >&5
+$as_echo "$as_me: WARNING: Sync support was requested but not found" >&2;}
+fi
+
+fi
+
+# Check whether --enable-xscrnsaver was given.
+if test "${enable_xscrnsaver+set}" = set; then
+ enableval=$enable_xscrnsaver;
+else
+ enable_xscrnsaver=no
+fi
+
+if test "x$enable_xscrnsaver" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for XScreenSaverQueryExtension in -lXss" >&5
+$as_echo_n "checking for XScreenSaverQueryExtension in -lXss... " >&6; }
+if test "${ac_cv_lib_Xss_XScreenSaverQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXss -lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XScreenSaverQueryExtension ();
+int
+main ()
+{
+return XScreenSaverQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xss_XScreenSaverQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xss_XScreenSaverQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xss_XScreenSaverQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xss_XScreenSaverQueryExtension" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_XSCREENSAVER 1
+_ACEOF
+
+ E_X_LIBS="-lXss $E_X_LIBS"
+else
+ enable_xscrnsaver=no
+ { $as_echo "$as_me:$LINENO: WARNING: ScreenSaver support was requested but not found" >&5
+$as_echo "$as_me: WARNING: ScreenSaver support was requested but not found" >&2;}
+fi
+
+fi
+
+# Check whether --enable-xrandr was given.
+if test "${enable_xrandr+set}" = set; then
+ enableval=$enable_xrandr;
+else
+ enable_xrandr=yes
+fi
+
+if test "x$enable_xrandr" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
+$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
+if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXrandr -lXrender -lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XRRQueryExtension ();
+int
+main ()
+{
+return XRRQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xrandr_XRRQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xrandr_XRRQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_XRANDR 1
+_ACEOF
+
+ E_X_LIBS="-lXrandr -lXrender $E_X_LIBS"
+else
+ enable_xrandr=no
+ { $as_echo "$as_me:$LINENO: WARNING: RandR support was requested but not found" >&5
+$as_echo "$as_me: WARNING: RandR support was requested but not found" >&2;}
+fi
+
+
+for ac_header in X11/extensions/Xrandr.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+fi
+
+# FIXME - Do this properly
+# Check whether --enable-composite was given.
+if test "${enable_composite+set}" = set; then
+ enableval=$enable_composite;
+else
+ enable_composite=yes
+fi
+
+if test "x$enable_composite" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for XCompositeQueryExtension in -lXcomposite" >&5
+$as_echo_n "checking for XCompositeQueryExtension in -lXcomposite... " >&6; }
+if test "${ac_cv_lib_Xcomposite_XCompositeQueryExtension+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXcomposite -lXext -lX11 $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XCompositeQueryExtension ();
+int
+main ()
+{
+return XCompositeQueryExtension ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Xcomposite_XCompositeQueryExtension=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Xcomposite_XCompositeQueryExtension=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&5
+$as_echo "$ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&6; }
+if test "x$ac_cv_lib_Xcomposite_XCompositeQueryExtension" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_COMPOSITE 1
+_ACEOF
+
+ E_X_LIBS="-lXcomposite -lXdamage -lXfixes -lXrender $E_X_LIBS"
+else
+ enable_composite=no
+fi
+
+
+for ac_header in X11/extensions/Xcomposite.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ enable_composite=no
+fi
+
+done
+
+
+for ac_header in X11/extensions/Xdamage.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ enable_composite=no
+fi
+
+done
+
+
+for ac_header in X11/extensions/Xfixes.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ enable_composite=no
+fi
+
+done
+
+
+for ac_header in X11/extensions/Xrender.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <X11/Xlib.h>
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ enable_composite=no
+fi
+
+done
+
+ if test "x$enable_composite" != "xyes"; then
+ { $as_echo "$as_me:$LINENO: WARNING: Composite support was requested but required component was not found" >&5
+$as_echo "$as_me: WARNING: Composite support was requested but required component was not found" >&2;}
+ fi
+fi
+ if test "x$enable_composite" = "xyes"; then
+ ENABLE_COMPOSITE_TRUE=
+ ENABLE_COMPOSITE_FALSE='#'
+else
+ ENABLE_COMPOSITE_TRUE='#'
+ ENABLE_COMPOSITE_FALSE=
+fi
+
+
+# Check whether --enable-dbus was given.
+if test "${enable_dbus+set}" = set; then
+ enableval=$enable_dbus;
+else
+ enable_dbus=no
+fi
+
+if test "x$enable_dbus" = "xyes"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
+$as_echo_n "checking for DBUS... " >&6; }
+
+if test -n "$DBUS_CFLAGS"; then
+ pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
+ ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$DBUS_LIBS"; then
+ pkg_cv_DBUS_LIBS="$DBUS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
+ ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
+ else
+ DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$DBUS_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ enable_dbus=no
+elif test $pkg_failed = untried; then
+ enable_dbus=no
+else
+ DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
+ DBUS_LIBS=$pkg_cv_DBUS_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_DBUS 1
+_ACEOF
+
+fi
+fi
+ if test "x$enable_dbus" = "xyes"; then
+ ENABLE_DBUS_TRUE=
+ ENABLE_DBUS_FALSE='#'
+else
+ ENABLE_DBUS_TRUE='#'
+ ENABLE_DBUS_FALSE=
+fi
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for mass_quantities_of_bass_ale in -lFridge" >&5
+$as_echo_n "checking for mass_quantities_of_bass_ale in -lFridge... " >&6; }
+if test "${ac_cv_lib_Fridge_mass_quantities_of_bass_ale+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lFridge $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char mass_quantities_of_bass_ale ();
+int
+main ()
+{
+return mass_quantities_of_bass_ale ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Fridge_mass_quantities_of_bass_ale=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Fridge_mass_quantities_of_bass_ale=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Fridge_mass_quantities_of_bass_ale" >&5
+$as_echo "$ac_cv_lib_Fridge_mass_quantities_of_bass_ale" >&6; }
+if test "x$ac_cv_lib_Fridge_mass_quantities_of_bass_ale" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBFRIDGE 1
+_ACEOF
+
+ LIBS="-lFridge $LIBS"
+
+fi
+
+
+{ $as_echo "$as_me:$LINENO: checking for mass_quantities_of_any_ale in -lFridge" >&5
+$as_echo_n "checking for mass_quantities_of_any_ale in -lFridge... " >&6; }
+if test "${ac_cv_lib_Fridge_mass_quantities_of_any_ale+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lFridge $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char mass_quantities_of_any_ale ();
+int
+main ()
+{
+return mass_quantities_of_any_ale ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_Fridge_mass_quantities_of_any_ale=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_Fridge_mass_quantities_of_any_ale=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Fridge_mass_quantities_of_any_ale" >&5
+$as_echo "$ac_cv_lib_Fridge_mass_quantities_of_any_ale" >&6; }
+if test "x$ac_cv_lib_Fridge_mass_quantities_of_any_ale" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBFRIDGE 1
+_ACEOF
+
+ LIBS="-lFridge $LIBS"
+
+else
+
+ echo "Warning: No ales were found in your refrigerator."
+ echo " We highly suggest that you rectify this situation immediately."
+
+fi
+
+
+# Restore CPPFLAGS/LDFLAGS
+CPPFLAGS="$SAVE_CPPFLAGS"
+LDFLAGS="$SAVE_LDFLAGS"
+
+# Check whether --enable-roothacklib was given.
+if test "${enable_roothacklib+set}" = set; then
+ enableval=$enable_roothacklib;
+else
+ enable_roothacklib=yes
+fi
+
+if test "x$enable_roothacklib" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dl_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
+ DLOPEN_LIBS=-ldl
+else
+ enable_roothacklib=no
+fi
+
+
+fi
+if test "x$enable_roothacklib" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_ROOTHACKLIB 1
+_ACEOF
+
+fi
+ if test "x$enable_roothacklib" = "xyes"; then
+ BUILD_ROOTHACKLIB_TRUE=
+ BUILD_ROOTHACKLIB_FALSE='#'
+else
+ BUILD_ROOTHACKLIB_TRUE='#'
+ BUILD_ROOTHACKLIB_FALSE=
+fi
+
+
+# Check whether --enable-modules was given.
+if test "${enable_modules+set}" = set; then
+ enableval=$enable_modules;
+else
+ enable_modules=no
+fi
+
+if test "x$enable_modules" = "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dl_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
+ DLOPEN_LIBS=-ldl
+else
+ enable_modules=no
+fi
+
+
+fi
+if test "x$enable_modules" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_MODULES 1
+_ACEOF
+
+fi
+ if test "x$enable_modules" = "xyes"; then
+ BUILD_MODULES_TRUE=
+ BUILD_MODULES_FALSE='#'
+else
+ BUILD_MODULES_TRUE='#'
+ BUILD_MODULES_FALSE=
+fi
+
+
+# Check whether --enable-visibility-hiding was given.
+if test "${enable_visibility_hiding+set}" = set; then
+ enableval=$enable_visibility_hiding;
+else
+ enable_visibility_hiding=no
+
+fi
+
+if test "x$enable_visibility_hiding" = xyes ; then
+ CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
+fi
+
+# Check whether --enable-dialogs was given.
+if test "${enable_dialogs+set}" = set; then
+ enableval=$enable_dialogs;
+else
+ enable_dialogs=yes
+fi
+
+if test "x$enable_dialogs" = "xyes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_DIALOGS 1
+_ACEOF
+
+fi
+
+# Check whether --enable-docs was given.
+if test "${enable_docs+set}" = set; then
+ enableval=$enable_docs;
+else
+ enable_docs=yes
+fi
+
+if test "x$enable_docs" = "xyes"; then
+ # Extract the first word of "xmlto", so it can be a program name with args.
+set dummy xmlto; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_XMLTO+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$XMLTO"; then
+ ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_XMLTO="xmlto"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+XMLTO=$ac_cv_prog_XMLTO
+if test -n "$XMLTO"; then
+ { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
+$as_echo "$XMLTO" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test "x$XMLTO" = "x"; then
+ enable_docs=no
+ fi
+fi
+ if test "x$XMLTO" != "x"; then
+ HAVE_XMLTO_TRUE=
+ HAVE_XMLTO_FALSE='#'
+else
+ HAVE_XMLTO_TRUE='#'
+ HAVE_XMLTO_FALSE=
+fi
+
+
+# Check whether --enable-gcc-cpp was given.
+if test "${enable_gcc_cpp+set}" = set; then
+ enableval=$enable_gcc_cpp;
+else
+ enable_gcc_cpp=no
+fi
+
+if test "x$enable_gcc_cpp" = "xyes"; then
+ CC="g++"
+ CPPFLAGS="$CPPFLAGS -x c++"
+
+
+
+ # Check whether --enable-werror was given.
+if test "${enable_werror+set}" = set; then
+ enableval=$enable_werror;
+else
+ enable_werror=no
+fi
+
+
+ if test "x$GCC" = "xyes"; then
+ CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings"
+
+
+ if test "x$enable_werror" = "xyes"; then
+ CWARNFLAGS="$CWARNFLAGS -Werror"
+ fi
+ fi
+
+
+else
+
+
+
+ # Check whether --enable-werror was given.
+if test "${enable_werror+set}" = set; then
+ enableval=$enable_werror;
+else
+ enable_werror=no
+fi
+
+
+ if test "x$GCC" = "xyes"; then
+ CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings"
+
+ CWARNFLAGS="$CWARNFLAGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes"
+
+
+ if test "x$enable_werror" = "xyes"; then
+ CWARNFLAGS="$CWARNFLAGS -Werror"
+ fi
+ fi
+
+
+fi
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _GNU_SOURCE 1
+_ACEOF
+
+
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_EXT_INIT_WIN 1
+_ACEOF
+
+
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_DESKRAY 0
+_ACEOF
+
+
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_TRANSPARENCY 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_THEME_TRANSPARENCY 1
+_ACEOF
+
+
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+
+ac_config_files="$ac_config_files Makefile src/Makefile dox/Makefile dox/E-docs/Makefile eesh/Makefile epp/Makefile lib/Makefile config/Makefile config/pix/Makefile themes/Makefile fonts/Makefile scripts/Makefile misc/Makefile docs/Makefile po/Makefile.in e16.spec"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) $as_unset $ac_var ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes (double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \).
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ test "x$cache_file" != "x/dev/null" &&
+ { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ cat confcache >$cache_file
+ else
+ { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+if test -z "${USE_ESNPRINTF_TRUE}" && test -z "${USE_ESNPRINTF_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ESNPRINTF\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"USE_ESNPRINTF\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${ENABLE_GNOME_TRUE}" && test -z "${ENABLE_GNOME_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GNOME\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"ENABLE_GNOME\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${USE_LIBPA_TRUE}" && test -z "${USE_LIBPA_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBPA\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"USE_LIBPA\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${USE_LIBESD_TRUE}" && test -z "${USE_LIBESD_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBESD\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"USE_LIBESD\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${USE_LIBPANGO_TRUE}" && test -z "${USE_LIBPANGO_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBPANGO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"USE_LIBPANGO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${USE_LIBXFT_TRUE}" && test -z "${USE_LIBXFT_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBXFT\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"USE_LIBXFT\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${ENABLE_GLX_TRUE}" && test -z "${ENABLE_GLX_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GLX\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"ENABLE_GLX\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${ENABLE_COMPOSITE_TRUE}" && test -z "${ENABLE_COMPOSITE_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COMPOSITE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"ENABLE_COMPOSITE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${ENABLE_DBUS_TRUE}" && test -z "${ENABLE_DBUS_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_DBUS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"ENABLE_DBUS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${BUILD_ROOTHACKLIB_TRUE}" && test -z "${BUILD_ROOTHACKLIB_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ROOTHACKLIB\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"BUILD_ROOTHACKLIB\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MODULES\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"BUILD_MODULES\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+: ${CONFIG_STATUS=./config.status}
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, and appends
+ # trailing '-' during substitution so that $LINENO is not a special
+ # case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+
+# Save the log message, to keep $[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by e16 $as_me 1.0.0, which was
+generated by GNU Autoconf 2.63. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTION]... [FILE]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <bug-autoconf@gnu.org>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_version="\\
+e16 config.status 1.0.0
+configured by $0, generated by GNU Autoconf 2.63,
+ with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ { $as_echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; };;
+ --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) { $as_echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; } ;;
+
+ *) ac_config_targets="$ac_config_targets $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+# Capture the value of obsolete ALL_LINGUAS because we need it to compute
+ # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
+ # from automake.
+ eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
+ # Capture the value of LINGUAS because we need it to compute CATALOGS.
+ LINGUAS="${LINGUAS-%UNSET%}"
+
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "dox/Makefile") CONFIG_FILES="$CONFIG_FILES dox/Makefile" ;;
+ "dox/E-docs/Makefile") CONFIG_FILES="$CONFIG_FILES dox/E-docs/Makefile" ;;
+ "eesh/Makefile") CONFIG_FILES="$CONFIG_FILES eesh/Makefile" ;;
+ "epp/Makefile") CONFIG_FILES="$CONFIG_FILES epp/Makefile" ;;
+ "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
+ "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
+ "config/pix/Makefile") CONFIG_FILES="$CONFIG_FILES config/pix/Makefile" ;;
+ "themes/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Makefile" ;;
+ "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
+ "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
+ "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
+ "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
+ "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
+ "e16.spec") CONFIG_FILES="$CONFIG_FILES e16.spec" ;;
+
+ *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp=
+ trap 'exit_status=$?
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+' 0
+ trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} ||
+{
+ $as_echo "$as_me: cannot create a temporary directory in ." >&2
+ { (exit 1); exit 1; }
+}
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr='\r'
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\).*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\).*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = "\a"
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+ || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
+$as_echo "$as_me: error: could not setup config files machinery" >&2;}
+ { (exit 1); exit 1; }; }
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
+s/:*\$(srcdir):*/:/
+s/:*\${srcdir}:*/:/
+s/:*@srcdir@:*/:/
+s/^\([^=]*=[ ]*\):*/\1/
+s/:*$//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_t=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_t"; then
+ break
+ elif $ac_last_try; then
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = "\a"
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
+$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
+ { (exit 1); exit 1; }; }
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
+$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
+ { (exit 1); exit 1; }; };;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
+$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ ac_file_inputs="$ac_file_inputs '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$tmp/stdin" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ { as_dir="$ac_dir"
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p
+'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=no;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&2;}
+
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out" && rm -f "$tmp/out";;
+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+ esac \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
+ } >"$tmp/config.h" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$tmp/config.h" "$ac_file" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
+$as_echo "$as_me: error: could not create -" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
+ X"$_am_arg" : 'X\(//\)$' \| \
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$_am_arg" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
+
+ :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
+$as_echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$mf" : 'X\(//\)[^/]' \| \
+ X"$mf" : 'X\(//\)$' \| \
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$mf" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$file" : 'X\(//\)[^/]' \| \
+ X"$file" : 'X\(//\)$' \| \
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ { as_dir=$dirpart/$fdir
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+ ;;
+ "default-1":C)
+ for ac_file in $CONFIG_FILES; do
+ # Support "outfile[:infile[:infile...]]"
+ case "$ac_file" in
+ *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ esac
+ # PO directories have a Makefile.in generated from Makefile.in.in.
+ case "$ac_file" in */Makefile.in)
+ # Adjust a relative srcdir.
+ ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
+ ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
+ ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
+ # In autoconf-2.13 it is called $ac_given_srcdir.
+ # In autoconf-2.50 it is called $srcdir.
+ test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
+ case "$ac_given_srcdir" in
+ .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+ /*) top_srcdir="$ac_given_srcdir" ;;
+ *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
+ esac
+ if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
+ rm -f "$ac_dir/POTFILES"
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
+ cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
+ POMAKEFILEDEPS="POTFILES.in"
+ # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
+ # on $ac_dir but don't depend on user-specified configuration
+ # parameters.
+ if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
+ # The LINGUAS file contains the set of available languages.
+ if test -n "$OBSOLETE_ALL_LINGUAS"; then
+ test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
+ fi
+ ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
+ # Hide the ALL_LINGUAS assigment from automake.
+ eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
+ POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
+ else
+ # The set of available languages was given in configure.in.
+ eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
+ fi
+ case "$ac_given_srcdir" in
+ .) srcdirpre= ;;
+ *) srcdirpre='$(srcdir)/' ;;
+ esac
+ POFILES=
+ GMOFILES=
+ UPDATEPOFILES=
+ DUMMYPOFILES=
+ for lang in $ALL_LINGUAS; do
+ POFILES="$POFILES $srcdirpre$lang.po"
+ GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
+ UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
+ DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
+ done
+ # CATALOGS depends on both $ac_dir and the user's LINGUAS
+ # environment variable.
+ INST_LINGUAS=
+ if test -n "$ALL_LINGUAS"; then
+ for presentlang in $ALL_LINGUAS; do
+ useit=no
+ if test "%UNSET%" != "$LINGUAS"; then
+ desiredlanguages="$LINGUAS"
+ else
+ desiredlanguages="$ALL_LINGUAS"
+ fi
+ for desiredlang in $desiredlanguages; do
+ # Use the presentlang catalog if desiredlang is
+ # a. equal to presentlang, or
+ # b. a variant of presentlang (because in this case,
+ # presentlang can be used as a fallback for messages
+ # which are not translated in the desiredlang catalog).
+ case "$desiredlang" in
+ "$presentlang"*) useit=yes;;
+ esac
+ done
+ if test $useit = yes; then
+ INST_LINGUAS="$INST_LINGUAS $presentlang"
+ fi
+ done
+ fi
+ CATALOGS=
+ if test -n "$INST_LINGUAS"; then
+ for lang in $INST_LINGUAS; do
+ CATALOGS="$CATALOGS $lang.gmo"
+ done
+ fi
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
+ sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
+ for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
+ if test -f "$f"; then
+ case "$f" in
+ *.orig | *.bak | *~) ;;
+ *) cat "$f" >> "$ac_dir/Makefile" ;;
+ esac
+ fi
+ done
+ fi
+ ;;
+ esac
+ done ;;
+
+ esac
+done # for ac_tag
+
+
+{ (exit 0); exit 0; }
+_ACEOF
+chmod +x $CONFIG_STATUS
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != no; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = no &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || { (exit 1); exit 1; }
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
+
+if test "x$have_good_imlib2" != "xyes"; then
+ echo "***************************************************************"
+ echo "*** WARNING: imlib2 >= 1.2.0 was not detected ***"
+ echo "*** WARNING: If you indeed do not have this, expect trouble ***"
+ echo "***************************************************************"
+fi
+
+echo
+echo "------------------------------------------------------------------------"
+echo "$PACKAGE Version $VERSION"
+echo "------------------------------------------------------------------------"
+echo
+echo "Configuration summary"
+echo
+echo "Support for"
+echo " Localisation ................. $USE_NLS"
+echo " Sound ........................ $enable_sound"
+echo " Old GNOME hints .............. $enable_hints_gnome"
+echo " Session management ........... $enable_sm"
+echo " Zoom ......................... $enable_zoom"
+echo " Pango ........................ $enable_pango"
+echo " Xft .......................... $enable_xft"
+echo " Xinerama ..................... $enable_xinerama"
+echo " RandR ........................ $enable_xrandr"
+echo " Sync ......................... $enable_xsync"
+echo " Composite .................... $enable_composite"
+echo " Modules ...................... $enable_modules"
+echo " Visibility hiding ............ $enable_visibility_hiding (only useful with modules)"
+echo " Window mode helper library ... $enable_roothacklib"
+echo " Dialogs ...................... $enable_dialogs"
+echo
+echo "Experimental options - DO NOT USE unless you know what you are doing"
+echo " Compile with ecore/ecore_x ... $enable_ecore"
+echo " GLX .......................... $enable_glx"
+echo " ScreenSaver .................. $enable_xscrnsaver"
+echo " D-Bus ........................ $enable_dbus"
+echo
+echo "Installation path .............. $prefix"
+echo " Install HTML docs ............ $enable_docs"
+echo
+echo "Compilation .................... make"
+echo "Installation ................... make install"
+echo
--- /dev/null
+m4_define([pkg_version], [1.0.0])
+dnl m4_define([pkg_revision], [901])
+m4_define([pkg_version], m4_ifdef([pkg_revision], [pkg_version.pkg_revision], [pkg_version]))
+m4_define([rpm_revision], m4_ifdef([pkg_revision], [0.`date '+%y%m%d'`], [1]))
+
+AC_INIT([e16], [pkg_version], [enlightenment-devel@lists.sourceforge.net])
+AM_INIT_AUTOMAKE([foreign])
+
+AC_SUBST(E_RPM_REVISION, [rpm_revision])
+
+# reasonable guesses for where stuff is installed
+if test "x$prefix" = "xNONE"; then
+ prefix=$ac_default_prefix
+fi
+if test "x$exec_prefix" = "xNONE"; then
+ exec_prefix=$prefix
+fi
+
+AM_MAINTAINER_MODE
+
+AC_PROG_CC
+AM_PROG_CC_C_O
+
+AC_PROG_MAKE_SET
+AC_PROG_INSTALL
+
+PKG_PROG_PKG_CONFIG
+
+AC_HEADER_STDC
+
+define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
+define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
+define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])dnl
+AC_ENABLE_SHARED
+AC_DISABLE_STATIC
+AC_LIBTOOL_DLOPEN
+AC_PROG_LIBTOOL
+
+AC_PATH_X
+AC_PATH_XTRA
+
+AC_CHECK_HEADERS(alloca.h locale.h stdarg.h wctype.h)
+
+AC_TYPE_SIGNAL
+
+AC_C_BIGENDIAN
+AC_C_CONST
+AC_C_INLINE
+AC_C___ATTRIBUTE__
+AC_CHECK_SIZEOF(int, 4)
+AC_CHECK_SIZEOF(long, 4)
+AC_CHECK_SIZEOF(wchar_t, 4)
+
+AC_CHECK_FUNCS(snprintf)
+AM_CONDITIONAL(USE_ESNPRINTF, test "x$ac_cv_func_snprintf" != "xyes")
+AC_CHECK_FUNCS(strcasecmp strcasestr)
+AC_CHECK_FUNCS(setenv unsetenv)
+AC_CHECK_FUNCS(strdup strndup)
+
+AC_CHECK_FUNCS(blumfrub)
+AC_CHECK_FUNCS(buckets_of_erogenous_nym)
+AC_CHECK_FUNCS(buttox)
+
+AM_ICONV
+AM_LANGINFO_CODESET
+
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.12.1])
+
+AC_ARG_ENABLE(hints-gnome,
+ [ --enable-hints-gnome compile with GNOME(<2.0) hints support @<:@default=no@:>@],,
+ enable_hints_gnome=no)
+
+if test "x$enable_hints_gnome" = "xyes"; then
+ AC_DEFINE(ENABLE_GNOME, 1, [GNOME(<2.0) Hints])
+fi
+AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_hints_gnome" = "xyes")
+
+AC_ARG_ENABLE(sound,
+ [ --enable-sound compile with sound support @<:@default=yes@:>@],,
+ enable_sound=yes)
+if test "x$enable_sound" = "xyes"; then
+ AC_ARG_ENABLE(sound_pulse,
+ [ --enable-sound-pulse compile with PulseAudio sound support @<:@default=no@:>@],,
+ enable_sound_pulse=no)
+ AC_ARG_ENABLE(sound_esound,
+ [ --enable-sound-esound compile with EsounD sound support @<:@default=yes@:>@],,
+ enable_sound_esound=yes)
+fi
+enable_sound=no
+
+if test "x$enable_sound_pulse" = "xyes"; then
+ PKG_CHECK_MODULES(PA, libpulse,, enable_sound_pulse=no)
+fi
+if test "x$enable_sound_pulse" = "xyes"; then
+ AC_DEFINE(HAVE_SOUND, 1, [Sound support])
+ AC_DEFINE(HAVE_SOUND_PA, 1, [PulseAudio sound support])
+ AC_DEFINE(USE_SOUND_LOADER_AUDIOFILE, 1, [Use audiofile sound loader])
+ PKG_CHECK_MODULES(AUDIOFILE, audiofile,,)
+ enable_sound=pulseaudio
+ enable_sound_esound=no
+ PA_LIBS="$PA_LIBS $AUDIOFILE_LIBS"
+fi
+AM_CONDITIONAL(USE_LIBPA, test "x$enable_sound_pulse" = "xyes")
+
+if test "x$enable_sound_esound" = "xyes"; then
+ AM_PATH_ESD(0.2.17,,[
+ enable_sound_esound=no
+ AC_MSG_WARN([EsounD sound support was requested but not found.])
+ ])
+ AC_CHECK_HEADERS(audiofile.h,, enable_sound_esound=no)
+fi
+if test "x$enable_sound_esound" = "xyes"; then
+ AC_DEFINE(HAVE_SOUND, 1, [Sound support])
+ AC_DEFINE(HAVE_SOUND_ESD, 1, [EsounD sound support])
+ AC_DEFINE(USE_SOUND_LOADER_AUDIOFILE, 1, [Use audiofile sound loader])
+ enable_sound=esound
+fi
+AM_CONDITIONAL(USE_LIBESD, test "x$enable_sound_esound" = "xyes")
+
+# Save CPPFLAGS/LDFLAGS and add X_... to each
+SAVE_CPPFLAGS="$CPPFLAGS"
+SAVE_LDFLAGS="$LDFLAGS"
+CPPFLAGS="$X_CFLAGS $CPPFLAGS"
+LDFLAGS="$X_LIBS $LDFLAGS"
+
+PKG_CHECK_MODULES(IMLIB2, imlib2 >= 1.2.0, have_good_imlib2=yes)
+AC_CHECK_LIB(Imlib2, imlib_context_set_mask_alpha_threshold,
+ AC_DEFINE(HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD, 1,
+ [Imlib2 has imlib_context_set_mask_alpha_threshold]),,
+ $IMLIB2_LIBS)
+AC_CHECK_LIB(Imlib2, imlib_context_disconnect_display,
+ AC_DEFINE(HAVE_IMLIB_CONTEXT_DISCONNECT_DISPLAY, 1,
+ [Imlib2 has imlib_context_disconnect_display]),,
+ $IMLIB2_LIBS)
+
+AC_ARG_ENABLE(sm,
+ [ --enable-sm compile with session management support @<:@default=yes@:>@],,
+ enable_sm=yes)
+if test "x$enable_sm" = "xyes"; then
+ AC_CHECK_HEADERS(X11/SM/SMlib.h,, enable_sm=no)
+ AC_CHECK_LIB(SM, SmcOpenConnection, SM_LIBS="-lSM -lICE", enable_sm=no)
+ AC_SUBST(SM_LIBS)
+fi
+if test "x$enable_sm" = "xyes"; then
+ AC_DEFINE(USE_SM, 1, [Session management support])
+fi
+
+AC_ARG_ENABLE(pango,
+ [ --enable-pango compile with pango-xft support @<:@default=no@:>@],,
+ enable_pango=no)
+if test "x$enable_pango" = "xyes"; then
+ PKG_CHECK_MODULES(PANGO, pangoxft, AC_DEFINE(USE_PANGO, 1, [pango-xft support]), enable_pango=no)
+fi
+AM_CONDITIONAL(USE_LIBPANGO, test "x$enable_pango" = "xyes")
+
+AC_ARG_ENABLE(xft,
+ [ --enable-xft compile with Xft support @<:@default=yes@:>@],,
+ enable_xft=yes)
+if test "x$enable_xft" = "xyes"; then
+ PKG_CHECK_MODULES(XFT, xft, AC_DEFINE(USE_XFT, 1, [Xft support]), enable_xft=no)
+fi
+AM_CONDITIONAL(USE_LIBXFT, test "x$enable_xft" = "xyes")
+
+AC_ARG_ENABLE(ecore,
+ [ --enable-ecore use ecore functions (for testing only - DO NOT USE!) @<:@default=no@:>@],,
+ enable_ecore=no)
+if test "x$enable_ecore" = "xyes"; then
+ PKG_CHECK_MODULES(ECORE, ecore ecore-x,
+ AC_DEFINE(USE_ECORE, 1, [Use libecore])
+ AC_DEFINE(USE_ECORE_X, 1, [Use libecore_x]),
+ enable_ecore=no)
+fi
+
+# Is this reasonably correct?
+AC_ARG_ENABLE(glx,
+ [ --enable-glx compile with GLX support (experimental) @<:@default=no@:>@],,
+ enable_glx=no)
+if test "x$enable_glx" = "xyes"; then
+ AC_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glx.h, , AC_MSG_ERROR([Cannot find GLX headers]))
+ AC_CHECK_LIB(GL, glXCreateNewContext,
+ [
+ AC_DEFINE(USE_GLX, 1, [GLX support])
+ GLX_LIBS="-lGL -lGLU"
+ ],[
+ AC_MSG_ERROR([Cannot find GLX libraries])
+ ])
+ AC_CHECK_LIB(GL, glXBindTexImageEXT,
+ AC_DEFINE(HAVE_GLX_glXBindTexImageEXT, 1, [glXBindTexImageEXT is available]))
+ AC_SUBST(GLX_LIBS)
+fi
+AM_CONDITIONAL(ENABLE_GLX, test "x$enable_glx" = "xyes")
+
+AC_CHECK_LIB(Xext, XShapeQueryExtension,
+ E_X_LIBS="-lXext $E_X_LIBS",
+ AC_MSG_ERROR([Shape support is required but was not found]),
+ -lX11)
+
+AC_ARG_ENABLE(xinerama,
+ [ --enable-xinerama compile with xinerama support @<:@default=yes@:>@],,
+ enable_xinerama=yes)
+if test "x$enable_xinerama" = "xyes"; then
+ AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
+ AC_DEFINE(USE_XINERAMA, 1, [Xinerama support])
+ XINERAMA_LIBS="-lXinerama",
+ enable_xinerama=no
+ AC_MSG_WARN([Xinerama support was requested but not found]),
+ -lXext -lX11)
+fi
+AC_SUBST(XINERAMA_LIBS)
+
+AC_ARG_ENABLE(zoom,
+ [ --enable-zoom compile with zoom support @<:@default=yes@:>@],,
+ enable_zoom=yes)
+if test "x$enable_zoom" = "xyes"; then
+ AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
+ AC_DEFINE(WITH_ZOOM, 1, [Zoom Support])
+ E_X_LIBS="-lXxf86vm $E_X_LIBS",
+ enable_zoom=no
+ AC_MSG_WARN([Zoom support was requested but not found]),
+ -lXext -lX11)
+fi
+
+AC_ARG_ENABLE(xsync,
+ [ --enable-xsync compile with SYNC support @<:@default=yes@:>@],,
+ enable_xsync=yes)
+if test "x$enable_xsync" = "xyes"; then
+ AC_CHECK_LIB(Xext, XSyncQueryExtension,
+ AC_DEFINE(USE_XSYNC, 1, [SYNC support]),
+ enable_xsync=no
+ AC_MSG_WARN([Sync support was requested but not found]),
+ -lX11)
+fi
+
+AC_ARG_ENABLE(xscrnsaver,
+ [ --enable-xscrnsaver compile with ScreenSaver support (experimental/not useful) @<:@default=no@:>@],,
+ enable_xscrnsaver=no)
+if test "x$enable_xscrnsaver" = "xyes"; then
+ AC_CHECK_LIB(Xss, XScreenSaverQueryExtension,
+ AC_DEFINE(USE_XSCREENSAVER, 1, [ScreenSaver support])
+ E_X_LIBS="-lXss $E_X_LIBS",
+ enable_xscrnsaver=no
+ AC_MSG_WARN([ScreenSaver support was requested but not found]),
+ -lXext -lX11)
+fi
+
+AC_ARG_ENABLE(xrandr,
+ [ --enable-xrandr compile with RandR support @<:@default=yes@:>@],,
+ enable_xrandr=yes)
+if test "x$enable_xrandr" = "xyes"; then
+ AC_CHECK_LIB(Xrandr, XRRQueryExtension,
+ AC_DEFINE(USE_XRANDR, 1, [RandR support])
+ E_X_LIBS="-lXrandr -lXrender $E_X_LIBS",
+ enable_xrandr=no
+ AC_MSG_WARN([RandR support was requested but not found]),
+ -lXrender -lXext -lX11)
+ AC_CHECK_HEADERS(X11/extensions/Xrandr.h,,,[#include <X11/Xlib.h>])
+fi
+
+# FIXME - Do this properly
+AC_ARG_ENABLE(composite,
+ [ --enable-composite compile with Composite support @<:@default=yes@:>@],,
+ enable_composite=yes)
+if test "x$enable_composite" = "xyes"; then
+ AC_CHECK_LIB(Xcomposite, XCompositeQueryExtension,
+ AC_DEFINE(USE_COMPOSITE, 1, [Composite support])
+ E_X_LIBS="-lXcomposite -lXdamage -lXfixes -lXrender $E_X_LIBS",
+ enable_composite=no,
+ -lXext -lX11)
+ AC_CHECK_HEADERS(X11/extensions/Xcomposite.h ,, enable_composite=no, [#include <X11/Xlib.h>])
+ AC_CHECK_HEADERS(X11/extensions/Xdamage.h ,, enable_composite=no, [#include <X11/Xlib.h>])
+ AC_CHECK_HEADERS(X11/extensions/Xfixes.h ,, enable_composite=no, [#include <X11/Xlib.h>])
+ AC_CHECK_HEADERS(X11/extensions/Xrender.h ,, enable_composite=no, [#include <X11/Xlib.h>])
+ if test "x$enable_composite" != "xyes"; then
+ AC_MSG_WARN([Composite support was requested but required component was not found])
+ fi
+fi
+AM_CONDITIONAL(ENABLE_COMPOSITE, test "x$enable_composite" = "xyes")
+
+AC_ARG_ENABLE(dbus,
+ [ --enable-dbus compile with D-Bus support (experimental) @<:@default=no@:>@],,
+ enable_dbus=no)
+if test "x$enable_dbus" = "xyes"; then
+ PKG_CHECK_MODULES(DBUS, dbus-1, AC_DEFINE(USE_DBUS, 1, [dbus support]), enable_dbus=no)
+fi
+AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
+
+AC_CHECK_LIB(Fridge,mass_quantities_of_bass_ale)
+AC_CHECK_LIB(Fridge,mass_quantities_of_any_ale,, [
+ echo "Warning: No ales were found in your refrigerator."
+ echo " We highly suggest that you rectify this situation immediately."
+])
+
+# Restore CPPFLAGS/LDFLAGS
+CPPFLAGS="$SAVE_CPPFLAGS"
+LDFLAGS="$SAVE_LDFLAGS"
+
+AC_ARG_ENABLE(roothacklib,
+ [ --enable-roothacklib build window mode helper library @<:@default=yes@:>@],,
+ enable_roothacklib=yes)
+if test "x$enable_roothacklib" = "xyes"; then
+ AC_CHECK_LIB(dl, dlopen, DLOPEN_LIBS=-ldl, enable_roothacklib=no)
+ AC_SUBST(DLOPEN_LIBS)
+fi
+if test "x$enable_roothacklib" = "xyes"; then
+ AC_DEFINE(USE_ROOTHACKLIB, 1, [Use window mode helper library])
+fi
+AM_CONDITIONAL(BUILD_ROOTHACKLIB, test "x$enable_roothacklib" = "xyes")
+
+AC_ARG_ENABLE(modules,
+ [ --enable-modules enable support for loadable modules @<:@default=no@:>@],,
+ enable_modules=no)
+if test "x$enable_modules" = "xyes"; then
+ AC_CHECK_LIB(dl, dlopen, DLOPEN_LIBS=-ldl, enable_modules=no)
+ AC_SUBST(DLOPEN_LIBS)
+fi
+if test "x$enable_modules" = "xyes"; then
+ AC_DEFINE(USE_MODULES, 1, [Loadable module support])
+fi
+AM_CONDITIONAL(BUILD_MODULES, test "x$enable_modules" = "xyes")
+
+dnl Set default visibility to hidden (only useful with --enable-modules)
+AC_ARG_ENABLE(visibility-hiding,
+ [ --enable-visibility-hiding enable visibility hiding @<:@default=no@:>@],,
+ enable_visibility_hiding=no
+)
+if test "x$enable_visibility_hiding" = xyes ; then
+ CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
+fi
+
+AC_ARG_ENABLE(dialogs,
+ [ --enable-dialogs enable support for configuration dialogs @<:@default=yes@:>@],,
+ enable_dialogs=yes)
+if test "x$enable_dialogs" = "xyes"; then
+ AC_DEFINE(ENABLE_DIALOGS, 1, [Configuration dialog support])
+fi
+
+AC_ARG_ENABLE(docs,
+ [ --enable-docs install html docs @<:@default=yes@:>@],,
+ enable_docs=yes)
+if test "x$enable_docs" = "xyes"; then
+ AC_CHECK_PROG(XMLTO, xmlto, xmlto)
+ if test "x$XMLTO" = "x"; then
+ enable_docs=no
+ fi
+fi
+AM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x"])
+
+AC_ARG_ENABLE(gcc-cpp,
+ [ --enable-gcc-cpp compile everything as if it were C++ @<:@default=no@:>@],,
+ enable_gcc_cpp=no)
+if test "x$enable_gcc_cpp" = "xyes"; then
+ CC="g++"
+ CPPFLAGS="$CPPFLAGS -x c++"
+ AC_C_WARNFLAGS([cpp])
+else
+ AC_C_WARNFLAGS()
+fi
+
+AC_DEFINE(_GNU_SOURCE, 1, [Enable extensions])
+
+AC_DEFINE(USE_EXT_INIT_WIN, 1, [Use external init window during restart])
+
+AC_DEFINE(ENABLE_DESKRAY, 0, [Enable deskrays (not functional)])
+
+AC_DEFINE(ENABLE_TRANSPARENCY, 1, [Enable pseudotransparency])
+AC_DEFINE(ENABLE_THEME_TRANSPARENCY, 1, [Enable adjusting theme element pseudotransparency])
+
+AC_SUBST(E_X_LIBS)
+
+AM_CONFIG_HEADER(config.h)
+
+AC_OUTPUT([
+Makefile
+src/Makefile
+dox/Makefile
+dox/E-docs/Makefile
+eesh/Makefile
+epp/Makefile
+lib/Makefile
+config/Makefile
+config/pix/Makefile
+themes/Makefile
+fonts/Makefile
+scripts/Makefile
+misc/Makefile
+docs/Makefile
+po/Makefile.in
+e16.spec
+])
+
+if test "x$have_good_imlib2" != "xyes"; then
+ echo "***************************************************************"
+ echo "*** WARNING: imlib2 >= 1.2.0 was not detected ***"
+ echo "*** WARNING: If you indeed do not have this, expect trouble ***"
+ echo "***************************************************************"
+fi
+
+echo
+echo "------------------------------------------------------------------------"
+echo "$PACKAGE Version $VERSION"
+echo "------------------------------------------------------------------------"
+echo
+echo "Configuration summary"
+echo
+echo "Support for"
+echo " Localisation ................. $USE_NLS"
+echo " Sound ........................ $enable_sound"
+echo " Old GNOME hints .............. $enable_hints_gnome"
+echo " Session management ........... $enable_sm"
+echo " Zoom ......................... $enable_zoom"
+echo " Pango ........................ $enable_pango"
+echo " Xft .......................... $enable_xft"
+echo " Xinerama ..................... $enable_xinerama"
+echo " RandR ........................ $enable_xrandr"
+echo " Sync ......................... $enable_xsync"
+echo " Composite .................... $enable_composite"
+echo " Modules ...................... $enable_modules"
+echo " Visibility hiding ............ $enable_visibility_hiding (only useful with modules)"
+echo " Window mode helper library ... $enable_roothacklib"
+echo " Dialogs ...................... $enable_dialogs"
+echo
+echo "Experimental options - DO NOT USE unless you know what you are doing"
+echo " Compile with ecore/ecore_x ... $enable_ecore"
+echo " GLX .......................... $enable_glx"
+echo " ScreenSaver .................. $enable_xscrnsaver"
+echo " D-Bus ........................ $enable_dbus"
+echo
+echo "Installation path .............. $prefix"
+echo " Install HTML docs ............ $enable_docs"
+echo
+echo "Compilation .................... make"
+echo "Installation ................... make install"
+echo
--- /dev/null
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2007-03-29.01
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
+# Foundation, Inc.
+
+# 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.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by `PROGRAMS ARGS'.
+ object Object file output by `PROGRAMS ARGS'.
+ DEPDIR directory where to store dependencies.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputing dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit $?
+ ;;
+esac
+
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
+ exit 1
+fi
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+ sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f "$tmpdepfile"
+
+# Some modes work just like other modes, but use different flags. We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write. Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test "$depmode" = hp; then
+ # HP compiler uses -M and no extra arg.
+ gccflag=-M
+ depmode=gcc
+fi
+
+if test "$depmode" = dashXmstdout; then
+ # This is just like dashmstdout with a different argument.
+ dashmflag=-xM
+ depmode=dashmstdout
+fi
+
+case "$depmode" in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff. Hmm.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am. Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+ for arg
+ do
+ case $arg in
+ -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+ *) set fnord "$@" "$arg" ;;
+ esac
+ shift # fnord
+ shift # $arg
+ done
+ "$@"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ mv "$tmpdepfile" "$depfile"
+ ;;
+
+gcc)
+## There are various ways to get dependency output from gcc. Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+## up in a subdir. Having to rename by hand is ugly.
+## (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+## -MM, not -M (despite what the docs say).
+## - Using -M directly means running the compiler twice (even worse
+## than renaming).
+ if test -z "$gccflag"; then
+ gccflag=-MD,
+ fi
+ "$@" -Wp,"$gccflag$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+## The second -e expression handles DOS-style file names with drive letters.
+ sed -e 's/^[^:]*: / /' \
+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+## This next piece of magic avoids the `deleted header file' problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header). We avoid this by adding
+## dummy dependencies for each header file. Too bad gcc doesn't do
+## this for us directly.
+ tr ' ' '
+' < "$tmpdepfile" |
+## Some versions of gcc put a space before the `:'. On the theory
+## that the space means something, we add a space to the output as
+## well.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like `#:fec' to the end of the
+ # dependency line.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+ tr '
+' ' ' >> $depfile
+ echo >> $depfile
+
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> $depfile
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file. In older versions, this file always lives in the
+ # current directory. Also, the AIX compiler puts `$object:' at the
+ # start of each line; $object doesn't have directory information.
+ # Version 6 uses the directory in both cases.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$base.u
+ tmpdepfile3=$dir.libs/$base.u
+ "$@" -Wc,-M
+ else
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$dir$base.u
+ tmpdepfile3=$dir$base.u
+ "$@" -M
+ fi
+ stat=$?
+
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ # Each line is of the form `foo.o: dependent.h'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+icc)
+ # Intel's C compiler understands `-MD -MF file'. However on
+ # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+ # ICC 7.0 will fill foo.d with something like
+ # foo.o: sub/foo.c
+ # foo.o: sub/foo.h
+ # which is wrong. We want:
+ # sub/foo.o: sub/foo.c
+ # sub/foo.o: sub/foo.h
+ # sub/foo.c:
+ # sub/foo.h:
+ # ICC 7.1 will output
+ # foo.o: sub/foo.c sub/foo.h
+ # and will wrap long lines using \ :
+ # foo.o: sub/foo.c ... \
+ # sub/foo.h ... \
+ # ...
+
+ "$@" -MD -MF "$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ # Each line is of the form `foo.o: dependent.h',
+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
+ # Some versions of the HPUX 10.20 sed can't process this invocation
+ # correctly. Breaking it into two sed invocations is a workaround.
+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
+ sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp2)
+ # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+ # compilers, which have integrated preprocessors. The correct option
+ # to use with these is +Maked; it writes dependencies to a file named
+ # 'foo.d', which lands next to the object file, wherever that
+ # happens to be.
+ # Much of this is similar to the tru64 case; see comments there.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir.libs/$base.d
+ "$@" -Wc,+Maked
+ else
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir$base.d
+ "$@" +Maked
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+ # Add `dependent.h:' lines.
+ sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile" "$tmpdepfile2"
+ ;;
+
+tru64)
+ # The Tru64 compiler uses -MD to generate dependencies as a side
+ # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+ # dependencies in `foo.d' instead, so we check for that too.
+ # Subdirectories are respected.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+
+ if test "$libtool" = yes; then
+ # With Tru64 cc, shared objects can also be used to make a
+ # static library. This mechanism is used in libtool 1.4 series to
+ # handle both shared and static libraries in a single compilation.
+ # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
+ #
+ # With libtool 1.5 this exception was removed, and libtool now
+ # generates 2 separate objects for the 2 libraries. These two
+ # compilations output dependencies in $dir.libs/$base.o.d and
+ # in $dir$base.o.d. We have to check for both files, because
+ # one of the two compilations can be disabled. We should prefer
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+ # automatically cleaned when .libs/ is deleted, while ignoring
+ # the former would cause a distcleancheck panic.
+ tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
+ tmpdepfile2=$dir$base.o.d # libtool 1.5
+ tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
+ tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
+ "$@" -Wc,-MD
+ else
+ tmpdepfile1=$dir$base.o.d
+ tmpdepfile2=$dir$base.d
+ tmpdepfile3=$dir$base.d
+ tmpdepfile4=$dir$base.d
+ "$@" -MD
+ fi
+
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+#nosideeffect)
+ # This comment above is used by automake to tell side-effect
+ # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test $1 != '--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ test -z "$dashmflag" && dashmflag=-M
+ # Require at least two characters before searching for `:'
+ # in the target name. This is to cope with DOS-style filenames:
+ # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
+ "$@" $dashmflag |
+ sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ tr ' ' '
+' < "$tmpdepfile" | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+dashXmstdout)
+ # This case only exists to satisfy depend.m4. It is never actually
+ # run, as this mode is specially recognized in the preamble.
+ exit 1
+ ;;
+
+makedepend)
+ "$@" || exit $?
+ # Remove any Libtool call
+ if test "$libtool" = yes; then
+ while test $1 != '--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+ # X makedepend
+ shift
+ cleared=no
+ for arg in "$@"; do
+ case $cleared in
+ no)
+ set ""; shift
+ cleared=yes ;;
+ esac
+ case "$arg" in
+ -D*|-I*)
+ set fnord "$@" "$arg"; shift ;;
+ # Strip any option that makedepend may not understand. Remove
+ # the object too, otherwise makedepend will parse it as a source file.
+ -*|$object)
+ ;;
+ *)
+ set fnord "$@" "$arg"; shift ;;
+ esac
+ done
+ obj_suffix="`echo $object | sed 's/^.*\././'`"
+ touch "$tmpdepfile"
+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ sed '1,2d' "$tmpdepfile" | tr ' ' '
+' | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile" "$tmpdepfile".bak
+ ;;
+
+cpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test $1 != '--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ "$@" -E |
+ sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+ sed '$ s: \\$::' > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ cat < "$tmpdepfile" >> "$depfile"
+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvisualcpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o,
+ # because we must use -o when running libtool.
+ "$@" || exit $?
+ IFS=" "
+ for arg
+ do
+ case "$arg" in
+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ set fnord "$@"
+ shift
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift
+ shift
+ ;;
+ esac
+ done
+ "$@" -E |
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
+ echo " " >> "$depfile"
+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+none)
+ exec "$@"
+ ;;
+
+*)
+ echo "Unknown depmode $depmode" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
--- /dev/null
+e16docdir = ${datadir}/doc/${PACKAGE}
+
+EXTRA_DIST = README $(DOCS_DIST)
+
+if HAVE_XMLTO
+
+e16doc_DATA = README.html
+
+DOCS_DIST = README.xml e16-docs.xml xml2dox.xsl # e16.1
+
+CLEANFILES = *.html MAIN e16-docs.1.xml e16.1
+
+README.html: README.xml
+ $(XMLTO) html $<
+ sed -i -e 's/index.html/README.html/' index.html ar*.html
+ mv index.html $@
+
+man_MANS = # e16.1
+
+e16.1: e16-docs.1.xml
+ $(XMLTO) man $<
+
+e16-docs.html: e16-docs.1.xml
+ $(XMLTO) html $<
+ sed -i -e 's/index.html/e16-docs.html/' index.html
+ mv index.html $@
+
+e16-docs.1.xml: e16-docs.xml
+ grep -v -e "^<font" -e "^<img" -e "more on next page" $< > $@
+
+MAIN: e16-docs.xml xml2dox.xsl
+ xsltproc $(srcdir)/xml2dox.xsl $< > $@
+
+install-data-local:
+ mkdir -p $(DESTDIR)$(e16docdir)
+ cp *.html $(DESTDIR)$(e16docdir)/
+
+uninstall-local:
+ rm -f $(DESTDIR)$(e16docdir)/*.html
+ rm -f *.html
+
+endif
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = docs
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(e16docdir)"
+e16docDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(e16doc_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+e16docdir = ${datadir}/doc/${PACKAGE}
+EXTRA_DIST = README $(DOCS_DIST)
+@HAVE_XMLTO_TRUE@e16doc_DATA = README.html
+@HAVE_XMLTO_TRUE@DOCS_DIST = README.xml e16-docs.xml xml2dox.xsl # e16.1
+@HAVE_XMLTO_TRUE@CLEANFILES = *.html MAIN e16-docs.1.xml e16.1
+@HAVE_XMLTO_TRUE@man_MANS = # e16.1
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign docs/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
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-e16docDATA: $(e16doc_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(e16docdir)" || $(MKDIR_P) "$(DESTDIR)$(e16docdir)"
+ @list='$(e16doc_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(e16docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(e16docdir)/$$f'"; \
+ $(e16docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(e16docdir)/$$f"; \
+ done
+
+uninstall-e16docDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(e16doc_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(e16docdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(e16docdir)/$$f"; \
+ done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(e16docdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+@HAVE_XMLTO_FALSE@uninstall-local:
+@HAVE_XMLTO_FALSE@install-data-local:
+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
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local install-e16docDATA
+
+install-dvi: install-dvi-am
+
+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
+
+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-e16docDATA uninstall-local
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-local install-dvi \
+ install-dvi-am install-e16docDATA 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 uninstall uninstall-am uninstall-e16docDATA \
+ uninstall-local
+
+
+@HAVE_XMLTO_TRUE@README.html: README.xml
+@HAVE_XMLTO_TRUE@ $(XMLTO) html $<
+@HAVE_XMLTO_TRUE@ sed -i -e 's/index.html/README.html/' index.html ar*.html
+@HAVE_XMLTO_TRUE@ mv index.html $@
+
+@HAVE_XMLTO_TRUE@e16.1: e16-docs.1.xml
+@HAVE_XMLTO_TRUE@ $(XMLTO) man $<
+
+@HAVE_XMLTO_TRUE@e16-docs.html: e16-docs.1.xml
+@HAVE_XMLTO_TRUE@ $(XMLTO) html $<
+@HAVE_XMLTO_TRUE@ sed -i -e 's/index.html/e16-docs.html/' index.html
+@HAVE_XMLTO_TRUE@ mv index.html $@
+
+@HAVE_XMLTO_TRUE@e16-docs.1.xml: e16-docs.xml
+@HAVE_XMLTO_TRUE@ grep -v -e "^<font" -e "^<img" -e "more on next page" $< > $@
+
+@HAVE_XMLTO_TRUE@MAIN: e16-docs.xml xml2dox.xsl
+@HAVE_XMLTO_TRUE@ xsltproc $(srcdir)/xml2dox.xsl $< > $@
+
+@HAVE_XMLTO_TRUE@install-data-local:
+@HAVE_XMLTO_TRUE@ mkdir -p $(DESTDIR)$(e16docdir)
+@HAVE_XMLTO_TRUE@ cp *.html $(DESTDIR)$(e16docdir)/
+
+@HAVE_XMLTO_TRUE@uninstall-local:
+@HAVE_XMLTO_TRUE@ rm -f $(DESTDIR)$(e16docdir)/*.html
+@HAVE_XMLTO_TRUE@ rm -f *.html
+# 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:
--- /dev/null
+
+About Enlightenment e16
+=======================
+
+Credits
+-------
+This note contains contributions by
+- Kim Woelders
+- Peter Hyman (pete4abw@comcast.net)
+- Yasufumi Haga (yasufumi.haga@nifty.com)
+
+
+Contents
+--------
+- Requirements
+- Installation
+- Versions
+- Configuration
+- Configuration files
+- Default keybindings
+- Session Scripts
+- Composite manager notes
+- Fonts
+- Using e16 with GNOME
+- Using e16 with KDE
+- Migrating from versions older than 0.16.8
+- Resources
+
+
+Requirements
+------------
+
+imlib2 >= 1.2.0 is required, >= 1.4.2 is recommended.
+imlib2 must be built with png support.
+
+
+Installation
+------------
+
+./configure
+make
+sudo make install
+
+For additional help on package configuration, see
+./configure --help
+
+
+Versions
+--------
+
+e16-1.0.0:
+ No major changes, might as well have been 0.16.8.16.
+
+e16-0.16.8: Released Feb 2006
+ enlightenment -> e16
+ Major internal rewrite
+ Changed configuration system
+ Added compositing manager
+
+enlightenment-0.16.7: Released Jul 2004
+ Migrated to imlib2
+
+enlightenment-0.16.6: Released Nov 2003
+ Added extended window manager hint support
+
+enlightenment-0.16.5: Released Oct 2000
+
+enlightenment-0.16.0: Released Oct 1999
+
+
+Configuration
+-------------
+
+All settings can be shown and set using eesh.
+
+To get a full list of settings:
+$ eesh show
+
+To set some parameter:
+$ eesh set <parameter> <value>
+Some settings will not be effective until E is restarted.
+
+To get a list of all eesh commands:
+$ eesh help full
+
+The available configuration options are shown below. Values are the defaults.
+
+# [bool] High quality background rendering
+backgrounds.hiquality = 1
+# [bool] Prefer user selected backgrounds over theme settings
+backgrounds.user = 1
+# [bool] Do not scan all backgrounds when starting background configuration dialog
+backgrounds.no_scan = 0
+# [int] Time out for unused background image pixmaps
+backgrounds.timeout = 240
+
+# [bool] Enable composite manager
+compmgr.enable = 0
+# [int] Composite manager mode (always 1 atm)
+compmgr.mode = 1
+# [int] Dropshadow mode (0: off, 1: sharp, 2: blurry, 3: echo)
+compmgr.shadows.mode = 0
+# [int] Dropshadow offset
+compmgr.shadows.offset_x = 3
+compmgr.shadows.offset_y = 5
+# [int] Blurry dropshadow radius
+compmgr.shadows.blur.radius = 5
+# [int] Blurry dropshadow opacity(%)
+compmgr.shadows.blur.opacity = 75
+# [int] Sharp dropshadow opacity(%)
+compmgr.shadows.sharp.opacity = 30
+# [int] Shadow color (0xRRGGBB)
+compmgr.shadows.color = 0
+# [bool] Hack to fix problems with resize on old xorg servers
+compmgr.resize_fix_enable = 0
+# [bool] Experimental - leave at 0
+compmgr.use_name_pixmap = 0
+# [bool] Use composite overlay window
+compmgr.use_cow = 1
+# [bool] Enable fading
+compmgr.fading.enable = 1
+# [int] Fading time(ms)
+compmgr.fading.time = 200
+# [int] Composite redirection of override-redirect windows (0: off, 1: on map, ...: testing)
+# Should normally be 1 but 0 may be a partial workaround of problems with vanishing
+# pop-ups on certain X-server/toolkit versions.
+compmgr.override_redirect.mode = 1
+# [int] Opacity of override-redirect windows (pop-up's, etc)
+compmgr.override_redirect.opacity = 90
+
+# [int] Number of desktops
+desktops.num = 2
+# [int] Desktop dragging direction
+desktops.dragdir = 2
+# [int] Desktop dragbar width (0: disable)
+desktops.dragbar_width = 16
+# [int] Desktop dragbar length (0: full)
+desktops.dragbar_length = 0
+# [int] Desktop dragbar button ordering
+desktops.dragbar_ordering = 1
+# [bool] Wrap around on desk switch (last <-> first on next/prev)
+desktops.desks_wraparound = 0
+# [bool] Slide desks in when switching
+desktops.slidein = 1
+# [int] Desk slide speed
+desktops.slidespeed = 6000
+# [int] Size of virtual desktop
+desktops.areas_nx = 2
+desktops.areas_ny = 1
+# [bool] Wrap around on area switch (last <-> first on next/prev)
+desktops.areas_wraparound = 0
+# [int] Edge flip mode (0: off, 1: on, 2: only when moving window)
+desktops.edge_flip_mode = 1
+# [int] Edge flip resistance(pixels)
+desktops.edge_flip_resistance = 25
+
+# [bool] Enable ripples effect
+effects.ripples.enabled = 0
+# [bool] Enable waves effect
+effects.waves.enabled = 0
+
+# [int] Focus mode (0: pointer, 1: sloppy, 2: click)
+focus.mode = 1
+# [bool] Raise window when clicked
+focus.clickraises = 1
+# [bool] Transients are placed where leader is
+focus.transientsfollowleader = 1
+# [bool] When a transient is mapped the desk/area is switched to where the transient appears
+focus.switchfortransientmap = 1
+# [bool] Focus new windows
+focus.all_new_windows_get_focus = 0
+# [bool] Focus new transients
+focus.new_transients_get_focus = 0
+# [bool] Focus new transients if group is focused
+focus.new_transients_get_focus_if_group_focused = 1
+# [bool] Raise window on focus next
+focus.raise_on_next = 1
+# [bool] Warp pointer to window on focus next
+focus.warp_on_next = 0
+# [bool] Always warp pointer into window when new window is focused
+focus.warp_always = 0
+# [bool] Enable autoraise
+focus.autoraise.enable = 0
+# [int] Autoraise delay(ms)
+focus.autoraise.delay = 500
+
+# [bool] Default group settings
+groups.dflt.iconify = 1
+groups.dflt.kill = 0
+groups.dflt.move = 1
+groups.dflt.raise = 0
+groups.dflt.set_border = 1
+groups.dflt.stick = 1
+groups.dflt.shade = 1
+groups.swapmove = 1
+
+# [int] Iconbox animation time(ms)
+iconboxes.anim_time = 250
+
+# [string] Language used by e16 (dialogs, tooltips, etc.)
+# Inherit from environment if not set
+locale.internal =
+# [string] Language exported when starting applications
+# Inherit from environment if not set
+locale.exported =
+
+# [bool] Animate menus
+menus.animate = 0
+# [bool] Keep menus on-screen
+menus.onscreen = 1
+# [bool] Warp pointer when sliding menus
+menus.warp = 1
+# [bool] Enable icons in menus
+menus.show_icons = 1
+# [int] Menu icon size(pixels)
+menus.icon_size = 16
+# [int] Menu navigation keycodes
+menus.key.left = 0xff51
+menus.key.right = 0xff53
+menus.key.up = 0xff52
+menus.key.down = 0xff54
+menus.key.escape = 0xff1b
+menus.key.ret = 0xff0d
+
+# [int] Animation time step(ms)
+misc.animation.step = 10
+
+# [int] Button move resistance(pixels)
+misc.buttons.move_resistance = 10
+
+# [bool] Show headers in dialogs
+misc.dialogs.headers = 0
+# [bool] Enable images on dialog buttons
+misc.dialogs.button_image = 0
+
+# [bool] Enable docking of dockapps
+misc.dock.enable = 1
+# [bool] Make all dockapps sticky
+misc.dock.sticky = 1
+# [int] Dock direction
+misc.dock.dirmode = 3
+# [int] Dock start position
+misc.dock.startx = 0
+misc.dock.starty = 0
+
+# [bool] Enable desktop background compatibility mode
+# Fixes background in many apps using pseudotransparency
+# May cause major slowdowns in certain setups
+misc.hints.set_xroot_info_on_root_window = 0
+
+# [int] Move mode (0: opaque, 1: technical, 2: box, 3: shaded, 4: semi-solid, 5: translucent)
+misc.movres.mode_move = 0
+# [int] Resize mode (0: opaque, 1: technical, 2: box, 3: shaded, 4: semi-solid)
+misc.movres.mode_resize = 2
+# [int] Geometry indicator mode (0: off, 1: window center, 2: screen corner)
+misc.movres.mode_info = 1
+# [int] Default maximize mode (0: Absolute, 1: Available, 2: Conservative)
+misc.movres.mode_maximize_default = 1
+# [int] Move/resize color (RGB) when using non-server-grabbing technincal/box modes.
+misc.movres.color = 0xff0000
+# [bool] Avoid server grab
+# Use non-server-grabbing line drawing technique in technical and box modes.
+misc.movres.avoid_server_grab = 1
+# [bool] Send synthetic ConfigureNotify's while moving
+# Causes pseudotransparent apps to update while moving (expensive)
+misc.movres.update_while_moving = 0
+# [bool] Use SYNC_REQUEST's to synchronize move/resize with client
+misc.movres.enable_sync_request = 0
+# [bool] Do not cover dragbar when maximizing
+misc.movres.dragbar_nocover = 0
+
+# [int] Composite opacity of menu windows
+misc.opacity.menus = 85
+# [int] Composite opacity of windows being moved
+misc.opacity.movres = 60
+# [int] Composite opacity of tooltip windows
+misc.opacity.tooltips = 80
+# [int] Composite opacity of focused windows
+misc.opacity.focused = 100
+# [int] Composite opacity of unfocused windows
+misc.opacity.unfocused = 100
+
+# [bool] Place windows manually
+misc.place.manual = 0
+# [bool] Place windows under pointer
+misc.place.manual_mouse_pointer = 0
+# [bool] Center windows when desk is full
+misc.place.center_if_desk_full = 0
+# [bool] Ignore windows with struts (e.g. panels) when placing new window
+misc.place.ignore_struts = 0
+# [bool] Raise fullscreen windows (increase stacking level while fullscreen)
+misc.place.raise_fullscreen = 0
+# [bool] Slide windows in
+misc.place.slidein = 0
+# [bool] Slide windows around while cleaning up
+misc.place.cleanupslide = 1
+# [int] Window slide-in mode (0: opaque, 1: technical, 2: box, 3: shaded, 4: semi-solid)
+misc.place.slidemode = 0
+# [int] Window slide-in speed
+misc.place.slidespeedmap = 6000
+# [int] Window cleanup slidespeed
+misc.place.slidespeedcleanup = 8000
+
+# [bool] Enable session scripts
+misc.session.enable_script = 0
+# [string] Session script
+misc.session.script = $EROOT/scripts/session.sh
+# [bool] Enable logout dialog
+misc.session.enable_logout_dialog = 1
+# [bool] Enable reboot/halt in logout dialog
+misc.session.enable_reboot_halt = 0
+# [string] Reboot command
+misc.session.cmd_reboot = reboot
+# [string] Halt command
+misc.session.cmd_halt = poweroff
+
+# [bool] Enable animation of window shading
+misc.shading.animate = 1
+# [int] Shading speed
+misc.shading.speed = 8000
+
+# [bool] Enable resistance when moving windows
+misc.snap.enable = 1
+# [int] Resistance at other window edge
+misc.snap.edge_snap_dist = 8
+# [int] Resistance at screen edge
+misc.snap.screen_snap_dist = 32
+
+# [bool] First time flag
+misc.startup.firsttime = 0
+# [bool] Enable sliding startup windows
+misc.startup.animate = 1
+
+# [bool] Test options (do not change)
+misc.testing.argb_internal_objects = 0
+misc.testing.argb_internal_clients = 0
+misc.testing.argb_clients = 0
+misc.testing.argb_clients_inherit_attr = 0
+misc.testing.image_cache_size = -1
+misc.testing.mask_alpha_threshold = 8
+misc.testing.enable_startup_id = 1
+misc.testing.use_render_for_scaling = 0
+misc.testing.bindings_reload = 1
+misc.testing.no_sync_mask = 0
+
+# [bool] Save configuration changes
+misc.autosave = 1
+# [bool] Keep memory usage down (should probably always be 1)
+misc.memory_paranoia = 1
+# [bool] Use save-unders when appropriate
+misc.save_under = 0
+# [bool] Show differential time in debug output
+misc.difftime = 0
+
+# [bool] Enable pagers
+pagers.enable = 1
+# [bool] Enable zooming of pager snapshot windows
+pagers.zoom = 1
+# [bool] Show window name pop-ups
+pagers.title = 1
+# [bool] Enable high quality snapshots
+pagers.hiq = 1
+# [int] Pager mode (0: simple, 1: snap, 2: live)
+pagers.mode = 2
+# [int] Scan/update speed (lines/updates per second. Used only in snap or live mode)
+pagers.scanspeed = 10
+# [int] Pager buttons
+pagers.sel_button = 2
+pagers.win_button = 1
+pagers.menu_button = 3
+
+# [bool] Enable sound
+sound.enable = 0
+# [string] Use sounds from theme
+sound.theme =
+# [int] Bits masks for disabling particular sounds
+sound.mask1 = 0
+sound.mask2 = 0
+
+# [string] Theme
+theme.name = winter
+# [string] Colon separated list of directories containing e16 themes
+theme.extra_path =
+# [bool] Use font specified by theme
+theme.use_theme_font_cfg = 0
+# [bool] Use alternative font configuration file (specified by theme.font_cfg)
+theme.use_alt_font_cfg = 0
+# [string] Alternative font configuration file
+theme.font_cfg =
+
+# [bool] Enable tooltips
+tooltips.enable = 1
+# [bool] Enable root window tooltips
+tooltips.showroottooltip = 1
+# [int] Tooltip delay
+tooltips.delay = 1500
+
+# [int] Theme transparency(0-255)
+transparency.alpha = 0
+# [int] Item transparencies (0: off, 1: background, 2: glass)
+transparency.menu = 1
+transparency.menu_item = 1
+transparency.tooltip = 2
+transparency.widget = 1
+transparency.hilight = 0
+transparency.border = 1
+transparency.iconbox = 1
+transparency.dialog = 1
+transparency.pager = 1
+transparency.warplist = 1
+
+# [bool] Enable focus list (alt-tab)
+warplist.enable = 1
+# [bool] Show sticky windows
+warplist.showsticky = 1
+# [bool] Show shaded windows
+warplist.showshaded = 1
+# [bool] Show iconified windows
+warplist.showiconified = 1
+# [bool] Show windows on all desks
+warplist.showalldesks = 0
+# [bool] Warp pointer to focused window
+warplist.warpfocused = 1
+# [bool] Raise window while selecting
+warplist.raise_on_select = 1
+# [bool] Warp pointer to window while selecting
+warplist.warp_on_select = 0
+# [bool] Icon mode (0: none, 3: e/app/snap, 4: app/e/snap)
+warplist.icon_mode = 3
+
+
+Configuration files
+-------------------
+Skip this section unless you *really* want to know...
+
+It is here assumed that --prefix is /usr, and that the default user
+configuration directory (~/.e16) is used.
+
+In general, the configuration search order for theme related configuration
+files, say xyz.cfg, is:
+1) User configuration directory, i.e. ~/.e16/xyz.cfg.
+2) Theme directory, i.e. /usr/share/e16/themes/<theme>/xyz.cfg, or
+ ~/.e16/themes/<theme>/xyz.cfg.
+3) Default configuration directory, i.e. /usr/share/e16/config/xyz.cfg.
+
+Mouse and keybindings are defined in bindings.cfg. bindings.cfg is searched in
+1) User configuration directory, i.e. ~/.e16/bindings.cfg.
+2) Default configuration directory, i.e. /usr/share/e16/config/bindings.cfg.
+
+Window matches (border and icon associations) are defined in windowmatches.cfg
+and matches.cfg.
+windowmatches.cfg (deprecated, border associations only) is loaded first,
+and should be found only in theme directories.
+matches.cfg is loaded next, and searched in
+1) User configuration directory, i.e. ~/.e16/matches.cfg.
+2) Default configuration directory, i.e. /usr/share/e16/config/matches.cfg.
+Window match items are appended to the window match list, in the order
+in which they are read from the configuration files.
+When doing border/icon matches, the window match list is searched from the
+start, and the first matching item will be used.
+
+
+Default keybindings
+-------------------
+
+Alt-Ctrl Home Auto-arrange windows
+Alt-Ctrl Insert Launch Eterm
+Alt-Ctrl Delete Log out
+Alt-Ctrl End Exit
+Alt-Ctrl Right Goto next desk
+Alt-Ctrl Left Goto previous desk
+Alt-Shift Down Move desk area down
+Alt-Shift Up - - - up
+Alt-Shift Left - - - left
+Alt-Shift Right - - - right
+Alt F1 Goto desk 0
+Alt F2 - - 1
+Alt F3 - - 2
+Alt F4 - - 3
+Alt F5 - - 4
+Alt F6 - - 5
+Alt F7 - - 6
+Alt F8 - - 7
+Alt Tab Switch focus (using focus list, if enabled)
+Alt-Ctrl Up Raise active window
+Alt-Ctrl Down Lower active window
+Alt-Ctrl x Close active window
+Alt-Ctrl k Destroy active window
+Alt-Ctrl s Toggle active window sticky state
+Alt-Ctrl i Iconify active window
+Alt-Ctrl r Toggle active window shaded state
+Alt-Ctrl f Toggle active window fullscreen state
+Alt-Ctrl m Toggle active window maximized state
+Alt-Ctrl w Show window-ops menu for active window
+Alt Return Toggle active window zoomed state
+Ctrl-Shift F1 Show User menu (default left mouse button)
+Ctrl-Shift F2 Show Enlightenment menu (default middle mouse button)
+Ctrl-Shift F3 Show Configuration menu (default right mouse button)
+Ctrl-Shift F4 Show Window List menu (default Alt-middle mouse button)
+
+Alt-Ctrl a Toggle visibility of all buttons
+Alt-Ctrl b Toggle visibility of theme buttons
+Alt-Ctrl c Toggle visibility of configuration buttons
+Alt-Ctrl d Switch dragbar position
+Alt-Ctrl o Switch dragbar button ordering
+
+
+Session Scripts
+---------------
+Enlightenment can now automatically run user scripts or applications during
+Startup, Restart, and Shutdown. This facilitates the loading of system
+tray applets, rss readers, screensavers, and other daemons (e.g. dbus),
+and allows for cleanup of programs that don't terminate properly when E
+quits (this is especially common with KDE applications in E and the arts
+daemon or dcop server keeps running).
+
+Enlightenment accomplishes this with the addition of two new keys in
+the $ECONFDIR/e_config--#.#.cfg (#.# may vary depending on your X setup --
+for most people, it will be 0.0). These are:
+
+misc.session.enable_script
+misc.session.script
+
+misc.session.enable_script is a boolean. When set to 1, Enlightenment will
+execute the script in the misc.session.script key. By default, this feature
+is disabled. When enabled, it will do nothing until the user configures
+his/her home directory ($ECONFDIR -- normally ~/.e16).
+
+The default session.script is located in $EROOT/scripts/session.sh ($EROOT
+is normally /usr/share/e16 or /usr/local/share/e16). It will look for
+directories in the user's $ECONFDIR/ (~/.e16/) called:
+
+~/.e16/ ($ECONFDIR)
+ Init/
+ Start/
+ Stop/
+
+and run any and/or all scripts or executables in each when E starts,
+restarts, and shuts down. If no scripts or executables are present, or
+if any of the directories Init, Start, and Stop do not exist, NOTHING
+will happen and E will start up as usual. So, in order to use session
+scripts, all the user has to do is to populate the Init, Start, and Stop
+directories with scripts, applications, or links to applications that
+should run during Startup, Restart, or when E is stopped.
+
+The default values for the new keys are:
+
+misc.session.enable_script = 0
+misc.session.script = $EROOT/scripts/session.sh
+
+The user may write a custom script and place it anywhere. Simply modify
+the config file by using:
+
+$ eesh set misc.session.script myscript
+
+and modify it (be sure to chmod +x the file otherwise it won't run).
+The session script is called with one of three command parameters;
+init, start, and stop. Any custom script should have a code block
+similar to this in order to function properly in Enlightenment.
+
+case "$1" in
+init)
+ # do blah
+ # or do function init
+start)
+ # do blah
+ # of do function start
+stop)
+ # do blah
+ # or do function stop
+esac
+
+Automatic script running can be enabled/disabled via the Session Settings
+dialog in Enlightenment and checking/unchecking the option Enable Session
+Script, by editing the user cfg file and setting the
+misc.session.enable_script key to 1/0, or with
+
+$ eesh set misc.session.enable_script 1/0
+
+This process is very flexible since when used, the user can turn off
+individual scripts and applications by chmod -x or simply leave the
+startup directories empty or remove them.
+
+
+Composite manager notes
+-----------------------
+
+To use the composite manager it is required that the X-server has support
+enabled for the COMPOSITE, DAMAGE, FIXES, and RENDER extensions.
+For reasonable performance it is also required that hardware acceleration
+of the RENDER extension is enabled.
+
+As of version 0.16.8.2 it may happen that the borders on application windows
+using ARGB visuals (for transparency) are "ugly". Applications may use ARGB
+visuals intentionally (e.g. fdclock) or not (e.g. xv on 16 bit root depth).
+Applications unintentionally using an ARGB visual will normally not be
+rendered properly at all and should be started with the environment variable
+XLIB_SKIP_ARGB_VISUALS set.
+To fix border rendering on "real" ARGB windows it is required to use imlib2
+with version >= 1.3.0.
+
+Tweaks:
+
+As of e16 >= 0.16.8.9: If there is any kind of trouble with the composite
+manager, first check compmgr.mode (eesh show compmgr), and set it to 1 if
+it isn't (eesh set compmgr.mode 1, restart).
+
+If pop-up windows disappear immediately after having appeared (may happen
+e.g. with certain pop-up windows when using gnome > 2.12), try:
+$ eesh set compmgr.override_redirect.mode 0
+This should make the pop-up windows usable, but not always rendered properly.
+This problem should not occur with recent X-servers.
+
+If window resize/shading with composite enabled is ugly, try:
+$ eesh set compmgr.resize_fix_enable 1
+This problem should not occur with recent X-servers.
+
+
+Fonts
+-----
+Theme font selection depends on a number of settings and whether or not
+the theme has font alias support.
+
+For themes with font alias support the fonts are determined by a font
+configuration file. This file is selected as follows, first hit applies:
+
+- If theme.use_alt_font_cfg is set (default off) and the the file specified
+ by theme.font_cfg is found the fonts are determined by this file.
+
+- If theme.use_theme_font_cfg is set (default off) and the theme has a
+ fonts.theme.cfg the fonts are determined by the theme's fonts.theme.cfg.
+
+- If e16 was built with pango support, look for fonts.pango.cfg.
+
+- If e16 was built with xft support, look for fonts.xft.cfg.
+
+- Look for fonts.cfg.
+
+The font configuration file search path is ~/.e16, <theme-dir>, and
+/usr/share/e16/config.
+Default fonts.pango.cfg and fonts.xft.cfg are provided in /usr/share/e16/config.
+
+The default theme (winter) and the core themes (BlueSteel, BrushedMetal-Tigert,
+Ganymede, and ShinyMetal) do have font alias support.
+
+Don Harrop has made available a major number of e16 themes which have been
+modified for font alias support (http://themes.effx.us).
+
+Other themes are likely to not have font alias support but in stead have font
+references more or less scattered around in TextClass definitions in the theme
+configuration files.
+
+There are several ways to specify a font (in the font configuration file or
+in TextClasses):
+
+- "<font name>/<size>", e.g. "Vera/8".
+ In this case e16 must be able to find "Vera.ttf" in <theme dir>/ttfonts or
+ /usr/share/e16/fonts.
+
+- XLFD font sets, e.g. "-*-lucida-medium-r-normal-*-12-120-*-*-*-*-*-*,-*-gulim*-medium-r-normal-*-12-120-*-*-*-*-ksc5601.1987-*".
+ xfontsel, xlsfonts, and xfd can be used to select and show these fonts.
+
+- Fontconfig font names, prefixed by "xft:", e.g. "xft:Luxi Sans-10:bold".
+ fc-list and xfd can be used to select and show these fonts.
+ This possibility (Xft support) is available as of version 0.16.8.5.
+
+- Pango font names, prefixed by "pango:", e.g. "pango:sans bold 10".
+ This possibility (Pango support) is available as of version 0.16.8.9.
+ Pango support must be explicitly enabled at build time with --enable-pango.
+
+
+Using e16 with GNOME
+--------------------
+Setting up e16 as WM in a GNOME session unfortunately depends on the version
+of gnome-session.
+
+Recent versions of gnome-session seem to require that a gconf key is set
+and that an e16.desktop file can be found:
+
+$ gconftool-2 --set /desktop/gnome/session/required_components/windowmanager --type string e16
+$ gnome-sesssion
+
+/usr/share/applications/e16.desktop (or ~/.local/share/applications/e16.desktop):
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=E16
+Comment=The Enlightenment (e16) window manager
+Exec=e16
+Icon=/usr/share/e16/misc/e16.png
+
+
+The section below seems to be obsolete as of gnome-session-2.2x(?)
+
+The GNOME desktop can be started using e16 as WM with:
+
+$ export WINDOW_MANAGER=e16
+$ gnome-sesssion
+
+
+The section below is obsolete as of gnome-session-2.16
+
+However, somewhere along the way the script /usr/bin/gnome-wm is called.
+This is supposed to handle differences in all the different WM's out there,
+but does not know of "e16". This will cause a major delay when starting up
+the GNOME desktop.
+One way to fix this is to use gnome-session-properties to get rid of
+the "gnome-wm" session entry.
+Another is to apply this patch to /usr/bin/gnome-wm:
+
+--- /usr/bin/gnome-wm-org 2005-04-19 21:33:53.000000000 +0200
++++ /usr/bin/gnome-wm 2005-11-15 20:46:09.000000000 +0100
+@@ -69,7 +69,7 @@
+ OPT2=
+ if [ ! -z "$SMID" ] ; then
+ case `basename $WINDOW_MANAGER` in
+- sawfish|sawmill|metacity)
++ sawfish|sawmill|metacity|e16)
+ OPT1=--sm-client-id=$SMID
+ ;;
+ openbox)
+
+
+Using e16 with KDE
+------------------
+
+The KDE desktop can be started using e16 as WM with:
+
+$ export KDEWM=e16
+$ startkde
+
+
+Major changes and new features in 0.16.8
+----------------------------------------
+
+The following sections are only relevant for users upgrading from version 0.16.7
+or older.
+
+Changes:
+- "enlightenment" has been renamed to "e16".
+- The default user configuration directory is "~/.e16".
+- The data install path is "<somepath>/e16", e.g. "/usr/share/e16".
+Thus, an e16.8 installation should not clash with any other versions.
+- Various configuration file formats have changed and should be easier
+ to read and modify, if needed.
+- The configuration is stored per display and per screen. E.g. for
+ DISPLAY=:1.0 the main configuration file is "~/.e16/e_config--1.0.cfg".
+- Actions(used by menus, keybindings, etc.) and IPC functions(eesh) have
+ been merged.
+- Many IPC(eesh) commands have been changed, possibly breaking compatibility
+ with a few epplets.
+- Window matches and icondefs have been merged (into matches.cfg), see below.
+
+New features:
+- Built-in composite manager.
+- An iconbox can be configured to act as System Tray
+ (middle mouse->Desktop->Create Systray).
+- Possibility to run programs on startup, restart, and shutdown, see
+ "Session Scripts" below.
+- Possibility to track changes in remembered settings.
+- Window operations by window matches (class, name, transient, ...),
+ e.g. for making all windows of a certain type sticky, put it on a certain
+ layer, etc. (see matches.cfg).
+
+0.16.8 should be compatible with most e16 themes. However, user installed
+themes will have to be moved/linked to ~/.e16/themes/ or <datadir>/e16/themes/.
+A few themes will have to be tweaked to work with e16.8. The most likely
+problem is that configuration settings are included in .cfg files where they
+are no longer accepted.
+See the "Migrating ..." section below for additional information.
+
+e16keyedit >= 0.3 works with e16.8.
+If used to change the keybindings, the modified settings will be stored in
+~/.e16/bindings.cfg.
+It should also be fairly straightforward to modify the key- and buttonbindings
+by hand. Copy /usr/share/e16/config/bindings.cfg to ~/.e16/bindings.cfg and
+modify as desired.
+NB! e16keyedit only modifies keybindings, not buttonbindings.
+
+NB!!! Do not rename ~/.enlightenment to ~/.e16. It will only cause trouble.
+
+Migrating from versions older than 0.16.8
+-----------------------------------------
+
+Users upgrading from enlightenment 0.16.7 need to read the following.
+
+Several organizational changes have occurred that will require
+some manual adjustments. Mainly these deal with changes to
+configuration and shared directory names. This was done to avoid
+collisions with the new enlightenment DR17.
+
+1) home configuration directory is now ~/.e16, not ~/.enlightenment.
+2) menu files have been moved to a subdirectory called menus
+ you will need to move customized menus and subdirectories to
+ ~/.e16/menus.
+3) you will need to move ~/.enlightenment/backgrounds files to ~/.e16
+ and any themes as well.
+4) $prefix/share/enlightenment has been changed to $prefix/share/e16
+5) if installed E-docs and Epplet directories will have to be moved
+ to $prefix/share/e16
+6) any additional themes that were added to the $prefix/share/enlightenment
+ directory will have to be moved to $prefix/share/e16
+7) any startup scripts or Session scripts that reference the startup
+ executable `enlightenment` must be edited to the new e16 program.
+
+
+A few themes have to be tweaked to work with 0.16.8.
+
+Some themes (Maw, Black E) have an actionclasses.cfg like:
+
+#include <definitions>
+__E_CFG_VERSION 0
+#include </usr/local/enlightenment/config/actionclasses.cfg>
+#include </usr/share/enlightenment/config/actionclasses.cfg>
+
+The absolute path is obviously no longer valid.
+The most sensible fix for these themes is to remove the themes
+actionclasses.cfg. e16 will then fall back to the default one.
+
+
+Resources
+---------
+
+The e16-docs package is somewhat dated but still contains much relevant
+information about using e16.
+
+Enlightenment web site:
+http://www.enlightenment.org
+
+Mailing lists:
+http://sourceforge.net/mail/?group_id=2
+
+IRC:
+#e on freenode
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+<article id="index">
+ <articleinfo>
+ <title>About Enlightenment e16</title>
+ <pubdate>Apr 19, 2009</pubdate>
+ <abstract>
+ <para>
+ Coming soon. (maybe)
+ </para>
+ </abstract>
+ </articleinfo>
+ <sect1 id="credits">
+ <title>Credits</title>
+ <para>
+ This note contains contributions by
+ <itemizedlist>
+ <listitem>
+ <para>
+ Kim Woelders
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Peter Hyman <email>pete4abw@comcast.net</email>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Yasufumi Haga <email>yasufumi.haga@nifty.com</email>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </sect1>
+ <sect1 id="requirements">
+ <title>Requirements</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <filename>imlib2</filename> >= 1.2.0 is required, >= 1.4.2 is recommended.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename>imlib2</filename> must be built with png support.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </sect1>
+ <sect1 id="installation">
+ <title>Installation</title>
+ <para>
+ <programlisting>
+ ./configure
+ make
+ sudo make install
+ </programlisting>
+ </para>
+ <para>
+ For additional help on package configuration, see
+ <programlisting>
+ ./configure --help
+ </programlisting>
+ </para>
+ </sect1>
+ <sect1 id="versions">
+ <title>Versions</title>
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term>
+ e16-1.0.0:
+ </term>
+ <listitem>
+ <para>
+ No major changes, might as well have been 0.16.8.16.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ e16-0.16.8
+ </term>
+ <listitem>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Released Feb 2006
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ enlightenment -> e16
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Major internal rewrite
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Changed configuration system
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Added compositing manager
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ enlightenment-0.16.7
+ </term>
+ <listitem>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Released Jul 2004
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Migrated to imlib2
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ enlightenment-0.16.6
+ </term>
+ <listitem>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Released Nov 2003
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Added extended window manager hint support
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ enlightenment-0.16.5
+ </term>
+ <listitem>
+ <para>
+ Released Oct 2000
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ enlightenment-0.16.0
+ </term>
+ <listitem>
+ <para>
+ Released Oct 1999
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </sect1>
+ <sect1 id="configuration">
+ <title>Configuration</title>
+ <para>
+ All settings can be shown and set using <application>eesh</application>.
+ </para>
+ <para>
+ To get a full list of settings:
+ <programlisting>
+ $ eesh show
+ </programlisting>
+ </para>
+ <para>
+ To set some parameter:
+ <programlisting>
+ $ eesh set <parameter> <value>
+ </programlisting>
+ </para>
+ <para>
+ Some settings will not be effective until <application>E</application> is restarted.
+ </para>
+ <para>
+ To get a list of all <application>eesh</application> commands:
+ <programlisting>
+ $ eesh help full
+ </programlisting>
+ </para>
+ <para>
+ The available configuration options are shown below. Values are the defaults.
+ <programlisting>
+ # [bool] High quality background rendering
+ backgrounds.hiquality = 1
+ # [bool] Prefer user selected backgrounds over theme settings
+ backgrounds.user = 1
+ # [bool] Do not scan all backgrounds when starting background configuration dialog
+ backgrounds.no_scan = 0
+ # [int] Time out for unused background image pixmaps
+ backgrounds.timeout = 240
+
+ # [bool] Enable composite manager
+ compmgr.enable = 0
+ # [int] Composite manager mode (always 1 atm)
+ compmgr.mode = 1
+ # [int] Dropshadow mode (0: off, 1: sharp, 2: blurry, 3: echo)
+ compmgr.shadows.mode = 0
+ # [int] Dropshadow offset
+ compmgr.shadows.offset_x = 3
+ compmgr.shadows.offset_y = 5
+ # [int] Blurry dropshadow radius
+ compmgr.shadows.blur.radius = 5
+ # [int] Blurry dropshadow opacity(%)
+ compmgr.shadows.blur.opacity = 75
+ # [int] Sharp dropshadow opacity(%)
+ compmgr.shadows.sharp.opacity = 30
+ # [int] Shadow color (0xRRGGBB)
+ compmgr.shadows.color = 0
+ # [bool] Hack to fix problems with resize on old xorg servers
+ compmgr.resize_fix_enable = 0
+ # [bool] Experimental - leave at 0
+ compmgr.use_name_pixmap = 0
+ # [bool] Use composite overlay window
+ compmgr.use_cow = 1
+ # [bool] Enable fading
+ compmgr.fading.enable = 1
+ # [int] Fading time(ms)
+ compmgr.fading.time = 200
+ # [int] Composite redirection of override-redirect windows (0: off, 1: on map, ...: testing)
+ # Should normally be 1 but 0 may be a partial workaround of problems with vanishing
+ # pop-ups on certain X-server/toolkit versions.
+ compmgr.override_redirect.mode = 1
+ # [int] Opacity of override-redirect windows (pop-up's, etc)
+ compmgr.override_redirect.opacity = 90
+
+ # [int] Number of desktops
+ desktops.num = 2
+ # [int] Desktop dragging direction
+ desktops.dragdir = 2
+ # [int] Desktop dragbar width (0: disable)
+ desktops.dragbar_width = 16
+ # [int] Desktop dragbar length (0: full)
+ desktops.dragbar_length = 0
+ # [int] Desktop dragbar button ordering
+ desktops.dragbar_ordering = 1
+ # [bool] Wrap around on desk switch (last <-> first on next/prev)
+ desktops.desks_wraparound = 0
+ # [bool] Slide desks in when switching
+ desktops.slidein = 1
+ # [int] Desk slide speed
+ desktops.slidespeed = 6000
+ # [int] Size of virtual desktop
+ desktops.areas_nx = 2
+ desktops.areas_ny = 1
+ # [bool] Wrap around on area switch (last <-> first on next/prev)
+ desktops.areas_wraparound = 0
+ # [int] Edge flip mode (0: off, 1: on, 2: only when moving window)
+ desktops.edge_flip_mode = 1
+ # [int] Edge flip resistance(pixels)
+ desktops.edge_flip_resistance = 25
+
+ # [bool] Enable ripples effect
+ effects.ripples.enabled = 0
+ # [bool] Enable waves effect
+ effects.waves.enabled = 0
+
+ # [int] Focus mode (0: pointer, 1: sloppy, 2: click)
+ focus.mode = 1
+ # [bool] Raise window when clicked
+ focus.clickraises = 1
+ # [bool] Transients are placed where leader is
+ focus.transientsfollowleader = 1
+ # [bool] When a transient is mapped the desk/area is switched to where the transient appears
+ focus.switchfortransientmap = 1
+ # [bool] Focus new windows
+ focus.all_new_windows_get_focus = 0
+ # [bool] Focus new transients
+ focus.new_transients_get_focus = 0
+ # [bool] Focus new transients if group is focused
+ focus.new_transients_get_focus_if_group_focused = 1
+ # [bool] Raise window on focus next
+ focus.raise_on_next = 1
+ # [bool] Warp pointer to window on focus next
+ focus.warp_on_next = 0
+ # [bool] Always warp pointer into window when new window is focused
+ focus.warp_always = 0
+ # [bool] Enable autoraise
+ focus.autoraise.enable = 0
+ # [int] Autoraise delay(ms)
+ focus.autoraise.delay = 500
+
+ # [bool] Default group settings
+ groups.dflt.iconify = 1
+ groups.dflt.kill = 0
+ groups.dflt.move = 1
+ groups.dflt.raise = 0
+ groups.dflt.set_border = 1
+ groups.dflt.stick = 1
+ groups.dflt.shade = 1
+ groups.swapmove = 1
+
+ # [int] Iconbox animation time(ms)
+ iconboxes.anim_time = 250
+
+ # [string] Language used by e16 (dialogs, tooltips, etc.)
+ # Inherit from environment if not set
+ locale.internal =
+ # [string] Language exported when starting applications
+ # Inherit from environment if not set
+ locale.exported =
+
+ # [bool] Animate menus
+ menus.animate = 0
+ # [bool] Keep menus on-screen
+ menus.onscreen = 1
+ # [bool] Warp pointer when sliding menus
+ menus.warp = 1
+ # [bool] Enable icons in menus
+ menus.show_icons = 1
+ # [int] Menu icon size(pixels)
+ menus.icon_size = 16
+ # [int] Menu navigation keycodes
+ menus.key.left = 0xff51
+ menus.key.right = 0xff53
+ menus.key.up = 0xff52
+ menus.key.down = 0xff54
+ menus.key.escape = 0xff1b
+ menus.key.ret = 0xff0d
+
+ # [int] Animation time step(ms)
+ misc.animation.step = 10
+
+ # [int] Button move resistance(pixels)
+ misc.buttons.move_resistance = 10
+
+ # [bool] Show headers in dialogs
+ misc.dialogs.headers = 0
+ # [bool] Enable images on dialog buttons
+ misc.dialogs.button_image = 0
+
+ # [bool] Enable docking of dockapps
+ misc.dock.enable = 1
+ # [bool] Make all dockapps sticky
+ misc.dock.sticky = 1
+ # [int] Dock direction
+ misc.dock.dirmode = 3
+ # [int] Dock start position
+ misc.dock.startx = 0
+ misc.dock.starty = 0
+
+ # [bool] Enable desktop background compatibility mode
+ # Fixes background in many apps using pseudotransparency
+ # May cause major slowdowns in certain setups
+ misc.hints.set_xroot_info_on_root_window = 0
+
+ # [int] Move mode (0: opaque, 1: technical, 2: box, 3: shaded, 4: semi-solid, 5: translucent)
+ misc.movres.mode_move = 0
+ # [int] Resize mode (0: opaque, 1: technical, 2: box, 3: shaded, 4: semi-solid)
+ misc.movres.mode_resize = 2
+ # [int] Geometry indicator mode (0: off, 1: window center, 2: screen corner)
+ misc.movres.mode_info = 1
+ # [int] Default maximize mode (0: Absolute, 1: Available, 2: Conservative)
+ misc.movres.mode_maximize_default = 1
+ # [int] Move/resize color (RGB) when using non-server-grabbing technincal/box modes.
+ misc.movres.color = 0xff0000
+ # [bool] Avoid server grab
+ # Use non-server-grabbing line drawing technique in technical and box modes.
+ misc.movres.avoid_server_grab = 1
+ # [bool] Send synthetic ConfigureNotify's while moving
+ # Causes pseudotransparent apps to update while moving (expensive)
+ misc.movres.update_while_moving = 0
+ # [bool] Use SYNC_REQUEST's to synchronize move/resize with client
+ misc.movres.enable_sync_request = 0
+ # [bool] Do not cover dragbar when maximizing
+ misc.movres.dragbar_nocover = 0
+
+ # [int] Composite opacity of menu windows
+ misc.opacity.menus = 85
+ # [int] Composite opacity of windows being moved
+ misc.opacity.movres = 60
+ # [int] Composite opacity of tooltip windows
+ misc.opacity.tooltips = 80
+ # [int] Composite opacity of focused windows
+ misc.opacity.focused = 100
+ # [int] Composite opacity of unfocused windows
+ misc.opacity.unfocused = 100
+
+ # [bool] Place windows manually
+ misc.place.manual = 0
+ # [bool] Place windows under pointer
+ misc.place.manual_mouse_pointer = 0
+ # [bool] Center windows when desk is full
+ misc.place.center_if_desk_full = 0
+ # [bool] Ignore windows with struts (e.g. panels) when placing new window
+ misc.place.ignore_struts = 0
+ # [bool] Raise fullscreen windows (increase stacking level while fullscreen)
+ misc.place.raise_fullscreen = 0
+ # [bool] Slide windows in
+ misc.place.slidein = 0
+ # [bool] Slide windows around while cleaning up
+ misc.place.cleanupslide = 1
+ # [int] Window slide-in mode (0: opaque, 1: technical, 2: box, 3: shaded, 4: semi-solid)
+ misc.place.slidemode = 0
+ # [int] Window slide-in speed
+ misc.place.slidespeedmap = 6000
+ # [int] Window cleanup slidespeed
+ misc.place.slidespeedcleanup = 8000
+
+ # [bool] Enable session scripts
+ misc.session.enable_script = 0
+ # [string] Session script
+ misc.session.script = $EROOT/scripts/session.sh
+ # [bool] Enable logout dialog
+ misc.session.enable_logout_dialog = 1
+ # [bool] Enable reboot/halt in logout dialog
+ misc.session.enable_reboot_halt = 0
+ # [string] Reboot command
+ misc.session.cmd_reboot = reboot
+ # [string] Halt command
+ misc.session.cmd_halt = poweroff
+
+ # [bool] Enable animation of window shading
+ misc.shading.animate = 1
+ # [int] Shading speed
+ misc.shading.speed = 8000
+
+ # [bool] Enable resistance when moving windows
+ misc.snap.enable = 1
+ # [int] Resistance at other window edge
+ misc.snap.edge_snap_dist = 8
+ # [int] Resistance at screen edge
+ misc.snap.screen_snap_dist = 32
+
+ # [bool] First time flag
+ misc.startup.firsttime = 0
+ # [bool] Enable sliding startup windows
+ misc.startup.animate = 1
+
+ # [bool] Test options (do not change)
+ misc.testing.argb_internal_objects = 0
+ misc.testing.argb_internal_clients = 0
+ misc.testing.argb_clients = 0
+ misc.testing.argb_clients_inherit_attr = 0
+ misc.testing.image_cache_size = -1
+ misc.testing.mask_alpha_threshold = 8
+ misc.testing.enable_startup_id = 1
+ misc.testing.use_render_for_scaling = 0
+ misc.testing.bindings_reload = 1
+ misc.testing.no_sync_mask = 0
+
+ # [bool] Save configuration changes
+ misc.autosave = 1
+ # [bool] Keep memory usage down (should probably always be 1)
+ misc.memory_paranoia = 1
+ # [bool] Use save-unders when appropriate
+ misc.save_under = 0
+ # [bool] Show differential time in debug output
+ misc.difftime = 0
+
+ # [bool] Enable pagers
+ pagers.enable = 1
+ # [bool] Enable zooming of pager snapshot windows
+ pagers.zoom = 1
+ # [bool] Show window name pop-ups
+ pagers.title = 1
+ # [bool] Enable high quality snapshots
+ pagers.hiq = 1
+ # [int] Pager mode (0: simple, 1: snap, 2: live)
+ pagers.mode = 2
+ # [int] Scan/update speed (lines/updates per second. Used only in snap or live mode)
+ pagers.scanspeed = 10
+ # [int] Pager buttons
+ pagers.sel_button = 2
+ pagers.win_button = 1
+ pagers.menu_button = 3
+
+ # [bool] Enable sound
+ sound.enable = 0
+ # [string] Use sounds from theme
+ sound.theme =
+ # [int] Bits masks for disabling particular sounds
+ sound.mask1 = 0
+ sound.mask2 = 0
+
+ # [string] Theme
+ theme.name = winter
+ # [string] Colon separated list of directories containing e16 themes
+ theme.extra_path =
+ # [bool] Use font specified by theme
+ theme.use_theme_font_cfg = 0
+ # [bool] Use alternative font configuration file (specified by theme.font_cfg)
+ theme.use_alt_font_cfg = 0
+ # [string] Alternative font configuration file
+ theme.font_cfg =
+
+ # [bool] Enable tooltips
+ tooltips.enable = 1
+ # [bool] Enable root window tooltips
+ tooltips.showroottooltip = 1
+ # [int] Tooltip delay
+ tooltips.delay = 1500
+
+ # [int] Theme transparency(0-255)
+ transparency.alpha = 0
+ # [int] Item transparencies (0: off, 1: background, 2: glass)
+ transparency.menu = 1
+ transparency.menu_item = 1
+ transparency.tooltip = 2
+ transparency.widget = 1
+ transparency.hilight = 0
+ transparency.border = 1
+ transparency.iconbox = 1
+ transparency.dialog = 1
+ transparency.pager = 1
+ transparency.warplist = 1
+
+ # [bool] Enable focus list (alt-tab)
+ warplist.enable = 1
+ # [bool] Show sticky windows
+ warplist.showsticky = 1
+ # [bool] Show shaded windows
+ warplist.showshaded = 1
+ # [bool] Show iconified windows
+ warplist.showiconified = 1
+ # [bool] Show windows on all desks
+ warplist.showalldesks = 0
+ # [bool] Warp pointer to focused window
+ warplist.warpfocused = 1
+ # [bool] Raise window while selecting
+ warplist.raise_on_select = 1
+ # [bool] Warp pointer to window while selecting
+ warplist.warp_on_select = 0
+ # [bool] Icon mode (0: none, 3: e/app/snap, 4: app/e/snap)
+ warplist.icon_mode = 3
+ </programlisting>
+ </para>
+ </sect1>
+ <sect1 id="configurationfiles">
+ <title>Configuration files</title>
+ <para>
+ Skip this section unless you *really* want to know...
+ </para>
+ <para>
+ It is here assumed that <option>--prefix</option> is <filename class="directory">/usr</filename>, and that the default user
+ configuration directory (<filename class="directory">~/.e16</filename>) is used.
+ </para>
+ <para>
+ In general, the configuration search order for theme related configuration
+ files, say <filename>xyz.cfg</filename>, is:
+ <orderedlist>
+ <listitem>
+ <para>
+ User configuration directory, i.e. <filename>~/.e16/xyz.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Theme directory, i.e. <filename>/usr/share/e16/themes/<theme>/xyz.cfg</filename>, or
+ <filename>~/.e16/themes/<theme>/xyz.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Default configuration directory, i.e. <filename>/usr/share/e16/config/xyz.cfg</filename>.
+ </para>
+ </listitem>
+ </orderedlist>
+ </para>
+ <para>
+ Mouse and keybindings are defined in <filename>bindings.cfg</filename>. <filename>bindings.cfg</filename> is searched in
+ <orderedlist>
+ <listitem>
+ <para>
+ User configuration directory, i.e. <filename>~/.e16/bindings.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Default configuration directory, i.e. <filename>/usr/share/e16/config/bindings.cfg</filename>.
+ </para>
+ </listitem>
+ </orderedlist>
+ </para>
+ <para>
+ Window matches (border and icon associations) are defined in <filename>windowmatches.cfg</filename>
+ and <filename>matches.cfg</filename>.
+ <filename>windowmatches.cfg</filename> (deprecated, border associations only) is loaded first,
+ and should be found only in theme directories.
+ <filename>matches.cfg</filename> is loaded next, and searched in
+ <orderedlist>
+ <listitem>
+ <para>
+ User configuration directory, i.e. <filename>~/.e16/matches.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Default configuration directory, i.e. <filename>/usr/share/e16/config/matches.cfg</filename>.
+ </para>
+ </listitem>
+ </orderedlist>
+ Window match items are appended to the window match list, in the order
+ in which they are read from the configuration files.
+ When doing border/icon matches, the window match list is searched from the
+ start, and the first matching item will be used.
+ </para>
+ </sect1>
+ <sect1 id="defaultkeybindings">
+ <title>Default keybindings</title>
+ <para>
+ <simplelist type="horiz" columns="3">
+ <member>Alt-Ctrl</member><member>Home</member><member>Auto-arrange windows</member>
+ <member>Alt-Ctrl</member><member>Insert</member><member>Launch Eterm</member>
+ <member>Alt-Ctrl</member><member>Delete</member><member>Log out</member>
+ <member>Alt-Ctrl</member><member>End</member><member>Exit</member>
+ <member>Alt-Ctrl</member><member>Right</member><member>Goto next desk</member>
+ <member>Alt-Ctrl</member><member>Left</member><member>Goto previous desk</member>
+ <member>Alt-Shift</member><member>Down</member><member>Move desk area down</member>
+ <member>Alt-Shift</member><member>Up</member><member>- - - up</member>
+ <member>Alt-Shift</member><member>Left</member><member>- - - left</member>
+ <member>Alt-Shift</member><member>Right</member><member>- - - right</member>
+ <member>Alt</member><member>F1</member><member>Goto desk 0</member>
+ <member>Alt</member><member>F2</member><member>- - 1</member>
+ <member>Alt</member><member>F3</member><member>- - 2</member>
+ <member>Alt</member><member>F4</member><member>- - 3</member>
+ <member>Alt</member><member>F5</member><member>- - 4</member>
+ <member>Alt</member><member>F6</member><member>- - 5</member>
+ <member>Alt</member><member>F7</member><member>- - 6</member>
+ <member>Alt</member><member>F8</member><member>- - 7</member>
+ <member>Alt</member><member>Tab</member><member>Switch focus (using focus list, if enabled)</member>
+ <member>Alt-Ctrl</member><member>Up</member><member>Raise active window</member>
+ <member>Alt-Ctrl</member><member>Down</member><member>Lower active window</member>
+ <member>Alt-Ctrl</member><member>x</member><member>Close active window</member>
+ <member>Alt-Ctrl</member><member>k</member><member>Destroy active window</member>
+ <member>Alt-Ctrl</member><member>s</member><member>Toggle active window sticky state</member>
+ <member>Alt-Ctrl</member><member>i</member><member>Iconify active window</member>
+ <member>Alt-Ctrl</member><member>r</member><member>Toggle active window shaded state</member>
+ <member>Alt-Ctrl</member><member>f</member><member>Toggle active window fullscreen state</member>
+ <member>Alt-Ctrl</member><member>m</member><member>Toggle active window maximized state</member>
+ <member>Alt-Ctrl</member><member>w</member><member>Show window-ops menu for active window</member>
+ <member>Alt</member><member>Return</member><member>Toggle active window zoomed state</member>
+ <member>Ctrl-Shift</member><member>F1</member><member>Show User menu (default left mouse button)</member>
+ <member>Ctrl-Shift</member><member>F2</member><member>Show Enlightenment menu (default middle mouse button)</member>
+ <member>Ctrl-Shift</member><member>F3</member><member>Show Configuration menu (default right mouse button)</member>
+ <member>Ctrl-Shift</member><member>F4</member><member>Show Window List menu (default Alt-middle mouse button)</member>
+ <member>Alt-Ctrl</member><member>a</member><member>Toggle visibility of all buttons</member>
+ <member>Alt-Ctrl</member><member>b</member><member>Toggle visibility of theme buttons</member>
+ <member>Alt-Ctrl</member><member>c</member><member>Toggle visibility of configuration buttons</member>
+ <member>Alt-Ctrl</member><member>d</member><member>Switch dragbar position</member>
+ <member>Alt-Ctrl</member><member>o</member><member>Switch dragbar button ordering</member>
+ </simplelist>
+ </para>
+ </sect1>
+ <sect1 id="sessionscripts">
+ <title>Session Scripts</title>
+ <para>
+ <application>Enlightenment</application> can now automatically run user scripts or applications during
+ Startup, Restart, and Shutdown. This facilitates the loading of system
+ tray applets, rss readers, screensavers, and other daemons (e.g. dbus),
+ and allows for cleanup of programs that don't terminate properly when <application>E</application>
+ quits (this is especially common with <application>KDE</application> applications in <application>E</application> and the arts
+ daemon or dcop server keeps running).
+ </para>
+ <para>
+ <application>Enlightenment</application> accomplishes this with the addition of two new keys in
+ the <filename>$ECONFDIR/e_config--#.#.cfg</filename> (#.# may vary depending on your X setup --
+ for most people, it will be 0.0). These are:
+ <programlisting>
+ misc.session.enable_script
+ misc.session.script
+ </programlisting>
+ </para>
+ <para>
+ <varname>misc.session.enable_script</varname> is a boolean. When set to 1, <application>Enlightenment</application> will
+ execute the script in the <varname>misc.session.script</varname> key. By default, this feature
+ is disabled. When enabled, it will do nothing until the user configures
+ his/her home directory (<filename class="directory">$ECONFDIR</filename> -- normally <filename class="directory">~/.e16</filename>).
+ </para>
+ <para>
+ The default session.script is located in <filename>$EROOT/scripts/session.sh</filename> (<filename class="directory">$EROOT</filename>
+ is normally <filename class="directory">/usr/share/e16</filename> or <filename class="directory">/usr/local/share/e16</filename>). It will look for
+ directories in the user's <filename class="directory">$ECONFDIR/</filename> (<filename class="directory">~/.e16/</filename>) called:
+ <programlisting>
+ ~/.e16/ ($ECONFDIR)
+ Init/
+ Start/
+ Stop/
+ </programlisting>
+ and run any and/or all scripts or executables in each when <application>E</application> starts,
+ restarts, and shuts down. If no scripts or executables are present, or
+ if any of the directories <filename class="directory">Init</filename>, <filename class="directory">Start</filename>, and <filename class="directory">Stop</filename> do not exist, NOTHING
+ will happen and <application>E</application> will start up as usual. So, in order to use session
+ scripts, all the user has to do is to populate the <filename class="directory">Init</filename>, <filename class="directory">Start</filename>, and <filename class="directory">Stop</filename>
+ directories with scripts, applications, or links to applications that
+ should run during Startup, Restart, or when <application>E</application> is stopped.
+ </para>
+ <para>
+ The default values for the new keys are:
+ <programlisting>
+ misc.session.enable_script = 0
+ misc.session.script = $EROOT/scripts/session.sh
+ </programlisting>
+ </para>
+ <para>
+ The user may write a custom script and place it anywhere. Simply modify
+ the config file by using:
+ <programlisting>
+ $ eesh set misc.session.script myscript
+ </programlisting>
+ and modify it (be sure to <command>chmod +x</command> the file otherwise it won't run).
+ The session script is called with one of three command parameters;
+ <parameter class="command">init</parameter>, <parameter class="command">start</parameter>, and <parameter class="command">stop</parameter>. Any custom script should have a code block
+ similar to this in order to function properly in <application>Enlightenment</application>.
+ <programlisting>
+ case "$1" in
+ init)
+ # do blah
+ # or do function init
+ start)
+ # do blah
+ # of do function start
+ stop)
+ # do blah
+ # or do function stop
+ esac
+ </programlisting>
+ </para>
+ <para>
+ Automatic script running can be enabled/disabled via the Session Settings
+ dialog in <application>Enlightenment</application> and checking/unchecking the option Enable Session
+ Script, by editing the user cfg file and setting the
+ <varname>misc.session.enable_script</varname> key to 1/0, or with
+ <programlisting>
+ $ eesh set misc.session.enable_script 1/0
+ </programlisting>
+ This process is very flexible since when used, the user can turn off
+ individual scripts and applications by <command>chmod -x</command> or simply leave the
+ startup directories empty or remove them.
+ </para>
+ </sect1>
+ <sect1 id="compositemanagernotes">
+ <title>Composite manager notes</title>
+ <para>
+ To use the composite manager it is required that the X-server has support
+ enabled for the COMPOSITE, DAMAGE, FIXES, and RENDER extensions.
+ For reasonable performance it is also required that hardware acceleration
+ of the RENDER extension is enabled.
+ </para>
+ <para>
+ As of version 0.16.8.2 it may happen that the borders on application windows
+ using ARGB visuals (for transparency) are "ugly". Applications may use ARGB
+ visuals intentionally (e.g. fdclock) or not (e.g. xv on 16 bit root depth).
+ Applications unintentionally using an ARGB visual will normally not be
+ rendered properly at all and should be started with the environment variable
+ <varname>XLIB_SKIP_ARGB_VISUALS</varname> set.
+ To fix border rendering on "real" ARGB windows it is required to use <filename>imlib2</filename>
+ with version >= 1.3.0.
+ </para>
+ <para>
+ Tweaks:
+ </para>
+ <para>
+ As of e16 >= 0.16.8.9: If there is any kind of trouble with the composite
+ manager, first check <varname>compmgr.mode</varname> (<command>eesh show compmgr</command>), and set it to 1 if
+ it isn't (<command>eesh set compmgr.mode 1</command>, restart).
+ </para>
+ <para>
+ If pop-up windows disappear immediately after having appeared (may happen
+ e.g. with certain pop-up windows when using gnome > 2.12), try:
+ <programlisting>
+ $ eesh set compmgr.override_redirect.mode 0
+ </programlisting>
+ This should make the pop-up windows usable, but not always rendered properly.
+ This problem should not occur with recent X-servers.
+ </para>
+ <para>
+ If window resize/shading with composite enabled is ugly, try:
+ <programlisting>
+ $ eesh set compmgr.resize_fix_enable 1
+ </programlisting>
+ This problem should not occur with recent X-servers.
+ </para>
+ </sect1>
+ <sect1 id="fonts">
+ <title>Fonts</title>
+ <para>
+ Theme font selection depends on a number of settings and whether or not
+ the theme has font alias support.
+ </para>
+ <para>
+ For themes with font alias support the fonts are determined by a font
+ configuration file. This file is selected as follows, first hit applies:
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <varname>theme.use_alt_font_cfg</varname> is set (default off) and the the file specified
+ by <varname>theme.font_cfg</varname> is found the fonts are determined by this file.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <varname>theme.use_theme_font_cfg</varname> is set (default off) and the theme has a
+ <filename>fonts.theme.cfg</filename> the fonts are determined by the theme's <filename>fonts.theme.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <application>e16</application> was built with <application>pango</application> support, look for <filename>fonts.pango.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <application>e16</application> was built with <application>xft</application> support, look for <filename>fonts.xft.cfg</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Look for <filename>fonts.cfg</filename>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ The font configuration file search path is <filename class="directory">~/.e16, <theme-dir></filename>, and
+ <filename class="directory">/usr/share/e16/config</filename>.
+ Default <filename>fonts.pango.cfg</filename> and <filename>fonts.xft.cfg</filename> are provided in <filename class="directory">/usr/share/e16/config</filename>.
+ </para>
+ <para>
+ The default theme (winter) and the core themes (BlueSteel, BrushedMetal-Tigert,
+ Ganymede, and ShinyMetal) do have font alias support.
+ </para>
+ <para>
+ Don Harrop has made available a major number of <application>e16</application> themes which have been
+ modified for font alias support (<ulink url="http://themes.effx.us"><citetitle>themes.effx.us</citetitle></ulink>).
+ </para>
+ <para>
+ Other themes are likely to not have font alias support but in stead have font
+ references more or less scattered around in TextClass definitions in the theme
+ configuration files.
+ </para>
+ <para>
+ There are several ways to specify a font (in the font configuration file or
+ in TextClasses):
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ "<font name>/<size>", e.g. "Vera/8".
+ </para>
+ <para>
+ In this case <application>e16</application> must be able to find "Vera.ttf" in <filename class="directory"><theme dir>/ttfonts</filename> or
+ <filename class="directory">/usr/share/e16/fonts</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ XLFD font sets, e.g. "-*-lucida-medium-r-normal-*-12-120-*-*-*-*-*-*,-*-gulim*-medium-r-normal-*-12-120-*-*-*-*-ksc5601.1987-*".
+ </para>
+ <para>
+ <application>xfontsel</application>, <application>xlsfonts</application>, and <application>xfd</application> can be used to select and show these fonts.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Fontconfig font names, prefixed by "xft:", e.g. "xft:Luxi Sans-10:bold".
+ </para>
+ <para>
+ <application>fc-list</application> and <application>xfd</application> can be used to select and show these fonts.
+ This possibility (Xft support) is available as of version 0.16.8.5.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pango font names, prefixed by "pango:", e.g. "pango:sans bold 10".
+ </para>
+ <para>
+ This possibility (Pango support) is available as of version 0.16.8.9.
+ Pango support must be explicitly enabled at build time with <option>--enable-pango</option>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect1>
+ <sect1 id="usinge16withgnome">
+ <title>Using e16 with GNOME</title>
+ <para>
+ Setting up <application>e16</application> as WM in a <application>GNOME</application> session unfortunately depends on the version
+ of <application>gnome-session</application>.
+ </para>
+ <para>
+ Recent versions of <application>gnome-session</application> seem to require that a gconf key is set
+ and that an <filename>e16.desktop</filename> file can be found:
+ <programlisting>
+ $ gconftool-2 --set /desktop/gnome/session/required_components/windowmanager --type string e16
+ $ gnome-sesssion
+ </programlisting>
+ </para>
+ <para>
+ <filename>/usr/share/applications/e16.desktop</filename> (or <filename>~/.local/share/applications/e16.desktop</filename>):
+ <programlisting>
+ [Desktop Entry]
+ Encoding=UTF-8
+ Type=Application
+ Name=E16
+ Comment=The Enlightenment (e16) window manager
+ Exec=e16
+ Icon=/usr/share/e16/misc/e16.png
+ </programlisting>
+ </para>
+ <para>
+ The section below seems to be obsolete as of <application>gnome-session-2.2x(?)</application>
+ </para>
+ <para>
+ The <application>GNOME</application> desktop can be started using <application>e16</application> as WM with:
+ <programlisting>
+ $ export WINDOW_MANAGER=e16
+ $ gnome-sesssion
+ </programlisting>
+ </para>
+ <para>
+ The section below is obsolete as of <application>gnome-session-2.16</application>
+ </para>
+ <para>
+ However, somewhere along the way the script <filename>/usr/bin/gnome-wm</filename> is called.
+ This is supposed to handle differences in all the different WM's out there,
+ but does not know of "<application>e16</application>". This will cause a major delay when starting up
+ the <application>GNOME</application> desktop.
+ One way to fix this is to use <property>gnome-session-properties</property> to get rid of
+ the "gnome-wm" session entry.
+ </para>
+ <para>
+ Another is to apply this patch to <filename>/usr/bin/gnome-wm</filename>:
+ <programlisting>
+ --- /usr/bin/gnome-wm-org 2005-04-19 21:33:53.000000000 +0200
+ +++ /usr/bin/gnome-wm 2005-11-15 20:46:09.000000000 +0100
+ @@ -69,7 +69,7 @@
+ OPT2=
+ if [ ! -z "$SMID" ] ; then
+ case `basename $WINDOW_MANAGER` in
+ - sawfish|sawmill|metacity)
+ + sawfish|sawmill|metacity|e16)
+ OPT1=--sm-client-id=$SMID
+ ;;
+ openbox)
+ </programlisting>
+ </para>
+ </sect1>
+ <sect1 id="usinge16withkde">
+ <title>Using e16 with KDE</title>
+ <para>
+ The <application>KDE</application> desktop can be started using <application>e16</application> as WM with:
+ <programlisting>
+ $ export KDEWM=e16
+ $ startkde
+ </programlisting>
+ </para>
+ </sect1>
+ <sect1 id="majorchangesandnewfeaturesin0168">
+ <title>Major changes and new features in 0.16.8</title>
+ <para>
+ The following sections are only relevant for users upgrading from version 0.16.7
+ or older.
+ </para>
+ <para>
+ Changes:
+ <itemizedlist>
+ <listitem>
+ <para>
+ "enlightenment" has been renamed to "e16".
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The default user configuration directory is "<filename class="directory">~/.e16</filename>".
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The data install path is "<filename class="directory"><somepath>/e16</filename>", e.g. "<filename class="directory">/usr/share/e16</filename>".
+ Thus, an <application>e16.8</application> installation should not clash with any other versions.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Various configuration file formats have changed and should be easier
+ to read and modify, if needed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The configuration is stored per display and per screen. E.g. for
+ <varname>DISPLAY=:1.0</varname> the main configuration file is "<filename>~/.e16/e_config--1.0.cfg</filename>".
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Actions(used by menus, keybindings, etc.) and IPC functions(<application>eesh</application>) have
+ been merged.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Many IPC(<application>eesh</application>) commands have been changed, possibly breaking compatibility
+ with a few epplets.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Window matches and icondefs have been merged (into <filename>matches.cfg</filename>), see below.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ New features:
+ <itemizedlist>
+ <listitem>
+ <para>
+ Built-in composite manager.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ An iconbox can be configured to act as System Tray
+ (<menuchoice><interface>middle mouse</interface><guimenu>Desktop</guimenu><guimenuitem>Create Systray</guimenuitem></menuchoice>).
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Possibility to run programs on startup, restart, and shutdown, see
+ <link linkend="sessionscripts">"Session Scripts"</link> below.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Possibility to track changes in remembered settings.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Window operations by window matches (class, name, transient, ...),
+ e.g. for making all windows of a certain type sticky, put it on a certain
+ layer, etc. (see <filename>matches.cfg</filename>).
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ 0.16.8 should be compatible with most <application>e16</application> themes. However, user installed
+ themes will have to be moved/linked to <filename class="directory">~/.e16/themes/</filename> or <filename class="directory"><datadir>/e16/themes/</filename>.
+ A few themes will have to be tweaked to work with <application>e16.8</application>. The most likely
+ problem is that configuration settings are included in .cfg files where they
+ are no longer accepted.
+ See the <link linkend="migratingfromversionsolderthan0168">"Migrating ..."</link> section below for additional information.
+ </para>
+ <para>
+ <application>e16keyedit</application> >= 0.3 works with e16.8.
+ </para>
+ <para>
+ If used to change the keybindings, the modified settings will be stored in
+ <filename>~/.e16/bindings.cfg</filename>.
+ It should also be fairly straightforward to modify the key- and buttonbindings
+ by hand. Copy <filename>/usr/share/e16/config/bindings.cfg</filename> to <filename>~/.e16/bindings.cfg</filename> and
+ modify as desired.
+ </para>
+ <para>
+ NB! <application>e16keyedit</application> only modifies keybindings, not buttonbindings.
+ </para>
+ <para>
+ NB!!! Do not rename <filename class="directory">~/.enlightenment</filename> to <filename class="directory">~/.e16</filename>. It will only cause trouble.
+ </para>
+ </sect1>
+ <sect1 id="migratingfromversionsolderthan0168">
+ <title>Migrating from versions older than 0.16.8</title>
+ <para>
+ Users upgrading from enlightenment 0.16.7 need to read the following.
+ </para>
+ <para>
+ Several organizational changes have occurred that will require
+ some manual adjustments. Mainly these deal with changes to
+ configuration and shared directory names. This was done to avoid
+ collisions with the new enlightenment DR17.
+ <orderedlist>
+ <listitem>
+ <para>
+ home configuration directory is now <filename class="directory">~/.e16</filename>, not <filename class="directory">~/.enlightenment</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ menu files have been moved to a subdirectory called menus
+ you will need to move customized menus and subdirectories to
+ <filename class="directory">~/.e16/menus</filename>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ you will need to move <filename class="directory">~/.enlightenment/backgrounds</filename> files to <filename class="directory">~/.e16</filename>
+ and any themes as well.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename class="directory">$prefix/share/enlightenment</filename> has been changed to <filename class="directory">$prefix/share/e16</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ if installed E-docs and Epplet directories will have to be moved
+ to <filename class="directory">$prefix/share/e16</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ any additional themes that were added to the <filename class="directory">$prefix/share/enlightenment</filename>
+ directory will have to be moved to <filename class="directory">$prefix/share/e16</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ any startup scripts or Session scripts that reference the startup
+ executable `<command>enlightenment</command>` must be edited to the new <command>e16</command> program.
+ </para>
+ </listitem>
+ </orderedlist>
+ </para>
+ <para>
+ A few themes have to be tweaked to work with 0.16.8.
+ </para>
+ <para>
+ Some themes (Maw, Black E) have an <filename>actionclasses.cfg</filename> like:
+ <programlisting>
+ <![CDATA[
+#include <definitions>
+__E_CFG_VERSION 0
+#include </usr/local/enlightenment/config/actionclasses.cfg>
+#include </usr/share/enlightenment/config/actionclasses.cfg>
+]]>
+ </programlisting>
+ The absolute path is obviously no longer valid.
+ The most sensible fix for these themes is to remove the themes
+ <filename>actionclasses.cfg</filename>. <application>e16</application> will then fall back to the default one.
+ </para>
+ </sect1>
+ <sect1 id="resources">
+ <title>Resources</title>
+ <para>
+ The e16-docs package is somewhat dated but still contains much relevant
+ information about using e16.
+ <variablelist>
+ <varlistentry>
+ <term>
+ Enlightenment web site:
+ </term>
+ <listitem>
+ <para>
+ <ulink url="http://www.enlightenment.org"><citetitle>www.enlightenment.org</citetitle></ulink>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ Mailing lists:
+ </term>
+ <listitem>
+ <para>
+ <ulink url="http://sourceforge.net/mail/?group_id=2"><citetitle>sourceforge.net/mail</citetitle></ulink>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ IRC:
+ </term>
+ <listitem>
+ <para>
+ #e on freenode
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </sect1>
+ <sect1>
+ <title>
+ Revision History
+ </title>
+ <para>
+ <revhistory>
+ <revision>
+ <revnumber>33</revnumber>
+ <date>Apr 19, 2009</date>
+ <authorinitials>Yasufumi Haga</authorinitials>
+ <revremark>
+ rename README-0.16.8.xml to README.xml
+ </revremark>
+ </revision>
+ <revision>
+ <revnumber>32</revnumber>
+ <date>Jan 25, 2009</date>
+ <authorinitials>Yasufumi Haga</authorinitials>
+ <revremark>
+ Add html version converted from README-0.16.8.xml
+ rewritten by Yasufumi Haga based on the ascii version of the file.
+ </revremark>
+ </revision>
+ <revision>
+ <revnumber>1-31</revnumber>
+ <date>2004-2009</date>
+ <authorinitials>Several</authorinitials>
+ <revremark>
+ Updates...
+ </revremark>
+ </revision>
+ <revision>
+ <revnumber>0</revnumber>
+ <date>Dec 30, 2004</date>
+ <authorinitials>Peter Hyman</authorinitials>
+ <revremark>
+ Notes on migrating to 0.16.8
+ </revremark>
+ </revision>
+ </revhistory>
+ </para>
+ </sect1>
+</article>
--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<!--
+ -->
+
+<refentry id='e16.man'>
+ <refentryinfo>
+ <productname>e16</productname>
+ <!--pubdate>__date__</pubdate-->
+ <authorgroup>
+ <author>
+ <firstname>The Enlightenment Team</firstname>
+ <contrib/>
+ <email>enlightenment-devel@lists.sourceforge.net</email>
+ </author>
+ <author>
+ <firstname>Kim</firstname><surname>Woelders</surname>
+ <contrib/>
+ <email>kim@woelders.dk</email>
+ </author>
+ </authorgroup>
+ </refentryinfo>
+
+ <refmeta>
+ <refentrytitle>e16</refentrytitle>
+ <manvolnum>1</manvolnum>
+ <refmiscinfo class='date'>__date__</refmiscinfo>
+ <refmiscinfo class='source'>e16 __version__</refmiscinfo>
+ <refmiscinfo class='manual'>e16 documentation</refmiscinfo>
+ </refmeta>
+
+ <refnamediv id='name'>
+ <refname>e16</refname>
+ <refpurpose>The Enlightenment DR16 Window Manager</refpurpose>
+ </refnamediv>
+
+ <!-- body begins here -->
+
+<refsect1 id='documentation'><title>e16 documentation</title>
+
+<refsect2 id='front'><title><markup role="dox-center"/>Enlightenment version 0.16.8</title>
+<img src="E_logo.png" x="32" y="77"/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para><markup role="dox-center"/>
+Topics:
+</para>
+<para><markup role="dox-center"/><simplelist>
+<member><link linkend="aboutdox">How To Use Documentation</link></member>
+<member><link linkend="about">About Enlightenment</link></member>
+<member><link linkend="res">Resources</link></member>
+<member></member>
+<member><link linkend="docindex">User Documentation</link></member>
+<member><link linkend="faq">Frequently Asked Questions</link></member>
+</simplelist></para>
+<para/>
+<para/>
+<para/>
+<para/>
+<font face="Vera/10" color="#ffffff"/>
+<para>
+Welcome to the Enlightenment Documentation Viewer. Please select a topic from
+the list.
+</para>
+</refsect2>
+
+
+<refsect2 id='aboutdox'><title/>
+<para>
+This Documentation is intended to take you step by step through Enlightenment(E16)
+and its default setup, how to use it, modify settings, and put it to use for
+you. When you have finished reading each page please press the NEXT button to go
+to the next page, or use the Back button until you have reached the
+<link linkend="docindex">Docs Index</link>.
+</para>
+<para>
+If you are reading this right now you have managed to get E16 itself
+installed correctly and are either running E16 for the first time or
+have just upgraded to a new version. Congratulations. Now it's time to take
+you on a quick tour of the desktop you will have before you.
+</para>
+<para>
+Please remember that if you use a <link linkend="themes">theme</link> other than
+Brushed Metal that it may look slightly or completely different to the
+contents of this User Documentation. Some behavior may also vary.
+</para>
+<para>
+To relaunch this Help Browser at any time, middle click on your
+<link linkend="desktops">desktop</link> and select the "Help" Item. The documentation should come
+back up, reloading to the first page.
+You can also use the "Home" key to take you back to the introduction page at
+any time during the program.
+</para>
+</refsect2>
+
+
+<refsect2 id="about"><title></title>
+<para>
+E16 is your Window Manager. The Window Manager controls the
+appearance of the borders of your windows, their behavior and
+all user interaction with positioning, killing, resizing, moving, iconifying,
+shading etc. your windows, virtual desktops, multiple desktops, menus attached
+to windows and some root window menus and can also control the background
+of your desktop(s).
+</para>
+<para>
+E16 is a large and complex program and is by no means perfect,
+but it is being worked on and is as stable as possible. It has many advanced
+features, but may also be missing some features that you would like to see.
+The version you are now running (0.16.8) is by no means the
+end of development and improvements, fixes and new exciting features are
+being worked on all the time. Please visit the <link linkend="res">Web</link> site often for
+new versions, fixes, patches and updates.
+</para>
+<para>
+We hope that you enjoy using E16 as much as we have enjoyed writing
+it. We'd like to think that even if this isn't the right software for you, you
+at least can have fun playing around with what we have created.
+</para>
+</refsect2>
+
+
+<refsect2 id="res"><title>Resources</title>
+<para>
+Web site: http://www.enlightenment.org/
+</para>
+<para>
+Forums: http://forum.enlightenment.org/
+</para>
+<para>
+Bugs: http://bugs.enlightenment.org/
+</para>
+<para/>
+<para>
+Download: http://sourceforge.net/project/showfiles.php?group_id=2
+</para>
+<para>
+Mailing lists: http://sourceforge.net/mail/?group_id=2
+</para>
+<para>
+IRC: #E on freenode
+</para>
+</refsect2>
+
+
+<!-- should have columns=2 -->
+<refsect2 id="docindex"><title>Documentation Index</title>
+<para><simplelist>
+<member><link linkend="basicintro">Basic Intro</link></member>
+<member><link linkend="rootmenu">Using Menus</link></member>
+<member><link linkend="mousebind">Mouse Bindings</link></member>
+<member><link linkend="mouseconfig">Mouse Configuration</link></member>
+<member><link linkend="border">Using The Window Border</link></member>
+<member><link linkend="changeborder">Changing Window Borders</link></member>
+<member><link linkend="defkeys">Default Keybindings</link></member>
+<member><link linkend="desktops">Multiple Desktops</link></member>
+<member><link linkend="changedesk">Changing Desktops</link></member>
+<member><link linkend="appsdesk">Taking Apps Between Desks</link></member>
+<member><link linkend="dragbar">The Dragbar</link></member>
+<member><link linkend="pager">The Pager</link></member>
+<member><link linkend="iconbox">The Iconbox</link></member>
+<member><link linkend="minimized">Recovering Minimized Apps</link></member>
+<member><link linkend="properties">Remembering App Properties</link></member>
+<member><link linkend="settings">Intro To Settings</link></member>
+<member><link linkend="groups">Window Groups</link></member>
+</simplelist></para>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para><simplelist>
+<member><link linkend="backgrounds">Desktop Backgrounds</link></member>
+<member><link linkend="tooltips">Tooltips</link></member>
+<member><link linkend="audio">Audio</link></member>
+<member><link linkend="fx">Special Effects</link></member>
+<member><link linkend="focus">Setting The Focus</link></member>
+<member><link linkend="movemode">Moving Windows</link></member>
+<member><link linkend="resizemode">Resizing Windows</link></member>
+<member><link linkend="windowops">Window Operations</link></member>
+<member><link linkend="placement">Window Placement Options</link></member>
+<member><link linkend="placement">Autoraise Settings</link></member>
+<member><link linkend="eesh">Quick Intro to IPC</link></member>
+<member><link linkend="editmenus">How To Edit Menus</link></member>
+<member><link linkend="editkeys">How To Change Keybindings</link></member>
+<member><link linkend="themes">Themes</link></member>
+<member><link linkend="eyecandy">Extra Eyecandy</link></member>
+<member><link linkend="maint">Maintenance Scripts</link></member>
+</simplelist></para>
+</refsect2>
+
+
+<refsect2 id="basicintro"><title/>
+<img src="E_screen_start.png" x="16" y="16"/>
+<para>
+Now that you have started E16, if you are using it for your desktop
+shell, your screen should look something like the image here on the left.
+</para>
+<para>
+Across the whole top of the screen you will see a bar with arrows pointing
+up and down on the left and right ends. This is your desktop
+<link linkend="dragbar">Dragbar</link>.
+</para>
+<para>
+On the bottom-left you'll see 3 boxes. The top box with the scrollbar attached
+will be your <link linkend="iconbox">Iconbox</link>.
+</para>
+<para>
+The other 2 boxes below it are <link linkend="pager">Pagers</link> for desktops 0 and 1. Everything
+else is your desktop background.
+</para>
+</refsect2>
+
+
+<refsect2 id="rootmenu"><title>Using Menus</title>
+<img src="E_app_menu.png" x="350" y="38"/>
+<para>
+When you click with your left mouse button on the desktop <link linkend="backgrounds">background</link> you will
+see an "User Menus" menu appear (example displayed on the right here).
+Applications you may have installed will appear in this menu. To launch one
+of them simply select it from the menu.
+</para>
+<para>
+Note: Menus in E16 work like most menu systems. Either hold
+down the mouse button and navigate with the button down, releasing on the
+selection you want, or release elsewhere to not select anything. You can also
+quickly click and release, then navigate: move the mouse, and click
+again on the item you wish to select, or elsewhere if you do not wish to
+select an entry.
+</para>
+</refsect2>
+
+
+<refsect2 id="tut4"><title/>
+<img src="E_settings_menu.png" x="285" y="235"/>
+<img src="E_enlightenment_menu.png" x="4" y="30"/>
+<para/>
+<para>
+Clicking the middle button on the desktop <link linkend="backgrounds">background</link> will display
+E16's main menu. You can access the other menus plus more options
+from this menu (including those to log out, restart and display Help
+information). A sample of this menu is shown to our left.
+</para>
+<para/>
+<para/>
+<para/>
+<para>
+When you click the right mouse button
+a menu with the title "Settings" will appear. This is
+E16's <link linkend="settings">settings</link> menu. From it you can select various
+configuration dialogs that will assist you in customizing your desktop to
+better suit your needs.
+</para>
+</refsect2>
+
+
+<refsect2 id="mousebind"><title>Mouse Bindings</title>
+<para>
+Of course, when you click on the <link linkend="desktops">desktop</link> <link linkend="backgrounds">background</link> of
+your screen, normally you will bring up a <link linkend="rootmenu">menu</link>. And of course, when you
+click on the <link linkend="border">border</link> of a window, you will do various things. But these
+are not the only things you can do with your mouse.
+</para>
+<para>
+In E16, there are several other actions that the mouse can do by
+default. For example, by holding down the ALT key when you click the left
+mouse button anywhere in a window, you will find that you can <link linkend="movemode">move</link> the window
+around the screen, just as if you had used the titlebar. You can also ALT
+middle-click in a window to <link linkend="resizemode">resize</link> it, or use ALT and right-click to bring up
+the <link linkend="windowops">Window Operations Menu</link>.
+</para>
+<para>
+You will find that holding down the ALT key while clicking the middle
+mouse button on the background of your <link linkend="desktops">desktop</link> will bring up a
+menu with the titles of all currently active
+application windows. Selecting one of these will take you to that application.
+By using the CTRL key instead of ALT you will get a menu displaying all
+current desktops as sub-menus, with applications on each desktop in the
+desktop sub-menu.
+</para>
+</refsect2>
+
+
+<refsect2 id="mouseconfig"><title>Mouse Configuration</title>
+<para>
+E16 makes extensive use of the mouse.
+However, you may be missing some features because of the way
+that your mouse is configured on your X server.
+</para>
+<para>
+If your mouse does not have a middle button you should enable
+"Emulate 3 Buttons" in your X server. This option allows you to
+emulate a three-button mouse by pressing both left and
+right mouse buttons at once.
+If this does not work, three-button emulation may not be enabled. See
+your X server documentation to configure this emulation.
+</para>
+<para>
+This may vary from system to system. The OS and X server may also
+vary the method in which you do this, if it is possible. Not having
+a middle mouse button in
+E16, or for that matter X, is not a good thing as it is almost
+assumed to be there, and is used by many applications, including E.
+</para>
+</refsect2>
+
+
+<refsect2 id="tut6"><title/>
+<img src="E_mousewheel.png" x="370" y="30"/>
+<img src="E_mouse.png" x="410" y="330"/>
+<para>
+If you have a Wheel-Mouse and X is configured to use it, E16
+supports it by default.
+</para>
+<para>
+Rolling your wheel up on the desktop background will take you back a
+<link linkend="desktops">desktop</link>. Rolling your wheel downward you will advance
+forward a desktop.
+</para>
+<para>
+If this doesn't work, then it may be you haven't configured your X server to
+understand a mouse with a wheel. You may need to edit your X server
+configuration to have a "Pointer" Section like:
+</para>
+<font face="Vera/11" color="#ccaacc"/>
+<para><simplelist>
+<member>Section "Pointer"</member>
+<member>Protocol "MousemanPlusPS/2"</member>
+<member>Device "/dev/mouse"</member>
+<member>ZAxisMapping 4 5</member>
+<member>Buttons 5</member>
+<member>EndSection</member>
+</simplelist></para>
+<font face="Vera/11" color="#ffffff"/>
+<para>
+You may need to modify this for your mouse.
+</para>
+</refsect2>
+
+
+<refsect2 id="border"><title>Using the Window Border</title>
+<para>
+When you start an application, unless it has special properties, it will come
+up on your screen with a border surrounding it that contains a titlebar and
+several control buttons.
+This border is the primary interface to controlling an application window.
+The Default setup (shown on the next page) gives adequate control but still
+retains simplicity.
+</para>
+<para>
+If you click left mouse button on the titlebar and keep the mouse button down
+the window will follow your mouse wherever it moves. Respectively if you click
+your left mouse button and drag on any of the resize handles, the window will
+be resized in that direction. Clicking right mouse button on the resize
+handles will raise the windows to the top.
+</para>
+<para>
+Clicking right mouse button on the titlebar or any button on the window
+operations menu button on the top-left will display a menu that has window
+manipulation options in it.
+</para>
+<para>
+Double-Clicking the title bar will make the Window shade or unshade.
+</para>
+</refsect2>
+
+
+<refsect2 id="tut8"><title/>
+<img src="E_window_diagram.png" x="16" y="48"/>
+<para/>
+</refsect2>
+
+
+<refsect2 id="tut9"><title/>
+<para>
+Clicking left mouse button on the iconify button will iconify the window
+and send it off to the <link linkend="iconbox">Iconbox</link>. Hitting the Maximize button will
+maximize the
+size of the application fill your screen. Hitting it again will Unmaximize,
+bringing the window back to its normal size.
+</para>
+<para>
+Clicking with the left mouse button on the close button will close the window.
+If the application that owns that window does not respond to a nice request to
+exit, then press the right mouse button on the close button to forcibly
+terminate that window. This should not be used unless the application is
+visibly "hung".
+</para>
+<para>
+In addition to these methods, there are additional ways to manipulation
+windows.
+</para>
+<para>
+If you hold down the ALT key and hold down left mouse button anywhere in the
+window (on the border OR in the application part) while dragging, you will
+move this window around. Doing the same but with the middle mouse button will
+resize the window in that direction. Clicking the right mouse button anywhere
+in the window while holding down the ALT key will bring up the window
+operations menu.
+</para>
+</refsect2>
+
+
+<refsect2 id="changeborder"><title>Changing Window Borders</title>
+<img src="E_border_selector.png" x="300" y="40"/>
+<para>
+You may find that you don't like a particular border that a
+window uses, for some reason or another. You can easily change the border
+style of a window in E16 using the <link linkend="windowops">Window Operations</link>
+menu, however. Select the "Set Border Style" menu, and a list will be
+presented to you of available borders in this theme. The most common use
+for this is to make an application shed its border, using the
+BORDERLESS border type.
+</para>
+<para>
+You can always click with ALT + Right mouse button anywhere in the window to
+bring up the window operations menu again.
+</para>
+<para>
+If you want to remember the border style for the next time you run this
+application, you can always use the <link linkend="properties">Remember</link> dialog to remember
+the current window border.
+</para>
+</refsect2>
+
+
+<refsect2 id="defkeys"><title>Default Keybindings</title>
+<img src="E_keyboard.png" x="312" y="0"/>
+<para>
+Below are the keybindings for E as it comes "from the factory"
+</para>
+<font face="Vera/10" color="#112222"/>
+<para><simplelist>
+<member>CTRL+ALT+Home - Re-shuffle windows on screen to be Clean</member>
+<member>CTRL+ALT+Del - Exit E16 and Log Out</member>
+<member>CTRL+ALT+End - Restart E16</member>
+<member>CTRL+ALT+Up-Arrow - Raise window to top</member>
+<member>CTRL+ALT+Down-Arrow - Lower window to the bottom</member>
+<member>CTRL+ALT+Left-Arrow - Go to the previous desktop</member>
+<member>CTRL+ALT+Right-Arrow - Go to the next desktop</member>
+<member>CTRL+ALT+X - Close the currently focused window</member>
+<member>CTRL+ALT+K - Kill the currently focused window nastily</member>
+<member>CTRL+ALT+I - Iconify the currently focused window</member>
+<member>CTRL+ALT+R - Shade/Unshade the currently focused window</member>
+<member>CTRL+ALT+S - Stick/Unstick the currently focused window</member>
+<member>CTRL+ALT+M - Maximize/unmaximize the currently focused window</member>
+<member>CTRL+ALT+F - Toggle fullscreen mode of the currently focused window</member>
+<member>CTRL+ALT+(F1 - F8) - Go directly to desktops 0 - 7</member>
+</simplelist></para>
+<font face="Vera/11" color="#ffffff"/>
+<para>
+(more on next page ...)
+</para>
+</refsect2>
+
+
+<refsect2 id="tut11"><title/>
+<font face="Vera/10" color="#112222"/>
+<para><simplelist>
+<member>ALT+Tab - Switch focus to the next window</member>
+<member>ALT+Enter - Zoom/Unzoom the currently focused window</member>
+<member>SHIFT+ALT+Left-Arrow - Move to the virtual desktop on the left</member>
+<member>SHIFT+ALT+Right-Arrow - Move to the virtual desktop on the right</member>
+<member>SHIFT+ALT+Up-Arrow - Move to the virtual desktop above</member>
+<member>SHIFT+ALT+Down-Arrow - Move to the virtual desktop below</member>
+</simplelist></para>
+<font face="Vera/11" color="#ffffff"/>
+<para>
+Note: Zooming in and out of windows will only work if you have an X server
+that implements the Xf86VidMode extension. You also need to define multiple
+screen modes for your display, e.g. with a "Display" subsection of the X11
+configuration that looks like:
+</para>
+<font face="Vera/11" color="#ccaacc"/>
+<para><simplelist>
+<member>SubSection "Display"</member>
+<member> Depth 16</member>
+<member> Modes "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" "512x384" "400x300" "320x240"</member>
+<member>EndSubSection</member>
+</simplelist></para>
+</refsect2>
+
+
+<refsect2 id="desktops"><title>Multiple & Virtual Desktops</title>
+<img src="E_deskstack.png" x="360" y="70"/>
+<para>
+E16 supports both Multiple and Virtual desktops. There are
+distinct difference between the two, and E16 treats them differently.
+</para>
+<para>
+When you start E16 you will by default have two desktops. In
+E16 desktops are geometrically unrelated work areas. They are
+visually stacked on top of each other and can even be dragged down to expose
+desktops underneath.
+</para>
+<para>
+The best way to imagine this is that each desktop is a sheet of paper with the
+first desktop (desktop 0) being glued in-place. You can re-shuffle the stack
+of papers and slide one down to reveal a piece of paper underneath - the only
+paper you can't slide is the first one. Each desktop (or sheet) contains your
+application windows.
+</para>
+</refsect2>
+
+
+<refsect2 id="desktops2"><title/>
+<img src="E_deskarray.png" x="350" y="140"/>
+<para>
+Windows normally live on one desktop, but can be made
+to exist on all desktops - whenever you change to a new desktop the window
+will follow you and be on that desktop too. This is known as being sticky.
+if a window is sticky it will "stick to the glass of your screen" and stay
+there until it is not sticky anymore or the window is closed.
+</para>
+<para>
+Virtual desktops (also known as desktop areas) is a measure of how big your
+desktops are. A desktop can be a multiple of your screen size in size (2x1,
+2x2, 3x3, 4x2 etc.). That means each desktop has an AxB screen size of area
+allocated to it and you can be looking at any screen-sized part of it at any
+time. It's just like getting more sheets of paper and taping them to the sides
+of your current sheet of paper. An easy way of changing your view is by just
+sliding your mouse in the direction of a currently unviewable part of your
+desktop. As long as you have Edge Flip enabled E16 will
+automatically scroll over to that part of the desktop.
+</para>
+</refsect2>
+
+
+<refsect2 id="desktops3"><title/>
+<img src="E_virtual_desk_settings.png" x="335" y="51"/>
+<img src="E_area_settings.png" x="30" y="190"/>
+<para>
+To change the number of virtual desktops that you have, use the "Multiple
+Desktop Settings" dialog from the right mouse <link linkend="settings">Settings Menu</link>. You
+should see a menu that looks something like the menu to the right. You can use
+the slider bar to quickly select the appropriate number of virtual desktops you
+would like to use.
+</para>
+<para/>
+<para/>
+<para/>
+<para>
+To change the number of virtual areas, use the "Virtual Desktop Settings"
+menu. This will bring up a menu that looks something like the one on the left.
+Use the slider bars to extend the size of the virtual areas to the size that
+you prefer. You can also use this dialog to enable/disable edge
+resistance (when your <link linkend="mousebind">mouse</link> hits the edge of an area) moving between
+virtual areas.
+</para>
+</refsect2>
+
+
+<refsect2 id="desktops4"><title/>
+<img src="E_deskimg.png" x="275" y="81"/>
+<para>
+E16 also allows you to set a different desktop backdrop per desktop
+to help you customize your environment and differentiate which desktop is
+which.
+</para>
+<para>
+An easy way of having E16 automatically pick up any pictures you have
+is to make a directory in your ~/.e16 directory called
+backgrounds and then fill that with your favorite backdrops. E16
+will automatically discover this and index them for you allowing you to
+select them and change their settings. More on this topic is explained in the
+<link linkend="backgrounds">Desktop Backgrounds</link> section.
+</para>
+</refsect2>
+
+
+<refsect2 id="changedesk"><title>Changing Desktops</title>
+<para>
+There are several ways that you can change your current desktop - let's go over
+a few of them here.
+</para>
+<para><simplelist>
+<member>You can use the <link linkend="defkeys">Keybindings</link> alt-F1 through alt-F8 for the first 8
+desktops.</member>
+<member>You can use the <link linkend="defkeys">Keybindings</link> Ctrl-Alt-Left and Ctrl-Alt-Right to
+navigate to the next/previous desktop.</member>
+<member>You can use the <link linkend="tut11">Keybindings</link> shift-alt-directional arrow to change
+virtual areas in a given direction.</member>
+<member>You can use the <link linkend="pager">Pager</link> to quickly navigate to the desktop/area you want
+by clicking on the desired area.</member>
+<member>You can use the <link linkend="dragbar">Dragbar</link> to quickly navigate to a particular
+application or a particular desktop by using the middle and right mouse
+buttons.</member>
+<member>You can also use external applications such as the GNOME panel's pager or the
+KDE panel's pager to navigate desktops and/or applications.</member>
+</simplelist></para>
+</refsect2>
+
+
+<refsect2 id="appsdesk"><title>Moving Applications Between Desktops</title>
+<para>
+There are several ways that you can move applications from one desktop to
+another. We'll go over a few of them now.
+</para>
+<para>
+The first way you can move apps between desktops is using the <link linkend="pager">Pager</link>.
+</para>
+<para>
+You can also move applications between desktops using the <link linkend="dragbar">Dragbar</link>.
+</para>
+<para>
+You can also move applications between desktops using the KDE or GNOME
+desktop pagers.
+</para>
+<para>
+You can also <link linkend="movemode">move</link> a window, then bring the window with you as you
+change desktops using <link linkend="defkeys">keybinding</link>.
+</para>
+</refsect2>
+
+
+<refsect2 id="dragbar"><title>The Dragbar</title>
+<img src="E_dragbar.png" x="10" y="345"/>
+<img src="E_dragging_desktops.png" x="315" y="20"/>
+<para>
+If you look along the top of your screen, you will notice a long thin bar that
+looks something like the bar pictured below. This is called your Dragbar. It
+gets its name from its primary purpose, which is dragging desktops around.
+</para>
+<para>
+If you are on any desktop except desktop 0, you can pick up and move that desktop
+in another direction. <link linkend="desktops">Desktops</link> documentation has more information
+on how to change desktops. Once you have dragged a desktop down, you can
+proceed to move windows between desktops this way, instead of using the
+<link linkend="pager">pager</link>.
+</para>
+<para>
+You can also use the Dragbar to retrieve windowlists. Use the middle mouse
+button to retrieve a windowlist, and the right mouse button for a
+windowlist sorted by desktops.
+</para>
+</refsect2>
+
+
+<refsect2 id="pager"><title>The Pager</title>
+<img src="E_pager.png" x="320" y="70"/>
+<para>
+Pagers may not be a new idea in desktop environments, but the Pager in
+E16 (as seen on the right) is a highly advanced and highly
+configurable tool for desktop and window control, as well as a navigation tool.
+</para>
+<para>
+The pager lets you see your desktop screen area in miniature. It lets you click
+on a certain desktop to "visit" it, click and drag windows around in the pager
+itself to move them about the screen quickly, or between <link linkend="desktops">desktops</link>.
+In this example, we have two virtual areas. You can see the current area (the
+one with the windows in it) is also highlighted.
+</para>
+<para>
+Dragging a window from
+one area of a pager to another will move it there, or to another desktop.
+Dragging it out onto the actual desktop will drop that window right there.
+You can also drag a window into the <link linkend="iconbox">Iconbox</link> to iconify the window.
+</para>
+</refsect2>
+
+
+<refsect2 id="pager2"><title/>
+<img src="E_pager_settings_menu.png" x="8" y="30"/>
+<img src="E_pager_settings.png" x="208" y="180"/>
+<para>
+Pressing right-mouse button over a blank portion of the pager gets you the
+pager menu, allowing you to change settings. This will allow you to
+set a couple of quick options, as shown on the left. For more available
+options, you can select the "Pager Settings" item, and another dialog will pop
+up, that looks like the one below.
+</para>
+<para>
+This dialog box will allow you to set all sorts of additional parameters, many
+of which can increase the performance of E16 on your system.
+Disabling high quality snapshots and/or snapshots in general as well as
+continuous updates can seriously improve performance - these features are
+intended for high end machines.
+</para>
+</refsect2>
+
+
+<refsect2 id="pager3"><title/>
+<img src="E_pager.png" x="340" y="140"/>
+<para>
+You can resize the pager to make it the size you'd like. Hold down
+ALT and use the middle-mouse button to resize the pager in any direction. Using
+left-mouse button while holding ALT and dragging will move the window. Holding
+down ALT while pressing right-mouse button, just like any normal window will
+get you a window operations menu.
+</para>
+<para>
+In the default theme clicking the tab on the right side of the pager with the
+arrow pointing right will shade and unshade the pager window horizontally,
+allowing you to hide and unhide the window easily.
+</para>
+<para>
+The striped area above this tab on the pager's border is a handle that will
+allow you to move the pager about, just like the titlebar of any window.
+</para>
+</refsect2>
+
+
+<refsect2 id="iconbox"><title>The Iconbox</title>
+<img src="E_iconbox.png" x="300" y="90"/>
+<para>
+The iconbox is the place the icons for all your iconified windows go. It is
+one method of recovering <link linkend="minimized">minimized</link> applications. Whenever
+you iconify or minimize a window it will go into an iconbox and have an icon
+displayed for it there. Clicking on the icon again will de-iconify it.
+</para>
+<para>
+You can have as many icon boxes on your desktop as you want to. You can create
+more by using the Middle Click <link linkend="rootmenu">Menu</link> - select Desktop->Create New Iconbox
+and a new Iconbox will pop up on your desktop. Each of these Iconboxes can
+have individual configurations, as detailed on the next page.
+</para>
+<para>
+You can <link linkend="movemode">move</link> the Iconbox around the screen using Alt-Leftclick
+on the window, and then moving it to the desired location on the screen. You
+can <link linkend="resizemode">resize</link> the Iconbox by alt-middleclicking on the window and
+then adjusting the size as described in the <link linkend="mousebind">Mouse Bindings</link>
+section.
+</para>
+</refsect2>
+
+
+<refsect2 id="iconbox2"><title/>
+<img src="E_iconbox_menu.png" x="300" y="20"/>
+<img src="E_iconbox_settings.png" x="10" y="200"/>
+<para>
+Clicking the right-mouse button anywhere in the Iconbox will bring up a menu
+to configure that iconbox. This menu will look a little something like the one
+here to the right. This menu allows you to also close the Iconbox or open up
+an additional Iconbox.
+</para>
+<para>
+To change the settings of an individual Iconbox, we'll use the right mouse
+button <link linkend="mousebind">menu</link> and select "This
+Iconbox Settings" - this should get us a dialog that looks something like the
+one to our left. You can change the orientation, icon size, scrollbar
+options, display policy, base image, and many more options of the Iconbox
+from this dialog. You may choose to change the anchor of
+alignment for resizes - play with it until it resizes appropriately for your
+Iconbox location.
+</para>
+</refsect2>
+
+
+<refsect2 id="iconbox3"><title/>
+<para>
+If you want to customize the images used for the icons in your iconbox, there
+is already an example configuration supplied. To make your own configuration
+copy the matches.cfg file installed in your E16 system config
+directory (/usr/local/e16/config/matches.cfg or
+/usr/share/e16/config/matches.cfg) to your ~/.e16 directory and then edit it.
+</para>
+<para>
+There are several examples of using the globbing and matching in the system
+matches.cfg file. Use that as a reference for your own additions.
+</para>
+</refsect2>
+
+
+<refsect2 id="minimized"><title>Recovering Minimized Applications</title>
+<para>
+There are several ways to recover an application once you have minimized it.
+The most obvious way is to use the <link linkend="iconbox">Iconbox</link>. Of course, you might
+have had some applications in your Iconbox when you accidentally closed it. Or
+maybe you minimized some applications and forgot you didn't have an Iconbox.
+Or maybe you don't like the Iconbox and usually use KDE or GNOME's panel to
+recover them and forgot to launch them. Never fear. You can always
+middle click on the <link linkend="dragbar">Dragbar</link>
+and get a <link linkend="rootmenu">menu</link> that will allow you
+to recover them. You can also Alt or Ctrl-Middleclick on the desktop to get
+the same menus (in case you don't have a Dragbar anymore).
+</para>
+<para>
+Remember, at any time you can always create a new <link linkend="iconbox">Iconbox</link> to catch
+your applications as they minimize, if you want to re-enable it. Unfortunately
+you'll have to reconfigure it since each Iconbox can have its own
+<link linkend="settings">settings</link>.
+</para>
+</refsect2>
+
+
+<refsect2 id="properties"><title>Remembering Application Properties</title>
+<img src="E_remember_settings.png" x="320" y="50"/>
+<para>
+In the <link linkend="windowops">Window Operations</link> menu of every window you will see an
+entry labeled
+"Remember...". If you select this it will bring up the "Remember" dialog for
+that window, as shown to our right.
+</para>
+<para>
+This dialog lets you selectively snapshot certain attributes of that window at
+that time and have E16 remember them. You may choose to only remember
+some of the attributes, and possibly not have the application started
+automatically for you. Choose what you want E16 to remember about that
+window and hit "Apply" or "OK" if you don't need the dialog anymore, and
+E16 will, the next time that instance of the application is run,
+apply the current location, size, border style or any other attribute to
+that window. E16 can also launch the application for you upon startup
+if you so wish.
+</para>
+</refsect2>
+
+
+<refsect2 id="settings"><title>Settings</title>
+<img src="E_settings_menu.png" x="240" y="87"/>
+<para>
+When you click the right mouse button on the desktop background you will pop
+up the Settings menu. From here you can select an aspect of E16 to
+configure to your liking. There are too many settings to actually document
+fully right now, but the likelihood is if you want a particular behavior from
+E16, it is achievable by merely playing with these options.
+</para>
+<para>
+Combinations of options are often required to get the effect you want, so some
+experimentation may be required. Do not be frightened. Nothing you can do
+can't be undone by simply changing the options back to how they were and
+clicking on Apply again.
+</para>
+</refsect2>
+
+
+<refsect2 id="groups"><title>Window Groups</title>
+<img src="E_group_settings.png" x="370" y="255"/>
+<para>
+Sometimes you have a number of windows on your desktop that logically go
+together. E16 allows you to group windows
+together, so that whenever you change a property of one window in a group,
+the change is reflected on the other group members. If you have a group whose
+members span multiple <link linkend="desktops">desktops</link>, changing a group's property
+affects only windows of that group that are on the current desktop.
+</para>
+<para>
+The properties that you can change for an entire group include setting the window
+border, iconifying, killing, moving, raising/lowering, sticking and shading of
+a window.
+</para>
+<para>
+To define what properties are applied to a group by default, you go to the
+<link linkend="settings">settings</link> menu and pick the "Group Settings" option, which will give
+you a dialog window in which you can configure the settings, as shown here on
+the right.
+</para>
+</refsect2>
+
+
+<refsect2 id="groups2"><title/>
+<img src="E_groups_menu.png" x="320" y="25"/>
+<para>
+There are two different methods for manipulating window groups. First, there's a
+comprehensive submenu available in each window's operations menu
+called "Window Groups". This menu is shown here on the right. You also are
+able to configure the group individually apart from the default group settings
+(as shown on the previous page).
+</para>
+<para>
+The second way is the window titlebar, which has the most important options
+directly available for convenience. Shift-click to start a group,
+Ctrl-clicking to add a window to the youngest group (also referred to as the
+"current" group) and Shift-Ctrl-Click to destroying a group. You can also click
+the middle mouse button for visualizing the group(s) of a window. Click again
+to returning to the previous border.
+</para>
+<para>
+Windows can be in multiple groups at the same time, so for many
+options you have to indicate which group you are referring to.
+Selecting the appropriate checkboxes (showing the group members' titles)
+at the top of the dialog windows.
+</para>
+</refsect2>
+
+
+<refsect2 id="backgrounds"><title>Selecting and Adding backgrounds</title>
+<para>
+Often you will want to change the background of a particular desktop. There
+are several ways you can do this. But of course, to change your desktop,
+you'll need to give E16 some graphics to play with. A desktop
+theme may add a background or two to your available selections, but
+most users want to have even more backgrounds to choose from.
+To add backgrounds to your selection, make a backgrounds directory under your
+home directory. To do this using most shells you can type
+</para>
+<para>
+mkdir ~/.e16/backgrounds
+</para>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para>
+(more on next page ...)
+</para>
+</refsect2>
+
+
+<refsect2 id="backgrounds2"><title/>
+<img src="E_backgrounds_menu.png" x="163" y="70"/>
+<para>
+Once you have added your backgrounds, you should be
+able to go to the root menu desktop selector. To get to this menu, middle
+click on the desktop, select "Desktop",
+and go to Backgrounds. You should get something that looks similar to the
+image on the right. From here you will be able to navigate the backgrounds
+menus.
+</para>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para>
+(more on next page ...)
+</para>
+</refsect2>
+
+
+<refsect2 id="backgrounds3"><title/>
+<img src="E_backgrounds_menu_view.png" x="3" y="84"/>
+<para>
+Once you have opened up the backgrounds menu, you should see something similar
+to the image below. From here, you can put your mouse over any of the images
+there, and it will change the desktop background of the current desktop to the
+image that you have selected.
+</para>
+<para>
+E16 will attempt to choose the best
+settings for a particular background, but if it gets it wrong you can always
+change the settings by hand. By bringing up the settings menu with the right
+mouse button and selecting the "Desktop Background Settings" item, you can
+bring up a dialog that looks something like the one on the next page ...
+</para>
+</refsect2>
+
+
+<refsect2 id="backgrounds4"><title/>
+<img src="E_backgrounds_settings.png" x="0" y="0"/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para/>
+<para>
+You can use this dialog to change your background, too, as well as fine-tune
+all the various settings for each individual background available.
+</para>
+</refsect2>
+
+
+<refsect2 id="tooltips"><title>Tooltips</title>
+<img src="E_tooltips.png" x="260" y="65"/>
+<img src="E_tooltip_settings.png" x="20" y="245"/>
+<para>
+From time to time, as you use E16, if you don't remember what does
+what, if you keep the mouse still for a little bit a tooltip will pop up. The
+easiest example of this is when you hold the mouse over a <link linkend="border">Window Border</link>.
+</para>
+<para/>
+<para/>
+<para/>
+<para>
+You can disable the tooltips or change the delay before they pop up by
+selecting the "Tooltip Settings" dialog from the <link linkend="settings">settings</link> menu, as
+shown here on the left.
+</para>
+</refsect2>
+
+
+<refsect2 id="audio"><title>Audio</title>
+<img src="E_audio_settings.png" x="300" y="180"/>
+<para>
+Of course, E16 comes preconfigured to play lots of little blips and
+beeps when you do various things on your desktop. In order to use sound in
+E16, you must have both EsounD and audiofile installed.
+</para>
+<para/>
+<para/>
+<para/>
+<para>
+You can enable and/or disable sound at runtime simply by selecting from the
+<link linkend="settings">Settings</link> menu the "Audio Settings" option, which brings up a dialog,
+shown here at right.
+</para>
+</refsect2>
+
+
+<refsect2 id="fx"><title>Special Effects</title>
+<img src="E_special_fx_settings.png" x="320" y="60"/>
+<para>
+E16 has many features that are configured via the "Special FX"
+<link linkend="settings">Settings</link> dialog. Here you can configure the <link linkend="dragbar">Dragbar</link>,
+various sliding speeds (including the speed of a windowshade), as well as
+toggle animation of different features. You can also configure the method used
+for sliding windows, similar to <link linkend="resizemode">Resize Modes</link>.
+</para>
+<para>
+There are several FX features disabled by default
+in a new installation, including the animated display of menus. You can also
+enable saveunders here, which may improve or slow down the performance of
+E16 on your X server, depending on server and configuration.
+</para>
+</refsect2>
+
+
+<refsect2 id="focus"><title>Setting the Focus</title>
+<img src="E_mouse.png" x="410" y="330"/>
+<para>
+E16 offers lots of different options for focusing windows. By
+default, it comes up in sloppy focus mode. There are two other primary focus
+modes supported by E16 - click to focus and pointer focus.
+</para>
+<para>
+Click To Focus most people are familiar with. You click on a window and it
+receives the focus from E16.
+</para>
+<para>
+Pointer Focus gives the focus to whichever window the pointer is sitting over
+</para>
+<para>
+Sloppy Focus is similar to Pointer Focus, except that if you go over the
+<link linkend="backgrounds">Desktop Background</link> you still are focused on the last window
+</para>
+<para>
+Next we'll tell you how to change these settings.
+</para>
+</refsect2>
+
+
+<refsect2 id="focus2"><title/>
+<img src="E_focus_settings.png" x="320" y="20"/>
+<para>
+E16 allows you to change your focus settings at any time. Simply
+bring up the <link linkend="settings">Settings</link> menu and then select "Focus Settings" to bring
+up a dialog that looks something like the one on the right. At the top, we can
+select between our three focus modes, as described on the previous page.
+</para>
+<para>
+We can also enable some other features, such as one that will allow a simple
+<link linkend="mousebind">mouse</link> click to raise any window to the foreground, as well as several
+other advanced focus settings.
+</para>
+<para>
+Here we can also enable the focuslist feature. The focuslist is a window list
+that pops up as you cycle through your focus using the ALT + TAB
+<link linkend="defkeys">Keybinding</link>.
+</para>
+</refsect2>
+
+
+<refsect2 id="movemode"><title>Moving Windows</title>
+<img src="E_move_resize_settings.png" x="300" y="50"/>
+<para>
+E16 comes with several different available methods for moving a
+window. You can perform the actual moves using the Window <link linkend="border">Border</link>,
+or by using the available <link linkend="mousebind">Mouse Bindings</link>.
+This will cause the window to move until you have released the mouse button.
+</para>
+<para>
+To change the mode that the moving of the windows uses (opaque being the
+default), open up the <link linkend="settings">Settings</link> menu, and select "Move & Resize
+Settings". You can select from a list that looks similar to the one here
+above-right. Experiment until you find one that suits you best.
+</para>
+<para>
+For some serious eyecandy, try out the Translucent move mode. This will only
+work if your X server and E16 are running on the same machine,
+however.
+</para>
+</refsect2>
+
+
+<refsect2 id="resizemode"><title>Resizing Windows</title>
+<img src="E_move_resize_settings.png" x="300" y="50"/>
+<para>
+E16 also comes with several available methods for resizing windows.
+You can perform the actual resize on the window by clicking on any
+resize-handle of your window <link linkend="border">border</link> and dragging to the desired size.
+You can also get the same effect by using the ALT + middle button
+<link linkend="mousebind">Mouse Binding</link> in any part of the window.
+</para>
+<para>
+To change the mode that the resizing of the windows uses (opaque being the
+default), open up the <link linkend="settings">Settings</link> menu, and select "Move & Resize
+Settings". You can select from a list that looks similar to the one here
+above-right. Experiment until you find one that suits you best.
+</para>
+<para>
+The best eyecandy resize mode is probably technical move mode. This mode shows
+you the height and width of the window, in addition to the distance from the
+nearest edge.
+</para>
+</refsect2>
+
+
+<refsect2 id="windowops"><title>The Window Operations Menu</title>
+<img src="E_app_rightmouse_menu.png" x="360" y="40"/>
+<para>
+The Window Operations menu is a commonly used menu that allows you to perform
+many different actions onto the current window.
+</para>
+<para>
+The Close function closes the window in question.
+Annihilate destroys the window without
+regard to the application the window belongs to, which is especially useful if
+the application refuses to respond to being closed with Close.
+</para>
+<para>
+The Iconify function iconifies the window.
+If you have an <link linkend="iconbox">Iconbox</link> it is sent to the nearest one.
+</para>
+<para>
+The Raise function raises the window above any windows
+that may be obscuring it and Lower
+lowers it below windows it is obscuring.
+</para>
+<para/>
+<para>
+(more on next page ...)
+</para>
+</refsect2>
+
+
+<refsect2 id="windowops2"><title/>
+<para>
+Shade/Unshade toggles the shaded state of the window. Note that borderless
+windows are not allowed to be shaded.
+</para>
+<para>
+Stick/Unstick toggles the sticky state of a window. A window that is sticky
+remains "stuck to the glass" and thus is visible on all virtual and
+multiple <link linkend="desktops">desktops</link>.
+</para>
+<para>
+Fullscreen/Window <link linkend="tut11">zooms</link> in and out of the window changing resolutions
+if possible. This feature will only work if you have your X server configured
+correctly and it supports the XVidtune extension. Your X server may not like
+having resolutions changed - it is possible that an unstable X server could
+crash if you use this. Be aware of this when using this feature.
+</para>
+<para>
+Remember... displays the <link linkend="properties">Remember Properties</link> dialog that lets
+you select things to remember about this instance of an application. The
+attributes selected to be remembered in the state they are when you hit Apply or
+Ok in this dialog. You will have to bring it up again if you wish to remember
+a new state of the window.
+</para>
+<para/>
+<para>
+(more on next page ...)
+</para>
+</refsect2>
+
+
+<refsect2 id="windowops3"><title/>
+<para>
+In the <link linkend="groups">Window Groups</link> submenu there are various options for
+configuring window
+groups and how this window relates to any groups you may have.
+</para>
+<para>
+You can quickly modify the size of a window to one of several aspects of
+maximum sizes using the Window Size submenu.
+</para>
+<para>
+Set Stacking lets you change the stacking layer of that window.
+</para>
+<para>
+You can change the <link linkend="changeborder">border</link> using the Set Border Style menu if
+you wish to use a different window border. If you change themes after you have
+changed the border, and the new theme doesn't provide a border of the same
+name, the window will fall back to using the DEFAULT border until you
+change it again.
+</para>
+</refsect2>
+
+
+<refsect2 id="placement"><title>Window Placement and Autoraise</title>
+<img src="E_placement_settings.png" x="220" y="70"/>
+<img src="E_autoraise_settings.png" x="10" y="270"/>
+<para>
+These two <link linkend="settings">Settings</link> dialogs allow you to configure various options
+for the placement of windows. The two Dialog window options are for windows
+like the ALT+O open URL window in Netscape. Manual Placement will force you to
+use the mouse to position every new window that attempts to map itself.
+</para>
+<para>
+The Autoraise settings Dialog will allow you to set a timer event that causes a
+window to automatically raise itself to the foreground after a set time. You
+can enable it here, as well as change the timer.
+</para>
+</refsect2>
+
+
+<refsect2 id="eesh"><title>E16 and IPC</title>
+<para>
+E16 has a fairly interesting IPC system that allows external
+applications (such as Eterm) to talk to E16 and both ask for
+information and change information. There is a program that was installed with
+E16 called "eesh" that is a simple shell interface to the IPC in
+E16. It's even got its own documentation. You can go into
+eesh and type "help" and it should spit back a list of commands that it
+understands.
+</para>
+<para>
+Note: there are many commands that will show up in E's IPC that don't
+necessarily work yet, or aren't fully implemented. You CAN potentially do some
+really bizarre things to your system by using eesh, but for the most part it's
+just another interesting interface to E. In your distribution package you
+should have received some sample scripts written in Perl that interface to E
+through eesh showing how you can externally script E to do more things outside
+E's base functionality. Expect the IPC to flesh out even more in future
+revisions.
+</para>
+<para>
+To exit eesh, hit CTRL + D (EOF)
+</para>
+</refsect2>
+
+
+<refsect2 id="editmenus"><title>Editing E16's Menus</title>
+<para>
+The first time you run E16 as a user after you've installed it, it
+should create a directory under your home directory called .e16/menus. In
+this directory, there will be a file called "file.menu" - this file controls
+the contents of your left-mouse button <link linkend="rootmenu">Menu</link>. The very first line
+of this file contains the title for the menu, and the remainder of the file
+looks something like this:
+</para>
+<font face="Vera/10" color="#112222"/>
+<para>
+"Eterm" NULL exec "Eterm"
+</para>
+<font face="Vera/11" color="#ffffff"/>
+<para>
+Where each column represents:
+</para>
+<font face="Vera/10" color="#112222"/>
+<para>
+Entry title, graphic for menu (or NULL), exec "commandline"
+</para>
+<font face="Vera/11" color="#ffffff"/>
+<para>
+You may have several files in here, including a KDE menu and a Gnome menu if
+E16 has detected their presence during installation. If
+detected, your primary apps will be located in another file called
+user_apps.menu. Each of these files is for you to edit as desired.
+</para>
+</refsect2>
+
+
+<refsect2 id="editkeys"><title>Editing Your Keybindings</title>
+<para>
+To set your own keybindings, all you have to do is find the bindings.cfg
+file that was installed with E16, and make a copy in your
+~/.e16 directory. This file shouldn't be too difficult to edit.
+Be careful! The keybindings in this file will override ALL
+the default keybindings, as long as this file exists, so edit this file with
+extreme caution (unless you know what you're doing).
+</para>
+<para>
+To reset your keybindings back to the default, simply remove this file from
+your ~/.e16 directory. The next time you restart E16
+it should reload the default keybindings into memory.
+</para>
+</refsect2>
+
+
+<refsect2 id="themes"><title>E16 and Themes</title>
+<para>
+One of the strong points of E16, of course, is that you can change
+around the complete look and feel of your desktop whenever you want to.
+Included with the 0.16.8 release are a few themes, to show off a little bit of
+this configurability. You can select them by using the middle mouse button
+<link linkend="rootmenu">menu</link>, going to the "Themes" selector, and then choosing a new
+theme. Of course, there are plenty more themes for E16 than come
+with it by default. You can find more by going to:
+</para>
+<para>
+http://e.themes.org
+</para>
+<para>
+and searching around until you find something you like.
+</para>
+<para>
+To install a new theme
+is simple: all you need to do is take the bleh.etheme file and drop it into
+your ~/.e16/themes directory. Once you've restarted E16,
+it will automatically show up in your Themes <link linkend="rootmenu">menu</link>, and you can
+choose it just like any other theme.
+</para>
+</refsect2>
+
+
+<refsect2 id="eyecandy"><title>E16's Eyecandy Features</title>
+<para>
+Of course, E16 wouldn't be complete without just a few bits of
+eyecandy to play with.
+</para>
+<para>
+On the "Special FX" <link linkend="settings">settings</link> dialog you can chose two toys:
+</para>
+<para>
+The ripples effect - this causes little ripplets of water to reflect on the
+bottom of your screen.
+</para>
+<para>
+The waves effect - similar to ripples, but this one waves up and down as
+opposed to side-to-side
+</para>
+<para>
+On the "Desktop Background" <link linkend="settings">settings</link> dialog you can enable "Theme
+Transparecy". A slider controls the opacity of the window borders, etc. with
+respect to the desktop background.
+</para>
+</refsect2>
+
+
+<refsect2 id="maint"><title>Included Maintenance Scripts</title>
+<img src="E_maint_menu.png" x="265" y="60"/>
+<para>
+E16 comes with several scripts that are executable out of the middle
+mouse button <link linkend="rootmenu">menu</link> - these scripts can perform all sorts of
+maintenance on the files that E16 creates automatically for you.
+When you select "Maintenance" you should get a menu that looks something like
+the one above-right. You can also rebuild the menus from here.
+</para>
+<para>
+As a warning, when you purge configuration information, the next time you
+restart E16 it will take longer to load. You can monitor
+E16's usage using the query tools provided. If you change themes a
+lot you will probably want to purge the config file cache after you've settled
+on a theme. This will help keep your disk usage by E16 down.
+</para>
+</refsect2>
+
+
+<refsect2 id="faq"><title>Frequently Asked Questions</title>
+<para>
+<link linkend="faq2">I can't find my iconbox or change its settings.</link>
+</para>
+<para>
+<link linkend="faq2">I can't seem to find my left mouse menu.</link>
+</para>
+<para>
+<link linkend="faq3">All my settings are mangled and I can't fix it.</link>
+</para>
+<para>
+<link linkend="faq3">I upgraded a theme but the new one isn't being used.</link>
+</para>
+<para>
+<link linkend="faq4">I set my window to borderless and can't set it back.</link>
+</para>
+<para>
+<link linkend="faq4">How can I move or resize the iconbox?</link>
+</para>
+<para>
+<link linkend="faq4">How can I disable that annoying desktop tooltip?</link>
+</para>
+<para>
+<link linkend="faq5">How can I set up E16 to work with GNOME?</link>
+</para>
+<para>
+<link linkend="faq5">How can I set up E16 to work with KDE?</link>
+</para>
+<para>
+<link linkend="faqend">These docs didn't help, where can I get more help?</link>
+</para>
+</refsect2>
+
+
+<refsect2 id="faq2"><title>Frequently Asked Questions: Page 1</title>
+<para>
+Q: I can't find my <link linkend="iconbox">Iconbox</link> or change its settings.
+</para>
+<para>
+A: There are two possibilities here.
+</para>
+<para>
+1. You don't have an Iconbox on your desktop right now. Just middle-click and
+select Desktop/Create new iconbox
+</para>
+<para>
+2. Your Iconbox is transparent and borderless. Iconify a window and see if
+your icon appears. If so, rightclick on it to reconfigure your Iconbox.
+</para>
+<para/>
+<para>
+Q: I Can't Seem To Find My Left Mouse Menu
+</para>
+<para>
+A: Your menu files may be destroyed. Try rerunning the program that initially
+generated them. First you'll want to remove the ~/.e16/menus/*.menu files.
+Rebuild them using the <link linkend="maint">Maintenance</link> menu.
+</para>
+</refsect2>
+
+
+<refsect2 id="faq3"><title>Frequently Asked Questions: Page 2</title>
+<para>
+Q: All My Settings Are Mangled And I Can't Fix It
+</para>
+<para>
+A: Well, if things get really messed up, you can always remove all of
+E16's automatically saved files. Go into ~/.e16, and
+remove the e_config* files, and then blow away the cached directory.
+The next time you start E16 it should reset everything to the default.
+</para>
+<para/>
+<para>
+Q: I Upgraded My Theme, But The New One Isn't Being Used
+</para>
+<para>
+A: When you upgrade a theme that does not come with E16, when you go
+into your ~/.e16/themes directory, be sure to delete the unpacked
+directory version of your theme that should be sitting next to the theme, if it
+is there. Otherwise when E16 attempts to start the new version it
+will use the old files, which causes this problem.
+</para>
+</refsect2>
+
+
+<refsect2 id="faq4"><title>Frequently Asked Questions: Page 3</title>
+<para>
+Q: I set my window to borderless and can't set it back or move it.
+</para>
+<para>
+A: ALT + Right mouse button when pressed anywhere in the window will give you
+the <link linkend="windowops">Window Operations</link> menu. ALT + Left mouse button will move the
+window and ALT + Middle mouse button will resize the window.
+</para>
+<para>
+Q: How can I move or resize the iconbox?
+</para>
+<para>
+A: As described above, ALT + Right mouse button will give you the
+<link linkend="windowops">Window Operations</link> menu, ALT + Middle mouse button will resize the
+iconbox and ALT+left mouse button will move it. See the <link linkend="iconbox">Iconbox</link>
+documentation for more help
+</para>
+<para>
+Q: How can I disable that annoying desktop tooltip?
+</para>
+<para>
+A: There is a special config option for it under the <link linkend="tooltips">tooltip</link>
+<link linkend="settings">settings</link> menu.
+</para>
+</refsect2>
+
+
+<refsect2 id="faq5"><title>Frequently Asked Questions: Page 4</title>
+<para>
+Q: How do I set up E16 to work with GNOME?
+</para>
+<para>
+A: Start your GNOME session with
+</para>
+<para><simplelist>
+<member>export WINDOW_MANAGER=e16</member>
+<member>exec gnome-session</member>
+</simplelist></para>
+<para/>
+<para>
+Q: How do I set up E16 to work with KDE?
+</para>
+<para>
+A: Start your KDE session with
+</para>
+<para><simplelist>
+<member>export KDEWM=e16</member>
+<member>exec startkde</member>
+</simplelist></para>
+</refsect2>
+
+
+<refsect2 id="faqend"><title>Frequently Asked Questions: Page 5</title>
+<para>
+Q: These Docs Didn't Help, Where Can I Get More Help?
+</para>
+<para>
+A: Well, we obviously can't answer all of your questions just by predicting
+them, so I would try the <link linkend="res">website</link> as well as looking at the
+<link linkend="res">mailing lists</link>, especially the mail archives. Chances are that someone
+else has probably had the same problem that you have. And if all that still
+fails, you might try someone on the <link linkend="res">irc</link> channel
+</para>
+</refsect2>
+
+</refsect1>
+
+ <refsect1 id='for_more_information'><title>FOR MORE INFORMATION</title>
+ <para>
+ <indexterm><primary>Header</primary><secondary>FOR MORE INFORMATION</secondary></indexterm>
+ Please see our web site at <ulink url='http://www.enlightenment.org'>http://www.enlightenment.org</ulink>
+ </para>
+ </refsect1>
+</refentry>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:output method="text"/>
+
+<xsl:template name="copy-attr">
+ <xsl:for-each select="@*">
+ <xsl:text disable-output-escaping="yes"> </xsl:text>
+ <xsl:value-of select="name()"/>=<xsl:value-of select="."/>
+ </xsl:for-each>
+</xsl:template>
+
+<xsl:template name="copy">
+ <xsl:text disable-output-escaping="yes"><</xsl:text>
+ <xsl:value-of select="name()"/>
+ <xsl:call-template name="copy-attr"/>
+ <xsl:text disable-output-escaping="yes">></xsl:text>
+</xsl:template>
+
+<xsl:template name="para">
+ <xsl:choose>
+ <xsl:when test="markup[@role='dox-center']">
+ <xsl:text disable-output-escaping="yes"><p align=50%></xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text disable-output-escaping="yes"><p></xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template match="refentry">
+ <xsl:apply-templates select="refsect1"/>
+</xsl:template>
+
+<xsl:template match="refsect1">
+ <xsl:apply-templates select="refsect2"/>
+</xsl:template>
+
+<xsl:template match="refsect2">
+ <xsl:text disable-output-escaping="yes"><</xsl:text>
+ <xsl:choose>
+ <xsl:when test="@id = 'docindex'">
+ <xsl:text>page columns=2 padding=16 name=</xsl:text><xsl:value-of select="@id"/><xsl:text> background=Edoc_bg.png linkcolor=#88dddd</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>page columns=1 padding=16 name=</xsl:text><xsl:value-of select="@id"/><xsl:text> background=Edoc_bg.png linkcolor=#88dddd</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text disable-output-escaping="yes">></xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text disable-output-escaping="yes">

</xsl:text>
+</xsl:template>
+
+<xsl:template match="para">
+ <xsl:if test="name(preceding-sibling::*[1]) != 'para' and name(preceding-sibling::*[1]) != 'font' ">
+ <xsl:text disable-output-escaping="yes"><font face=Vera/11 color=#ffffff>
</xsl:text>
+ </xsl:if>
+ <xsl:call-template name="para"/>
+ <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="member">
+ <xsl:apply-templates/>
+ <xsl:text disable-output-escaping="yes"><br></xsl:text>
+</xsl:template>
+
+<xsl:template match="link">
+ <xsl:text>_</xsl:text>
+ <xsl:value-of select="translate(.,' ','_')"/>
+ <xsl:text>(</xsl:text><xsl:value-of select="@linkend"/><xsl:text>)</xsl:text>
+</xsl:template>
+
+<xsl:template match="font|img">
+ <xsl:call-template name="copy"/>
+ <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="refentryinfo | refmeta | refnamediv">
+</xsl:template>
+
+<xsl:template match="title">
+ <xsl:if test="normalize-space(.)">
+ <xsl:text disable-output-escaping="yes">
</xsl:text>
+ <xsl:text disable-output-escaping="yes"><font face=VeraBd/16 color=#ffffff>
</xsl:text>
+ <xsl:call-template name="para"/>
+ <xsl:value-of select="."/>
+ </xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>
--- /dev/null
+edocdatadir = $(pkgdatadir)/E-docs
+
+edocdata_DATA = bg.png exit1.png exit2.png next1.png next2.png prev1.png prev2.png title.png
+
+EXTRA_DIST = $(edocdata_DATA)
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = dox/E-docs
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(edocdatadir)"
+edocdataDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(edocdata_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+edocdatadir = $(pkgdatadir)/E-docs
+edocdata_DATA = bg.png exit1.png exit2.png next1.png next2.png prev1.png prev2.png title.png
+EXTRA_DIST = $(edocdata_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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign dox/E-docs/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign dox/E-docs/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
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-edocdataDATA: $(edocdata_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(edocdatadir)" || $(MKDIR_P) "$(DESTDIR)$(edocdatadir)"
+ @list='$(edocdata_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(edocdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(edocdatadir)/$$f'"; \
+ $(edocdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(edocdatadir)/$$f"; \
+ done
+
+uninstall-edocdataDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(edocdata_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(edocdatadir)/$$f'"; \
+ rm -f "$(DESTDIR)$(edocdatadir)/$$f"; \
+ done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(edocdatadir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-edocdataDATA
+
+install-dvi: install-dvi-am
+
+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
+
+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-edocdataDATA
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ 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-edocdataDATA 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 \
+ uninstall uninstall-am uninstall-edocdataDATA
+
+# 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:
--- /dev/null
+SUBDIRS = E-docs
+
+EXTRA_DIST = README
+
+bin_PROGRAMS = edox
+
+edox_SOURCES = dox.c dox.h file.c format.c text.c ttfont.c
+
+edox_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(IMLIB2_CFLAGS) $(X_CFLAGS) \
+ $(CWARNFLAGS) -D ENLIGHTENMENT_ROOT=\"$(pkgdatadir)\"
+
+LDADD = $(IMLIB2_LIBS) $(X_LIBS) $(XINERAMA_LIBS) -lX11 -lm
+
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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@
+bin_PROGRAMS = edox$(EXEEXT)
+subdir = dox
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am_edox_OBJECTS = edox-dox.$(OBJEXT) edox-file.$(OBJEXT) \
+ edox-format.$(OBJEXT) edox-text.$(OBJEXT) \
+ edox-ttfont.$(OBJEXT)
+edox_OBJECTS = $(am_edox_OBJECTS)
+edox_LDADD = $(LDADD)
+am__DEPENDENCIES_1 =
+edox_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(edox_SOURCES)
+DIST_SOURCES = $(edox_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-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 uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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 = E-docs
+EXTRA_DIST = README
+edox_SOURCES = dox.c dox.h file.c format.c text.c ttfont.c
+edox_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(IMLIB2_CFLAGS) $(X_CFLAGS) \
+ $(CWARNFLAGS) -D ENLIGHTENMENT_ROOT=\"$(pkgdatadir)\"
+
+LDADD = $(IMLIB2_LIBS) $(X_LIBS) $(XINERAMA_LIBS) -lX11 -lm
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign dox/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign dox/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
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(bindir)/$$f"; \
+ done
+
+clean-binPROGRAMS:
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+edox$(EXEEXT): $(edox_OBJECTS) $(edox_DEPENDENCIES)
+ @rm -f edox$(EXEEXT)
+ $(LINK) $(edox_OBJECTS) $(edox_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edox-dox.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edox-file.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edox-format.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edox-text.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edox-ttfont.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+edox-dox.o: dox.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-dox.o -MD -MP -MF $(DEPDIR)/edox-dox.Tpo -c -o edox-dox.o `test -f 'dox.c' || echo '$(srcdir)/'`dox.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-dox.Tpo $(DEPDIR)/edox-dox.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dox.c' object='edox-dox.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-dox.o `test -f 'dox.c' || echo '$(srcdir)/'`dox.c
+
+edox-dox.obj: dox.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-dox.obj -MD -MP -MF $(DEPDIR)/edox-dox.Tpo -c -o edox-dox.obj `if test -f 'dox.c'; then $(CYGPATH_W) 'dox.c'; else $(CYGPATH_W) '$(srcdir)/dox.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-dox.Tpo $(DEPDIR)/edox-dox.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dox.c' object='edox-dox.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-dox.obj `if test -f 'dox.c'; then $(CYGPATH_W) 'dox.c'; else $(CYGPATH_W) '$(srcdir)/dox.c'; fi`
+
+edox-file.o: file.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-file.o -MD -MP -MF $(DEPDIR)/edox-file.Tpo -c -o edox-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-file.Tpo $(DEPDIR)/edox-file.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file.c' object='edox-file.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c
+
+edox-file.obj: file.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-file.obj -MD -MP -MF $(DEPDIR)/edox-file.Tpo -c -o edox-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-file.Tpo $(DEPDIR)/edox-file.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file.c' object='edox-file.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi`
+
+edox-format.o: format.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-format.o -MD -MP -MF $(DEPDIR)/edox-format.Tpo -c -o edox-format.o `test -f 'format.c' || echo '$(srcdir)/'`format.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-format.Tpo $(DEPDIR)/edox-format.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='format.c' object='edox-format.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-format.o `test -f 'format.c' || echo '$(srcdir)/'`format.c
+
+edox-format.obj: format.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-format.obj -MD -MP -MF $(DEPDIR)/edox-format.Tpo -c -o edox-format.obj `if test -f 'format.c'; then $(CYGPATH_W) 'format.c'; else $(CYGPATH_W) '$(srcdir)/format.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-format.Tpo $(DEPDIR)/edox-format.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='format.c' object='edox-format.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-format.obj `if test -f 'format.c'; then $(CYGPATH_W) 'format.c'; else $(CYGPATH_W) '$(srcdir)/format.c'; fi`
+
+edox-text.o: text.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-text.o -MD -MP -MF $(DEPDIR)/edox-text.Tpo -c -o edox-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-text.Tpo $(DEPDIR)/edox-text.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text.c' object='edox-text.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c
+
+edox-text.obj: text.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-text.obj -MD -MP -MF $(DEPDIR)/edox-text.Tpo -c -o edox-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-text.Tpo $(DEPDIR)/edox-text.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text.c' object='edox-text.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi`
+
+edox-ttfont.o: ttfont.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-ttfont.o -MD -MP -MF $(DEPDIR)/edox-ttfont.Tpo -c -o edox-ttfont.o `test -f 'ttfont.c' || echo '$(srcdir)/'`ttfont.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-ttfont.Tpo $(DEPDIR)/edox-ttfont.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ttfont.c' object='edox-ttfont.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-ttfont.o `test -f 'ttfont.c' || echo '$(srcdir)/'`ttfont.c
+
+edox-ttfont.obj: ttfont.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT edox-ttfont.obj -MD -MP -MF $(DEPDIR)/edox-ttfont.Tpo -c -o edox-ttfont.obj `if test -f 'ttfont.c'; then $(CYGPATH_W) 'ttfont.c'; else $(CYGPATH_W) '$(srcdir)/ttfont.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/edox-ttfont.Tpo $(DEPDIR)/edox-ttfont.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ttfont.c' object='edox-ttfont.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(edox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o edox-ttfont.obj `if test -f 'ttfont.c'; then $(CYGPATH_W) 'ttfont.c'; else $(CYGPATH_W) '$(srcdir)/ttfont.c'; fi`
+
+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.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(PROGRAMS)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(bindir)"; 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:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-binPROGRAMS 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
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+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-binPROGRAMS
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-binPROGRAMS \
+ clean-generic clean-libtool ctags ctags-recursive distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-binPROGRAMS 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-recursive uninstall uninstall-am \
+ uninstall-binPROGRAMS
+
+# 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:
--- /dev/null
+This is DOX for Enlightenment - a very very very simple document viewer for
+Help docs for Enlightenment. This is part of the Enlightenment distribution.
+It is Copyright (C) 1998-2007 by The Rasterman (Carsten Haitzler). It is under
+the license described in e/LICENSE
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "dox.h"
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/Xosdefs.h>
+#include <X11/Xproto.h>
+#include <X11/keysym.h>
+#include <X11/Xatom.h>
+
+#ifdef USE_XINERAMA
+#include <X11/extensions/Xinerama.h>
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+#if defined(__alpha__) && defined(__GNUC__) && ((__GNUC__ == 2) && (__GNUC_MINOR__ < 96)) /* gets rid of some misalignment in GCC */
+#pragma 2
+#endif
+
+#define EDOX_DEFAULT_W 512
+#define EDOX_DEFAULT_H 400
+
+Display *disp;
+Root VRoot;
+
+Window win_main, win_title, win_exit, win_next, win_prev, win_text,
+ win_cover;
+Imlib_Image im_text;
+Imlib_Image im_title;
+Imlib_Image im_prev1, im_prev2;
+Imlib_Image im_next1, im_next2;
+Imlib_Image im_exit1, im_exit2;
+
+static const char doxdir[] = ENLIGHTENMENT_ROOT "/E-docs";
+char *docdir = NULL;
+
+static Atom ATOM_WM_DELETE_WINDOW = None;
+static Atom ATOM_WM_PROTOCOLS = None;
+
+static Window
+FindRootWindow(Display * dpy)
+{
+ Window win1, win2, win3, root_win;
+ char *str;
+ Atom a, at;
+ int format_ret;
+ unsigned long bytes_after, num_ret;
+ unsigned char *retval;
+
+ root_win = DefaultRootWindow(dpy);
+
+ str = getenv("ENL_WM_ROOT");
+ if (!str)
+ goto done;
+ win1 = strtoul(str, NULL, 0);
+
+ a = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", True);
+
+ XGetWindowProperty(dpy, win1, a, 0, 1, False, XA_WINDOW, &at,
+ &format_ret, &num_ret, &bytes_after, &retval);
+ if (!retval)
+ goto done;
+ win2 = *((Window *) retval);
+ XFree(retval);
+
+ XGetWindowProperty(dpy, win2, a, 0, 1, False, XA_WINDOW, &at,
+ &format_ret, &num_ret, &bytes_after, &retval);
+ if (!retval)
+ goto done;
+ win3 = *((Window *) retval);
+ XFree(retval);
+
+ if (win2 != win3)
+ goto done;
+
+ root_win = win1;
+
+ done:
+ return root_win;
+}
+
+static void
+VRootInit(void)
+{
+ Window root_return;
+ int x_return, y_return;
+ unsigned int border_width_return;
+
+ VRoot.scr = DefaultScreen(disp);
+ VRoot.win = FindRootWindow(disp);
+ XGetGeometry(disp, VRoot.win, &root_return, &x_return, &y_return,
+ &VRoot.w, &VRoot.h, &border_width_return, &VRoot.depth);
+ VRoot.vis = DefaultVisual(disp, VRoot.scr);
+ VRoot.depth = DefaultDepth(disp, VRoot.scr);
+ VRoot.cmap = DefaultColormap(disp, VRoot.scr);
+
+ imlib_set_color_usage(128);
+
+ imlib_context_set_display(disp);
+ imlib_context_set_visual(VRoot.vis);
+ imlib_context_set_colormap(VRoot.cmap);
+ imlib_context_set_dither(1);
+ imlib_context_set_dither_mask(0);
+}
+
+static Window
+CreateWindow(Window parent, int x, int y, int ww, int hh)
+{
+ Window win;
+ XSetWindowAttributes attr;
+ XSizeHints hnt;
+
+ attr.backing_store = NotUseful;
+ attr.override_redirect = False;
+ attr.colormap = VRoot.cmap;
+ attr.border_pixel = 0;
+ attr.background_pixel = 0;
+ attr.save_under = False;
+ win = XCreateWindow(disp, parent, x, y, ww, hh, 0, VRoot.depth,
+ InputOutput, VRoot.vis,
+ CWOverrideRedirect | CWSaveUnder | CWBackingStore |
+ CWColormap | CWBackPixel | CWBorderPixel, &attr);
+ XSetWindowBackground(disp, win, 0);
+ XStoreName(disp, win, "DOX: Enlightenment Document Viewer");
+ hnt.flags = USPosition | USSize | PPosition | PSize | PMinSize | PMaxSize;
+ hnt.x = x;
+ hnt.y = y;
+ hnt.width = ww;
+ hnt.height = hh;
+ hnt.min_width = ww;
+ hnt.max_width = ww;
+ hnt.min_height = hh;
+ hnt.max_height = hh;
+ XSetWMNormalHints(disp, win, &hnt);
+
+ ATOM_WM_PROTOCOLS = XInternAtom(disp, "WM_PROTOCOLS", False);
+ ATOM_WM_DELETE_WINDOW = XInternAtom(disp, "WM_DELETE_WINDOW", False);
+ XSetWMProtocols(disp, win, &ATOM_WM_DELETE_WINDOW, 1);
+
+ return win;
+}
+
+static Imlib_Image
+ImageLoad(const char *dir, const char *file)
+{
+ char tmp[4096];
+
+ Esnprintf(tmp, sizeof(tmp), "%s/%s", dir, file);
+ if (!exists(tmp))
+ return NULL;
+
+ return imlib_load_image(tmp);
+}
+
+static Imlib_Image
+ImageLoadDox(const char *file)
+{
+ return ImageLoad(doxdir, file);
+}
+
+Imlib_Image
+ImageLoadDoc(const char *file)
+{
+ Imlib_Image im;
+
+ im = ImageLoad(docdir, file);
+ if (im)
+ return im;
+
+ im = ImageLoadDox(file);
+
+ return im;
+}
+
+static void
+ApplyImage1(Window win, Imlib_Image im)
+{
+ Pixmap pmap = 0, mask = 0;
+
+ imlib_context_set_image(im);
+ imlib_context_set_drawable(win);
+ imlib_render_pixmaps_for_whole_image(&pmap, &mask);
+ XSetWindowBackgroundPixmap(disp, win, pmap);
+ imlib_free_pixmap_and_mask(pmap);
+}
+
+static void
+ApplyImage2(Window win, Imlib_Image im)
+{
+ imlib_context_set_image(im);
+ imlib_context_set_drawable(win);
+ imlib_render_image_on_drawable(0, 0);
+}
+
+static void
+LoadFile(const char *file, const char *docfile)
+{
+ char s[4096];
+ FILE *f;
+
+ f = fopen(file, "r");
+ if (!f)
+ {
+ strcpy(s, docdir);
+ strcat(s, "/");
+ strcat(s, docfile);
+ f = fopen(s, "r");
+ if (!f)
+ {
+ printf("Edoc_dir %s does not contain a %s file\n", docdir,
+ docfile);
+ exit(1);
+ }
+ }
+
+ GetObjects(f);
+ fclose(f);
+}
+
+#define ApplyImage3(win, im) \
+ XClearWindow(disp, win)
+
+#define FREE_LINKS \
+ll = l; \
+while (ll) \
+{ \
+ l = ll; \
+ ll = ll->next; \
+ Efree(l->name); \
+ Efree(l); \
+}
+
+#define UPDATE_NOW \
+{ \
+XSetWindowBackgroundPixmap(disp, win_text, draw); \
+XClearWindow(disp, win_text); \
+}
+
+#define UPDATE \
+{ \
+ int up_i, up_j; \
+ int up_lut[16] = { 0, 8, 4, 12, 2, 6, 10, 14, \
+ 3, 11, 1, 9, 7, 13, 5, 15}; \
+ XSetWindowBackgroundPixmap(disp, win_text, draw); \
+ for (up_j = 0; up_j < 16; up_j++) \
+ { \
+ for (up_i = 0; up_i < h; up_i += 16) \
+ { \
+ XClearArea(disp, win_text, 0, up_i + up_lut[up_j], w, 1, False); \
+ } \
+ XSync(disp, False); \
+ } \
+}
+
+int
+main(int argc, char **argv)
+{
+ int pagenum, prev_pagenum;
+ int i, w, h, t, x, y;
+ int wx, wy;
+ char *s;
+ const char *docfile;
+ Pixmap draw = 0;
+ Link *l = NULL, *ll = NULL;
+ Imlib_Border ibd;
+ int *page_hist = NULL;
+ int page_hist_len = 1;
+ int page_hist_pos = 0;
+
+ w = EDOX_DEFAULT_W;
+ h = EDOX_DEFAULT_H;
+ x = 0;
+ y = 0;
+ pagenum = 0;
+
+ if (argc < 1)
+ {
+ printf("usage:\n"
+ "%s [-page page_number] [-file Edoc_fname] [-size width height] [Edoc_dir]\n",
+ argv[0]);
+ exit(1);
+ }
+
+ if ((disp = XOpenDisplay(NULL)) == NULL)
+ {
+ printf("%s: Cannot open X display.\n", argv[0]);
+ exit(0);
+ }
+
+ /* now we'll set the locale */
+ setlocale(LC_ALL, "");
+ if (!XSupportsLocale())
+ setlocale(LC_ALL, "C");
+ XSetLocaleModifiers("");
+ setlocale(LC_ALL, NULL);
+
+ /* I dont want any internationalisation of my numeric input & output */
+ setlocale(LC_NUMERIC, "C");
+
+ VRootInit();
+
+ docfile = "MAIN";
+ for (i = 1; i < argc; i++)
+ {
+ if ((!strcmp(argv[i], "-page")) && (i < (argc - 1)))
+ pagenum = atoi(argv[++i]);
+ else if ((!strcmp(argv[i], "-file")) && (i < (argc - 1)))
+ docfile = argv[++i];
+ else if ((!strcmp(argv[i], "-size")) && (i < (argc - 2)))
+ {
+ w = atoi(argv[++i]);
+ h = atoi(argv[++i]);
+ }
+ else
+ docdir = strdup(argv[i]);
+ }
+ if (docdir == NULL)
+ docdir = strdup(doxdir);
+ s = EMALLOC(char, strlen(docdir) + strlen(docfile) + 2 + 20);
+
+ sprintf(s, "%s/%s", docdir, docfile);
+ findLocalizedFile(s);
+
+ im_title = ImageLoadDox("title.png");
+ imlib_context_set_image(im_title);
+ ibd.left = 50;
+ ibd.right = 2;
+ ibd.top = 2;
+ ibd.bottom = 2;
+ imlib_image_set_border(&ibd);
+
+ im_prev1 = ImageLoadDox("prev1.png");
+ im_prev2 = ImageLoadDox("prev2.png");
+ im_next1 = ImageLoadDox("next1.png");
+ im_next2 = ImageLoadDox("next2.png");
+ im_exit1 = ImageLoadDox("exit1.png");
+ im_exit2 = ImageLoadDox("exit2.png");
+
+ t = 16;
+ wx = (VRoot.w - w) / 2;
+ wy = (VRoot.h - (h + t)) / 2;
+#ifdef USE_XINERAMA
+ if (VRoot.win == DefaultRootWindow(disp) && XineramaIsActive(disp))
+ {
+ Window rt, ch;
+ int d;
+ unsigned int ud;
+ int pointer_x, pointer_y;
+ int num;
+ XineramaScreenInfo *screens;
+
+ XQueryPointer(disp, VRoot.win, &rt, &ch, &pointer_x, &pointer_y,
+ &d, &d, &ud);
+
+ screens = XineramaQueryScreens(disp, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (pointer_x >= screens[i].x_org &&
+ pointer_x <= (screens[i].width + screens[i].x_org) &&
+ pointer_y >= screens[i].y_org &&
+ pointer_y <= (screens[i].height + screens[i].y_org))
+ {
+ wx = ((screens[i].width - w) / 2) + screens[i].x_org;
+ wy = ((screens[i].height - (h + t)) / 2) + screens[i].y_org;
+ }
+ }
+
+ XFree(screens);
+ }
+#endif
+ win_main = CreateWindow(VRoot.win, wx, wy, w, h + t);
+ win_title =
+ XCreateSimpleWindow(disp, win_main, 0, 0, (w - 64 - 64 - t), t, 0, 0, 0);
+ win_prev =
+ XCreateSimpleWindow(disp, win_main, (w - 64 - 64 - t), 0, 64, t, 0, 0, 0);
+ win_next =
+ XCreateSimpleWindow(disp, win_main, (w - 64 - 64 - t) + 64, 0, 64, t, 0,
+ 0, 0);
+ win_exit =
+ XCreateSimpleWindow(disp, win_main, (w - 64 - 64 - t) + 64 + 64, 0, t, t,
+ 0, 0, 0);
+ win_text = XCreateSimpleWindow(disp, win_main, 0, t, w, h, 0, 0, 0);
+
+ XSelectInput(disp, win_main, KeyPressMask | KeyReleaseMask);
+ XSelectInput(disp, win_prev, ButtonPressMask | ButtonReleaseMask);
+ XSelectInput(disp, win_next, ButtonPressMask | ButtonReleaseMask);
+ XSelectInput(disp, win_exit, ButtonPressMask | ButtonReleaseMask);
+ XSelectInput(disp, win_text, ButtonPressMask | ButtonReleaseMask |
+ PointerMotionMask);
+
+ draw = XCreatePixmap(disp, win_text, w, h, VRoot.depth);
+
+ ApplyImage1(win_title, im_title);
+ ApplyImage1(win_prev, im_prev1);
+ ApplyImage1(win_next, im_next1);
+ ApplyImage1(win_exit, im_exit1);
+
+ LoadFile(s, docfile);
+
+ l = RenderPage(draw, pagenum, w, h);
+ UPDATE_NOW;
+
+ XMapWindow(disp, win_title);
+ XMapWindow(disp, win_prev);
+ XMapWindow(disp, win_next);
+ XMapWindow(disp, win_exit);
+ XMapWindow(disp, win_text);
+ XMapWindow(disp, win_main);
+
+ XSync(disp, False);
+
+ page_hist = EMALLOC(int, 1);
+
+ page_hist[0] = 0;
+
+ for (;;)
+ {
+ KeySym key;
+ XEvent ev;
+
+ prev_pagenum = pagenum;
+
+ XNextEvent(disp, &ev);
+ switch (ev.type)
+ {
+ case KeyPress:
+ key = XLookupKeysym(&ev.xkey, 0);
+ switch (key)
+ {
+ case XK_Escape:
+ exit(0);
+ break;
+ case XK_Down:
+ goto do_next;
+ case XK_Up:
+ goto do_prev;
+ case XK_Home:
+ pagenum = 0;
+ page_hist_pos = 0;
+ goto do_page;
+ case XK_End:
+ pagenum = 99999;
+ goto do_page;
+ case XK_Left:
+ case XK_Prior:
+ pagenum--;
+ page_hist_len = page_hist_pos + 1;
+ goto do_page;
+ case XK_Right:
+ case XK_Next:
+ pagenum++;
+ page_hist_len = page_hist_pos + 1;
+ goto do_page;
+ case XK_r:
+ LoadFile(s, docfile);
+ goto do_page1;
+ }
+ break;
+
+ do_next:
+ if (page_hist_pos >= page_hist_len - 1)
+ break;
+ page_hist_pos++;
+ pagenum = page_hist[page_hist_pos];
+ goto do_page;
+
+ do_prev:
+ if (pagenum == page_hist[page_hist_pos])
+ {
+ page_hist_pos--;
+ if (page_hist_pos < 0)
+ page_hist_pos = 0;
+ }
+ pagenum = page_hist[page_hist_pos];
+ goto do_page;
+
+ do_page_save:
+ pagenum = FixPage(pagenum);
+ if (pagenum == prev_pagenum)
+ break;
+ page_hist_pos++;
+ if (page_hist_pos >= page_hist_len)
+ {
+ page_hist_len++;
+ page_hist = EREALLOC(int, page_hist, page_hist_len);
+ }
+ page_hist_len = page_hist_pos + 1;
+ page_hist[page_hist_pos] = pagenum;
+ goto do_page;
+
+ do_page:
+ pagenum = FixPage(pagenum);
+ if (pagenum == prev_pagenum)
+ break;
+ do_page1:
+ FREE_LINKS;
+ l = RenderPage(draw, pagenum, w, h);
+ UPDATE;
+ break;
+
+ case ButtonPress:
+ if (ev.xbutton.window == win_prev)
+ ApplyImage2(win_prev, im_prev2);
+ else if (ev.xbutton.window == win_next)
+ ApplyImage2(win_next, im_next2);
+ else if (ev.xbutton.window == win_exit)
+ ApplyImage2(win_exit, im_exit2);
+ else
+ {
+ x = ev.xbutton.x;
+ y = ev.xbutton.y;
+ ll = l;
+ while (ll)
+ {
+ if ((x >= ll->x) && (y >= ll->y) &&
+ (x < (ll->x + ll->w)) && (y < (ll->y + ll->h)))
+ {
+ int pg;
+
+ if (!strncmp("EXEC.", ll->name, 5))
+ {
+ if (!fork())
+ {
+ char *exe;
+
+ exe = &(ll->name[5]);
+ execl("/bin/sh", "/bin/sh", "-c", exe,
+ NULL);
+ exit(0);
+ }
+ }
+ else if (!strncmp("INPUT.", ll->name, 6))
+ {
+ FILE *p;
+ char *exe, tmp[1024];
+
+ exe = &(ll->name[6]);
+ if (exe[0] != '/')
+ {
+ sprintf(tmp, "%s/%s", docdir, exe);
+ findLocalizedFile(tmp);
+ exe = tmp;
+ }
+ p = popen(exe, "r");
+ if (p)
+ {
+ int dirlen = 0;
+ char *sp;
+
+ sp = exe;
+ while ((*sp) && (*sp != ' '))
+ sp++;
+ while ((*sp != '/') && (sp != exe))
+ sp--;
+ dirlen = sp - exe;
+ if (dirlen > 1)
+ {
+ Efree(docdir);
+ docdir = EMALLOC(char, dirlen + 1);
+
+ memcpy(docdir, exe, dirlen);
+ docdir[dirlen] = 0;
+ }
+ GetObjects(p);
+ pclose(p);
+ Efree(page_hist);
+ page_hist = EMALLOC(int, 1);
+
+ page_hist[0] = 0;
+ page_hist_len = 1;
+ pagenum = 0;
+ page_hist_pos = 0;
+ FREE_LINKS;
+ l = RenderPage(draw, pagenum, w, h);
+ UPDATE;
+ }
+ }
+ else
+ {
+ pg = GetPage(ll->name);
+ if (pg >= 0)
+ {
+ pagenum = pg;
+ goto do_page_save;
+ }
+ }
+ break;
+ }
+ ll = ll->next;
+ }
+ }
+ break;
+
+ case ButtonRelease:
+ if (ev.xbutton.window == win_prev)
+ {
+ ApplyImage3(win_prev, im_prev1);
+ goto do_prev;
+ }
+ else if (ev.xbutton.window == win_next)
+ {
+ ApplyImage3(win_next, im_next1);
+ pagenum++;
+ goto do_page_save;
+ }
+ else if (ev.xbutton.window == win_exit)
+ {
+ ApplyImage3(win_exit, im_exit1);
+ exit(0);
+ }
+ break;
+
+ case EnterNotify:
+ case LeaveNotify:
+ break;
+
+ case MotionNotify:
+ while (XCheckTypedEvent(disp, ev.type, &ev))
+ ;
+ {
+ static Link *pl = NULL;
+ char found = 0;
+
+ x = ev.xmotion.x;
+ y = ev.xmotion.y;
+ ll = l;
+ while (ll)
+ {
+ if ((x >= ll->x) && (y >= ll->y) &&
+ (x < (ll->x + ll->w)) && (y < (ll->y + ll->h)))
+ {
+ GC gc;
+ XGCValues gcv;
+ int r, g, b;
+ XColor xclr;
+
+ if (pl != ll)
+ {
+ if (pl)
+ {
+ UPDATE_NOW;
+ }
+ GetLinkColors(pagenum, &r, &g, &b);
+ ESetColor(&xclr, r, g, b);
+ EAllocColor(&xclr);
+ gc = XCreateGC(disp, win_text, 0, &gcv);
+ XSetForeground(disp, gc, xclr.pixel);
+ XDrawRectangle(disp, win_text, gc, ll->x, ll->y,
+ ll->w, ll->h);
+ XFreeGC(disp, gc);
+ pl = ll;
+ }
+ found = 1;
+ ll = NULL;
+ }
+ if (ll)
+ ll = ll->next;
+ }
+ if (!found)
+ {
+ UPDATE_NOW;
+ pl = NULL;
+ }
+ }
+ break;
+
+ case ClientMessage:
+ if (ev.xclient.message_type == ATOM_WM_PROTOCOLS &&
+ (Atom) ev.xclient.data.l[0] == ATOM_WM_DELETE_WINDOW)
+ goto done;
+ break;
+
+ default:
+ break;
+ }
+ }
+ done:
+ return 0;
+}
+
+void
+ESetColor(XColor * pxc, int r, int g, int b)
+{
+ pxc->red = (r << 8) | r;
+ pxc->green = (g << 8) | g;
+ pxc->blue = (b << 8) | b;
+}
+
+void
+EGetColor(XColor * pxc, int *pr, int *pg, int *pb)
+{
+ *pr = pxc->red >> 8;
+ *pg = pxc->green >> 8;
+ *pb = pxc->blue >> 8;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "config.h"
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/Xproto.h>
+#include <X11/Xlocale.h>
+#include <X11/cursorfont.h>
+#include <X11/extensions/shape.h>
+#include <X11/extensions/XShm.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdarg.h>
+#include <string.h>
+#include <fcntl.h>
+#include <dirent.h>
+#include <signal.h>
+#include <time.h>
+#include <math.h>
+#include <pwd.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <sys/resource.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
+
+#include <Imlib2.h>
+
+#define EAllocColor(pxc) \
+ XAllocColor(disp, VRoot.cmap, pxc)
+
+#ifndef MAX
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+
+#if defined(HAVE_WCTYPE_H) && defined(HAVE_WCHAR_T) && !defined(__FreeBSD__)
+#define USE_WORD_MB
+#endif
+
+#define USE_XFONT 0
+
+typedef struct _efont Efont;
+
+typedef struct _root {
+ Window win;
+ Visual *vis;
+ unsigned int depth;
+ Colormap cmap;
+ int scr;
+ unsigned int w, h;
+} Root;
+
+typedef struct _textstate {
+ char *fontname;
+ XColor fg_col;
+ XColor bg_col;
+ int effect;
+ Efont *efont;
+#if USE_XFONT
+ XFontStruct *xfont;
+#endif
+ XFontSet xfontset;
+ int xfontset_ascent;
+ int height;
+} TextState;
+
+typedef struct _link {
+ char *name;
+ int x, y, w, h;
+ struct _link *next;
+} Link;
+
+/* dox.c */
+Imlib_Image ImageLoadDoc(const char *file);
+void ESetColor(XColor * pxc, int r, int g, int b);
+void EGetColor(XColor * pxc, int *pr, int *pg, int *pb);
+
+/* ttfont.c */
+void Efont_extents(Efont * f, const char *text,
+ int *font_ascent_return,
+ int *font_descent_return, int *width_return,
+ int *max_ascent_return,
+ int *max_descent_return,
+ int *lbearing_return, int *rbearing_return);
+Efont *Efont_load(const char *file, int size);
+void Efont_free(Efont * f);
+void EFont_draw_string(Display * disp, Drawable win, GC gc,
+ int x, int y, const char *text,
+ Efont * font, Visual * vis, Colormap cm);
+
+/* text.c */
+void TextStateLoadFont(TextState * ts);
+void TextSize(TextState * ts, const char *text,
+ int *width, int *height, int fsize);
+void TextDraw(TextState * ts, Window win, char *text,
+ int x, int y, int w, int h, int fsize,
+ int justification);
+
+/* file.c */
+int exists(char *s);
+void freestrlist(char **l, int num);
+void word(char *s, int num, char *wd);
+
+#ifdef USE_WORD_MB
+void word_mb(char *s, int num, char *wd, int *spaceflag);
+#endif
+int findLocalizedFile(char *fname);
+
+/* format.c */
+int GetObjects(FILE * f);
+int FixPage(int p);
+int GetPage(char *name);
+void GetLinkColors(int page_num, int *r, int *g, int *b);
+Link *RenderPage(Window win, int page_num, int w, int h);
+
+extern Display *disp;
+extern Root VRoot;
+extern char *docdir;
+
+#define Emalloc malloc
+#define Erealloc realloc
+#if HAVE_FREE_NULL_BUG
+#define Efree(p) if (p) free(p)
+#else
+#define Efree free
+#endif
+
+#define EMALLOC(type, num) (type*)Emalloc((num)*sizeof(type))
+#define EREALLOC(type, ptr, num) (type*)Erealloc(ptr, (num)*sizeof(type))
+
+#define Esnprintf snprintf
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "dox.h"
+#ifdef USE_WORD_MB
+# include <wctype.h>
+#endif
+
+int
+exists(char *s)
+{
+ struct stat st;
+
+ if ((!s) || (!*s))
+ return (0);
+ if (stat(s, &st) < 0)
+ return (0);
+ return (1);
+}
+
+void
+freestrlist(char **l, int num)
+{
+ if (!l)
+ return;
+ while (num--)
+ Efree(l[num]);
+ Efree(l);
+}
+
+void
+word(char *s, int num, char *wd)
+{
+ int cnt, i;
+ char *start, *finish, *ss, *w;
+
+ if (!s)
+ return;
+ if (!wd)
+ return;
+ if (num <= 0)
+ {
+ *wd = 0;
+ return;
+ }
+ cnt = 0;
+ i = 0;
+ start = NULL;
+ finish = NULL;
+ ss = NULL;
+ w = wd;
+
+ while (s[i])
+ {
+ if ((cnt == num) && ((s[i] == ' ') || (s[i] == '\t')))
+ {
+ finish = &s[i];
+ break;
+ }
+ if ((s[i] != ' ') && (s[i] != '\t'))
+ {
+ if (i == 0)
+ {
+ cnt++;
+ if (cnt == num)
+ start = &s[i];
+ }
+ else if ((s[i - 1] == ' ') || (s[i - 1] == '\t'))
+ {
+ cnt++;
+ if (cnt == num)
+ start = &s[i];
+ }
+ }
+ i++;
+ }
+ if (cnt == num)
+ {
+ if ((start) && (finish))
+ {
+ for (ss = start; ss < finish; ss++)
+ *wd++ = *ss;
+ }
+ else if (start)
+ {
+ for (ss = start; *ss != 0; ss++)
+ *wd++ = *ss;
+ }
+ *wd = 0;
+ }
+}
+
+#ifdef USE_WORD_MB
+void
+word_mb(char *s, int num, char *wd, int *spaceflag)
+{
+ int cnt, i;
+ char *start, *finish, *ss, *w;
+
+ int wcflg, mbflg;
+ struct char_class {
+ const char *name;
+ wctype_t wt;
+ } *cc, char_class_tbl[] =
+ {
+#ifdef linux
+ /* Will be supported on glibc 2.1.3 or later */
+ {
+ "jspace", 0},
+ {
+ "jhira", 0},
+ {
+ "jkata", 0},
+ {
+ "jkanji", 0},
+ {
+ "jdigit", 0}, /* Japanese */
+ {
+ "hangul", 0},
+ {
+ "hanja", 0}, /* Korean */
+ /* {"?????"}, {"?????"}, *//* Chinese */
+#endif
+#ifdef sgi
+ /* SGI IRIX (Japanese, Chinese, Korean, etc..) */
+ {
+ "special", 0},
+ {
+ "phonogram", 0},
+ {
+ "ideogram", 0},
+#endif
+#ifdef sun
+ /* {"?????"}, {"?????"}, */
+#endif
+#ifdef hpux
+ /* {"?????"}, {"?????"}, */
+#endif
+ {
+ NULL, 0}
+ };
+
+ if (!s)
+ return;
+ if (!wd)
+ return;
+ if (num <= 0)
+ {
+ *wd = 0;
+ return;
+ }
+
+ /* Check multibyte character class is available or not */
+ wcflg = 0;
+ for (cc = char_class_tbl; cc->name != NULL; cc++)
+ {
+ cc->wt = wctype(cc->name);
+ if (cc->wt != (wctype_t) 0)
+ wcflg = 1;
+ }
+
+ cnt = 0;
+ i = 0;
+ start = NULL;
+ finish = NULL;
+ ss = NULL;
+ w = wd;
+ *spaceflag = 0;
+
+ while (s[i])
+ {
+ int len, oldflg = 1;
+
+ len = mblen(s + i, MB_CUR_MAX);
+ if (len < 0)
+ {
+ i++;
+ continue;
+ }
+
+ /* Check multibyte character class */
+ if (wcflg)
+ {
+ wchar_t wc;
+
+ mbflg = 1;
+ if ((mbtowc(&wc, s + i, strlen(s + i))) != -1)
+ {
+ for (cc = char_class_tbl; cc->name != NULL; cc++)
+ {
+ if (cc->wt == (wctype_t) 0)
+ continue;
+
+ if (iswctype(wc, cc->wt) != 0)
+ {
+ mbflg = 2;
+ break;
+ }
+ }
+ }
+ }
+ else
+ mbflg = len;
+
+ if ((cnt == num) && ((s[i] == ' ') || (s[i] == '\t') ||
+ (oldflg != mbflg) || (mbflg > 1)))
+ {
+ finish = &s[i];
+ break;
+ }
+
+ if ((s[i] != ' ') && (s[i] != '\t'))
+ {
+ if ((i == 0) ||
+ (s[i - 1] == ' ') || (s[i - 1] == '\t') ||
+ ((oldflg > 1) && (mbflg > 1)) || (oldflg != mbflg))
+ {
+ cnt++;
+ if (cnt == num)
+ {
+ start = &s[i];
+ if ((s[i - 1] == ' ') || (s[i - 1] == '\t'))
+ *spaceflag = 1;
+ }
+ }
+ }
+ i += len;
+ oldflg = mbflg;
+ }
+ if (cnt == num)
+ {
+ if ((start) && (finish))
+ {
+ for (ss = start; ss < finish; ss++)
+ *wd++ = *ss;
+ }
+ else if (start)
+ {
+ for (ss = start; *ss != 0; ss++)
+ *wd++ = *ss;
+ }
+ *wd = 0;
+ }
+}
+#endif
+
+int
+findLocalizedFile(char *fname)
+{
+ char *tmp, *lang, *p[3];
+ int i;
+
+ if (!(lang = setlocale(LC_MESSAGES, NULL)))
+ return 0;
+
+ tmp = strdup(fname);
+ lang = strdup(lang); /* lang may be in static space, thus it must
+ * be duplicated before we change it below */
+ p[0] = lang + strlen(lang);
+ p[1] = strchr(lang, '.');
+ p[2] = strchr(lang, '_');
+
+ for (i = 0; i < 3; i++)
+ {
+ if (p[i] == NULL)
+ continue;
+
+ *p[i] = '\0';
+ sprintf(fname, "%s.%s", tmp, lang);
+ if (exists(fname))
+ {
+ Efree(tmp);
+ Efree(lang);
+ return 1;
+ }
+ }
+ strcpy(fname, tmp);
+ Efree(tmp);
+ Efree(lang);
+
+ return 0;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "dox.h"
+
+#define DEFAULT_LINKCOLOR_R 30
+#define DEFAULT_LINKCOLOR_G 50
+#define DEFAULT_LINKCOLOR_B 160
+
+typedef enum _type {
+ IMG,
+ BR,
+ FONT,
+ P,
+ TEXT,
+ PAGE
+} Type;
+
+typedef struct _img {
+ char *src;
+ char *src2;
+ char *src3;
+ int x, y;
+ char *link;
+ int w, h;
+} Img_;
+
+typedef struct _font {
+ char *face;
+ int r, g, b;
+} Font_;
+
+typedef struct _p {
+ float align;
+} P_;
+
+typedef struct _object {
+ Type type;
+ void *object;
+} Object;
+
+typedef struct _page {
+ char *name;
+ int count;
+ Object *obj;
+ int columns;
+ int padding;
+ int linkr, linkg, linkb;
+ char *background;
+} Page;
+
+static int num_pages = 0;
+static Page *page = NULL;
+static char *fdat_ptr = NULL;
+static int fdat_size = 0;
+static char *fdat = NULL;
+
+static int
+fdgetc(void)
+{
+ int val;
+
+ if (fdat_ptr >= (fdat + fdat_size))
+ return EOF;
+ val = (int)(*fdat_ptr);
+ fdat_ptr++;
+ return val;
+}
+
+static void
+fdjump(int count)
+{
+ fdat_ptr += count;
+ if (fdat_ptr < fdat)
+ fdat_ptr = fdat;
+ if (fdat_ptr >= (fdat + fdat_size))
+ fdat_ptr = (fdat + fdat_size) - 1;
+}
+
+static void
+AddPage(Object * obj)
+{
+ num_pages++;
+ page = EREALLOC(Page, page, num_pages);
+ page[num_pages - 1].name = NULL;
+ page[num_pages - 1].count = 0;
+ page[num_pages - 1].obj = NULL;
+ page[num_pages - 1].columns = 1;
+ page[num_pages - 1].background = NULL;
+ page[num_pages - 1].padding = 2;
+ page[num_pages - 1].linkr = DEFAULT_LINKCOLOR_R;
+ page[num_pages - 1].linkg = DEFAULT_LINKCOLOR_G;
+ page[num_pages - 1].linkb = DEFAULT_LINKCOLOR_B;
+
+ if ((obj) && (obj->type == PAGE))
+ {
+ Page *pg;
+
+ pg = (Page *) (obj->object);
+ if (pg->name)
+ page[num_pages - 1].name = pg->name;
+ page[num_pages - 1].columns = pg->columns;
+ page[num_pages - 1].padding = pg->padding;
+ page[num_pages - 1].linkr = pg->linkr;
+ page[num_pages - 1].linkg = pg->linkg;
+ page[num_pages - 1].linkb = pg->linkb;
+ if (pg->background)
+ page[num_pages - 1].background = pg->background;
+ }
+}
+
+static void
+AddObject(Object * obj)
+{
+ page[num_pages - 1].count++;
+ page[num_pages - 1].obj =
+ EREALLOC(Object, page[num_pages - 1].obj, page[num_pages - 1].count);
+ page[num_pages - 1].obj[page[num_pages - 1].count - 1].type = obj->type;
+ page[num_pages - 1].obj[page[num_pages - 1].count - 1].object = obj->object;
+}
+
+static void
+BuildObj(Object * obj, char *var, char *param)
+{
+ static Page *pg = NULL;
+ static P_ *p = NULL;
+ static Font_ *fn = NULL;
+ static Img_ *img = NULL;
+
+ switch (obj->type)
+ {
+ case IMG:
+ if (!obj->object)
+ {
+ img = EMALLOC(Img_, 1);
+ obj->object = img;
+ img->src = NULL;
+ img->src2 = NULL;
+ img->src3 = NULL;
+ img->x = 0;
+ img->y = 0;
+ img->link = NULL;
+ img->w = 0;
+ img->h = 0;
+ }
+ if (!strcmp(var, "x"))
+ img->x = atoi(param);
+ else if (!strcmp(var, "y"))
+ img->y = atoi(param);
+ else if (!strcmp(var, "src"))
+ img->src = strdup(param);
+ else if (!strcmp(var, "src2"))
+ img->src2 = strdup(param);
+ else if (!strcmp(var, "src3"))
+ img->src3 = strdup(param);
+ else if (!strcmp(var, "href"))
+ img->link = strdup(param);
+ break;
+ case BR:
+ break;
+ case FONT:
+ if (!obj->object)
+ {
+ fn = EMALLOC(Font_, 1);
+ obj->object = fn;
+ fn->face = NULL;
+ fn->r = 0;
+ fn->g = 0;
+ fn->b = 0;
+ }
+ if (!strcmp(var, "face"))
+ fn->face = strdup(param);
+ else if (!strcmp(var, "color"))
+ {
+ char hex[3] = "00";
+
+ if (param[0] == '#')
+ {
+ hex[0] = param[1];
+ hex[1] = param[2];
+ sscanf(hex, "%x", &(fn->r));
+ hex[0] = param[3];
+ hex[1] = param[4];
+ sscanf(hex, "%x", &(fn->g));
+ hex[0] = param[5];
+ hex[1] = param[6];
+ sscanf(hex, "%x", &(fn->b));
+ }
+ }
+ break;
+ case P:
+ if (!obj->object)
+ {
+ p = EMALLOC(P_, 1);
+ obj->object = p;
+ p->align = 0;
+ }
+ if (!strcmp(var, "align"))
+ {
+ if ((strlen(param) > 0) && (param[strlen(param) - 1] == '%'))
+ param[strlen(param) - 1] = 0;
+ p->align = atof(param);
+ }
+ break;
+ case TEXT:
+ break;
+ case PAGE:
+ if (!obj->object)
+ {
+ pg = EMALLOC(Page, 1);
+ obj->object = pg;
+ pg->columns = 1;
+ pg->padding = 1;
+ pg->name = NULL;
+ pg->background = NULL;
+ pg->linkr = DEFAULT_LINKCOLOR_R;
+ pg->linkg = DEFAULT_LINKCOLOR_G;
+ pg->linkb = DEFAULT_LINKCOLOR_B;
+ }
+ if (!strcmp(var, "columns"))
+ pg->columns = atoi(param);
+ else if (!strcmp(var, "padding"))
+ pg->padding = atoi(param);
+ else if (!strcmp(var, "name"))
+ pg->name = strdup(param);
+ else if (!strcmp(var, "background"))
+ pg->background = strdup(param);
+ else if (!strcmp(var, "linkcolor"))
+ {
+ char hex[3] = "00";
+
+ if (param[0] == '#')
+ {
+ hex[0] = param[1];
+ hex[1] = param[2];
+ sscanf(hex, "%x", &(pg->linkr));
+ hex[0] = param[3];
+ hex[1] = param[4];
+ sscanf(hex, "%x", &(pg->linkg));
+ hex[0] = param[5];
+ hex[1] = param[6];
+ sscanf(hex, "%x", &(pg->linkb));
+ }
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+static int
+GetNextTag(Object * obj)
+{
+ char s[65536];
+ int i = 0, wd = 0;
+ int val;
+ char intag = 0;
+ char havobj = 0;
+
+ for (;;)
+ {
+ val = fdgetc();
+ if (val == EOF)
+ return 0;
+ if (intag)
+ {
+ if (val == '>')
+ intag = 0;
+ s[i++] = (char)val;
+ if (s[i - 1] == '\n')
+ s[i - 1] = ' ';
+ if (s[i - 1] == '>')
+ s[i - 1] = ' ';
+ if (s[i - 1] == ' ')
+ {
+ if (i == 1)
+ i = 0;
+ else
+ {
+ s[i - 1] = 0;
+ if (!havobj)
+ {
+ if (wd == 0)
+ {
+ if (!strcmp(s, "page"))
+ obj->type = PAGE;
+ else if (!strcmp(s, "img"))
+ obj->type = IMG;
+ else if (!strcmp(s, "br"))
+ obj->type = BR;
+ else if (!strcmp(s, "font"))
+ obj->type = FONT;
+ else if (!strcmp(s, "p"))
+ obj->type = P;
+ havobj = 1;
+ }
+ i = 0;
+ }
+ else
+ {
+ char w1[1024];
+ char w2[1024];
+ int j = 0;
+
+ w1[0] = 0;
+ w2[0] = 0;
+ while ((s[j]) && (s[j] != '='))
+ {
+ w1[j] = s[j];
+ j++;
+ }
+ w1[j] = 0;
+ if (j < (int)strlen(s))
+ strcpy(w2, &(s[j + 1]));
+ BuildObj(obj, w1, w2);
+ i = 0;
+ }
+ wd++;
+ }
+ }
+ if (!intag)
+ return 1;
+ }
+ if (val == '<')
+ intag = 1;
+ }
+ return 1;
+}
+
+static char *
+GetTextUntilTag(void)
+{
+ char s[65536];
+ int i = 0;
+ int val;
+
+ for (;;)
+ {
+ val = fdgetc();
+ if (val == EOF)
+ {
+ s[i] = 0;
+ if (strlen(s) < 1)
+ return NULL;
+ return strdup(s);
+ }
+ s[i++] = (char)val;
+ if (s[i - 1] == '\n')
+ s[i - 1] = ' ';
+ if ((i == 1) && (s[0] == ' '))
+ i--;
+ else if (s[i - 1] == '<')
+ {
+ s[i - 1] = 0;
+ fdjump(-1);
+ if (strlen(s) < 1)
+ return NULL;
+ return strdup(s);
+ }
+ if ((i > 2) && (s[i - 2] == ' ') && (s[i - 1] == ' '))
+ i--;
+ if (i > 65530)
+ return NULL;
+ }
+ return NULL;
+}
+
+int
+GetObjects(FILE * f)
+{
+ static char have_font = 0;
+ static char in_para = 0;
+ Object obj;
+ char *txt;
+ char buf[4096];
+ int count;
+
+ fdat = NULL;
+ fdat_size = 0;
+ while ((count = fread(buf, 1, 4096, f)) > 0)
+ {
+ if (!fdat)
+ fdat = EMALLOC(char, count);
+
+ else
+ fdat = EREALLOC(char, fdat, fdat_size + count);
+
+ memcpy(fdat + fdat_size, buf, count);
+ fdat_size += count;
+ }
+ fdat_ptr = fdat;
+
+ if (page)
+ {
+ int i;
+
+ for (i = 0; i < num_pages; i++)
+ {
+ int j;
+
+ Efree(page[i].name);
+ Efree(page[i].background);
+ for (j = 0; j < page[i].count; j++)
+ {
+ switch (page[i].obj[j].type)
+ {
+ case IMG:
+ Efree(((Img_ *) page[i].obj[j].object)->src);
+ Efree(((Img_ *) page[i].obj[j].object)->src2);
+ Efree(((Img_ *) page[i].obj[j].object)->src3);
+ Efree(((Img_ *) page[i].obj[j].object)->link);
+ break;
+ case BR:
+ break;
+ case FONT:
+ Efree(((Font_ *) page[i].obj[j].object)->face);
+ break;
+ case P:
+ break;
+ case TEXT:
+ break;
+ case PAGE:
+ break;
+ }
+ Efree(page[i].obj[j].object);
+ }
+ Efree(page[i].obj);
+ }
+ Efree(page);
+ num_pages = 0;
+ page = NULL;
+ have_font = 0;
+ in_para = 0;
+ }
+
+ obj.object = NULL;
+ for (;;)
+ {
+ if ((have_font) && (in_para))
+ {
+ txt = GetTextUntilTag();
+ if (txt)
+ {
+ obj.type = TEXT;
+ obj.object = (void *)txt;
+ }
+ else
+ {
+ if (!GetNextTag(&obj))
+ {
+ Efree(fdat);
+ return 0;
+ }
+ }
+ }
+ else
+ {
+ if (!GetNextTag(&obj))
+ {
+ Efree(fdat);
+ return 0;
+ }
+ }
+ if (obj.type == PAGE)
+ {
+ in_para = 0;
+ have_font = 0;
+ AddPage(&obj);
+ }
+ else if (page)
+ AddObject(&obj);
+ if (obj.type == IMG)
+ in_para = 0;
+ if (obj.type == P)
+ in_para = 1;
+ if (obj.type == FONT)
+ have_font = 1;
+ obj.object = NULL;
+ }
+ Efree(fdat);
+}
+
+int
+FixPage(int p)
+{
+ if (p < 0)
+ return 0;
+ if (p >= num_pages)
+ return num_pages - 1;
+ return p;
+}
+
+int
+GetPage(char *name)
+{
+ int i;
+
+ for (i = 0; i < num_pages; i++)
+ {
+ if ((page[i].name) && (!strcmp(name, page[i].name)))
+ return i;
+ }
+ return -1;
+}
+
+void
+GetLinkColors(int page_num, int *r, int *g, int *b)
+{
+ if (page_num < 0)
+ {
+ *r = DEFAULT_LINKCOLOR_R;
+ *g = DEFAULT_LINKCOLOR_G;
+ *b = DEFAULT_LINKCOLOR_B;
+ }
+ else
+ {
+ *r = page[page_num].linkr;
+ *g = page[page_num].linkg;
+ *b = page[page_num].linkb;
+ }
+}
+
+static void
+CalcOffset(Page * pg, int col_w, int x, int y, int th, int *pxspace, int *poff)
+{
+ int xspace, off;
+ int sx, sy, ssx, ssy;
+ Img_ *img;
+ int j;
+
+ xspace = col_w;
+ off = 0;
+ sx = x + off;
+ sy = y;
+ ssx = sx + col_w - 1;
+ ssy = sy + th - 1;
+ for (j = 0; j < pg->count; j++)
+ {
+ if (pg->obj[j].type != IMG)
+ continue;
+
+ img = (Img_ *) pg->obj[j].object;
+ if ((img->w > 0) && (img->h > 0))
+ {
+ int ix, iy, iix, iiy;
+
+ ix = img->x;
+ iy = img->y;
+ iix = img->x + img->w - 1;
+ iiy = img->y + img->h - 1;
+
+ if ((iy <= ssy) && (iiy >= sy))
+ {
+ if ((ix >= sx) && (ix <= ssx))
+ {
+ if ((iix >= sx) && (iix <= ssx))
+ {
+ if (((ix + iix) / 2) > ((sx + ssx) / 2))
+ ssx = ix - 1;
+ else
+ sx = iix + 1;
+ }
+ else
+ {
+ ssx = ix - 1;
+ }
+ }
+ else if ((iix >= sx) && (iix <= ssx))
+ {
+ sx = iix + 1;
+ }
+ }
+ }
+ }
+ off = sx - x;
+ xspace = (ssx - sx) + 1;
+ if (xspace < 0)
+ xspace = 0;
+
+ *pxspace = xspace;
+ *poff = off;
+}
+
+Link *
+RenderPage(Window win, int page_num, int w, int h)
+{
+ Link *ll = NULL;
+ Page *pg;
+ TextState ts;
+ int i, col_w, col_h;
+ int x, y;
+ int justification = 0;
+ int firstp = 1;
+ Imlib_Image im;
+ int wastext = 0;
+
+ memset(&ts, 0, sizeof(ts));
+ pg = &(page[page_num]);
+ x = pg->padding;
+ y = pg->padding;
+ col_w = ((w - (pg->padding * (pg->columns + 1))) / pg->columns);
+ col_h = h - (pg->padding * 2);
+ if (pg->background)
+ {
+ im = ImageLoadDoc(pg->background);
+ if (im)
+ {
+ imlib_context_set_image(im);
+ imlib_context_set_drawable(win);
+ imlib_render_image_on_drawable_at_size(0, 0, w, h);
+ imlib_free_image();
+ }
+ }
+ for (i = 0; i < pg->count; i++)
+ {
+ char s[32768], ss[32768], wd[4096], *txt;
+ Img_ *img;
+ Font_ *fn;
+ P_ *p;
+ int wc, eol, eot;
+ int islink = 0, lx, lw;
+
+ switch (pg->obj[i].type)
+ {
+ case IMG:
+ img = (Img_ *) pg->obj[i].object;
+ if (img->src)
+ {
+ im = ImageLoadDoc(img->src);
+ if (im)
+ {
+ imlib_context_set_image(im);
+ img->w = imlib_image_get_width();
+ img->h = imlib_image_get_height();
+ imlib_context_set_drawable(win);
+ imlib_render_image_on_drawable_at_size(img->x, img->y,
+ img->w, img->h);
+ imlib_free_image();
+ }
+ if (img->link)
+ {
+ Link *l;
+
+ l = EMALLOC(Link, 1);
+ l->name = strdup(img->link);
+ l->x = img->x;
+ l->y = img->y;
+ l->w = img->w;
+ l->h = img->h;
+ l->next = ll;
+ ll = l;
+ }
+ }
+ break;
+ case BR:
+ if (!wastext)
+ y += ts.height;
+ wastext = 0;
+ break;
+ case FONT:
+ fn = (Font_ *) pg->obj[i].object;
+ ts.fontname = NULL;
+ ESetColor(&ts.fg_col, 0, 0, 0);
+ ESetColor(&ts.bg_col, 0, 0, 0);
+ ts.effect = 0;
+ if (ts.efont)
+ Efont_free(ts.efont);
+ ts.efont = NULL;
+#if USE_XFONT
+ if (ts.xfont)
+ XFreeFont(disp, ts.xfont);
+ ts.xfont = NULL;
+#endif
+ if (ts.xfontset)
+ XFreeFontSet(disp, ts.xfontset);
+ ts.xfontset = NULL;
+ ts.xfontset_ascent = 0;
+ ts.height = 0;
+ ts.fontname = fn->face;
+ ESetColor(&ts.fg_col, fn->r, fn->g, fn->b);
+ TextStateLoadFont(&ts);
+ break;
+ case P:
+ p = (P_ *) pg->obj[i].object;
+ if (p)
+ justification = (int)((p->align / 100) * 1024);
+ else
+ justification = 0;
+ if (!firstp)
+ y += ts.height;
+ else
+ firstp = 0;
+ break;
+ case TEXT:
+ txt = (char *)pg->obj[i].object;
+ wc = 1;
+ ss[0] = 0;
+ s[0] = 0;
+ eol = 0;
+ eot = 0;
+ for (;;)
+ {
+ char *txt_disp;
+ int tw, th, xspace;
+ int off, j;
+ char link_txt[1024];
+ char link_link[1024];
+ int spaceflag, oldwc = 0, linkwc;
+
+ wd[0] = 0;
+#ifdef USE_WORD_MB
+ if (MB_CUR_MAX > 1) /* If multibyte locale,... */
+ word_mb(txt, wc, wd, &spaceflag);
+ else
+#endif
+ {
+ word(txt, wc, wd);
+ spaceflag = 1;
+ }
+ if (!wd[0])
+ eol = 1;
+
+ wc++;
+ eot++;
+ strcpy(ss, s);
+ if ((eot != 1) && spaceflag)
+ strcat(s, " ");
+
+ linkwc = -1;
+ if (wd[0] == '_')
+ {
+ link_txt[0] = '\0';
+ link_link[0] = '\0';
+ islink = 1;
+ oldwc = wc;
+ TextSize(&ts, s, &lx, &th, 17);
+ }
+
+ if (islink == 1)
+ {
+ if (eol || ((wd[0] != '_') && spaceflag)) /* if NO link tag, ... */
+ {
+ link_txt[0] = '\0';
+ link_link[0] = '\0';
+ islink = 0;
+ wc = oldwc;
+#ifdef USE_WORD_MB
+ if (MB_CUR_MAX > 1)
+ word_mb(txt, wc - 1, wd, &spaceflag);
+ else
+#endif
+ {
+ word(txt, wc - 1, wd);
+ spaceflag = 1;
+ }
+ }
+ else
+ {
+ int k, linkflg;
+
+ j = 0;
+ linkflg = 0;
+ if (wd[0] == '_')
+ {
+ j++;
+ linkflg++;
+ }
+
+ k = strlen(link_txt);
+ for (; wd[j] != '(' && wd[j] != '\0'; j++, k++)
+ {
+ if (wd[j] == '_')
+ link_txt[k] = ' ';
+ else
+ link_txt[k] = wd[j];
+ if (linkflg)
+ wd[j - 1] = link_txt[k];
+ else
+ wd[j] = link_txt[k];
+ }
+ link_txt[k] = '\0';
+ if (linkflg)
+ wd[j - 1] = '\0';
+
+ if (wd[j] == '(')
+ {
+ wd[j++] = '\0';
+ strcpy(link_link, wd + j);
+ k = strlen(link_link) - 1;
+ if (k <= 0)
+ continue;
+ for (j = k; j > 0 && link_link[j] != ')'; j--)
+ ;
+ link_link[j] = '\0';
+ strcpy(wd, link_txt);
+ if (j < k)
+ strcat(wd, link_link + j + 1);
+ islink = 2;
+ linkwc = wc;
+ }
+ else
+ continue;
+ }
+ }
+
+ strcat(s, wd);
+
+ CalcOffset(pg, col_w, x, y, ts.height, &xspace, &off);
+
+ TextSize(&ts, s, &tw, &th, 17);
+ txt_disp = ss;
+ if (eot == 1)
+ txt_disp = s;
+ if (((tw > xspace) || (eol)) && (strlen(txt_disp) > 0))
+ {
+ if (txt_disp[strlen(txt_disp) - 1] == ' ')
+ txt_disp[strlen(txt_disp) - 1] = 0;
+
+ if ((eot == 1) && (tw > xspace))
+ {
+ char p1[4096];
+ int point = 0, cnt = 0, ii, len;
+
+ while (txt_disp[(point + cnt)])
+ {
+ len =
+ mblen(txt_disp + point + cnt, MB_CUR_MAX);
+ if (len < 0)
+ {
+ cnt++;
+ continue;
+ }
+ else
+ for (ii = 0; ii < len; ii++, cnt++)
+ p1[cnt] = txt_disp[point + cnt];
+ p1[cnt] = 0;
+ TextSize(&ts, p1, &tw, &th, 17);
+ if ((tw > xspace)
+ || (!txt_disp[(point + cnt)]))
+ {
+ if (txt_disp[(point + cnt)])
+ {
+ point = point + cnt - len;
+ p1[cnt - len] = 0;
+ cnt = 0;
+ }
+ else
+ {
+ point = point + cnt;
+ p1[cnt] = 0;
+ cnt = 0;
+ }
+ wastext = 1;
+ TextDraw(&ts, win, p1, x + off, y,
+ xspace, 99999, 17,
+ justification);
+ y += ts.height;
+ if (y >=
+ (h -
+ (pg->padding + ts.height -
+ (ts.height - ts.xfontset_ascent))))
+ {
+ y = pg->padding;
+ x += col_w + pg->padding;
+ }
+ CalcOffset(pg, col_w, x, y, ts.height,
+ &xspace, &off);
+ }
+ }
+ }
+ else
+ {
+ if ((tw > xspace) && (eot != 1))
+ wc--;
+ wastext = 1;
+ TextDraw(&ts, win, txt_disp, x + off, y,
+ xspace, 99999, 17, justification);
+ if (islink > 1 && linkwc > wc)
+ {
+ islink = 0;
+ link_link[0] = '\0';
+ link_txt[0] = '\0';
+ wc = oldwc - 1;
+ }
+
+ if (islink > 1)
+ {
+ int rr, gg, bb;
+ int extra;
+ GC gc;
+ XGCValues gcv;
+
+ gc = XCreateGC(disp, win, 0, &gcv);
+ EGetColor(&ts.fg_col, &rr, &gg, &bb);
+ ESetColor(&ts.fg_col, pg->linkr, pg->linkg,
+ pg->linkb);
+ EAllocColor(&ts.fg_col);
+ XSetForeground(disp, gc, ts.fg_col.pixel);
+ TextSize(&ts, txt_disp, &tw, &th, 17);
+ extra = ((xspace - tw) * justification) >> 10;
+ TextDraw(&ts, win, link_txt,
+ x + off + lx + extra, y, 99999, 99999,
+ 17, 0);
+ TextSize(&ts, link_txt, &lw, &th, 17);
+ XDrawLine(disp, win, gc,
+ x + off + lx + extra,
+ y + ts.xfontset_ascent,
+ x + off + lx + lw + extra,
+ y + ts.xfontset_ascent);
+ ESetColor(&ts.fg_col, rr, gg, bb);
+ islink = 0;
+ XFreeGC(disp, gc);
+ {
+ Link *l;
+
+ l = EMALLOC(Link, 1);
+ l->name = strdup(link_link);
+ l->x = x + off + lx + extra;
+ l->y = y;
+ l->w = lw;
+ l->h = ts.height;
+ l->next = ll;
+ ll = l;
+ }
+ link_link[0] = '\0';
+ link_txt[0] = '\0';
+ }
+ y += ts.height;
+ if (y >=
+ (h -
+ (pg->padding + ts.height -
+ (ts.height - ts.xfontset_ascent))))
+ {
+ y = pg->padding;
+ x += col_w + pg->padding;
+ }
+ }
+ eot = 0;
+ s[0] = 0;
+ }
+ if (eol)
+ break;
+ }
+
+ break;
+ default:
+ break;
+ }
+ if (y >=
+ (h - (pg->padding + ts.height - (ts.height - ts.xfontset_ascent))))
+ {
+ y = pg->padding;
+ x += col_w + pg->padding;
+ }
+ }
+
+ if (ts.efont)
+ Efont_free(ts.efont);
+#if USE_XFONT
+ if (ts.xfont)
+ XFreeFont(disp, ts.xfont);
+#endif
+ if (ts.xfontset)
+ XFreeFontSet(disp, ts.xfontset);
+
+ return ll;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "dox.h"
+
+static char **
+TextGetLines(const char *text, int *count)
+{
+ int i, j, k;
+ char **list = NULL;
+
+ *count = 0;
+ i = 0;
+ k = 0;
+ if (!text)
+ return NULL;
+ *count = 1;
+ while (text[i])
+ {
+ j = i;
+ while ((text[j]) && (text[j] != '\n'))
+ j++;
+ k++;
+ list = EREALLOC(char *, list, k);
+ list[k - 1] = EMALLOC(char, j - i + 1);
+
+ strncpy(list[k - 1], &(text[i]), (j - i));
+ list[k - 1][j - i] = 0;
+ i = j;
+ if (text[i] == '\n')
+ i++;
+ }
+ *count = k;
+ return list;
+}
+
+void
+TextStateLoadFont(TextState * ts)
+{
+#if USE_XFONT
+ if ((ts->efont) || (ts->xfont) || (ts->xfontset))
+#else
+ if ((ts->efont) || (ts->xfontset))
+#endif
+ return;
+
+ if (!ts->fontname)
+ return;
+
+ if (!ts->efont)
+ {
+ char s[4096], w[4046], *s2, *ss;
+
+ s2 = NULL;
+ s2 = strdup(ts->fontname);
+ ss = strchr(s2, '/');
+ if (ss)
+ {
+ *ss = ' ';
+ word(s2, 1, s);
+ word(s2, 2, w);
+ ts->efont = Efont_load(s, atoi(w));
+ if (ts->efont)
+ {
+ int as, ds;
+
+ Efont_extents(ts->efont, " ", &as, &ds, NULL, NULL, NULL,
+ NULL, NULL);
+ ts->xfontset_ascent = as;
+ ts->height = as + ds;
+ }
+ }
+ Efree(s2);
+ if (ts->efont)
+ return;
+ }
+
+#if USE_XFONT
+ if ((!ts->xfont) && (strchr(ts->fontname, ',') == NULL))
+ {
+ ts->xfont = XLoadQueryFont(disp, ts->fontname);
+ if (ts->xfont)
+ {
+ ts->xfontset_ascent = ts->xfont->ascent;
+ ts->height = ts->xfont->ascent + ts->xfont->descent;
+ return;
+ }
+ }
+#endif
+
+ if (!ts->xfontset)
+ {
+ int i, missing_cnt, font_cnt;
+ int descent;
+ char **missing_list, *def_str, **fn;
+ XFontStruct **fs;
+
+ ts->xfontset = XCreateFontSet(disp, ts->fontname, &missing_list,
+ &missing_cnt, &def_str);
+ if (!ts->xfontset)
+ ts->xfontset = XCreateFontSet(disp, "fixed", &missing_list,
+ &missing_cnt, &def_str);
+ if (missing_cnt)
+ XFreeStringList(missing_list);
+ if (!ts->xfontset)
+ return;
+ font_cnt = XFontsOfFontSet(ts->xfontset, &fs, &fn);
+ ts->xfontset_ascent = 0;
+ for (i = 0; i < font_cnt; i++)
+ ts->xfontset_ascent = MAX(fs[i]->ascent, ts->xfontset_ascent);
+ descent = 0;
+ for (i = 0; i < font_cnt; i++)
+ descent = MAX(fs[i]->descent, descent);
+ ts->height = ts->xfontset_ascent + descent;
+ }
+}
+
+void
+TextSize(TextState * ts, const char *text, int *width, int *height, int fsize)
+{
+ char **lines;
+ int i, num_lines;
+
+ *width = 0;
+ *height = 0;
+
+ lines = TextGetLines(text, &num_lines);
+ if (!lines)
+ return;
+
+ if (!ts)
+ return;
+
+ TextStateLoadFont(ts);
+
+ if (ts->efont)
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ int ascent, descent, wid;
+
+ Efont_extents(ts->efont, lines[i], &ascent, &descent, &wid,
+ NULL, NULL, NULL, NULL);
+ *height += ascent + descent;
+ if (wid > *width)
+ *width = wid;
+ }
+ }
+ else if (ts->xfontset)
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ XRectangle ret1, ret2;
+
+ XmbTextExtents(ts->xfontset, lines[i], strlen(lines[i]), &ret1,
+ &ret2);
+ *height += ret2.height;
+ if (ret2.width > *width)
+ *width = ret2.width;
+ }
+ }
+#if USE_XFONT
+ else if ((ts->xfont) && (ts->xfont->min_byte1 == 0) &&
+ (ts->xfont->max_byte1 == 0))
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ int wid;
+
+ wid = XTextWidth(ts->xfont, lines[i], strlen(lines[i]));
+ *height += ts->xfont->ascent + ts->xfont->descent;
+ if (wid > *width)
+ *width = wid;
+ }
+ }
+ else if ((ts->xfont))
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ int wid;
+
+ wid = XTextWidth16(ts->xfont, (XChar2b *) lines[i],
+ strlen(lines[i]) / 2);
+ *height += ts->xfont->ascent + ts->xfont->descent;
+ if (wid > *width)
+ *width = wid;
+ }
+ }
+#endif /* USE_XFONT */
+ freestrlist(lines, num_lines);
+ return;
+ fsize = 0;
+}
+
+void
+TextDraw(TextState * ts, Window win, char *text,
+ int x, int y, int w, int h, int fsize, int justification)
+{
+ char **lines;
+ int i, num_lines;
+ int xx, yy;
+ XGCValues gcv;
+ static GC gc = 0;
+
+ lines = TextGetLines(text, &num_lines);
+ if (!lines)
+ return;
+
+ if (!ts)
+ return;
+
+ TextStateLoadFont(ts);
+ xx = x;
+ yy = y;
+
+ if (!gc)
+ gc = XCreateGC(disp, win, 0, &gcv);
+
+ if (ts->efont)
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ int ascent, descent, wid;
+
+ Efont_extents(ts->efont, lines[i], &ascent, &descent, &wid,
+ NULL, NULL, NULL, NULL);
+ if (i == 0)
+ yy += ascent;
+ xx = x + (((w - wid) * justification) >> 10);
+ if (ts->effect == 1)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ EFont_draw_string(disp, win, gc, xx + 1, yy + 1,
+ lines[i], ts->efont, VRoot.vis, VRoot.cmap);
+ }
+ else if (ts->effect == 2)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ EFont_draw_string(disp, win, gc, xx - 1, yy,
+ lines[i], ts->efont, VRoot.vis, VRoot.cmap);
+ EFont_draw_string(disp, win, gc, xx + 1, yy,
+ lines[i], ts->efont, VRoot.vis, VRoot.cmap);
+ EFont_draw_string(disp, win, gc, xx, yy - 1,
+ lines[i], ts->efont, VRoot.vis, VRoot.cmap);
+ EFont_draw_string(disp, win, gc, xx, yy + 1,
+ lines[i], ts->efont, VRoot.vis, VRoot.cmap);
+ }
+ EAllocColor(&ts->fg_col);
+ XSetForeground(disp, gc, ts->fg_col.pixel);
+ EFont_draw_string(disp, win, gc, xx, yy,
+ lines[i], ts->efont, VRoot.vis, VRoot.cmap);
+ yy += ascent + descent;
+ }
+ }
+ else if (ts->xfontset)
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ XRectangle ret1, ret2;
+
+ XmbTextExtents(ts->xfontset, lines[i], strlen(lines[i]), &ret1,
+ &ret2);
+ if (i == 0)
+ yy += ts->xfontset_ascent;
+ xx = x + (((w - ret2.width) * justification) >> 10);
+ if (ts->effect == 1)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ XmbDrawString(disp, win, ts->xfontset, gc, xx + 1, yy + 1,
+ lines[i], strlen(lines[i]));
+ }
+ else if (ts->effect == 2)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ XmbDrawString(disp, win, ts->xfontset, gc, xx - 1, yy,
+ lines[i], strlen(lines[i]));
+ XmbDrawString(disp, win, ts->xfontset, gc, xx + 1, yy,
+ lines[i], strlen(lines[i]));
+ XmbDrawString(disp, win, ts->xfontset, gc, xx, yy - 1,
+ lines[i], strlen(lines[i]));
+ XmbDrawString(disp, win, ts->xfontset, gc, xx, yy + 1,
+ lines[i], strlen(lines[i]));
+ }
+ EAllocColor(&ts->fg_col);
+ XSetForeground(disp, gc, ts->fg_col.pixel);
+ XmbDrawString(disp, win, ts->xfontset, gc, xx, yy,
+ lines[i], strlen(lines[i]));
+ yy += ret2.height;
+ }
+ }
+#if USE_XFONT
+ else if ((ts->xfont) && (ts->xfont->min_byte1 == 0) &&
+ (ts->xfont->max_byte1 == 0))
+ {
+ XSetFont(disp, gc, ts->xfont->fid);
+ for (i = 0; i < num_lines; i++)
+ {
+ int wid;
+
+ wid = XTextWidth(ts->xfont, lines[i], strlen(lines[i]));
+ if (i == 0)
+ yy += ts->xfont->ascent;
+ xx = x + (((w - wid) * justification) >> 10);
+ if (ts->effect == 1)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ XDrawString(disp, win, gc, xx + 1, yy + 1,
+ lines[i], strlen(lines[i]));
+ }
+ else if (ts->effect == 2)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ XDrawString(disp, win, gc, xx - 1, yy,
+ lines[i], strlen(lines[i]));
+ XDrawString(disp, win, gc, xx + 1, yy,
+ lines[i], strlen(lines[i]));
+ XDrawString(disp, win, gc, xx, yy - 1,
+ lines[i], strlen(lines[i]));
+ XDrawString(disp, win, gc, xx, yy + 1,
+ lines[i], strlen(lines[i]));
+ }
+ EAllocColor(&ts->fg_col);
+ XSetForeground(disp, gc, ts->fg_col.pixel);
+ XDrawString(disp, win, gc, xx, yy, lines[i], strlen(lines[i]));
+ yy += ts->xfont->ascent + ts->xfont->descent;
+ }
+ }
+ else if ((ts->xfont))
+ {
+ XSetFont(disp, gc, ts->xfont->fid);
+ for (i = 0; i < num_lines; i++)
+ {
+ int wid;
+
+ wid = XTextWidth16(ts->xfont, (XChar2b *) lines[i],
+ strlen(lines[i]) / 2);
+ if (i == 0)
+ yy += ts->xfont->ascent;
+ xx = x + (((w - wid) * justification) >> 10);
+ if (ts->effect == 1)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ XDrawString16(disp, win, gc, xx + 1, yy + 1,
+ (XChar2b *) lines[i], strlen(lines[i]) / 2);
+ }
+ else if (ts->effect == 2)
+ {
+ EAllocColor(&ts->bg_col);
+ XSetForeground(disp, gc, ts->bg_col.pixel);
+ XDrawString16(disp, win, gc, xx - 1, yy,
+ (XChar2b *) lines[i], strlen(lines[i]) / 2);
+ XDrawString16(disp, win, gc, xx + 1, yy,
+ (XChar2b *) lines[i], strlen(lines[i]) / 2);
+ XDrawString16(disp, win, gc, xx, yy - 1,
+ (XChar2b *) lines[i], strlen(lines[i]) / 2);
+ XDrawString16(disp, win, gc, xx, yy + 1,
+ (XChar2b *) lines[i], strlen(lines[i]) / 2);
+ }
+ EAllocColor(&ts->fg_col);
+ XSetForeground(disp, gc, ts->fg_col.pixel);
+ XDrawString16(disp, win, gc, xx, yy,
+ (XChar2b *) lines[i], strlen(lines[i]) / 2);
+ yy += ts->xfont->ascent + ts->xfont->descent;
+ }
+ }
+#endif /* USE_XFONT */
+ freestrlist(lines, num_lines);
+ return;
+ h = fsize = 0;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "dox.h"
+
+struct _efont {
+ Imlib_Font face;
+};
+
+static void
+ImlibSetFgColorFromGC(Display * dpy, GC gc, Colormap cm)
+{
+ XGCValues xgcv;
+ XColor xclr;
+ int r, g, b;
+
+ XGetGCValues(dpy, gc, GCForeground, &xgcv);
+ xclr.pixel = xgcv.foreground;
+ XQueryColor(dpy, cm, &xclr);
+ EGetColor(&xclr, &r, &g, &b);
+ imlib_context_set_color(r, g, b, 255);
+}
+
+void
+EFont_draw_string(Display * dpy, Drawable win, GC gc, int x, int y,
+ const char *text, Efont * f, Visual * vis __UNUSED__,
+ Colormap cm)
+{
+ Imlib_Image im;
+ int w, h, ascent, descent, max_asc;
+
+ Efont_extents(f, text, &ascent, &descent, &w, &max_asc, NULL, NULL, NULL);
+ h = ascent + descent;
+
+ imlib_context_set_drawable(win);
+ im = imlib_create_image_from_drawable(0, x, y - ascent, w, h, 0);
+ imlib_context_set_image(im);
+
+ imlib_context_set_font(f->face);
+ ImlibSetFgColorFromGC(dpy, gc, cm);
+ imlib_text_draw(0, ascent - max_asc, text);
+ imlib_render_image_on_drawable(x, y - ascent);
+
+ imlib_free_image();
+}
+
+void
+Efont_free(Efont * f)
+{
+ if (!f)
+ return;
+
+ imlib_context_set_font(f->face);
+ imlib_free_font();
+
+ Efree(f);
+}
+
+Efont *
+Efont_load(const char *file, int size)
+{
+ static char fp_set = 0;
+ char s[4096];
+ Efont *f;
+ Imlib_Font ff;
+
+ if (!fp_set)
+ {
+ imlib_add_path_to_font_path(docdir);
+ sprintf(s, "%s/../ttfonts", docdir);
+ imlib_add_path_to_font_path(s);
+ sprintf(s, "%s/fonts", ENLIGHTENMENT_ROOT);
+ imlib_add_path_to_font_path(s);
+ fp_set = 1;
+ }
+
+ Esnprintf(s, sizeof(s), "%s/%d", file, size);
+ ff = imlib_load_font(s);
+ if (ff == NULL)
+ return NULL;
+
+ f = EMALLOC(Efont, 1);
+ f->face = ff;
+
+ return f;
+}
+
+void
+Efont_extents(Efont * f, const char *text, int *font_ascent_return,
+ int *font_descent_return, int *width_return,
+ int *max_ascent_return, int *max_descent_return,
+ int *lbearing_return __UNUSED__, int *rbearing_return __UNUSED__)
+{
+ int w, h;
+
+ if (!f)
+ return;
+
+ imlib_context_set_font(f->face);
+ imlib_get_text_advance(text, &w, &h);
+ if (width_return)
+ *width_return = w;
+ if (font_ascent_return)
+ *font_ascent_return = imlib_get_font_ascent();
+ if (font_descent_return)
+ *font_descent_return = imlib_get_font_descent();
+ if (max_ascent_return)
+ *max_ascent_return = imlib_get_maximum_font_ascent();
+ if (max_descent_return)
+ *max_descent_return = imlib_get_maximum_font_descent();
+}
+
+#if TEST_TTFONT
+
+#undef XSync
+
+Display *disp;
+
+int
+main(int argc, char **argv)
+{
+ Efont *f;
+ GC gc;
+ XGCValues gcv;
+ Window win;
+ int i, j;
+
+ disp = XOpenDisplay(NULL);
+
+ imlib_context_set_display(disp);
+ imlib_context_set_visual(DefaultVisual(disp, DefaultScreen(disp)));
+ imlib_context_set_colormap(DefaultColormap(disp, DefaultScreen(disp)));
+
+ srand(time(NULL));
+ win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 640, 480, 0,
+ 0, 0);
+ XMapWindow(disp, win);
+ XSync(disp, False);
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = XCreateGC(disp, win, GCSubwindowMode, &gcv);
+ for (;; j++)
+ {
+ for (i = 3; i < argc; i++)
+ {
+ XSetForeground(disp, gc, rand() << 16 | rand());
+ f = Efont_load(argv[i], atoi(argv[1]));
+ if (f)
+ EFont_draw_string(disp, win, gc, 20,
+ atoi(argv[1]) * (i - 2), argv[2], f,
+ DefaultVisual(disp, DefaultScreen(disp)),
+ DefaultColormap(disp, DefaultScreen(disp)));
+ Efont_free(f);
+ f = NULL;
+ }
+ }
+ return 0;
+}
+#endif
--- /dev/null
+Summary: The Enlightenment window manager, DR16.
+Name: @PACKAGE@
+Version: @VERSION@
+Release: @E_RPM_REVISION@%{?_rpm_add_date:.%(date '+%y%m%d')}%{?_rpm_pkg_ext:%{_rpm_pkg_ext}}%{?_vendorsuffix:.%{_vendorsuffix}}
+License: BSD
+Group: User Interface/Desktops
+URL: http://www.enlightenment.org/
+Source: http://prdownloads.sourceforge.net/enlightenment/%{name}-%{version}.tar.gz
+Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
+Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
+Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: imlib2-devel freetype-devel
+#BuildSuggests: esound-devel
+Obsoletes: enlightenment < 0.16.8
+Requires: imlib2 >= 1.2.0
+Provides: e16-edox
+
+%description
+Enlightenment is a window manager for the X Window System that
+is designed to be powerful, extensible, configurable and
+pretty darned good looking! It is one of the more graphically
+intense window managers.
+
+Enlightenment goes beyond managing windows by providing a useful
+and appealing graphical shell from which to work. It is open
+in design and instead of dictating a policy, allows the user to
+define their own policy, down to every last detail.
+
+This package will install the Enlightenment window manager.
+
+%prep
+%setup -n %{name}-%{version}
+
+%build
+%{configure} %{?acflags}
+%{__make} %{?_smp_mflags} %{?mflags}
+
+%install
+test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
+rm -f $RPM_BUILD_ROOT/usr/lib*/e16/*.la
+rm -rf $RPM_BUILD_ROOT/usr/share/doc
+mkdir -p $RPM_BUILD_ROOT/etc/X11/xinit/Xclients.d
+cp $RPM_BUILD_ROOT/usr/share/e16/misc/Xclients.* $RPM_BUILD_ROOT/etc/X11/xinit/Xclients.d/
+
+%clean
+test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+%doc AUTHORS COPYING ChangeLog docs/README docs/*.html
+%{_bindir}/*
+%{_libdir}/e16/*.so
+%{_datadir}/%{name}/*
+%{_datadir}/locale/*
+%{_datadir}/applications/*
+%{_datadir}/xsessions/*
+%{_sysconfdir}/X11/xinit/Xclients.d/*
+#%{_mandir}/*
+
+%changelog
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "config.h"
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/Xproto.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdarg.h>
+#include <string.h>
+#include <fcntl.h>
+
+#if HAVE_STRDUP
+#define USE_LIBC_STRDUP 1 /* Use libc strdup if present */
+#endif
+
+typedef struct {
+ Window win;
+ char *msg;
+} Client;
+
+void CommsInit(void);
+Window CommsSetup(Window win);
+Window CommsFindCommsWindow(void);
+void CommsSend(Client * c, const char *s);
+char *CommsGet(Client * c, XEvent * ev);
+Client *ClientCreate(Window win);
+void ClientDestroy(Client * c);
+
+void Alert(const char *fmt, ...);
+
+#define Ecalloc calloc
+#define Emalloc malloc
+#define Erealloc realloc
+#if HAVE_FREE_NULL_BUG
+#define Efree(p) if (p) free(p)
+#else
+#define Efree free
+#endif
+
+#define EMALLOC(type, num) (type*)Emalloc((num)*sizeof(type))
+#define EREALLOC(type, ptr, num) (type*)Erealloc(ptr, (num)*sizeof(type))
+
+#if USE_LIBC_STRDUP
+#define Estrdup(s) ((s) ? strdup(s) : NULL)
+#else
+char *Estrdup(const char *s);
+#endif
+
+extern Display *disp;
--- /dev/null
+
+bin_PROGRAMS = eesh
+
+eesh_SOURCES = E.h comms.c main.c
+
+eesh_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(X_CFLAGS) $(CWARNFLAGS)
+
+LDADD = $(X_LIBS) -lX11
+
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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@
+bin_PROGRAMS = eesh$(EXEEXT)
+subdir = eesh
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am_eesh_OBJECTS = eesh-comms.$(OBJEXT) eesh-main.$(OBJEXT)
+eesh_OBJECTS = $(am_eesh_OBJECTS)
+eesh_LDADD = $(LDADD)
+am__DEPENDENCIES_1 =
+eesh_DEPENDENCIES = $(am__DEPENDENCIES_1)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(eesh_SOURCES)
+DIST_SOURCES = $(eesh_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+eesh_SOURCES = E.h comms.c main.c
+eesh_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(X_CFLAGS) $(CWARNFLAGS)
+LDADD = $(X_LIBS) -lX11
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign eesh/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign eesh/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
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(bindir)/$$f"; \
+ done
+
+clean-binPROGRAMS:
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+eesh$(EXEEXT): $(eesh_OBJECTS) $(eesh_DEPENDENCIES)
+ @rm -f eesh$(EXEEXT)
+ $(LINK) $(eesh_OBJECTS) $(eesh_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eesh-comms.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eesh-main.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+eesh-comms.o: comms.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eesh-comms.o -MD -MP -MF $(DEPDIR)/eesh-comms.Tpo -c -o eesh-comms.o `test -f 'comms.c' || echo '$(srcdir)/'`comms.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/eesh-comms.Tpo $(DEPDIR)/eesh-comms.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='comms.c' object='eesh-comms.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eesh-comms.o `test -f 'comms.c' || echo '$(srcdir)/'`comms.c
+
+eesh-comms.obj: comms.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eesh-comms.obj -MD -MP -MF $(DEPDIR)/eesh-comms.Tpo -c -o eesh-comms.obj `if test -f 'comms.c'; then $(CYGPATH_W) 'comms.c'; else $(CYGPATH_W) '$(srcdir)/comms.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/eesh-comms.Tpo $(DEPDIR)/eesh-comms.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='comms.c' object='eesh-comms.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eesh-comms.obj `if test -f 'comms.c'; then $(CYGPATH_W) 'comms.c'; else $(CYGPATH_W) '$(srcdir)/comms.c'; fi`
+
+eesh-main.o: main.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eesh-main.o -MD -MP -MF $(DEPDIR)/eesh-main.Tpo -c -o eesh-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/eesh-main.Tpo $(DEPDIR)/eesh-main.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='eesh-main.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eesh-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+
+eesh-main.obj: main.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eesh-main.obj -MD -MP -MF $(DEPDIR)/eesh-main.Tpo -c -o eesh-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/eesh-main.Tpo $(DEPDIR)/eesh-main.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='eesh-main.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eesh_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eesh-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+ for dir in "$(DESTDIR)$(bindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic 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
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: 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-binPROGRAMS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+ clean-generic clean-libtool ctags distclean distclean-compile \
+ distclean-generic distclean-libtool distclean-tags distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-binPROGRAMS install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags uninstall uninstall-am \
+ uninstall-binPROGRAMS
+
+# 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:
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+
+static Window root_win;
+static Window my_win;
+
+void
+CommsInit(void)
+{
+ char *str;
+
+ str = getenv("ENL_WM_ROOT");
+ root_win = (str) ? strtoul(str, NULL, 0) : DefaultRootWindow(disp);
+}
+
+Window
+CommsSetup(Window win __UNUSED__)
+{
+ XSetWindowAttributes attr;
+
+ attr.override_redirect = False;
+ my_win = XCreateWindow(disp, root_win, -100, -100, 5, 5, 0, 0, InputOnly,
+ DefaultVisual(disp, DefaultScreen(disp)),
+ CWOverrideRedirect, &attr);
+
+ return my_win;
+}
+
+Window
+CommsFindCommsWindow(void)
+{
+ unsigned char *s;
+ Atom a, ar;
+ unsigned long num, after;
+ int format;
+ Window rt, comms_win;
+ int dint;
+ unsigned int duint;
+
+ comms_win = None;
+
+ a = XInternAtom(disp, "ENLIGHTENMENT_COMMS", True);
+ if (a == None)
+ return None;
+
+ s = NULL;
+ XGetWindowProperty(disp, root_win, a, 0, 14, False, AnyPropertyType,
+ &ar, &format, &num, &after, &s);
+ if (!s)
+ return None;
+
+ sscanf((char *)s, "%*s %lx", &comms_win);
+ XFree(s);
+ if (comms_win == None)
+ return None;
+
+ if (!XGetGeometry(disp, comms_win, &rt, &dint, &dint,
+ &duint, &duint, &duint, &duint))
+ return None;
+
+ s = NULL;
+ XGetWindowProperty(disp, comms_win, a, 0, 14, False,
+ AnyPropertyType, &ar, &format, &num, &after, &s);
+ if (!s)
+ return None;
+ XFree(s);
+
+ XSelectInput(disp, comms_win, StructureNotifyMask | SubstructureNotifyMask);
+
+ return comms_win;
+}
+
+void
+CommsSend(Client * c, const char *s)
+{
+ char ss[20];
+ int i, j, k, len;
+ XEvent ev;
+ Atom a;
+
+ if ((!s) || (!c) || (c->win == None))
+ return;
+
+ a = XInternAtom(disp, "ENL_MSG", True);
+
+ ev.xclient.type = ClientMessage;
+ ev.xclient.serial = 0;
+ ev.xclient.send_event = True;
+ ev.xclient.window = c->win;
+ ev.xclient.message_type = a;
+ ev.xclient.format = 8;
+
+ len = strlen(s);
+ for (i = 0; i < len + 1; i += 12)
+ {
+ sprintf(ss, "%8x", (int)my_win);
+ for (j = 0; j < 12; j++)
+ {
+ ss[8 + j] = s[i + j];
+ if (!s[i + j])
+ j = 12;
+ }
+ for (k = 0; k < 20; k++)
+ ev.xclient.data.b[k] = ss[k];
+ XSendEvent(disp, c->win, False, 0, &ev);
+ }
+}
+
+char *
+CommsGet(Client * c, XEvent * ev)
+{
+ char s[13], s2[9], *msg;
+ unsigned int i;
+ Window win;
+
+ if ((!ev) || (!c))
+ return NULL;
+ if (ev->type != ClientMessage)
+ return NULL;
+
+ s[12] = 0;
+ s2[8] = 0;
+ msg = NULL;
+
+ for (i = 0; i < 8; i++)
+ s2[i] = ev->xclient.data.b[i];
+ for (i = 0; i < 12; i++)
+ s[i] = ev->xclient.data.b[i + 8];
+
+ sscanf(s2, "%lx", &win);
+
+ /* append text to end of msg */
+ i = (c->msg) ? strlen(c->msg) : 0;
+ c->msg = EREALLOC(char, c->msg, i + strlen(s) + 1);
+
+ if (!c->msg)
+ return NULL;
+ strcpy(c->msg + i, s);
+
+ if (strlen(s) < 12)
+ {
+ msg = c->msg;
+ c->msg = NULL;
+ }
+
+ return msg;
+}
+
+Client *
+ClientCreate(Window win)
+{
+ Client *c;
+
+ c = EMALLOC(Client, 1);
+ if (!c)
+ return NULL;
+
+ c->win = win;
+ c->msg = NULL;
+
+ return c;
+}
+
+void
+ClientDestroy(Client * c)
+{
+ if (!c)
+ return;
+
+ Efree(c->msg);
+ Efree(c);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+
+/* Global vars */
+Display *disp;
+
+static char buf[10240];
+static int stdin_state;
+static char *display_name;
+static Client *e;
+static Window my_win, comms_win;
+
+static void
+process_line(char *line)
+{
+ if (line == NULL)
+ exit(0);
+ if (*line == '\0')
+ return;
+
+ CommsSend(e, line);
+ XSync(disp, False);
+}
+
+static void
+stdin_state_setup(void)
+{
+ stdin_state = fcntl(0, F_GETFL, 0);
+ fcntl(0, F_SETFL, O_NONBLOCK);
+}
+
+static void
+stdin_state_restore(void)
+{
+ fcntl(0, F_SETFL, stdin_state);
+}
+
+static void
+stdin_read(void)
+{
+ static int j = 0;
+ int k, ret;
+
+ k = 0;
+ while ((ret = read(0, &(buf[j]), 1) > 0))
+ {
+ k = 1;
+ if (buf[j] == '\n')
+ {
+ buf[j] = 0;
+ if (strlen(buf) > 0)
+ process_line(buf);
+ j = -1;
+ }
+ j++;
+ }
+ if ((ret < 0) || ((k == 0) && (ret == 0)))
+ exit(0);
+}
+
+int
+main(int argc, char **argv)
+{
+ XEvent ev;
+ Client *me;
+ int i;
+ fd_set fd;
+ char *command, *s;
+ char mode;
+ int len, l;
+
+ mode = 0;
+ display_name = NULL;
+ command = NULL;
+
+ for (i = 1; i < argc; i++)
+ {
+ s = argv[i];
+ if (*s != '-')
+ break;
+
+ if (!strcmp(argv[i], "-e"))
+ {
+ mode = -1;
+ if (i != (argc - 1))
+ {
+ command = argv[++i];
+ }
+ }
+ else if (!strcmp(argv[i], "-ewait"))
+ {
+ mode = 1;
+ if (i != (argc - 1))
+ command = argv[++i];
+ }
+ else if (!strcmp(argv[i], "-display"))
+ {
+ if (i != (argc - 1))
+ {
+ display_name = argv[++i];
+ display_name = Estrdup(display_name);
+ }
+ }
+ else if ((!strcmp(argv[i], "-h")) ||
+ (!strcmp(argv[i], "-help")) || (!strcmp(argv[i], "--help")))
+ {
+ printf
+ ("eesh sends commands to E\n\n"
+ "Examples:\n"
+ " eesh Command to Send to E then wait for a reply then exit\n"
+ " eesh -ewait \"Command to Send to E then wait for a reply then exit\"\n"
+ " eesh -e \"Command to Send to Enlightenment then exit\"\n\n");
+ printf("Use eesh by itself to enter the \"interactive mode\"\n"
+ " Ctrl-D will exit interactive mode\n"
+ " Use \"help\" from inside interactive mode for further assistance\n");
+ exit(0);
+ }
+ }
+
+ /* Open a connection to the diplay nominated by the DISPLAY variable */
+ /* Or set with the -display option */
+ disp = XOpenDisplay(display_name);
+ if (!disp)
+ {
+ Alert("Failed to connect to X server\n");
+ exit(1);
+ }
+
+ CommsInit();
+ comms_win = CommsFindCommsWindow();
+ my_win = CommsSetup(comms_win);
+
+ e = ClientCreate(comms_win);
+ me = ClientCreate(my_win);
+
+ CommsSend(e, "set clientname eesh");
+ CommsSend(e, "set version 0.2");
+#if 0 /* Speed it up */
+ CommsSend(e, "set author The Rasterman");
+ CommsSend(e, "set email raster@rasterman.com");
+ CommsSend(e, "set web http://www.enlightenment.org");
+/* CommsSend(e, "set address NONE"); */
+ CommsSend(e, "set info Enlightenment IPC Shell - talk to E direct");
+/* CommsSend(e, "set pixmap 0"); */
+#endif
+
+ if (command == NULL && i < argc)
+ {
+ mode = 1;
+ len = 0;
+ for (; i < argc; i++)
+ {
+ l = strlen(argv[i]);
+ command = EREALLOC(char, command, len + l + 2);
+
+ if (len)
+ command[len++] = ' ';
+ strcpy(command + len, argv[i]);
+ len += l;
+ }
+ }
+
+ if (command)
+ {
+ /* Non-interactive */
+ CommsSend(e, command);
+ XSync(disp, False);
+#if 0 /* No - Wait for ack */
+ if (mode <= 0)
+ goto done;
+#endif
+ }
+ else
+ {
+ /* Interactive */
+ stdin_state_setup();
+ atexit(stdin_state_restore);
+ }
+
+ for (;;)
+ {
+ XSync(disp, False);
+ while (XPending(disp))
+ {
+ XNextEvent(disp, &ev);
+ switch (ev.type)
+ {
+ case ClientMessage:
+ s = CommsGet(me, &ev);
+ if (!s)
+ break;
+ if (*s)
+ printf("%s", s);
+ fflush(stdout);
+ Efree(s);
+ if (mode)
+ goto done;
+ break;
+ case DestroyNotify:
+ goto done;
+ }
+ }
+
+ FD_ZERO(&fd);
+ if (!command)
+ FD_SET(0, &fd);
+ FD_SET(ConnectionNumber(disp), &fd);
+
+ if (select(ConnectionNumber(disp) + 1, &fd, NULL, NULL, NULL) < 0)
+ break;
+
+ if (FD_ISSET(0, &fd))
+ {
+ stdin_read();
+ }
+ }
+
+ done:
+ ClientDestroy(e);
+ ClientDestroy(me);
+
+ return 0;
+}
+
+void
+Alert(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+}
+
+#if !USE_LIBC_STRDUP
+char *
+Estrdup(const char *s)
+{
+ char *ss;
+ int sz;
+
+ if (!s)
+ return NULL;
+ sz = strlen(s);
+ ss = EMALLOC(char, sz + 1);
+ strncpy(ss, s, sz + 1);
+
+ return ss;
+}
+#endif
--- /dev/null
+# Makefile for GNU C compiler.
+# Copyright (C) 1987, 88, 90-94, 1995 Free Software Foundation, Inc.
+
+#This file is part of GNU CC.
+
+#GNU CC 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.
+
+#GNU CC 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 GNU CC; see the file COPYING. If not, write to
+#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+
+bin_PROGRAMS = epp
+
+epp_SOURCES = \
+ cpplib.h \
+ cpphash.h \
+ cppalloc.c \
+ cpperror.c \
+ cppexp.c \
+ cpphash.c \
+ cpplib.c \
+ cppmain.c
+
+epp_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(CWARNFLAGS)
+
+DEFS= \
+-DHAVE_STRERROR \
+-DFATAL_EXIT_CODE=1 \
+-DSUCCESS_EXIT_CODE=1 \
+-DGCC_INCLUDE_DIR=\"/usr/include\" \
+-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include\" \
+-DTOOL_INCLUDE_DIR=\"/usr/bin\" \
+-DHOST_BITS_PER_LONG=32 \
+-DBITS_PER_UNIT=8 \
+-DHOST_BITS_PER_INT=32 \
+-DBITS_PER_WORD=16 \
+-DTARGET_BELL=7 \
+-DTARGET_BS=8 \
+-DTARGET_FF=12 \
+-DTARGET_NEWLINE=10 \
+-DTARGET_CR=13 \
+-DTARGET_TAB=9 \
+-DTARGET_VT=11
+
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+
+# Makefile for GNU C compiler.
+# Copyright (C) 1987, 88, 90-94, 1995 Free Software Foundation, Inc.
+
+#This file is part of GNU CC.
+
+#GNU CC 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.
+
+#GNU CC 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 GNU CC; see the file COPYING. If not, write to
+#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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@
+bin_PROGRAMS = epp$(EXEEXT)
+subdir = epp
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am_epp_OBJECTS = epp-cppalloc.$(OBJEXT) epp-cpperror.$(OBJEXT) \
+ epp-cppexp.$(OBJEXT) epp-cpphash.$(OBJEXT) \
+ epp-cpplib.$(OBJEXT) epp-cppmain.$(OBJEXT)
+epp_OBJECTS = $(am_epp_OBJECTS)
+epp_LDADD = $(LDADD)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(epp_SOURCES)
+DIST_SOURCES = $(epp_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = \
+-DHAVE_STRERROR \
+-DFATAL_EXIT_CODE=1 \
+-DSUCCESS_EXIT_CODE=1 \
+-DGCC_INCLUDE_DIR=\"/usr/include\" \
+-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include\" \
+-DTOOL_INCLUDE_DIR=\"/usr/bin\" \
+-DHOST_BITS_PER_LONG=32 \
+-DBITS_PER_UNIT=8 \
+-DHOST_BITS_PER_INT=32 \
+-DBITS_PER_WORD=16 \
+-DTARGET_BELL=7 \
+-DTARGET_BS=8 \
+-DTARGET_FF=12 \
+-DTARGET_NEWLINE=10 \
+-DTARGET_CR=13 \
+-DTARGET_TAB=9 \
+-DTARGET_VT=11
+
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+epp_SOURCES = \
+ cpplib.h \
+ cpphash.h \
+ cppalloc.c \
+ cpperror.c \
+ cppexp.c \
+ cpphash.c \
+ cpplib.c \
+ cppmain.c
+
+epp_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(CWARNFLAGS)
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign epp/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign epp/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
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(bindir)/$$f"; \
+ done
+
+clean-binPROGRAMS:
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+epp$(EXEEXT): $(epp_OBJECTS) $(epp_DEPENDENCIES)
+ @rm -f epp$(EXEEXT)
+ $(LINK) $(epp_OBJECTS) $(epp_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epp-cppalloc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epp-cpperror.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epp-cppexp.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epp-cpphash.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epp-cpplib.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/epp-cppmain.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+epp-cppalloc.o: cppalloc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cppalloc.o -MD -MP -MF $(DEPDIR)/epp-cppalloc.Tpo -c -o epp-cppalloc.o `test -f 'cppalloc.c' || echo '$(srcdir)/'`cppalloc.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cppalloc.Tpo $(DEPDIR)/epp-cppalloc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppalloc.c' object='epp-cppalloc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cppalloc.o `test -f 'cppalloc.c' || echo '$(srcdir)/'`cppalloc.c
+
+epp-cppalloc.obj: cppalloc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cppalloc.obj -MD -MP -MF $(DEPDIR)/epp-cppalloc.Tpo -c -o epp-cppalloc.obj `if test -f 'cppalloc.c'; then $(CYGPATH_W) 'cppalloc.c'; else $(CYGPATH_W) '$(srcdir)/cppalloc.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cppalloc.Tpo $(DEPDIR)/epp-cppalloc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppalloc.c' object='epp-cppalloc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cppalloc.obj `if test -f 'cppalloc.c'; then $(CYGPATH_W) 'cppalloc.c'; else $(CYGPATH_W) '$(srcdir)/cppalloc.c'; fi`
+
+epp-cpperror.o: cpperror.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cpperror.o -MD -MP -MF $(DEPDIR)/epp-cpperror.Tpo -c -o epp-cpperror.o `test -f 'cpperror.c' || echo '$(srcdir)/'`cpperror.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cpperror.Tpo $(DEPDIR)/epp-cpperror.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cpperror.c' object='epp-cpperror.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cpperror.o `test -f 'cpperror.c' || echo '$(srcdir)/'`cpperror.c
+
+epp-cpperror.obj: cpperror.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cpperror.obj -MD -MP -MF $(DEPDIR)/epp-cpperror.Tpo -c -o epp-cpperror.obj `if test -f 'cpperror.c'; then $(CYGPATH_W) 'cpperror.c'; else $(CYGPATH_W) '$(srcdir)/cpperror.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cpperror.Tpo $(DEPDIR)/epp-cpperror.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cpperror.c' object='epp-cpperror.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cpperror.obj `if test -f 'cpperror.c'; then $(CYGPATH_W) 'cpperror.c'; else $(CYGPATH_W) '$(srcdir)/cpperror.c'; fi`
+
+epp-cppexp.o: cppexp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cppexp.o -MD -MP -MF $(DEPDIR)/epp-cppexp.Tpo -c -o epp-cppexp.o `test -f 'cppexp.c' || echo '$(srcdir)/'`cppexp.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cppexp.Tpo $(DEPDIR)/epp-cppexp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppexp.c' object='epp-cppexp.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cppexp.o `test -f 'cppexp.c' || echo '$(srcdir)/'`cppexp.c
+
+epp-cppexp.obj: cppexp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cppexp.obj -MD -MP -MF $(DEPDIR)/epp-cppexp.Tpo -c -o epp-cppexp.obj `if test -f 'cppexp.c'; then $(CYGPATH_W) 'cppexp.c'; else $(CYGPATH_W) '$(srcdir)/cppexp.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cppexp.Tpo $(DEPDIR)/epp-cppexp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppexp.c' object='epp-cppexp.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cppexp.obj `if test -f 'cppexp.c'; then $(CYGPATH_W) 'cppexp.c'; else $(CYGPATH_W) '$(srcdir)/cppexp.c'; fi`
+
+epp-cpphash.o: cpphash.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cpphash.o -MD -MP -MF $(DEPDIR)/epp-cpphash.Tpo -c -o epp-cpphash.o `test -f 'cpphash.c' || echo '$(srcdir)/'`cpphash.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cpphash.Tpo $(DEPDIR)/epp-cpphash.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cpphash.c' object='epp-cpphash.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cpphash.o `test -f 'cpphash.c' || echo '$(srcdir)/'`cpphash.c
+
+epp-cpphash.obj: cpphash.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cpphash.obj -MD -MP -MF $(DEPDIR)/epp-cpphash.Tpo -c -o epp-cpphash.obj `if test -f 'cpphash.c'; then $(CYGPATH_W) 'cpphash.c'; else $(CYGPATH_W) '$(srcdir)/cpphash.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cpphash.Tpo $(DEPDIR)/epp-cpphash.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cpphash.c' object='epp-cpphash.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cpphash.obj `if test -f 'cpphash.c'; then $(CYGPATH_W) 'cpphash.c'; else $(CYGPATH_W) '$(srcdir)/cpphash.c'; fi`
+
+epp-cpplib.o: cpplib.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cpplib.o -MD -MP -MF $(DEPDIR)/epp-cpplib.Tpo -c -o epp-cpplib.o `test -f 'cpplib.c' || echo '$(srcdir)/'`cpplib.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cpplib.Tpo $(DEPDIR)/epp-cpplib.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cpplib.c' object='epp-cpplib.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cpplib.o `test -f 'cpplib.c' || echo '$(srcdir)/'`cpplib.c
+
+epp-cpplib.obj: cpplib.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cpplib.obj -MD -MP -MF $(DEPDIR)/epp-cpplib.Tpo -c -o epp-cpplib.obj `if test -f 'cpplib.c'; then $(CYGPATH_W) 'cpplib.c'; else $(CYGPATH_W) '$(srcdir)/cpplib.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cpplib.Tpo $(DEPDIR)/epp-cpplib.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cpplib.c' object='epp-cpplib.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cpplib.obj `if test -f 'cpplib.c'; then $(CYGPATH_W) 'cpplib.c'; else $(CYGPATH_W) '$(srcdir)/cpplib.c'; fi`
+
+epp-cppmain.o: cppmain.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cppmain.o -MD -MP -MF $(DEPDIR)/epp-cppmain.Tpo -c -o epp-cppmain.o `test -f 'cppmain.c' || echo '$(srcdir)/'`cppmain.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cppmain.Tpo $(DEPDIR)/epp-cppmain.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppmain.c' object='epp-cppmain.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cppmain.o `test -f 'cppmain.c' || echo '$(srcdir)/'`cppmain.c
+
+epp-cppmain.obj: cppmain.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT epp-cppmain.obj -MD -MP -MF $(DEPDIR)/epp-cppmain.Tpo -c -o epp-cppmain.obj `if test -f 'cppmain.c'; then $(CYGPATH_W) 'cppmain.c'; else $(CYGPATH_W) '$(srcdir)/cppmain.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/epp-cppmain.Tpo $(DEPDIR)/epp-cppmain.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppmain.c' object='epp-cppmain.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(epp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o epp-cppmain.obj `if test -f 'cppmain.c'; then $(CYGPATH_W) 'cppmain.c'; else $(CYGPATH_W) '$(srcdir)/cppmain.c'; fi`
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+ for dir in "$(DESTDIR)$(bindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic 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
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: 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-binPROGRAMS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+ clean-generic clean-libtool ctags distclean distclean-compile \
+ distclean-generic distclean-libtool distclean-tags distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-binPROGRAMS install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags uninstall uninstall-am \
+ uninstall-binPROGRAMS
+
+# 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:
--- /dev/null
+/* Part of CPP library. (memory allocation - xmalloc etc)
+ * Copyright (C) 1986, 87, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
+ * Written by Per Bothner, 1994.
+ * Based on CCCP program by by Paul Rubin, June 1986
+ * Adapted to ANSI C, Richard Stallman, Jan 1987
+ *
+ * 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * In other words, you are welcome to use, share and improve this program.
+ * You are forbidden to forbid anyone else to use, share and improve
+ * what you give them. Help stamp out software-hoarding! */
+
+#include <stdlib.h>
+#include "config.h"
+#include "cpplib.h"
+
+static void
+memory_full(void)
+{
+ cpp_fatal("Memory exhausted.");
+}
+
+void *
+xmalloc(unsigned size)
+{
+ char *ptr = (char *)malloc(size);
+
+ if (ptr != 0)
+ return (ptr);
+ memory_full();
+ /*NOTREACHED */
+ return 0;
+}
+
+void *
+xrealloc(void *old, unsigned size)
+{
+ char *ptr = (char *)realloc(old, size);
+
+ if (ptr == 0)
+ memory_full();
+ return ptr;
+}
+
+void *
+xcalloc(unsigned number, unsigned size)
+{
+ char *ptr = (char *)calloc(number, size);
+
+ if (ptr == 0)
+ memory_full();
+ return ptr;
+}
--- /dev/null
+/* Default error handlers for CPP Library.
+ * Copyright (C) 1986, 87, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
+ * Written by Per Bothner, 1994.
+ * Based on CCCP program by by Paul Rubin, June 1986
+ * Adapted to ANSI C, Richard Stallman, Jan 1987
+ *
+ * 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * In other words, you are welcome to use, share and improve this program.
+ * You are forbidden to forbid anyone else to use, share and improve
+ * what you give them. Help stamp out software-hoarding! */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "config.h"
+#include "cpplib.h"
+
+/* Print the file names and line numbers of the #include
+ * commands which led to the current file. */
+
+void
+cpp_print_containing_files(cpp_reader * pfile)
+{
+ cpp_buffer *ip;
+ int first = 1;
+
+ /* If stack of files hasn't changed since we last printed
+ * this info, don't repeat it. */
+ if (pfile->input_stack_listing_current)
+ return;
+
+ ip = cpp_file_buffer(pfile);
+
+ /* Give up if we don't find a source file. */
+ if (ip == NULL)
+ return;
+
+ /* Find the other, outer source files. */
+ while ((ip = CPP_PREV_BUFFER(ip)), ip != CPP_NULL_BUFFER(pfile))
+ {
+ long line, col;
+
+ cpp_buf_line_and_col(ip, &line, &col);
+ if (ip->fname != NULL)
+ {
+ if (first)
+ {
+ first = 0;
+ fprintf(stderr, "In file included");
+ }
+ else
+ fprintf(stderr, ",\n ");
+ }
+ }
+ if (!first)
+ fprintf(stderr, ":\n");
+
+ /* Record we have printed the status as of this time. */
+ pfile->input_stack_listing_current = 1;
+}
+
+void
+cpp_file_line_for_message(cpp_reader * pfile, const char *filename,
+ int line, int column)
+{
+ pfile = NULL;
+ if (column > 0)
+ {
+ fprintf(stderr, "%s:%d:%d: ", filename, line, column);
+ }
+ else
+ {
+ fprintf(stderr, "%s:%d: ", filename, line);
+ }
+}
+
+/* IS_ERROR is 1 for error, 0 for warning */
+void
+cpp_message_v(cpp_reader * pfile, int is_error, const char *msg, va_list args)
+{
+ if (is_error)
+ pfile->errors++;
+ else
+ fprintf(stderr, "warning: ");
+ vfprintf(stderr, msg, args);
+ fprintf(stderr, "\n");
+}
+
+void
+cpp_message(cpp_reader * pfile, int is_error, const char *msg, ...)
+{
+ va_list args;
+
+ va_start(args, msg);
+
+ cpp_message_v(pfile, is_error, msg, args);
+
+ va_end(args);
+}
+
+static void
+cpp_fatal_v(const char *msg, va_list args)
+{
+ fprintf(stderr, "%s: ", progname);
+ vfprintf(stderr, msg, args);
+ fprintf(stderr, "\n");
+ exit(FATAL_EXIT_CODE);
+}
+
+void
+cpp_fatal(const char *msg, ...)
+{
+ va_list args;
+
+ va_start(args, msg);
+
+ cpp_fatal_v(msg, args);
+
+ va_end(args);
+}
+
+void
+cpp_pfatal_with_name(cpp_reader * pfile, const char *name)
+{
+ cpp_perror_with_name(pfile, name);
+#ifdef VMS
+ exit(vaxc$errno);
+#else
+ exit(FATAL_EXIT_CODE);
+#endif
+}
--- /dev/null
+
+/* Parse C expressions for CCCP.
+ * Copyright (C) 1987, 1992, 1994, 1995 Free Software Foundation.
+ *
+ * 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * In other words, you are welcome to use, share and improve this program.
+ * You are forbidden to forbid anyone else to use, share and improve
+ * what you give them. Help stamp out software-hoarding!
+ *
+ * Written by Per Bothner 1994. */
+
+/* Parse a C expression from text in a string */
+
+#include "config.h"
+#include "cpplib.h"
+#include "cpphash.h"
+
+#ifdef __EMX__
+#include <strings.h>
+#endif
+
+#ifdef MULTIBYTE_CHARS
+#include <locale.h>
+#endif
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+/* This is used for communicating lists of keywords with cccp.c. */
+struct arglist {
+ struct arglist *next;
+ unsigned char *name;
+ int length;
+ int argno;
+};
+
+/* Define a generic NULL if one hasn't already been defined. */
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+#ifndef GENERIC_PTR
+#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
+#define GENERIC_PTR void *
+#else
+#define GENERIC_PTR char *
+#endif
+#endif
+
+#ifndef NULL_PTR
+#define NULL_PTR ((GENERIC_PTR)0)
+#endif
+
+#ifndef CHAR_TYPE_SIZE
+#define CHAR_TYPE_SIZE BITS_PER_UNIT
+#endif
+
+#ifndef INT_TYPE_SIZE
+#define INT_TYPE_SIZE BITS_PER_WORD
+#endif
+
+#ifndef LONG_TYPE_SIZE
+#define LONG_TYPE_SIZE BITS_PER_WORD
+#endif
+
+#ifndef WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE INT_TYPE_SIZE
+#endif
+
+#ifndef MAX_CHAR_TYPE_SIZE
+#define MAX_CHAR_TYPE_SIZE CHAR_TYPE_SIZE
+#endif
+
+#ifndef MAX_INT_TYPE_SIZE
+#define MAX_INT_TYPE_SIZE INT_TYPE_SIZE
+#endif
+
+#ifndef MAX_LONG_TYPE_SIZE
+#define MAX_LONG_TYPE_SIZE LONG_TYPE_SIZE
+#endif
+
+#ifndef MAX_WCHAR_TYPE_SIZE
+#define MAX_WCHAR_TYPE_SIZE WCHAR_TYPE_SIZE
+#endif
+
+/* Yield nonzero if adding two numbers with A's and B's signs can yield a
+ * number with SUM's sign, where A, B, and SUM are all C integers. */
+#define possible_sum_sign(a, b, sum) ((((a) ^ (b)) | ~ ((a) ^ (sum))) < 0)
+
+#define ERROR 299
+#define OROR 300
+#define ANDAND 301
+#define EQUAL 302
+#define NOTEQUAL 303
+#define LEQ 304
+#define GEQ 305
+#define LSH 306
+#define RSH 307
+#define NAME 308
+#define INT 309
+#define CHAR 310
+
+#define LEFT_OPERAND_REQUIRED 1
+#define RIGHT_OPERAND_REQUIRED 2
+#define HAVE_VALUE 4
+/* SKIP_OPERAND is set for '&&' '||' '?' and ':' when the
+ * following operand should be short-circuited instead of evaluated. */
+#define SKIP_OPERAND 8
+/*#define UNSIGNEDP 16 */
+
+struct operation {
+ short op;
+ char rprio; /* Priority of op (relative to it right operand). */
+ char flags;
+ char unsignedp; /* true if value should be treated as unsigned */
+ HOST_WIDE_INT value; /* The value logically "right" of op. */
+};
+
+/* Take care of parsing a number (anything that starts with a digit).
+ * LEN is the number of characters in it. */
+
+/* maybe needs to actually deal with floating point numbers */
+
+static void
+parse_number(struct operation *op, cpp_reader * pfile, const char *start,
+ int olen)
+{
+ const char *p = start;
+ int c;
+ unsigned long n = 0, nd, ULONG_MAX_over_base;
+ int base = 10;
+ int len = olen;
+ int overflow = 0;
+ int digit, largest_digit = 0;
+ int spec_long = 0;
+
+ op->unsignedp = 0;
+
+ for (c = 0; c < len; c++)
+ if (p[c] == '.')
+ {
+ /* It's a float since it contains a point. */
+ cpp_error(pfile,
+ "floating point numbers not allowed in #if expressions");
+ op->op = ERROR;
+ return;
+ }
+ if (len >= 3 && (!strncmp(p, "0x", 2) || !strncmp(p, "0X", 2)))
+ {
+ p += 2;
+ base = 16;
+ len -= 2;
+ }
+ else if (*p == '0')
+ base = 8;
+
+ /* Some buggy compilers (e.g. MPW C) seem to need both casts. */
+ ULONG_MAX_over_base = ((unsigned long)-1) / ((unsigned long)base);
+
+ for (; len > 0; len--)
+ {
+ c = *p++;
+
+ if (c >= '0' && c <= '9')
+ digit = c - '0';
+ else if (base == 16 && c >= 'a' && c <= 'f')
+ digit = c - 'a' + 10;
+ else if (base == 16 && c >= 'A' && c <= 'F')
+ digit = c - 'A' + 10;
+ else
+ {
+ /* `l' means long, and `u' means unsigned. */
+ while (1)
+ {
+ if (c == 'l' || c == 'L')
+ {
+ if (spec_long)
+ cpp_error(pfile, "two `l's in integer constant");
+ spec_long = 1;
+ }
+ else if (c == 'u' || c == 'U')
+ {
+ if (op->unsignedp)
+ cpp_error(pfile, "two `u's in integer constant");
+ op->unsignedp = 1;
+ }
+ else
+ break;
+
+ if (--len == 0)
+ break;
+ c = *p++;
+ }
+ /* Don't look for any more digits after the suffixes. */
+ break;
+ }
+ if (largest_digit < digit)
+ largest_digit = digit;
+ nd = n * base + digit;
+ overflow |= (ULONG_MAX_over_base < n) | (nd < n);
+ n = nd;
+ }
+
+ if (len != 0)
+ {
+ cpp_error(pfile, "Invalid number in #if expression");
+ op->op = ERROR;
+ return;
+ }
+ if (base <= largest_digit)
+ cpp_warning(pfile, "integer constant contains digits beyond the radix");
+
+ if (overflow)
+ cpp_warning(pfile, "integer constant out of range");
+
+ /* If too big to be signed, consider it unsigned. */
+ if ((long)n < 0 && !op->unsignedp)
+ {
+ if (base == 10)
+ cpp_warning(pfile,
+ "integer constant is so large that it is unsigned");
+ op->unsignedp = 1;
+ }
+ op->value = n;
+ op->op = INT;
+}
+
+struct token {
+ const char *oper;
+ int token;
+};
+
+static struct token tokentab2[] = {
+ {"&&", ANDAND},
+ {"||", OROR},
+ {"<<", LSH},
+ {">>", RSH},
+ {"==", EQUAL},
+ {"!=", NOTEQUAL},
+ {"<=", LEQ},
+ {">=", GEQ},
+ {"++", ERROR},
+ {"--", ERROR},
+ {NULL, ERROR}
+};
+
+/* Read one token. */
+
+static void
+cpp_lex(struct operation *op, cpp_reader * pfile)
+{
+ int c;
+ struct token *toktab;
+ enum cpp_token token;
+ unsigned char *tok_start, *tok_end;
+ int old_written;
+
+ op->value = 0;
+ op->unsignedp = 0;
+
+ retry:
+
+ old_written = CPP_WRITTEN(pfile);
+ cpp_skip_hspace(pfile);
+ c = CPP_BUF_PEEK(CPP_BUFFER(pfile));
+ if (c == '#')
+ {
+ parse_number(op, pfile, cpp_read_check_assertion(pfile) ? "1" : "0", 1);
+ return;
+ }
+
+ if (c == '\n')
+ {
+ op->op = 0;
+ return;
+ }
+ token = cpp_get_token(pfile);
+ tok_start = pfile->token_buffer + old_written;
+ tok_end = CPP_PWRITTEN(pfile);
+ pfile->limit = tok_start;
+ switch (token)
+ {
+ case CPP_EOF: /* Should not happen ... */
+ op->op = 0;
+ break;
+
+ case CPP_VSPACE:
+ case CPP_POP:
+ if (CPP_BUFFER(pfile)->fname != NULL)
+ {
+ op->op = 0;
+ break;
+ }
+ goto retry;
+
+ case CPP_HSPACE:
+ case CPP_COMMENT:
+ goto retry;
+
+ case CPP_NUMBER:
+ parse_number(op, pfile, (char *)tok_start, tok_end - tok_start);
+ break;
+
+ case CPP_STRING:
+ cpp_error(pfile, "string constants not allowed in #if expressions");
+ op->op = ERROR;
+ break;
+
+ case CPP_CHAR:
+ /* This code for reading a character constant
+ * handles multicharacter constants and wide characters.
+ * It is mostly copied from c-lex.c. */
+ {
+ int result = 0;
+ int num_chars = 0;
+ unsigned width = MAX_CHAR_TYPE_SIZE;
+ int wide_flag = 0;
+ int max_chars;
+ char *ptr = (char *)tok_start;
+
+#ifdef MULTIBYTE_CHARS
+ char token_buffer[MAX_LONG_TYPE_SIZE /
+ MAX_CHAR_TYPE_SIZE + MB_CUR_MAX];
+
+#else
+ char token_buffer[MAX_LONG_TYPE_SIZE /
+ MAX_CHAR_TYPE_SIZE + 1];
+
+#endif
+
+ if (*ptr == 'L')
+ {
+ ptr++;
+ wide_flag = 1;
+ width = MAX_WCHAR_TYPE_SIZE;
+#ifdef MULTIBYTE_CHARS
+ max_chars = MB_CUR_MAX;
+#else
+ max_chars = 1;
+#endif
+ }
+ else
+ max_chars = MAX_LONG_TYPE_SIZE / width;
+
+ while (1)
+ {
+ if (ptr >= (char *)CPP_PWRITTEN(pfile) || (c = *ptr++) == '\'')
+ break;
+
+ if (c == '\\')
+ {
+ c = cpp_parse_escape(pfile, &ptr);
+ if (width < HOST_BITS_PER_INT
+ && (unsigned)c >= (unsigned)(1 << width))
+ cpp_pedwarn(pfile,
+ "escape sequence out of range for character");
+ }
+ num_chars++;
+
+ /* Merge character into result; ignore excess chars. */
+ if (num_chars < max_chars + 1)
+ {
+ if (width < HOST_BITS_PER_INT)
+ result = (result << width) | (c & ((1 << width) - 1));
+ else
+ result = c;
+ token_buffer[num_chars - 1] = c;
+ }
+ }
+
+ token_buffer[num_chars] = 0;
+
+ if (c != '\'')
+ cpp_error(pfile, "malformatted character constant");
+ else if (num_chars == 0)
+ cpp_error(pfile, "empty character constant");
+ else if (num_chars > max_chars)
+ {
+ num_chars = max_chars;
+ cpp_error(pfile, "character constant too long");
+ }
+ else if (num_chars != 1 && !CPP_TRADITIONAL(pfile))
+ cpp_warning(pfile, "multi-character character constant");
+
+ /* If char type is signed, sign-extend the constant. */
+ if (!wide_flag)
+ {
+ int num_bits = num_chars * width;
+
+ if (cpp_lookup("__CHAR_UNSIGNED__",
+ sizeof("__CHAR_UNSIGNED__") - 1, -1)
+ || ((result >> (num_bits - 1)) & 1) == 0)
+ op->value =
+ result & ((unsigned long)~0 >>
+ (HOST_BITS_PER_LONG - num_bits));
+ else
+ op->value =
+ result | ~((unsigned long)~0 >>
+ (HOST_BITS_PER_LONG - num_bits));
+ }
+ else
+ {
+#ifdef MULTIBYTE_CHARS
+ /* Set the initial shift state and convert the next sequence. */
+ result = 0;
+ /* In all locales L'\0' is zero and mbtowc will return zero,
+ * so don't use it. */
+ if (num_chars > 1
+ || (num_chars == 1 && token_buffer[0] != '\0'))
+ {
+ wchar_t wc;
+
+ (void)mbtowc(NULL_PTR, NULL_PTR, 0);
+ if (mbtowc(&wc, token_buffer, num_chars) == num_chars)
+ result = wc;
+ else
+ cpp_warning(pfile,
+ "Ignoring invalid multibyte character");
+ }
+#endif
+ op->value = result;
+ }
+ }
+
+ /* This is always a signed type. */
+ op->unsignedp = 0;
+ op->op = CHAR;
+ break;
+
+ case CPP_NAME:
+ parse_number(op, pfile, "0", 0);
+ break;
+
+ case CPP_OTHER:
+ /* See if it is a special token of length 2. */
+ if (tok_start + 2 == tok_end)
+ {
+ for (toktab = tokentab2; toktab->oper != NULL; toktab++)
+ if (tok_start[0] == toktab->oper[0]
+ && tok_start[1] == toktab->oper[1])
+ break;
+ if (toktab->token == ERROR)
+ {
+ char *buf = (char *)malloc(40);
+
+ memset(buf, 0, 40);
+
+ sprintf(buf, "`%s' not allowed in operand of `#if'",
+ tok_start);
+ cpp_error(pfile, buf);
+ free(buf);
+ }
+ op->op = toktab->token;
+ break;
+ }
+ /* fall through */
+ default:
+ op->op = *tok_start;
+ break;
+ }
+}
+
+/* Parse a C escape sequence. STRING_PTR points to a variable
+ * containing a pointer to the string to parse. That pointer
+ * is updated past the characters we use. The value of the
+ * escape sequence is returned.
+ *
+ * A negative value means the sequence \ newline was seen,
+ * which is supposed to be equivalent to nothing at all.
+ *
+ * If \ is followed by a null character, we return a negative
+ * value and leave the string pointer pointing at the null character.
+ *
+ * If \ is followed by 000, we return 0 and leave the string pointer
+ * after the zeros. A value of 0 does not mean end of string. */
+
+int
+cpp_parse_escape(cpp_reader * pfile, char **string_ptr)
+{
+ int c = *(*string_ptr)++;
+
+ switch (c)
+ {
+ case 'a':
+ return TARGET_BELL;
+ case 'b':
+ return TARGET_BS;
+ case 'e':
+ case 'E':
+ if (CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "non-ANSI-standard escape sequence, `\\%c'", c);
+ return 033;
+ case 'f':
+ return TARGET_FF;
+ case 'n':
+ return TARGET_NEWLINE;
+ case 'r':
+ return TARGET_CR;
+ case 't':
+ return TARGET_TAB;
+ case 'v':
+ return TARGET_VT;
+ case '\n':
+ return -2;
+ case 0:
+ (*string_ptr)--;
+ return 0;
+
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ {
+ int i = c - '0';
+ int count = 0;
+
+ while (++count < 3)
+ {
+ c = *(*string_ptr)++;
+ if (c >= '0' && c <= '7')
+ i = (i << 3) + c - '0';
+ else
+ {
+ (*string_ptr)--;
+ break;
+ }
+ }
+ if ((i & ~((1 << MAX_CHAR_TYPE_SIZE) - 1)) != 0)
+ {
+ i &= (1 << MAX_CHAR_TYPE_SIZE) - 1;
+ cpp_warning(pfile,
+ "octal character constant does not fit in a byte");
+ }
+ return i;
+ }
+ case 'x':
+ {
+ unsigned i = 0, overflow = 0, digits_found = 0, digit;
+
+ for (;;)
+ {
+ c = *(*string_ptr)++;
+ if (c >= '0' && c <= '9')
+ digit = c - '0';
+ else if (c >= 'a' && c <= 'f')
+ digit = c - 'a' + 10;
+ else if (c >= 'A' && c <= 'F')
+ digit = c - 'A' + 10;
+ else
+ {
+ (*string_ptr)--;
+ break;
+ }
+ overflow |= i ^ (i << 4 >> 4);
+ i = (i << 4) + digit;
+ digits_found = 1;
+ }
+ if (!digits_found)
+ cpp_error(pfile, "\\x used with no following hex digits");
+ if (overflow | (i & ~((1 << BITS_PER_UNIT) - 1)))
+ {
+ i &= (1 << BITS_PER_UNIT) - 1;
+ cpp_warning(pfile,
+ "hex character constant does not fit in a byte");
+ }
+ return i;
+ }
+ default:
+ return c;
+ }
+}
+
+static void
+integer_overflow(cpp_reader * pfile)
+{
+ if (CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "integer overflow in preprocessor expression");
+}
+
+static long
+left_shift(cpp_reader * pfile, long a, int unsignedp, unsigned long b)
+{
+ if (b >= HOST_BITS_PER_LONG)
+ {
+ if (!unsignedp && a != 0)
+ integer_overflow(pfile);
+ return 0;
+ }
+ else if (unsignedp)
+ return (unsigned long)a << b;
+ else
+ {
+ long l = a << b;
+
+ if (l >> b != a)
+ integer_overflow(pfile);
+ return l;
+ }
+}
+
+static long
+right_shift(cpp_reader * pfile, long a, int unsignedp, unsigned long b)
+{
+ pfile = NULL;
+ if (b >= HOST_BITS_PER_LONG)
+ {
+ return unsignedp ? 0 : a >> (HOST_BITS_PER_LONG - 1);
+ }
+ else if (unsignedp)
+ {
+ return (unsigned long)a >> b;
+ }
+ else
+ {
+ return a >> b;
+ }
+}
+
+/* These priorities are all even, so we can handle associatively. */
+#define PAREN_INNER_PRIO 0
+#define COMMA_PRIO 4
+#define COND_PRIO (COMMA_PRIO+2)
+#define OROR_PRIO (COND_PRIO+2)
+#define ANDAND_PRIO (OROR_PRIO+2)
+#define OR_PRIO (ANDAND_PRIO+2)
+#define XOR_PRIO (OR_PRIO+2)
+#define AND_PRIO (XOR_PRIO+2)
+#define EQUAL_PRIO (AND_PRIO+2)
+#define LESS_PRIO (EQUAL_PRIO+2)
+#define SHIFT_PRIO (LESS_PRIO+2)
+#define PLUS_PRIO (SHIFT_PRIO+2)
+#define MUL_PRIO (PLUS_PRIO+2)
+#define UNARY_PRIO (MUL_PRIO+2)
+#define PAREN_OUTER_PRIO (UNARY_PRIO+2)
+
+#define COMPARE(OP) \
+ top->unsignedp = 0;\
+ top->value = (unsigned1 || unsigned2) ? (unsigned long) v1 OP (unsigned long) v2 : (v1 OP v2)
+
+/* Parse and evaluate a C expression, reading from PFILE.
+ * Returns the value of the expression. */
+
+HOST_WIDE_INT
+cpp_parse_expr(cpp_reader * pfile)
+{
+ /* The implementation is an operator precedence parser,
+ * i.e. a bottom-up parser, using a stack for not-yet-reduced tokens.
+ *
+ * The stack base is 'stack', and the current stack pointer is 'top'.
+ * There is a stack element for each operator (only),
+ * and the most recently pushed operator is 'top->op'.
+ * An operand (value) is stored in the 'value' field of the stack
+ * element of the operator that precedes it.
+ * In that case the 'flags' field has the HAVE_VALUE flag set. */
+
+#define INIT_STACK_SIZE 20
+ struct operation init_stack[INIT_STACK_SIZE];
+ struct operation *stack = init_stack;
+ struct operation *limit = stack + INIT_STACK_SIZE;
+ struct operation *top = stack;
+ int lprio = 0, rprio = 0;
+ int skip_evaluation = 0;
+
+ top->rprio = 0;
+ top->flags = 0;
+ for (;;)
+ {
+ struct operation op;
+ char flags = 0;
+
+ /* Read a token */
+ cpp_lex(&op, pfile);
+
+ /* See if the token is an operand, in which case go to set_value.
+ * If the token is an operator, figure out its left and right
+ * priorities, and then goto maybe_reduce. */
+
+ switch (op.op)
+ {
+ case NAME:
+ top->value = 0, top->unsignedp = 0;
+ goto set_value;
+ case INT:
+ case CHAR:
+ top->value = op.value;
+ top->unsignedp = op.unsignedp;
+ goto set_value;
+ case 0:
+ lprio = 0;
+ goto maybe_reduce;
+ case '+':
+ case '-':
+ /* Is this correct if unary ? FIXME */
+ flags = RIGHT_OPERAND_REQUIRED;
+ lprio = PLUS_PRIO;
+ rprio = lprio + 1;
+ goto maybe_reduce;
+ case '!':
+ case '~':
+ flags = RIGHT_OPERAND_REQUIRED;
+ rprio = UNARY_PRIO;
+ lprio = rprio + 1;
+ goto maybe_reduce;
+ case '*':
+ case '/':
+ case '%':
+ lprio = MUL_PRIO;
+ goto binop;
+ case '<':
+ case '>':
+ case LEQ:
+ case GEQ:
+ lprio = LESS_PRIO;
+ goto binop;
+ case EQUAL:
+ case NOTEQUAL:
+ lprio = EQUAL_PRIO;
+ goto binop;
+ case LSH:
+ case RSH:
+ lprio = SHIFT_PRIO;
+ goto binop;
+ case '&':
+ lprio = AND_PRIO;
+ goto binop;
+ case '^':
+ lprio = XOR_PRIO;
+ goto binop;
+ case '|':
+ lprio = OR_PRIO;
+ goto binop;
+ case ANDAND:
+ lprio = ANDAND_PRIO;
+ goto binop;
+ case OROR:
+ lprio = OROR_PRIO;
+ goto binop;
+ case ',':
+ lprio = COMMA_PRIO;
+ goto binop;
+ case '(':
+ lprio = PAREN_OUTER_PRIO;
+ rprio = PAREN_INNER_PRIO;
+ goto maybe_reduce;
+ case ')':
+ lprio = PAREN_INNER_PRIO;
+ rprio = PAREN_OUTER_PRIO;
+ goto maybe_reduce;
+ case ':':
+ lprio = COND_PRIO;
+ rprio = COND_PRIO;
+ goto maybe_reduce;
+ case '?':
+ lprio = COND_PRIO + 1;
+ rprio = COND_PRIO;
+ goto maybe_reduce;
+ binop:
+ flags = LEFT_OPERAND_REQUIRED | RIGHT_OPERAND_REQUIRED;
+ rprio = lprio + 1;
+ goto maybe_reduce;
+ default:
+ cpp_error(pfile, "invalid character in #if");
+ goto syntax_error;
+ }
+
+ set_value:
+ /* Push a value onto the stack. */
+ if (top->flags & HAVE_VALUE)
+ {
+ cpp_error(pfile, "syntax error in #if");
+ goto syntax_error;
+ }
+ top->flags |= HAVE_VALUE;
+ continue;
+
+ maybe_reduce:
+ /* Push an operator, and check if we can reduce now. */
+ while (top->rprio > lprio)
+ {
+ long v1 = top[-1].value, v2 = top[0].value;
+ int unsigned1 = top[-1].unsignedp, unsigned2 =
+ top[0].unsignedp;
+
+ top--;
+ if ((top[1].flags & LEFT_OPERAND_REQUIRED)
+ && !(top[0].flags & HAVE_VALUE))
+ {
+ cpp_error(pfile, "syntax error - missing left operand");
+ goto syntax_error;
+ }
+ if ((top[1].flags & RIGHT_OPERAND_REQUIRED)
+ && !(top[1].flags & HAVE_VALUE))
+ {
+ cpp_error(pfile, "syntax error - missing right operand");
+ goto syntax_error;
+ }
+ /* top[0].value = (top[1].op)(v1, v2); */
+ switch (top[1].op)
+ {
+ case '+':
+ if (!(top->flags & HAVE_VALUE))
+ { /* Unary '+' */
+ top->value = v2;
+ top->unsignedp = unsigned2;
+ top->flags |= HAVE_VALUE;
+ }
+ else
+ {
+ top->value = v1 + v2;
+ top->unsignedp = unsigned1 || unsigned2;
+ if (!top->unsignedp && !skip_evaluation
+ && !possible_sum_sign(v1, v2, top->value))
+ integer_overflow(pfile);
+ }
+ break;
+ case '-':
+ if (skip_evaluation); /* do nothing */
+ else if (!(top->flags & HAVE_VALUE))
+ { /* Unary '-' */
+ top->value = -v2;
+ if ((top->value & v2) < 0 && !unsigned2)
+ integer_overflow(pfile);
+ top->unsignedp = unsigned2;
+ top->flags |= HAVE_VALUE;
+ }
+ else
+ { /* Binary '-' */
+ top->value = v1 - v2;
+ top->unsignedp = unsigned1 || unsigned2;
+ if (!top->unsignedp
+ && !possible_sum_sign(top->value, v2, v1))
+ integer_overflow(pfile);
+ }
+ break;
+ case '*':
+ top->unsignedp = unsigned1 || unsigned2;
+ if (top->unsignedp)
+ top->value = (unsigned long)v1 *v2;
+
+ else if (!skip_evaluation)
+ {
+ top->value = v1 * v2;
+ if (v1
+ && (top->value / v1 != v2
+ || (top->value & v1 & v2) < 0))
+ integer_overflow(pfile);
+ }
+ break;
+ case '/':
+ if (skip_evaluation)
+ break;
+ if (v2 == 0)
+ {
+ cpp_error(pfile, "division by zero in #if");
+ v2 = 1;
+ }
+ top->unsignedp = unsigned1 || unsigned2;
+ if (top->unsignedp)
+ top->value = (unsigned long)v1 / v2;
+ else
+ {
+ top->value = v1 / v2;
+ if ((top->value & v1 & v2) < 0)
+ integer_overflow(pfile);
+ }
+ break;
+ case '%':
+ if (skip_evaluation)
+ break;
+ if (v2 == 0)
+ {
+ cpp_error(pfile, "division by zero in #if");
+ v2 = 1;
+ }
+ top->unsignedp = unsigned1 || unsigned2;
+ if (top->unsignedp)
+ top->value = (unsigned long)v1 % v2;
+ else
+ top->value = v1 % v2;
+ break;
+ case '!':
+ if (top->flags & HAVE_VALUE)
+ {
+ cpp_error(pfile, "syntax error");
+ goto syntax_error;
+ }
+ top->value = !v2;
+ top->unsignedp = 0;
+ top->flags |= HAVE_VALUE;
+ break;
+ case '~':
+ if (top->flags & HAVE_VALUE)
+ {
+ cpp_error(pfile, "syntax error");
+ goto syntax_error;
+ }
+ top->value = ~v2;
+ top->unsignedp = unsigned2;
+ top->flags |= HAVE_VALUE;
+ break;
+ case '<':
+ COMPARE(<);
+ break;
+ case '>':
+ COMPARE(>);
+ break;
+ case LEQ:
+ COMPARE(<=);
+ break;
+ case GEQ:
+ COMPARE(>=);
+ break;
+ case EQUAL:
+ top->value = (v1 == v2);
+ top->unsignedp = 0;
+ break;
+ case NOTEQUAL:
+ top->value = (v1 != v2);
+ top->unsignedp = 0;
+ break;
+ case LSH:
+ if (skip_evaluation)
+ break;
+ top->unsignedp = unsigned1;
+ if (v2 < 0 && !unsigned2)
+ top->value = right_shift(pfile, v1, unsigned1, -v2);
+ else
+ top->value = left_shift(pfile, v1, unsigned1, v2);
+ break;
+ case RSH:
+ if (skip_evaluation)
+ break;
+ top->unsignedp = unsigned1;
+ if (v2 < 0 && !unsigned2)
+ top->value = left_shift(pfile, v1, unsigned1, -v2);
+ else
+ top->value = right_shift(pfile, v1, unsigned1, v2);
+ break;
+#define LOGICAL(OP) \
+ top->value = v1 OP v2;\
+ top->unsignedp = unsigned1 || unsigned2;
+ case '&':
+ LOGICAL(&);
+ break;
+ case '^':
+ LOGICAL(^);
+ break;
+ case '|':
+ LOGICAL(|);
+ break;
+ case ANDAND:
+ top->value = v1 && v2;
+ top->unsignedp = 0;
+ if (!v1)
+ skip_evaluation--;
+ break;
+ case OROR:
+ top->value = v1 || v2;
+ top->unsignedp = 0;
+ if (v1)
+ skip_evaluation--;
+ break;
+ case ',':
+ if (CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "comma operator in operand of `#if'");
+ top->value = v2;
+ top->unsignedp = unsigned2;
+ break;
+ case '(':
+ case '?':
+ cpp_error(pfile, "syntax error in #if");
+ goto syntax_error;
+ case ':':
+ if (top[0].op != '?')
+ {
+ cpp_error(pfile,
+ "syntax error ':' without preceding '?'");
+ goto syntax_error;
+ }
+ else if (!(top[1].flags & HAVE_VALUE)
+ || !(top[-1].flags & HAVE_VALUE)
+ || !(top[0].flags & HAVE_VALUE))
+ {
+ cpp_error(pfile, "bad syntax for ?: operator");
+ goto syntax_error;
+ }
+ else
+ {
+ top--;
+ if (top->value)
+ skip_evaluation--;
+ top->value = top->value ? v1 : v2;
+ top->unsignedp = unsigned1 || unsigned2;
+ }
+ break;
+ case ')':
+ if ((top[1].flags & HAVE_VALUE)
+ || !(top[0].flags & HAVE_VALUE)
+ || top[0].op != '(' || (top[-1].flags & HAVE_VALUE))
+ {
+ cpp_error(pfile, "mismatched parentheses in #if");
+ goto syntax_error;
+ }
+ else
+ {
+ top--;
+ top->value = v1;
+ top->unsignedp = unsigned1;
+ top->flags |= HAVE_VALUE;
+ }
+ break;
+ default:
+ fprintf(stderr,
+ top[1].op >= ' ' && top[1].op <= '~'
+ ? "unimplemented operator '%c'\n"
+ : "unimplemented operator '\\%03o'\n", top[1].op);
+ }
+ }
+ if (op.op == 0)
+ {
+ if (top != stack)
+ cpp_error(pfile, "internal error in #if expression");
+ if (stack != init_stack)
+ free(stack);
+ return top->value;
+ }
+ top++;
+
+ /* Check for and handle stack overflow. */
+ if (top == limit)
+ {
+ struct operation *new_stack;
+ int old_size = (char *)limit - (char *)stack;
+ int new_size = 2 * old_size;
+
+ if (stack != init_stack)
+ new_stack = (struct operation *)xrealloc(stack, new_size);
+ else
+ {
+ new_stack = (struct operation *)xmalloc(new_size);
+ memcpy((char *)new_stack, (char *)stack, old_size);
+ }
+ stack = new_stack;
+ top = (struct operation *)((char *)new_stack + old_size);
+ limit = (struct operation *)((char *)new_stack + new_size);
+ }
+ top->flags = flags;
+ top->rprio = rprio;
+ top->op = op.op;
+ if ((op.op == OROR && top[-1].value)
+ || (op.op == ANDAND && !top[-1].value)
+ || (op.op == '?' && !top[-1].value))
+ {
+ skip_evaluation++;
+ }
+ else if (op.op == ':')
+ {
+ if (top[-2].value) /* Was condition true? */
+ skip_evaluation++;
+ else
+ skip_evaluation--;
+ }
+ }
+ syntax_error:
+ if (stack != init_stack)
+ free(stack);
+ skip_rest_of_line(pfile);
+ return 0;
+}
--- /dev/null
+/* Part of CPP library. (Macro hash table support.)
+ * Copyright (C) 1986, 87, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
+ * Written by Per Bothner, 1994.
+ * Based on CCCP program by by Paul Rubin, June 1986
+ * Adapted to ANSI C, Richard Stallman, Jan 1987
+ *
+ * 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * In other words, you are welcome to use, share and improve this program.
+ * You are forbidden to forbid anyone else to use, share and improve
+ * what you give them. Help stamp out software-hoarding! */
+
+#include "cpplib.h"
+#include "cpphash.h"
+
+static HASHNODE *hashtab[HASHSIZE];
+
+#include <string.h>
+#include <stdlib.h>
+
+#define IS_IDCHAR(ch) is_idchar[(unsigned char)(ch)]
+
+/*
+ * return hash function on name. must be compatible with the one
+ * computed a step at a time, elsewhere
+ */
+int
+hashf(const char *name, int len, int hashsize)
+{
+ int r = 0;
+
+ while (len--)
+ r = HASHSTEP(r, *name++);
+
+ return MAKE_POS(r) % hashsize;
+}
+
+/*
+ * find the most recent hash node for name name (ending with first
+ * non-identifier char) installed by install
+ *
+ * If LEN is >= 0, it is the length of the name.
+ * Otherwise, compute the length by scanning the entire name.
+ *
+ * If HASH is >= 0, it is the precomputed hash code.
+ * Otherwise, compute the hash code.
+ */
+HASHNODE *
+cpp_lookup(const char *name, int len, int hash)
+{
+ const char *bp;
+ HASHNODE *bucket;
+
+ if (len < 0)
+ {
+ for (bp = name; IS_IDCHAR(*bp); bp++)
+ ;
+ len = bp - name;
+ }
+ if (hash < 0)
+ hash = hashf(name, len, HASHSIZE);
+
+ bucket = hashtab[hash];
+ while (bucket)
+ {
+ if (bucket->length == len
+ && strncmp((const char *)bucket->name, name, len) == 0)
+ return bucket;
+ bucket = bucket->next;
+ }
+ return (HASHNODE *) 0;
+}
+
+/*
+ * Delete a hash node. Some weirdness to free junk from macros.
+ * More such weirdness will have to be added if you define more hash
+ * types that need it.
+ */
+
+/* Note that the DEFINITION of a macro is removed from the hash table
+ * but its storage is not freed. This would be a storage leak
+ * except that it is not reasonable to keep undefining and redefining
+ * large numbers of macros many times.
+ * In any case, this is necessary, because a macro can be #undef'd
+ * in the middle of reading the arguments to a call to it.
+ * If #undef freed the DEFINITION, that would crash. */
+
+void
+delete_macro(HASHNODE * hp)
+{
+
+ if (hp->prev != NULL)
+ hp->prev->next = hp->next;
+ if (hp->next != NULL)
+ hp->next->prev = hp->prev;
+
+ /* make sure that the bucket chain header that
+ * the deleted guy was on points to the right thing afterwards. */
+ if (hp == *hp->bucket_hdr)
+ *hp->bucket_hdr = hp->next;
+
+ if (hp->type == T_MACRO)
+ {
+ DEFINITION *d = hp->value.defn;
+ struct reflist *ap, *nextap;
+
+ for (ap = d->pattern; ap != NULL; ap = nextap)
+ {
+ nextap = ap->next;
+ free(ap);
+ }
+ if (d->nargs >= 0)
+ free(d->args.argnames);
+ free(d);
+ }
+ free(hp);
+}
+/*
+ * install a name in the main hash table, even if it is already there.
+ * name stops with first non alphanumeric, except leading '#'.
+ * caller must check against redefinition if that is desired.
+ * delete_macro () removes things installed by install () in fifo order.
+ * this is important because of the `defined' special symbol used
+ * in #if, and also if pushdef/popdef directives are ever implemented.
+ *
+ * If LEN is >= 0, it is the length of the name.
+ * Otherwise, compute the length by scanning the entire name.
+ *
+ * If HASH is >= 0, it is the precomputed hash code.
+ * Otherwise, compute the hash code.
+ */
+HASHNODE *
+install(const char *name, int len, enum node_type type, int ivalue, char *value,
+ int hash)
+{
+ HASHNODE *hp;
+ int i, bucket;
+ const char *p;
+
+ if (len < 0)
+ {
+ p = name;
+ while (IS_IDCHAR(*p))
+ p++;
+ len = p - name;
+ }
+ if (hash < 0)
+ hash = hashf(name, len, HASHSIZE);
+
+ i = sizeof(HASHNODE) + len + 1;
+ hp = (HASHNODE *) xmalloc(i);
+ bucket = hash;
+ hp->bucket_hdr = &hashtab[bucket];
+ hp->next = hashtab[bucket];
+ hashtab[bucket] = hp;
+ hp->prev = NULL;
+ if (hp->next != NULL)
+ hp->next->prev = hp;
+ hp->type = type;
+ hp->length = len;
+ if (hp->type == T_CONST)
+ hp->value.ival = ivalue;
+ else
+ hp->value.cpval = value;
+ hp->name = ((char *)hp) + sizeof(HASHNODE);
+ memcpy(hp->name, name, len);
+ hp->name[len] = 0;
+ return hp;
+}
+
+void
+cpp_hash_cleanup(cpp_reader * pfile)
+{
+ int i;
+
+ pfile = NULL;
+ for (i = HASHSIZE; --i >= 0;)
+ {
+ while (hashtab[i])
+ delete_macro(hashtab[i]);
+ }
+}
--- /dev/null
+enum node_type;
+
+/* different kinds of things that can appear in the value field
+ of a hash node. Actually, this may be useless now. */
+union hashval {
+ int ival;
+ char *cpval;
+ DEFINITION *defn;
+};
+
+struct hashnode {
+ struct hashnode *next; /* double links for easy deletion */
+ struct hashnode *prev;
+ struct hashnode **bucket_hdr; /* also, a back pointer to this node's hash
+ * chain is kept, in case the node is the head
+ * of the chain and gets deleted. */
+ enum node_type type; /* type of special token */
+ int length; /* length of token, for quick comparison */
+ char *name; /* the actual name */
+ union hashval value; /* pointer to expansion, or whatever */
+};
+
+typedef struct hashnode HASHNODE;
+
+/* Some definitions for the hash table. The hash function MUST be
+ computed as shown in hashf () below. That is because the rescan
+ loop computes the hash value `on the fly' for most tokens,
+ in order to avoid the overhead of a lot of procedure calls to
+ the hashf () function. Hashf () only exists for the sake of
+ politeness, for use when speed isn't so important. */
+
+#define HASHSIZE 1403
+#define HASHSTEP(old, c) ((old << 2) + c)
+#define MAKE_POS(v) (v & 0x7fffffff) /* make number positive */
+
+extern int hashf(const char *name, int len, int hashsize);
+extern HASHNODE *cpp_lookup(const char *name, int len, int hash);
+extern void delete_macro(HASHNODE * hp);
+extern HASHNODE *install(const char *name, int len, enum node_type type,
+ int ivalue, char *value, int hash);
+extern void cpp_hash_cleanup(cpp_reader * pfile);
--- /dev/null
+/* CPP Library.
+ * Copyright (C) 1986, 87, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
+ * Written by Per Bothner, 1994-95.
+ * Based on CCCP program by by Paul Rubin, June 1986
+ * Adapted to ANSI C, Richard Stallman, Jan 1987
+ *
+ * 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * In other words, you are welcome to use, share and improve this program.
+ * You are forbidden to forbid anyone else to use, share and improve
+ * what you give them. Help stamp out software-hoarding! */
+
+const char *version_string = "0.0.0";
+
+#include "config.h"
+
+#ifdef __EMX__
+#include <strings.h>
+#endif
+
+#ifndef STANDARD_INCLUDE_DIR
+#define STANDARD_INCLUDE_DIR "/usr/include"
+#endif
+
+#ifndef LOCAL_INCLUDE_DIR
+#define LOCAL_INCLUDE_DIR "/usr/local/include"
+#endif
+
+#include "cpplib.h"
+#include "cpphash.h"
+
+#ifndef STDC_VALUE
+#define STDC_VALUE 1
+#endif
+
+/* By default, colon separates directories in a path. */
+#ifndef PATH_SEPARATOR
+#define PATH_SEPARATOR ':'
+#endif
+
+#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+#include <signal.h>
+#ifdef __STDC__
+#include <stdlib.h>
+#endif
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdlib.h>
+
+#ifndef VMS
+#ifndef USG
+#include <time.h>
+#include <sys/time.h> /* for __DATE__ and __TIME__ */
+#include <sys/resource.h>
+#else
+#include <sys/param.h> /* CYGNUS LOCAL: shebs -noquiet */
+#include <sys/times.h>
+#include <time.h>
+#include <fcntl.h>
+#endif /* USG */
+#endif /* not VMS */
+
+/* This defines "errno" properly for VMS, and gives us EACCES. */
+#include <errno.h>
+
+#ifndef O_RDONLY
+#define O_RDONLY 0
+#endif
+
+#undef MIN
+#undef MAX
+#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
+#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
+
+#ifndef S_ISREG
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
+#ifndef S_ISDIR
+#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+#endif
+
+/* Define a generic NULL if one hasn't already been defined. */
+
+#ifndef GENERIC_PTR
+#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
+#define GENERIC_PTR void *
+#else
+#define GENERIC_PTR char *
+#endif
+#endif
+
+#ifndef INCLUDE_LEN_FUDGE
+#define INCLUDE_LEN_FUDGE 0
+#endif
+
+#define USE_FILE_NAME_MAPS 0
+
+/* Symbols to predefine. */
+
+#ifdef CPP_PREDEFINES
+static const char *predefs = CPP_PREDEFINES;
+
+#else
+static const char *predefs = "";
+
+#endif
+
+/* We let tm.h override the types used here, to handle trivial differences
+ * such as the choice of unsigned int or long unsigned int for size_t.
+ * When machines start needing nontrivial differences in the size type,
+ * it would be best to do something here to figure out automatically
+ * from other information what type to use. */
+
+/* The string value for __SIZE_TYPE__. */
+
+#ifndef SIZE_TYPE
+#define SIZE_TYPE "long unsigned int"
+#endif
+
+/* The string value for __PTRDIFF_TYPE__. */
+
+#ifndef PTRDIFF_TYPE
+#define PTRDIFF_TYPE "long int"
+#endif
+
+/* The string value for __WCHAR_TYPE__. */
+
+#ifndef WCHAR_TYPE
+#define WCHAR_TYPE "int"
+#endif
+#define CPP_WCHAR_TYPE(PFILE) \
+ (CPP_OPTIONS (PFILE)->cplusplus ? "__wchar_t" : WCHAR_TYPE)
+
+/* The string value for __USER_LABEL_PREFIX__ */
+
+#ifndef USER_LABEL_PREFIX
+#define USER_LABEL_PREFIX ""
+#endif
+
+/* The string value for __REGISTER_PREFIX__ */
+
+#ifndef REGISTER_PREFIX
+#define REGISTER_PREFIX ""
+#endif
+
+struct directive {
+ int length;
+ int (*func) (cpp_reader * pfile, struct directive * keyword,
+ unsigned char *buf, unsigned char *limit);
+ const char *name;
+ enum node_type type;
+ char command_reads_line;
+ char traditional_comments;
+ char pass_thru;
+};
+
+/* In the definition of a #assert name, this structure forms
+ * a list of the individual values asserted.
+ * Each value is itself a list of "tokens".
+ * These are strings that are compared by name. */
+
+struct tokenlist_list {
+ struct tokenlist_list *next;
+ struct arglist *tokens;
+};
+
+struct assertion_hashnode {
+ struct assertion_hashnode *next; /* double links for easy deletion */
+ struct assertion_hashnode *prev;
+ /* also, a back pointer to this node's hash
+ * chain is kept, in case the node is the head
+ * of the chain and gets deleted. */
+ struct assertion_hashnode **bucket_hdr;
+ int length; /* length of token, for quick comparison */
+ char *name; /* the actual name */
+ /* List of token-sequences. */
+ struct tokenlist_list *value;
+};
+
+#define SKIP_WHITE_SPACE(p) do { while (is_hor_space[(unsigned char)(*p)]) p++; } while (0)
+#define SKIP_ALL_WHITE_SPACE(p) do { while (is_space[(unsigned char)(*p)]) p++; } while (0)
+
+#define PEEKN(N) (CPP_BUFFER (pfile)->rlimit - CPP_BUFFER (pfile)->cur >= (N) ? CPP_BUFFER (pfile)->cur[N] : EOF)
+#define FORWARD(N) CPP_FORWARD (CPP_BUFFER (pfile), (N))
+#define GETC() CPP_BUF_GET (CPP_BUFFER (pfile))
+#define PEEKC() CPP_BUF_PEEK (CPP_BUFFER (pfile))
+/* CPP_IS_MACRO_BUFFER is true if the buffer contains macro expansion.
+ * (Note that it is false while we're expanding marco *arguments*.) */
+#define CPP_IS_MACRO_BUFFER(PBUF) ((PBUF)->cleanup == macro_cleanup)
+
+/* Move all backslash-newline pairs out of embarrassing places.
+ * Exchange all such pairs following BP
+ * with any potentially-embarrassing characters that follow them.
+ * Potentially-embarrassing characters are / and *
+ * (because a backslash-newline inside a comment delimiter
+ * would cause it not to be recognized). */
+
+#define NEWLINE_FIX \
+ do {while (PEEKC() == '\\' && PEEKN(1) == '\n') FORWARD(2); } while(0)
+
+/* Same, but assume we've already read the potential '\\' into C. */
+#define NEWLINE_FIX1(C) do { \
+ while ((C) == '\\' && PEEKC() == '\n') { FORWARD(1); (C) = GETC(); }\
+ } while(0)
+
+/* Name under which this program was invoked. */
+
+char *progname;
+
+struct cpp_pending {
+ struct cpp_pending *next;
+ const char *cmd;
+ const char *arg;
+};
+
+/* Structure returned by create_definition */
+typedef struct {
+ struct definition *defn;
+ char *symnam;
+ int symlen;
+} MACRODEF;
+
+/* Forward declarations. */
+
+static void add_import(cpp_reader * pfile, int fd, char *fname);
+static int finclude(cpp_reader * pfile, int f, const char *fname,
+ int system_header_p,
+ struct file_name_list *dirptr);
+static void validate_else(cpp_reader * pfile, const char *directive);
+static int comp_def_part(int first, unsigned char *beg1, int len1,
+ unsigned char *beg2, int len2, int last);
+static int lookup_import(cpp_reader * pfile, char *filename,
+ struct file_name_list *searchptr);
+static int redundant_include_p(cpp_reader * pfile, char *name);
+
+static int is_system_include(cpp_reader * pfile, char *filename);
+
+static int open_include_file(cpp_reader * pfile, char *filename,
+ struct file_name_list *searchptr);
+static int check_macro_name(cpp_reader * pfile, unsigned char *symname,
+ const char *usage);
+
+static int compare_token_lists(struct arglist *l1, struct arglist *l2);
+static HOST_WIDE_INT eval_if_expression(cpp_reader * pfile, unsigned char *buf,
+ int length);
+
+static int file_size_and_mode(int fd, int *mode_pointer,
+ long int *size_pointer);
+static struct arglist *read_token_list(cpp_reader * pfile, int *error_flag);
+static void free_token_list(struct arglist *tokens);
+static int safe_read(int desc, char *ptr, int len);
+static void push_macro_expansion(cpp_reader * pfile,
+ unsigned char *x,
+ int xbuf_len, HASHNODE * hp);
+
+static struct cpp_pending *nreverse_pending(struct cpp_pending *list);
+static char *savestring(const char *input);
+
+static void conditional_skip(cpp_reader * pfile, int skip,
+ enum node_type type,
+ unsigned char *control_macro);
+static void skip_if_group(cpp_reader * pfile, int any);
+
+static void cpp_error_with_line(cpp_reader * pfile, int line,
+ int column, const char *msg);
+static void cpp_pedwarn_with_line(cpp_reader * pfile, int line,
+ int column, const char *msg);
+static void cpp_pedwarn_with_file_and_line(cpp_reader * pfile,
+ const char *file, int line,
+ const char *msg,
+ const char *arg1,
+ const char *arg2,
+ const char *arg3);
+static void cpp_error_from_errno(cpp_reader * pfile, const char *name);
+
+static cpp_buffer *cpp_push_buffer(cpp_reader * pfile, unsigned char *buffer,
+ long length);
+static cpp_buffer *cpp_pop_buffer(cpp_reader * pfile);
+
+/* Last arg to output_line_command. */
+enum file_change_code {
+ same_file, enter_file, leave_file
+};
+
+/* These functions are declared to return int instead of void since they
+ * are going to be placed in a table and some old compilers have trouble with
+ * pointers to functions returning void. */
+
+static int do_define(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_line(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *unused1, unsigned char *unused2);
+
+static int do_include(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *unused1, unsigned char *unused2);
+
+static int do_undef(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_error(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_pragma(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_ident(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_if(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_xifdef(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_else(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_elif(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_endif(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_assert(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_unassert(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+static int do_warning(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit);
+
+struct arglist *reverse_token_list(struct arglist *tokens);
+
+static int parse_name(cpp_reader * pfile, int c);
+
+static void parse_set_mark(struct parse_marker *pmark,
+ cpp_reader * pfile);
+static void parse_clear_mark(struct parse_marker *pmark);
+static void parse_goto_mark(struct parse_marker *pmark,
+ cpp_reader * pfile);
+static void parse_move_mark(struct parse_marker *pmark,
+ cpp_reader * pfile);
+
+struct file_name_list {
+ struct file_name_list *next;
+ char *fname;
+ /* If the following is nonzero, it is a macro name.
+ * Don't include the file again if that macro is defined. */
+ unsigned char *control_macro;
+ /* If the following is nonzero, it is a C-language system include
+ * directory. */
+ int c_system_include_path;
+ /* Mapping of file names for this directory. */
+ struct file_name_map *name_map;
+ /* Non-zero if name_map is valid. */
+ int got_name_map;
+};
+
+/* If a buffer's dir field is SELF_DIR_DUMMY, it means the file was found
+ * via the same directory as the file that #included it. */
+#define SELF_DIR_DUMMY ((struct file_name_list*)(~0))
+
+/* #include "file" looks in source file dir, then stack. */
+/* #include <file> just looks in the stack. */
+/* -I directories are added to the end, then the defaults are added. */
+/* The */
+static struct default_include {
+ const char *fname; /* The name of the directory. */
+ int cplusplus; /* Only look here if we're compiling C++. */
+ int cxx_aware; /* Includes in this directory don't need to
+ * be wrapped in extern "C" when compiling
+ * C++. */
+} include_defaults_array[]
+#ifdef INCLUDE_DEFAULTS
+ = INCLUDE_DEFAULTS;
+
+#else
+ =
+{
+ /* Pick up GNU C++ specific include files. */
+ {
+ GPLUSPLUS_INCLUDE_DIR, 1, 1}
+ ,
+#ifdef CROSS_COMPILE
+ /* This is the dir for fixincludes. Put it just before
+ * the files that we fix. */
+ {
+ GCC_INCLUDE_DIR, 0, 0}
+ ,
+ /* For cross-compilation, this dir name is generated
+ * automatically in Makefile.in. */
+ {
+ CROSS_INCLUDE_DIR, 0, 0}
+ ,
+ /* This is another place that the target system's headers might be. */
+ {
+ TOOL_INCLUDE_DIR, 0, 1}
+ ,
+#else /* not CROSS_COMPILE */
+ /* This should be /usr/local/include and should come before
+ * the fixincludes-fixed header files. */
+ {
+ LOCAL_INCLUDE_DIR, 0, 1}
+ ,
+ /* This is here ahead of GCC_INCLUDE_DIR because assert.h goes here.
+ * Likewise, behind LOCAL_INCLUDE_DIR, where glibc puts its assert.h. */
+ {
+ TOOL_INCLUDE_DIR, 0, 1}
+ ,
+ /* This is the dir for fixincludes. Put it just before
+ * the files that we fix. */
+ {
+ GCC_INCLUDE_DIR, 0, 0}
+ ,
+ /* Some systems have an extra dir of include files. */
+#ifdef SYSTEM_INCLUDE_DIR
+ {
+ SYSTEM_INCLUDE_DIR, 0, 0}
+ ,
+#endif
+ {
+ STANDARD_INCLUDE_DIR, 0, 0}
+ ,
+#endif /* not CROSS_COMPILE */
+ {
+ 0, 0, 0}
+};
+
+#endif /* no INCLUDE_DEFAULTS */
+
+/* Here is the actual list of #-directives, most-often-used first.
+ * The initialize_builtins function assumes #define is the very first. */
+
+static struct directive directive_table[] = {
+ {6, do_define, "define", T_DEFINE, 0, 1, 0},
+ {5, do_xifdef, "ifdef", T_IFDEF, 1, 0, 0},
+ {6, do_xifdef, "ifndef", T_IFNDEF, 1, 0, 0},
+ {7, do_include, "include", T_INCLUDE, 1, 0, 0},
+ {12, do_include, "include_next", T_INCLUDE_NEXT, 1, 0, 0},
+ {6, do_include, "import", T_IMPORT, 1, 0, 0},
+ {5, do_endif, "endif", T_ENDIF, 1, 0, 0},
+ {4, do_else, "else", T_ELSE, 1, 0, 0},
+ {2, do_if, "if", T_IF, 1, 0, 0},
+ {4, do_elif, "elif", T_ELIF, 1, 0, 0},
+ {5, do_undef, "undef", T_UNDEF, 0, 0, 0},
+ {5, do_error, "error", T_ERROR, 0, 0, 0},
+ {7, do_warning, "warning", T_WARNING, 0, 0, 0},
+ {6, do_pragma, "pragma", T_PRAGMA, 0, 0, 1},
+ {4, do_line, "line", T_LINE, 1, 0, 0},
+ {5, do_ident, "ident", T_IDENT, 1, 0, 1},
+#ifdef SCCS_DIRECTIVE
+ {4, do_sccs, "sccs", T_SCCS, 0, 0, 0},
+#endif
+ {6, do_assert, "assert", T_ASSERT, 1, 0, 0},
+ {8, do_unassert, "unassert", T_UNASSERT, 1, 0, 0},
+ {-1, 0, "", T_UNUSED, 0, 0, 0},
+};
+
+/* table to tell if char can be part of a C identifier. */
+unsigned char is_idchar[256];
+
+/* table to tell if char can be first char of a c identifier. */
+unsigned char is_idstart[256];
+
+/* table to tell if c is horizontal space. */
+unsigned char is_hor_space[256];
+
+/* table to tell if c is horizontal or vertical space. */
+static unsigned char is_space[256];
+
+/* Initialize syntactic classifications of characters. */
+
+static void
+initialize_char_syntax(struct cpp_options *opts)
+{
+ int i;
+
+ /*
+ * Set up is_idchar and is_idstart tables. These should be
+ * faster than saying (is_alpha (c) || c == '_'), etc.
+ * Set up these things before calling any routines tthat
+ * refer to them.
+ */
+ for (i = 'a'; i <= 'z'; i++)
+ {
+ is_idchar[i - 'a' + 'A'] = 1;
+ is_idchar[i] = 1;
+ is_idstart[i - 'a' + 'A'] = 1;
+ is_idstart[i] = 1;
+ }
+ for (i = '0'; i <= '9'; i++)
+ is_idchar[i] = 1;
+ is_idchar[(unsigned char)'_'] = 1;
+ is_idstart[(unsigned char)'_'] = 1;
+ is_idchar[(unsigned char)'$'] = opts->dollars_in_ident;
+ is_idstart[(unsigned char)'$'] = opts->dollars_in_ident;
+
+ /* horizontal space table */
+ is_hor_space[(unsigned char)' '] = 1;
+ is_hor_space[(unsigned char)'\t'] = 1;
+ is_hor_space[(unsigned char)'\v'] = 1;
+ is_hor_space[(unsigned char)'\f'] = 1;
+ is_hor_space[(unsigned char)'\r'] = 1;
+
+ is_space[(unsigned char)' '] = 1;
+ is_space[(unsigned char)'\t'] = 1;
+ is_space[(unsigned char)'\v'] = 1;
+ is_space[(unsigned char)'\f'] = 1;
+ is_space[(unsigned char)'\n'] = 1;
+ is_space[(unsigned char)'\r'] = 1;
+}
+
+/* Place into PFILE a quoted string representing the string SRC.
+ * Caller must reserve enough space in pfile->token_buffer. */
+static void
+quote_string(cpp_reader * pfile, const char *src)
+{
+ unsigned char c;
+
+ CPP_PUTC_Q(pfile, '\"');
+ for (;;)
+ switch ((c = *src++))
+ {
+ default:
+ if (isprint(c))
+ CPP_PUTC_Q(pfile, c);
+ else
+ {
+ sprintf((char *)CPP_PWRITTEN(pfile), "\\%03o", c);
+ CPP_ADJUST_WRITTEN(pfile, 4);
+ }
+ break;
+
+ case '\"':
+ case '\\':
+ CPP_PUTC_Q(pfile, '\\');
+ CPP_PUTC_Q(pfile, c);
+ break;
+
+ case '\0':
+ CPP_PUTC_Q(pfile, '\"');
+ CPP_NUL_TERMINATE_Q(pfile);
+ return;
+ }
+}
+
+/* Make sure PFILE->token_buffer will hold at least N more chars. */
+
+void
+cpp_grow_buffer(cpp_reader * pfile, long n)
+{
+ long old_written = CPP_WRITTEN(pfile);
+
+ pfile->token_buffer_size = n + 2 * pfile->token_buffer_size;
+ pfile->token_buffer =
+ (unsigned char *)xrealloc(pfile->token_buffer, pfile->token_buffer_size);
+ CPP_SET_WRITTEN(pfile, old_written);
+}
+
+/*
+ * process a given definition string, for initialization
+ * If STR is just an identifier, define it with value 1.
+ * If STR has anything after the identifier, then it should
+ * be identifier=definition.
+ */
+
+void
+cpp_define(cpp_reader * pfile, unsigned char *str)
+{
+ unsigned char *buf, *p;
+
+ buf = str;
+ p = str;
+ if (!is_idstart[*p])
+ {
+ cpp_error(pfile, "malformed option `-D %s'", str);
+ return;
+ }
+ while (is_idchar[*++p])
+ ;
+ if (*p == 0)
+ {
+ buf = (unsigned char *)alloca(p - buf + 4);
+ strcpy((char *)buf, (const char *)str);
+ strcat((char *)buf, " 1");
+ }
+ else if (*p != '=')
+ {
+ cpp_error(pfile, "malformed option `-D %s'", str);
+ return;
+ }
+ else
+ {
+ unsigned char *q;
+
+ /* Copy the entire option so we can modify it. */
+ buf = (unsigned char *)alloca(2 * strlen((char *)str) + 1);
+ strncpy((char *)buf, (const char *)str, p - str);
+ /* Change the = to a space. */
+ buf[p - str] = ' ';
+ /* Scan for any backslash-newline and remove it. */
+ p++;
+ q = &buf[p - str];
+ while (*p)
+ {
+ if (*p == '\\' && p[1] == '\n')
+ p += 2;
+ else
+ *q++ = *p++;
+ }
+ *q = 0;
+ }
+
+ do_define(pfile, NULL, buf, buf + strlen((char *)buf));
+}
+
+/* Process the string STR as if it appeared as the body of a #assert.
+ * OPTION is the option name for which STR was the argument. */
+
+static void
+make_assertion(cpp_reader * pfile, const char *option, const char *str)
+{
+ cpp_buffer *ip;
+ unsigned char *buf, *p, *q;
+
+ /* Copy the entire option so we can modify it. */
+ buf = (unsigned char *)alloca(strlen((char *)str) + 1);
+ strcpy((char *)buf, (const char *)str);
+ /* Scan for any backslash-newline and remove it. */
+ p = q = buf;
+ while (*p)
+ {
+ *q++ = *p++;
+ }
+ *q = 0;
+
+ p = buf;
+ if (!is_idstart[*p])
+ {
+ cpp_error(pfile, "malformed option `%s %s'", option, str);
+ return;
+ }
+ while (is_idchar[*++p])
+ ;
+ while (*p == ' ' || *p == '\t')
+ p++;
+ if (!(*p == 0 || *p == '('))
+ {
+ cpp_error(pfile, "malformed option `%s %s'", option, str);
+ return;
+ }
+ ip = cpp_push_buffer(pfile, buf, strlen((char *)buf));
+ do_assert(pfile, NULL, NULL, NULL);
+ cpp_pop_buffer(pfile);
+}
+
+/* Append a chain of `struct file_name_list's
+ * to the end of the main include chain.
+ * FIRST is the beginning of the chain to append, and LAST is the end. */
+
+static void
+append_include_chain(cpp_reader * pfile, struct file_name_list *first,
+ struct file_name_list *last)
+{
+ struct cpp_options *opts = CPP_OPTIONS(pfile);
+ struct file_name_list *dir;
+
+ if (!first || !last)
+ return;
+
+ if (opts->include == 0)
+ opts->include = first;
+ else
+ opts->last_include->next = first;
+
+ if (opts->first_bracket_include == 0)
+ opts->first_bracket_include = first;
+
+ for (dir = first;; dir = dir->next)
+ {
+ int len = strlen(dir->fname) + INCLUDE_LEN_FUDGE;
+
+ if (len > pfile->max_include_len)
+ pfile->max_include_len = len;
+ if (dir == last)
+ break;
+ }
+
+ last->next = NULL;
+ opts->last_include = last;
+}
+
+/* Add output to `deps_buffer' for the -M switch.
+ * STRING points to the text to be output.
+ * SPACER is ':' for targets, ' ' for dependencies, zero for text
+ * to be inserted literally. */
+
+static void
+deps_output(cpp_reader * pfile, const char *string, int spacer)
+{
+ int size = strlen(string);
+
+ if (size == 0)
+ return;
+
+#ifndef MAX_OUTPUT_COLUMNS
+#define MAX_OUTPUT_COLUMNS 72
+#endif
+ if (spacer
+ && pfile->deps_column > 0
+ && (pfile->deps_column + size) > MAX_OUTPUT_COLUMNS)
+ {
+ deps_output(pfile, " \\\n ", 0);
+ pfile->deps_column = 0;
+ }
+ if (pfile->deps_size + size + 8 > pfile->deps_allocated_size)
+ {
+ pfile->deps_allocated_size = (pfile->deps_size + size + 50) * 2;
+ pfile->deps_buffer = (char *)xrealloc(pfile->deps_buffer,
+ pfile->deps_allocated_size);
+ }
+ if (spacer == ' ' && pfile->deps_column > 0)
+ pfile->deps_buffer[pfile->deps_size++] = ' ';
+ memcpy(&pfile->deps_buffer[pfile->deps_size], string, size);
+ pfile->deps_size += size;
+ pfile->deps_column += size;
+ if (spacer == ':')
+ pfile->deps_buffer[pfile->deps_size++] = ':';
+ pfile->deps_buffer[pfile->deps_size] = 0;
+}
+
+/* Given a colon-separated list of file names PATH,
+ * add all the names to the search path for include files. */
+
+static void
+path_include(cpp_reader * pfile, char *path)
+{
+ char *p;
+
+ p = path;
+
+ if (*p)
+ while (1)
+ {
+ char *q = p;
+ char *name;
+ struct file_name_list *dirtmp;
+
+ /* Find the end of this name. */
+ while (*q != 0 && *q != PATH_SEPARATOR)
+ q++;
+ if (p == q)
+ {
+ /* An empty name in the path stands for the current directory. */
+ name = (char *)xmalloc(2);
+ name[0] = '.';
+ name[1] = 0;
+ }
+ else
+ {
+ /* Otherwise use the directory that is named. */
+ name = (char *)xmalloc(q - p + 1);
+ memcpy(name, p, q - p);
+ name[q - p] = 0;
+ }
+
+ dirtmp =
+ (struct file_name_list *)xmalloc(sizeof(struct file_name_list));
+
+ dirtmp->next = 0; /* New one goes on the end */
+ dirtmp->control_macro = 0;
+ dirtmp->c_system_include_path = 0;
+ dirtmp->fname = name;
+ dirtmp->got_name_map = 0;
+ append_include_chain(pfile, dirtmp, dirtmp);
+
+ /* Advance past this name. */
+ p = q;
+ if (*p == 0)
+ break;
+ /* Skip the colon. */
+ p++;
+ }
+}
+
+void
+init_parse_options(struct cpp_options *opts)
+{
+ memset((char *)opts, 0, sizeof *opts);
+ opts->in_fname = NULL;
+ opts->out_fname = NULL;
+
+ /* Initialize is_idchar to allow $. */
+ opts->dollars_in_ident = 1;
+ initialize_char_syntax(opts);
+ opts->dollars_in_ident = DOLLARS_IN_IDENTIFIERS > 0;
+
+ opts->no_line_commands = 0;
+ opts->no_trigraphs = 1;
+ opts->put_out_comments = 0;
+ opts->print_include_names = 0;
+ opts->dump_macros = dump_none;
+ opts->no_output = 0;
+ opts->cplusplus = 0;
+ opts->cplusplus_comments = 1;
+
+ opts->verbose = 0;
+ opts->objc = 0;
+ opts->lang_asm = 0;
+ opts->for_lint = 0;
+ opts->chill = 0;
+ opts->pedantic_errors = 0;
+ opts->inhibit_warnings = 0;
+ opts->warn_comments = 0;
+ opts->warn_import = 1;
+ opts->warnings_are_errors = 0;
+}
+
+static enum cpp_token
+null_underflow(cpp_reader * pfile)
+{
+ pfile = NULL;
+ return CPP_EOF;
+}
+
+static int
+null_cleanup(cpp_buffer * pbuf, cpp_reader * pfile)
+{
+ pbuf = NULL;
+ pfile = NULL;
+ return 0;
+}
+
+static int
+macro_cleanup(cpp_buffer * pbuf, cpp_reader * pfile)
+{
+ HASHNODE *macro = (HASHNODE *) pbuf->data;
+
+ pfile = NULL;
+ if (macro->type == T_DISABLED)
+ macro->type = T_MACRO;
+ if (macro->type != T_MACRO || pbuf->buf != macro->value.defn->expansion)
+ free(pbuf->buf);
+ return 0;
+}
+
+static int
+file_cleanup(cpp_buffer * pbuf, cpp_reader * pfile)
+{
+ pfile = NULL;
+ if (pbuf->buf)
+ {
+ free(pbuf->buf);
+ pbuf->buf = 0;
+ }
+ return 0;
+}
+
+/* Assuming we have read '/'.
+ * If this is the start of a comment (followed by '*' or '/'),
+ * skip to the end of the comment, and return ' '.
+ * Return EOF if we reached the end of file before the end of the comment.
+ * If not the start of a comment, return '/'. */
+
+static int
+skip_comment(cpp_reader * pfile, long *linep)
+{
+ int c = 0;
+
+ while (PEEKC() == '\\' && PEEKN(1) == '\n')
+ {
+ if (linep)
+ (*linep)++;
+ FORWARD(2);
+ }
+ if (PEEKC() == '*')
+ {
+ FORWARD(1);
+ for (;;)
+ {
+ int prev_c = c;
+
+ c = GETC();
+ if (c == EOF)
+ return EOF;
+ while (c == '\\' && PEEKC() == '\n')
+ {
+ if (linep)
+ (*linep)++;
+ FORWARD(1), c = GETC();
+ }
+ if (prev_c == '*' && c == '/')
+ return ' ';
+ if (c == '\n' && linep)
+ (*linep)++;
+ }
+ }
+ else if (PEEKC() == '/' && CPP_OPTIONS(pfile)->cplusplus_comments)
+ {
+ FORWARD(1);
+ for (;;)
+ {
+ c = GETC();
+ if (c == EOF)
+ return ' '; /* Allow // to be terminated by EOF. */
+ while (c == '\\' && PEEKC() == '\n')
+ {
+ FORWARD(1);
+ c = GETC();
+ if (linep)
+ (*linep)++;
+ }
+ if (c == '\n')
+ {
+ /* Don't consider final '\n' to be part of comment. */
+ FORWARD(-1);
+ return ' ';
+ }
+ }
+ }
+ else
+ return '/';
+}
+
+/* Skip whitespace \-newline and comments. Does not macro-expand. */
+void
+cpp_skip_hspace(cpp_reader * pfile)
+{
+ while (1)
+ {
+ int c = PEEKC();
+
+ if (c == EOF)
+ return; /* FIXME */
+ if (is_hor_space[c])
+ {
+ if ((c == '\f' || c == '\v') && CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "%s in preprocessing directive",
+ c == '\f' ? "formfeed" : "vertical tab");
+ FORWARD(1);
+ }
+ else if (c == '/')
+ {
+ FORWARD(1);
+ c = skip_comment(pfile, NULL);
+ if (c == '/')
+ FORWARD(-1);
+ if (c == EOF || c == '/')
+ return;
+ }
+ else if (c == '\\' && PEEKN(1) == '\n')
+ {
+ FORWARD(2);
+ }
+ else if (c == '@' && CPP_BUFFER(pfile)->has_escapes
+ && is_hor_space[PEEKN(1)])
+ FORWARD(2);
+ else
+ return;
+ }
+}
+
+/* Read the rest of the current line.
+ * The line is appended to PFILE's output buffer. */
+
+static void
+copy_rest_of_line(cpp_reader * pfile)
+{
+ struct cpp_options *opts = CPP_OPTIONS(pfile);
+
+ for (;;)
+ {
+ int c = GETC();
+ int nextc;
+
+ switch (c)
+ {
+ case EOF:
+ goto end_directive;
+ case '\\':
+ if (PEEKC() == '\n')
+ {
+ FORWARD(1);
+ continue;
+ }
+ case '\'':
+ case '\"':
+ goto scan_directive_token;
+ break;
+ case '/':
+ nextc = PEEKC();
+ if (nextc == '*' || (opts->cplusplus_comments && nextc == '*'))
+ goto scan_directive_token;
+ break;
+ case '\f':
+ case '\v':
+ if (CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "%s in preprocessing directive",
+ c == '\f' ? "formfeed" : "vertical tab");
+ break;
+
+ case '\n':
+ FORWARD(-1);
+ goto end_directive;
+ scan_directive_token:
+ FORWARD(-1);
+ cpp_get_token(pfile);
+ continue;
+ }
+ CPP_PUTC(pfile, c);
+ }
+ end_directive:;
+ CPP_NUL_TERMINATE(pfile);
+}
+
+void
+skip_rest_of_line(cpp_reader * pfile)
+{
+ long old = CPP_WRITTEN(pfile);
+
+ copy_rest_of_line(pfile);
+ CPP_SET_WRITTEN(pfile, old);
+}
+
+/* Handle a possible # directive.
+ * '#' has already been read. */
+
+static int
+handle_directive(cpp_reader * pfile)
+{
+ int c;
+ struct directive *kt;
+ int ident_length;
+ long after_ident = 0;
+ unsigned char *ident, *line_end;
+ long old_written = CPP_WRITTEN(pfile);
+
+ cpp_skip_hspace(pfile);
+
+ c = PEEKC();
+ if (c >= '0' && c <= '9')
+ {
+ /* Handle # followed by a line number. */
+ if (CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "`#' followed by integer");
+ do_line(pfile, NULL, NULL, NULL);
+ goto done_a_directive;
+ }
+ /* Now find the directive name. */
+ CPP_PUTC(pfile, '#');
+ parse_name(pfile, GETC());
+ ident = pfile->token_buffer + old_written + 1;
+ ident_length = CPP_PWRITTEN(pfile) - ident;
+ if (ident_length == 0 && PEEKC() == '\n')
+ {
+ /* A line of just `#' becomes blank. */
+ goto done_a_directive;
+ }
+ /*
+ * Decode the keyword and call the appropriate expansion
+ * routine, after moving the input pointer up to the next line.
+ */
+ for (kt = directive_table;; kt++)
+ {
+ if (kt->length <= 0)
+ goto not_a_directive;
+ if (kt->length == ident_length
+ && !strncmp(kt->name, (const char *)ident, ident_length))
+ break;
+ }
+
+ if (!kt->command_reads_line)
+ {
+ /* Nonzero means do not delete comments within the directive.
+ * #define needs this when -traditional. */
+ int comments = CPP_TRADITIONAL(pfile)
+ && kt->traditional_comments;
+ int save_put_out_comments =
+ CPP_OPTIONS(pfile)->put_out_comments;
+
+ CPP_OPTIONS(pfile)->put_out_comments = comments;
+ after_ident = CPP_WRITTEN(pfile);
+ copy_rest_of_line(pfile);
+ CPP_OPTIONS(pfile)->put_out_comments = save_put_out_comments;
+ }
+ /* For #pragma and #define, we may want to pass through the directive.
+ * Other directives may create output, but we don't want the directive
+ * itself out, so we pop it now. For example #include may write a #line
+ * command (see comment in do_include), and conditionals may emit
+ * #failed ... #endfailed stuff. But note that popping the buffer
+ * means the parameters to kt->func may point after pfile->limit
+ * so these parameters are invalid as soon as something gets appended
+ * to the token_buffer. */
+
+ line_end = CPP_PWRITTEN(pfile);
+ if (!kt->pass_thru && kt->type != T_DEFINE)
+ CPP_SET_WRITTEN(pfile, old_written);
+
+ (*kt->func) (pfile, kt, pfile->token_buffer + after_ident, line_end);
+ if (kt->pass_thru
+ || (kt->type == T_DEFINE
+ && CPP_OPTIONS(pfile)->dump_macros == dump_definitions))
+ {
+ /* Just leave the entire #define in the output stack. */
+ }
+ else if (kt->type == T_DEFINE
+ && CPP_OPTIONS(pfile)->dump_macros == dump_names)
+ {
+ unsigned char *p = pfile->token_buffer + old_written + 7; /* Skip "#define". */
+
+ SKIP_WHITE_SPACE(p);
+ while (is_idchar[*p])
+ p++;
+ pfile->limit = p;
+ CPP_PUTC(pfile, '\n');
+ }
+ else if (kt->type == T_DEFINE)
+ CPP_SET_WRITTEN(pfile, old_written);
+ done_a_directive:
+ return 1;
+
+ not_a_directive:
+ return 0;
+}
+
+/* Pass a directive through to the output file.
+ * BUF points to the contents of the directive, as a contiguous string.
+ * LIMIT points to the first character past the end of the directive.
+ * KEYWORD is the keyword-table entry for the directive. */
+
+static void
+pass_thru_directive(char *buf, char *limit, cpp_reader * pfile,
+ struct directive *keyword)
+{
+ unsigned keyword_length = keyword->length;
+
+ CPP_RESERVE(pfile, 1 + keyword_length + (limit - buf));
+ CPP_PUTC_Q(pfile, '#');
+ CPP_PUTS_Q(pfile, keyword->name, keyword_length);
+ if (limit != buf && buf[0] != ' ')
+ CPP_PUTC_Q(pfile, ' ');
+ CPP_PUTS_Q(pfile, buf, limit - buf);
+}
+
+/* The arglist structure is built by do_define to tell
+ * collect_definition where the argument names begin. That
+ * is, for a define like "#define f(x,y,z) foo+x-bar*y", the arglist
+ * would contain pointers to the strings x, y, and z.
+ * Collect_definition would then build a DEFINITION node,
+ * with reflist nodes pointing to the places x, y, and z had
+ * appeared. So the arglist is just convenience data passed
+ * between these two routines. It is not kept around after
+ * the current #define has been processed and entered into the
+ * hash table. */
+
+struct arglist {
+ struct arglist *next;
+ char *name;
+ int length;
+ int argno;
+ char rest_args;
+};
+
+/* Read a replacement list for a macro with parameters.
+ * Build the DEFINITION structure.
+ * Reads characters of text starting at BUF until END.
+ * ARGLIST specifies the formal parameters to look for
+ * in the text of the definition; NARGS is the number of args
+ * in that list, or -1 for a macro name that wants no argument list.
+ * MACRONAME is the macro name itself (so we can avoid recursive expansion)
+ * and NAMELEN is its length in characters.
+ *
+ * Note that comments, backslash-newlines, and leading white space
+ * have already been deleted from the argument. */
+
+static DEFINITION *
+collect_expansion(cpp_reader * pfile, unsigned char *buf, unsigned char *limit,
+ int nargs, struct arglist *arglist)
+{
+ DEFINITION *defn;
+ unsigned char *p, *lastp, *exp_p;
+ struct reflist *endpat = NULL;
+
+ /* Pointer to first nonspace after last ## seen. */
+ unsigned char *concat = 0;
+
+ /* Pointer to first nonspace after last single-# seen. */
+ unsigned char *stringify = 0;
+ int maxsize;
+ int expected_delimiter = '\0';
+
+ /* Scan thru the replacement list, ignoring comments and quoted
+ * strings, picking up on the macro calls. It does a linear search
+ * thru the arg list on every potential symbol. Profiling might say
+ * that something smarter should happen. */
+
+ if (limit < buf)
+ abort();
+
+ /* Find the beginning of the trailing whitespace. */
+ p = buf;
+ while (p < limit && is_space[limit[-1]])
+ limit--;
+
+ /* Allocate space for the text in the macro definition.
+ * Leading and trailing whitespace chars need 2 bytes each.
+ * Each other input char may or may not need 1 byte,
+ * so this is an upper bound. The extra 5 are for invented
+ * leading and trailing newline-marker and final null. */
+ maxsize = (sizeof(DEFINITION) + (limit - p) + 5);
+ /* Occurrences of '@' get doubled, so allocate extra space for them. */
+ while (p < limit)
+ if (*p++ == '@')
+ maxsize++;
+ defn = (DEFINITION *) xcalloc(1, maxsize);
+
+ defn->nargs = nargs;
+ exp_p = defn->expansion = (unsigned char *)defn + sizeof(DEFINITION);
+ lastp = exp_p;
+
+ p = buf;
+
+ /* Add one initial space escape-marker to prevent accidental
+ * token-pasting (often removed by macroexpand). */
+ *exp_p++ = '@';
+ *exp_p++ = ' ';
+
+ if (limit - p >= 2 && p[0] == '#' && p[1] == '#')
+ {
+ cpp_error(pfile, "`##' at start of macro definition");
+ p += 2;
+ }
+ /* Process the main body of the definition. */
+ while (p < limit)
+ {
+ int skipped_arg = 0;
+ unsigned char c = *p++;
+
+ *exp_p++ = c;
+
+ if (!CPP_TRADITIONAL(pfile))
+ {
+ switch (c)
+ {
+ case '\'':
+ case '\"':
+ if (expected_delimiter != '\0')
+ {
+ if (c == expected_delimiter)
+ expected_delimiter = '\0';
+ }
+ else
+ expected_delimiter = c;
+ break;
+
+ case '\\':
+ if (p < limit && expected_delimiter)
+ {
+ /* In a string, backslash goes through
+ * and makes next char ordinary. */
+ *exp_p++ = *p++;
+ }
+ break;
+
+ case '@':
+ /* An '@' in a string or character constant stands for itself,
+ * and does not need to be escaped. */
+ if (!expected_delimiter)
+ *exp_p++ = c;
+ break;
+
+ case '#':
+ /* # is ordinary inside a string. */
+ if (expected_delimiter)
+ break;
+ if (p < limit && *p == '#')
+ {
+ /* ##: concatenate preceding and following tokens. */
+ /* Take out the first #, discard preceding whitespace. */
+ exp_p--;
+ while (exp_p > lastp && is_hor_space[exp_p[-1]])
+ --exp_p;
+ /* Skip the second #. */
+ p++;
+ /* Discard following whitespace. */
+ SKIP_WHITE_SPACE(p);
+ concat = p;
+ if (p == limit)
+ cpp_error(pfile, "`##' at end of macro definition");
+ }
+ else if (nargs >= 0)
+ {
+ /* Single #: stringify following argument ref.
+ * Don't leave the # in the expansion. */
+ exp_p--;
+ SKIP_WHITE_SPACE(p);
+ if (p == limit || !is_idstart[*p])
+ cpp_error(pfile,
+ "`#' operator is not followed by a macro argument name");
+ else
+ stringify = p;
+ }
+ break;
+ }
+ }
+ else
+ {
+ /* In -traditional mode, recognize arguments inside strings and
+ * and character constants, and ignore special properties of #.
+ * Arguments inside strings are considered "stringified", but no
+ * extra quote marks are supplied. */
+ switch (c)
+ {
+ case '\'':
+ case '\"':
+ if (expected_delimiter != '\0')
+ {
+ if (c == expected_delimiter)
+ expected_delimiter = '\0';
+ }
+ else
+ expected_delimiter = c;
+ break;
+
+ case '\\':
+ /* Backslash quotes delimiters and itself, but not macro args. */
+ if (expected_delimiter != 0 && p < limit
+ && (*p == expected_delimiter || *p == '\\'))
+ {
+ *exp_p++ = *p++;
+ continue;
+ }
+ break;
+
+ case '/':
+ if (expected_delimiter != '\0') /* No comments inside strings. */
+ break;
+ if (*p == '*')
+ {
+ /* If we find a comment that wasn't removed by handle_directive,
+ * this must be -traditional. So replace the comment with
+ * nothing at all. */
+ exp_p--;
+ p += 1;
+ while (p < limit && !(p[-2] == '*' && p[-1] == '/'))
+ p++;
+ }
+ break;
+ }
+ }
+
+ /* Handle the start of a symbol. */
+ if (is_idchar[c] && nargs > 0)
+ {
+ unsigned char *id_beg = p - 1;
+ int id_len;
+
+ --exp_p;
+ while (p != limit && is_idchar[*p])
+ p++;
+ id_len = p - id_beg;
+
+ if (is_idstart[c])
+ {
+ struct arglist *arg;
+
+ for (arg = arglist; arg != NULL; arg = arg->next)
+ {
+ struct reflist *tpat;
+
+ if (arg->name[0] == c
+ && arg->length == id_len
+ && strncmp((const char *)arg->name,
+ (const char *)id_beg, id_len) == 0)
+ {
+ if (expected_delimiter
+ && CPP_OPTIONS(pfile)->warn_stringify)
+ {
+ if (CPP_TRADITIONAL(pfile))
+ {
+ cpp_warning(pfile,
+ "macro argument `%.*s' is stringified.",
+ id_len, arg->name);
+ }
+ else
+ {
+ cpp_warning(pfile,
+ "macro arg `%.*s' would be stringified with -traditional.",
+ id_len, arg->name);
+ }
+ }
+ /* If ANSI, don't actually substitute inside a string. */
+ if (!CPP_TRADITIONAL(pfile) && expected_delimiter)
+ break;
+ /* make a pat node for this arg and append it to the end of
+ * the pat list */
+ tpat =
+ (struct reflist *)
+ xmalloc(sizeof(struct reflist));
+
+ tpat->next = NULL;
+ tpat->raw_before = concat == id_beg;
+ tpat->raw_after = 0;
+ tpat->rest_args = arg->rest_args;
+ tpat->stringify = (CPP_TRADITIONAL(pfile)
+ ? expected_delimiter != '\0'
+ : stringify == id_beg);
+
+ if (endpat == NULL)
+ defn->pattern = tpat;
+ else
+ endpat->next = tpat;
+ endpat = tpat;
+
+ tpat->argno = arg->argno;
+ tpat->nchars = exp_p - lastp;
+ {
+ unsigned char *p1 = p;
+
+ SKIP_WHITE_SPACE(p1);
+ if (p1 + 2 <= limit && p1[0] == '#'
+ && p1[1] == '#')
+ tpat->raw_after = 1;
+ }
+ lastp = exp_p; /* place to start copying from next time */
+ skipped_arg = 1;
+ break;
+ }
+ }
+ }
+ /* If this was not a macro arg, copy it into the expansion. */
+ if (!skipped_arg)
+ {
+ unsigned char *lim1 = p;
+
+ p = id_beg;
+ while (p != lim1)
+ *exp_p++ = *p++;
+ if (stringify == id_beg)
+ cpp_error(pfile,
+ "`#' operator should be followed by a macro argument name");
+ }
+ }
+ }
+
+ if (!CPP_TRADITIONAL(pfile) && expected_delimiter == 0)
+ {
+ /* If ANSI, put in a "@ " marker to prevent token pasting.
+ * But not if "inside a string" (which in ANSI mode
+ * happens only for -D option). */
+ *exp_p++ = '@';
+ *exp_p++ = ' ';
+ }
+ *exp_p = '\0';
+
+ defn->length = exp_p - defn->expansion;
+
+ /* Crash now if we overrun the allocated size. */
+ if (defn->length + 1 > maxsize)
+ abort();
+
+ return defn;
+}
+
+/*
+ * special extension string that can be added to the last macro argument to
+ * allow it to absorb the "rest" of the arguments when expanded. Ex:
+ * #define wow(a, b...) process (b, a, b)
+ * { wow (1, 2, 3); } -> { process (2, 3, 1, 2, 3); }
+ * { wow (one, two); } -> { process (two, one, two); }
+ * if this "rest_arg" is used with the concat token '##' and if it is not
+ * supplied then the token attached to with ## will not be outputted. Ex:
+ * #define wow (a, b...) process (b ## , a, ## b)
+ * { wow (1, 2); } -> { process (2, 1, 2); }
+ * { wow (one); } -> { process (one); {
+ */
+static char rest_extension[] = "...";
+
+#define REST_EXTENSION_LENGTH (sizeof (rest_extension) - 1)
+
+/* Create a DEFINITION node from a #define directive. Arguments are
+ * as for do_define. */
+static void
+create_definition(MACRODEF * mdef, unsigned char *buf, unsigned char *limit,
+ cpp_reader * pfile, int predefinition)
+{
+ unsigned char *bp; /* temp ptr into input buffer */
+ unsigned char *symname; /* remember where symbol name starts */
+ int sym_length; /* and how long it is */
+ int rest_args = 0;
+ long line, col;
+ const char *file =
+ CPP_BUFFER(pfile) ? CPP_BUFFER(pfile)->nominal_fname : "";
+ DEFINITION *defn;
+ int arglengths = 0; /* Accumulate lengths of arg names
+ * plus number of args. */
+
+ cpp_buf_line_and_col(CPP_BUFFER(pfile), &line, &col);
+
+ bp = buf;
+
+ while (is_hor_space[*bp])
+ bp++;
+
+ symname = bp; /* remember where it starts */
+
+ sym_length = check_macro_name(pfile, bp, "macro");
+ bp += sym_length;
+
+ /* Lossage will occur if identifiers or control keywords are broken
+ * across lines using backslash. This is not the right place to take
+ * care of that. */
+
+ if (*bp == '(')
+ {
+ struct arglist *arg_ptrs = NULL;
+ int argno = 0;
+
+ bp++; /* skip '(' */
+ SKIP_WHITE_SPACE(bp);
+
+ /* Loop over macro argument names. */
+ while (*bp != ')')
+ {
+ struct arglist *temp;
+
+ temp = (struct arglist *)alloca(sizeof(struct arglist));
+
+ temp->name = (char *)bp;
+ temp->next = arg_ptrs;
+ temp->argno = argno++;
+ temp->rest_args = 0;
+ arg_ptrs = temp;
+
+ if (rest_args)
+ cpp_pedwarn(pfile, "another parameter follows `%s'",
+ rest_extension);
+
+ if (!is_idstart[*bp])
+ cpp_pedwarn(pfile, "invalid character in macro parameter name");
+
+ /* Find the end of the arg name. */
+ while (is_idchar[*bp])
+ {
+ bp++;
+ /* do we have a "special" rest-args extension here? */
+ if ((unsigned)(limit - bp) > REST_EXTENSION_LENGTH &&
+ strncmp(rest_extension, (const char *)bp,
+ REST_EXTENSION_LENGTH) == 0)
+ {
+ rest_args = 1;
+ temp->rest_args = 1;
+ break;
+ }
+ }
+ temp->length = (char *)bp - temp->name;
+ if (rest_args == 1)
+ bp += REST_EXTENSION_LENGTH;
+ arglengths += temp->length + 2;
+ SKIP_WHITE_SPACE(bp);
+ if (temp->length == 0 || (*bp != ',' && *bp != ')'))
+ {
+ cpp_error(pfile,
+ "badly punctuated parameter list in `#define'");
+ goto nope;
+ }
+ if (*bp == ',')
+ {
+ bp++;
+ SKIP_WHITE_SPACE(bp);
+ }
+ if (bp >= limit)
+ {
+ cpp_error(pfile, "unterminated parameter list in `#define'");
+ goto nope;
+ }
+ {
+ struct arglist *otemp;
+
+ for (otemp = temp->next; otemp != NULL; otemp = otemp->next)
+ if (temp->length == otemp->length &&
+ strncmp((const char *)temp->name,
+ (const char *)otemp->name, temp->length) == 0)
+ {
+ char *name;
+
+ name = (char *)alloca(temp->length + 1);
+ strncpy(name, (const char *)temp->name, temp->length);
+ name[temp->length] = '\0';
+ cpp_error(pfile,
+ "duplicate argument name `%s' in `#define'",
+ name);
+ goto nope;
+ }
+ }
+ }
+
+ ++bp; /* skip paren */
+ SKIP_WHITE_SPACE(bp);
+ /* now everything from bp before limit is the definition. */
+ defn = collect_expansion(pfile, bp, limit, argno, arg_ptrs);
+ defn->rest_args = rest_args;
+
+ /* Now set defn->args.argnames to the result of concatenating
+ * the argument names in reverse order
+ * with comma-space between them. */
+ defn->args.argnames = (unsigned char *)xmalloc(arglengths + 1);
+ {
+ struct arglist *temp;
+ int i = 0;
+
+ for (temp = arg_ptrs; temp; temp = temp->next)
+ {
+ memcpy(&defn->args.argnames[i], temp->name, temp->length);
+ i += temp->length;
+ if (temp->next != 0)
+ {
+ defn->args.argnames[i++] = ',';
+ defn->args.argnames[i++] = ' ';
+ }
+ }
+ defn->args.argnames[i] = 0;
+ }
+ }
+ else
+ {
+ /* Simple expansion or empty definition. */
+
+ if (bp < limit)
+ {
+ if (is_hor_space[*bp])
+ {
+ bp++;
+ SKIP_WHITE_SPACE(bp);
+ }
+ else
+ {
+ switch (*bp)
+ {
+ case '!':
+ case '"':
+ case '#':
+ case '%':
+ case '&':
+ case '\'':
+ case ')':
+ case '*':
+ case '+':
+ case ',':
+ case '-':
+ case '.':
+ case '/':
+ case ':':
+ case ';':
+ case '<':
+ case '=':
+ case '>':
+ case '?':
+ case '[':
+ case '\\':
+ case ']':
+ case '^':
+ case '{':
+ case '|':
+ case '}':
+ case '~':
+ cpp_warning(pfile,
+ "missing white space after `#define %.*s'",
+ sym_length, symname);
+ break;
+
+ default:
+ cpp_pedwarn(pfile,
+ "missing white space after `#define %.*s'",
+ sym_length, symname);
+ break;
+ }
+ }
+ }
+ /* now everything from bp before limit is the definition. */
+ defn = collect_expansion(pfile, bp, limit, -1, NULL);
+ defn->args.argnames = (unsigned char *)"";
+ }
+
+ defn->line = line;
+ defn->file = file;
+
+ /* OP is null if this is a predefinition */
+ defn->predefined = predefinition;
+ mdef->defn = defn;
+ mdef->symnam = (char *)symname;
+ mdef->symlen = sym_length;
+
+ return;
+
+ nope:
+ mdef->defn = 0;
+}
+
+/* Check a purported macro name SYMNAME, and yield its length.
+ * USAGE is the kind of name this is intended for. */
+
+static int
+check_macro_name(cpp_reader * pfile, unsigned char *symname, const char *usage)
+{
+ unsigned char *p;
+ int sym_length;
+
+ for (p = symname; is_idchar[*p]; p++)
+ ;
+ sym_length = p - symname;
+ if (sym_length == 0)
+ {
+ cpp_error(pfile, "invalid %s name", usage);
+ }
+ else if (!is_idstart[*symname])
+ {
+ unsigned char *msg; /* what pain... */
+
+ msg = (unsigned char *)alloca(sym_length + 1);
+ memcpy(msg, symname, sym_length);
+ msg[sym_length] = 0;
+ cpp_error(pfile, "invalid %s name `%s'", usage, msg);
+ }
+ else
+ {
+ if (!strncmp((const char *)symname, "defined", 7) && sym_length == 7)
+ cpp_error(pfile, "invalid %s name `defined'", usage);
+ }
+ return sym_length;
+}
+
+/*
+ * return zero if two DEFINITIONs are isomorphic
+ */
+static int
+compare_defs(DEFINITION * d1, DEFINITION * d2)
+{
+ struct reflist *a1, *a2;
+ unsigned char *p1 = d1->expansion;
+ unsigned char *p2 = d2->expansion;
+ int first = 1;
+
+ if (d1->nargs != d2->nargs)
+ return 1;
+ if (strcmp((char *)d1->args.argnames, (char *)d2->args.argnames))
+ return 1;
+ for (a1 = d1->pattern, a2 = d2->pattern; a1 && a2;
+ a1 = a1->next, a2 = a2->next)
+ {
+ if (!
+ ((a1->nchars == a2->nchars
+ && !strncmp((const char *)p1, (const char *)p2, a1->nchars))
+ || !comp_def_part(first, p1, a1->nchars, p2, a2->nchars, 0))
+ || a1->argno != a2->argno || a1->stringify != a2->stringify
+ || a1->raw_before != a2->raw_before
+ || a1->raw_after != a2->raw_after)
+ return 1;
+ first = 0;
+ p1 += a1->nchars;
+ p2 += a2->nchars;
+ }
+ if (a1 != a2)
+ return 1;
+ if (comp_def_part(first, p1, d1->length - (p1 - d1->expansion),
+ p2, d2->length - (p2 - d2->expansion), 1))
+ return 1;
+ return 0;
+}
+
+/* Return 1 if two parts of two macro definitions are effectively different.
+ * One of the parts starts at BEG1 and has LEN1 chars;
+ * the other has LEN2 chars at BEG2.
+ * Any sequence of whitespace matches any other sequence of whitespace.
+ * FIRST means these parts are the first of a macro definition;
+ * so ignore leading whitespace entirely.
+ * LAST means these parts are the last of a macro definition;
+ * so ignore trailing whitespace entirely. */
+
+static int
+comp_def_part(int first, unsigned char *beg1, int len1,
+ unsigned char *beg2, int len2, int last)
+{
+ unsigned char *end1 = beg1 + len1;
+ unsigned char *end2 = beg2 + len2;
+
+ if (first)
+ {
+ while (beg1 != end1 && is_space[*beg1])
+ beg1++;
+ while (beg2 != end2 && is_space[*beg2])
+ beg2++;
+ }
+ if (last)
+ {
+ while (beg1 != end1 && is_space[end1[-1]])
+ end1--;
+ while (beg2 != end2 && is_space[end2[-1]])
+ end2--;
+ }
+ while (beg1 != end1 && beg2 != end2)
+ {
+ if (is_space[*beg1] && is_space[*beg2])
+ {
+ while (beg1 != end1 && is_space[*beg1])
+ beg1++;
+ while (beg2 != end2 && is_space[*beg2])
+ beg2++;
+ }
+ else if (*beg1 == *beg2)
+ {
+ beg1++;
+ beg2++;
+ }
+ else
+ break;
+ }
+ return (beg1 != end1) || (beg2 != end2);
+}
+
+/* Process a #define command.
+ * BUF points to the contents of the #define command, as a contiguous string.
+ * LIMIT points to the first character past the end of the definition.
+ * KEYWORD is the keyword-table entry for #define,
+ * or NULL for a "predefined" macro. */
+
+static int
+do_define(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *buf, unsigned char *limit)
+{
+ int hashcode;
+ MACRODEF mdef;
+ HASHNODE *hp;
+
+ create_definition(&mdef, buf, limit, pfile, keyword == NULL);
+ if (mdef.defn == 0)
+ return 1;
+
+ hashcode = hashf(mdef.symnam, mdef.symlen, HASHSIZE);
+
+ if ((hp = cpp_lookup(mdef.symnam, mdef.symlen, hashcode)) != NULL)
+ {
+ int ok = 0;
+
+ /* Redefining a precompiled key is ok. */
+ if (hp->type == T_PCSTRING)
+ ok = 1;
+ /* Redefining a macro is ok if the definitions are the same. */
+ else if (hp->type == T_MACRO)
+ ok = !compare_defs(mdef.defn, hp->value.defn);
+ /* Redefining a constant is ok with -D. */
+ else if (hp->type == T_CONST)
+ ok = !CPP_OPTIONS(pfile)->done_initializing;
+ /* Print the warning if it's not ok. */
+ if (!ok)
+ {
+ char *msg; /* what pain... */
+
+ /* If we are passing through #define and #undef directives, do
+ * that for this re-definition now. */
+ if (CPP_OPTIONS(pfile)->debug_output && keyword)
+ pass_thru_directive((char *)buf, (char *)limit, pfile, keyword);
+
+ msg = (char *)alloca(mdef.symlen + 22);
+ *msg = '`';
+ memcpy(msg + 1, mdef.symnam, mdef.symlen);
+ strcpy((msg + mdef.symlen + 1), "' redefined");
+ cpp_pedwarn(pfile, msg);
+ if (hp->type == T_MACRO)
+ cpp_pedwarn_with_file_and_line(pfile, hp->value.defn->file,
+ hp->value.defn->line,
+ "this is the location of the previous definition",
+ NULL, NULL, NULL);
+ }
+ /* Replace the old definition. */
+ hp->type = T_MACRO;
+ hp->value.defn = mdef.defn;
+ }
+ else
+ {
+ /* If we are passing through #define and #undef directives, do
+ * that for this new definition now. */
+ if (CPP_OPTIONS(pfile)->debug_output && keyword)
+ pass_thru_directive((char *)buf, (char *)limit, pfile, keyword);
+ install(mdef.symnam, mdef.symlen, T_MACRO, 0,
+ (char *)mdef.defn, hashcode);
+ }
+
+ return 0;
+}
+
+/* This structure represents one parsed argument in a macro call.
+ * `raw' points to the argument text as written (`raw_length' is its length).
+ * `expanded' points to the argument's macro-expansion
+ * (its length is `expand_length').
+ * `stringified_length' is the length the argument would have
+ * if stringified.
+ * `use_count' is the number of times this macro arg is substituted
+ * into the macro. If the actual use count exceeds 10,
+ * the value stored is 10. */
+
+/* raw and expanded are relative to ARG_BASE */
+#define ARG_BASE ((pfile)->token_buffer)
+
+struct argdata {
+ /* Strings relative to pfile->token_buffer */
+ long raw, expanded, stringified;
+ int raw_length, expand_length;
+ int stringified_length;
+ char newlines;
+ char use_count;
+};
+
+cpp_buffer *
+cpp_push_buffer(cpp_reader * pfile, unsigned char *buffer, long length)
+{
+#ifdef STATIC_BUFFERS
+ cpp_buffer *buf = CPP_BUFFER(pfile);
+
+ if (buf == pfile->buffer_stack)
+ cpp_fatal("macro or `#include' recursion too deep");
+ buf--;
+ memset((char *)buf, 0, sizeof(cpp_buffer));
+ CPP_BUFFER(pfile) = buf;
+#else
+ cpp_buffer *buf = (cpp_buffer *) xmalloc(sizeof(cpp_buffer));
+
+ memset((char *)buf, 0, sizeof(cpp_buffer));
+ CPP_PREV_BUFFER(buf) = CPP_BUFFER(pfile);
+ CPP_BUFFER(pfile) = buf;
+#endif
+ buf->if_stack = pfile->if_stack;
+ buf->cleanup = null_cleanup;
+ buf->underflow = null_underflow;
+ buf->buf = buf->cur = buffer;
+ buf->alimit = buf->rlimit = buffer + length;
+
+ return buf;
+}
+
+static cpp_buffer *
+cpp_pop_buffer(cpp_reader * pfile)
+{
+ cpp_buffer *buf = CPP_BUFFER(pfile);
+
+#ifdef STATIC_BUFFERS
+ (*buf->cleanup) (buf, pfile);
+ return ++CPP_BUFFER(pfile);
+#else
+ cpp_buffer *next_buf = CPP_PREV_BUFFER(buf);
+
+ (*buf->cleanup) (buf, pfile);
+ CPP_BUFFER(pfile) = next_buf;
+ free(buf);
+ return next_buf;
+#endif
+}
+
+/* Scan until CPP_BUFFER (PFILE) is exhausted into PFILE->token_buffer.
+ * Pop the buffer when done. */
+
+static void
+cpp_scan_buffer(cpp_reader * pfile)
+{
+ cpp_buffer *buffer = CPP_BUFFER(pfile);
+
+ for (;;)
+ {
+ enum cpp_token token = cpp_get_token(pfile);
+
+ if (token == CPP_EOF) /* Should not happen ... */
+ break;
+ if (token == CPP_POP && CPP_BUFFER(pfile) == buffer)
+ {
+ cpp_pop_buffer(pfile);
+ break;
+ }
+ }
+}
+
+/*
+ * Rescan a string (which may have escape marks) into pfile's buffer.
+ * Place the result in pfile->token_buffer.
+ *
+ * The input is copied before it is scanned, so it is safe to pass
+ * it something from the token_buffer that will get overwritten
+ * (because it follows CPP_WRITTEN). This is used by do_include.
+ */
+
+static void
+cpp_expand_to_buffer(cpp_reader * pfile, unsigned char *buf, int length)
+{
+ cpp_buffer *ip;
+ unsigned char *limit = buf + length;
+ unsigned char *buf1;
+
+ if (length < 0)
+ abort();
+
+ /* Set up the input on the input stack. */
+
+ buf1 = (unsigned char *)alloca(length + 1);
+ {
+ unsigned char *p1 = buf;
+ unsigned char *p2 = buf1;
+
+ while (p1 != limit)
+ *p2++ = *p1++;
+ }
+ buf1[length] = 0;
+
+ ip = cpp_push_buffer(pfile, buf1, length);
+ ip->has_escapes = 1;
+
+ /* Scan the input, create the output. */
+ cpp_scan_buffer(pfile);
+
+ CPP_NUL_TERMINATE(pfile);
+}
+
+static void
+adjust_position(unsigned char *buf, unsigned char *limit, long *linep,
+ long *colp)
+{
+ while (buf < limit)
+ {
+ unsigned char ch = *buf++;
+
+ if (ch == '\n')
+ (*linep)++, (*colp) = 1;
+ else
+ (*colp)++;
+ }
+}
+
+/* Move line_base forward, updating lineno and colno. */
+
+static void
+update_position(cpp_buffer * pbuf)
+{
+ unsigned char *old_pos = pbuf->buf + pbuf->line_base;
+ unsigned char *new_pos = pbuf->cur;
+ struct parse_marker *mark;
+
+ for (mark = pbuf->marks; mark != NULL; mark = mark->next)
+ {
+ if (pbuf->buf + mark->position < new_pos)
+ new_pos = pbuf->buf + mark->position;
+ }
+ pbuf->line_base += new_pos - old_pos;
+ adjust_position(old_pos, new_pos, &pbuf->lineno, &pbuf->colno);
+}
+
+void
+cpp_buf_line_and_col(cpp_buffer * pbuf, long *linep, long *colp)
+{
+ long dummy;
+
+ if (colp == NULL)
+ colp = &dummy;
+ if (pbuf)
+ {
+ *linep = pbuf->lineno;
+ *colp = pbuf->colno;
+ adjust_position(pbuf->buf + pbuf->line_base, pbuf->cur, linep, colp);
+ }
+ else
+ {
+ *linep = 0;
+ *colp = 0;
+ }
+}
+
+/* Return the cpp_buffer that corresponds to a file (not a macro). */
+
+cpp_buffer *
+cpp_file_buffer(cpp_reader * pfile)
+{
+ cpp_buffer *ip = CPP_BUFFER(pfile);
+
+ for (; ip != CPP_NULL_BUFFER(pfile); ip = CPP_PREV_BUFFER(ip))
+ if (ip->fname != NULL)
+ return ip;
+ return NULL;
+}
+
+static long
+count_newlines(unsigned char *buf, unsigned char *limit)
+{
+ long count = 0;
+
+ while (buf < limit)
+ {
+ unsigned char ch = *buf++;
+
+ if (ch == '\n')
+ count++;
+ }
+ return count;
+}
+
+/*
+ * write out a #line command, for instance, after an #include file.
+ * If CONDITIONAL is nonzero, we can omit the #line if it would
+ * appear to be a no-op, and we can output a few newlines instead
+ * if we want to increase the line number by a small amount.
+ * FILE_CHANGE says whether we are entering a file, leaving, or neither.
+ */
+
+static void
+output_line_command(cpp_reader * pfile, int conditional,
+ enum file_change_code file_change)
+{
+ long line, col;
+ cpp_buffer *ip = CPP_BUFFER(pfile);
+
+ if (CPP_OPTIONS(pfile)->no_line_commands
+ || ip->fname == NULL || CPP_OPTIONS(pfile)->no_output)
+ {
+ return;
+ }
+ update_position(ip);
+ line = CPP_BUFFER(pfile)->lineno;
+ col = CPP_BUFFER(pfile)->colno;
+ adjust_position(CPP_LINE_BASE(ip), ip->cur, &line, &col);
+
+ if (conditional)
+ {
+ if (line == pfile->lineno)
+ return;
+
+ /* If the inherited line number is a little too small,
+ * output some newlines instead of a #line command. */
+ if (line > pfile->lineno && line < pfile->lineno + 8)
+ {
+ CPP_RESERVE(pfile, 20);
+ while (line > pfile->lineno)
+ {
+ CPP_PUTC_Q(pfile, '\n');
+ pfile->lineno++;
+ }
+ return;
+ }
+ }
+
+ CPP_RESERVE(pfile, 4 * strlen(ip->nominal_fname) + 50);
+ {
+#ifdef OUTPUT_LINE_COMMANDS
+ static char sharp_line[] = "#line ";
+
+#else
+ static char sharp_line[] = "# ";
+
+#endif
+ CPP_PUTS_Q(pfile, sharp_line, sizeof(sharp_line) - 1);
+ }
+
+ sprintf((char *)CPP_PWRITTEN(pfile), "%d ", (int)line);
+ CPP_ADJUST_WRITTEN(pfile, strlen((char *)CPP_PWRITTEN(pfile)));
+
+ quote_string(pfile, ip->nominal_fname);
+ if (file_change != same_file)
+ {
+ CPP_PUTC_Q(pfile, ' ');
+ CPP_PUTC_Q(pfile, file_change == enter_file ? '1' : '2');
+ }
+ /* Tell cc1 if following text comes from a system header file. */
+ if (ip->system_header_p)
+ {
+ CPP_PUTC_Q(pfile, ' ');
+ CPP_PUTC_Q(pfile, '3');
+ }
+#ifndef NO_IMPLICIT_EXTERN_C
+ /* Tell cc1plus if following text should be treated as C. */
+ if (ip->system_header_p == 2 && CPP_OPTIONS(pfile)->cplusplus)
+ {
+ CPP_PUTC_Q(pfile, ' ');
+ CPP_PUTC_Q(pfile, '4');
+ }
+#endif
+ CPP_PUTC_Q(pfile, '\n');
+ pfile->lineno = line;
+}
+
+/*
+ * Parse a macro argument and append the info on PFILE's token_buffer.
+ * REST_ARGS means to absorb the rest of the args.
+ * Return nonzero to indicate a syntax error.
+ */
+
+static enum cpp_token
+macarg(cpp_reader * pfile, int rest_args)
+{
+ int paren = 0;
+ enum cpp_token token;
+ char save_put_out_comments =
+ CPP_OPTIONS(pfile)->put_out_comments;
+
+ CPP_OPTIONS(pfile)->put_out_comments = 0;
+
+ token = CPP_OTHER;
+ /* Try to parse as much of the argument as exists at this
+ * input stack level. */
+ pfile->no_macro_expand++;
+ for (;;)
+ {
+ token = cpp_get_token(pfile);
+ switch (token)
+ {
+ case CPP_EOF:
+ goto done;
+ case CPP_POP:
+ /* If we've hit end of file, it's an error (reported by caller).
+ * Ditto if it's the end of cpp_expand_to_buffer text.
+ * If we've hit end of macro, just continue. */
+ if (!CPP_IS_MACRO_BUFFER(CPP_BUFFER(pfile)))
+ goto done;
+ break;
+ case CPP_LPAREN:
+ paren++;
+ break;
+ case CPP_RPAREN:
+ if (--paren < 0)
+ goto found;
+ break;
+ case CPP_COMMA:
+ /* if we've returned to lowest level and
+ * we aren't absorbing all args */
+ if (paren == 0 && rest_args == 0)
+ goto found;
+ break;
+ found:
+ /* Remove ',' or ')' from argument buffer. */
+ CPP_ADJUST_WRITTEN(pfile, -1);
+ goto done;
+ default:;
+ }
+ }
+
+ done:
+ CPP_OPTIONS(pfile)->put_out_comments = save_put_out_comments;
+ pfile->no_macro_expand--;
+
+ return token;
+}
+
+/* Turn newlines to spaces in the string of length LENGTH at START,
+ * except inside of string constants.
+ * The string is copied into itself with its beginning staying fixed. */
+
+static int
+change_newlines(unsigned char *start, int length)
+{
+ unsigned char *ibp;
+ unsigned char *obp;
+ unsigned char *limit;
+ int c;
+
+ ibp = start;
+ limit = start + length;
+ obp = start;
+
+ while (ibp < limit)
+ {
+ *obp++ = c = *ibp++;
+ switch (c)
+ {
+
+ case '\'':
+ case '\"':
+ /* Notice and skip strings, so that we don't delete newlines in them. */
+ {
+ int quotec = c;
+
+ while (ibp < limit)
+ {
+ *obp++ = c = *ibp++;
+ if (c == quotec)
+ break;
+ if (c == '\n' && quotec == '\'')
+ break;
+ }
+ }
+ break;
+ }
+ }
+
+ return obp - start;
+}
+
+static struct tm *
+timestamp(cpp_reader * pfile)
+{
+ if (!pfile->timebuf)
+ {
+ time_t t = time((time_t *) 0);
+
+ pfile->timebuf = localtime(&t);
+ }
+ return pfile->timebuf;
+}
+
+static const char *monthnames[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
+};
+
+/*
+ * expand things like __FILE__. Place the expansion into the output
+ * buffer *without* rescanning.
+ */
+
+static void
+special_symbol(HASHNODE * hp, cpp_reader * pfile)
+{
+ const char *buf;
+ char *bufx;
+ int len;
+ int true_indepth;
+ cpp_buffer *ip = NULL;
+ struct tm *timebuf;
+
+ int paren = 0; /* For special `defined' keyword */
+
+ for (ip = CPP_BUFFER(pfile);; ip = CPP_PREV_BUFFER(ip))
+ {
+ if (ip == NULL)
+ {
+ cpp_error(pfile, "cccp error: not in any file?!");
+ return; /* the show must go on */
+ }
+ if (ip->fname != NULL)
+ break;
+ }
+
+ switch (hp->type)
+ {
+ case T_FILE:
+ case T_BASE_FILE:
+ {
+ const char *string;
+
+ if (hp->type == T_BASE_FILE)
+ {
+ while (CPP_PREV_BUFFER(ip))
+ ip = CPP_PREV_BUFFER(ip);
+ }
+ string = ip->nominal_fname;
+
+ if (!string)
+ string = "";
+ CPP_RESERVE(pfile, 3 + 4 * strlen(string));
+ quote_string(pfile, string);
+ return;
+ }
+
+ case T_INCLUDE_LEVEL:
+ true_indepth = 0;
+ for (ip = CPP_BUFFER(pfile); ip != NULL; ip = CPP_PREV_BUFFER(ip))
+ if (ip->fname != NULL)
+ true_indepth++;
+
+ bufx = (char *)alloca(8); /* Eight bytes ought to be more than enough */
+ sprintf(bufx, "%d", true_indepth - 1);
+ buf = bufx;
+ break;
+
+ case T_VERSION:
+ bufx = (char *)alloca(3 + strlen(version_string));
+ sprintf(bufx, "\"%s\"", version_string);
+ buf = bufx;
+ break;
+
+#ifndef NO_BUILTIN_SIZE_TYPE
+ case T_SIZE_TYPE:
+ buf = SIZE_TYPE;
+ break;
+#endif
+
+#ifndef NO_BUILTIN_PTRDIFF_TYPE
+ case T_PTRDIFF_TYPE:
+ buf = PTRDIFF_TYPE;
+ break;
+#endif
+
+ case T_WCHAR_TYPE:
+ buf = CPP_WCHAR_TYPE(pfile);
+ break;
+
+ case T_USER_LABEL_PREFIX_TYPE:
+ buf = USER_LABEL_PREFIX;
+ break;
+
+ case T_REGISTER_PREFIX_TYPE:
+ buf = REGISTER_PREFIX;
+ break;
+
+ case T_CONST:
+ bufx = (char *)alloca(4 * sizeof(int));
+ sprintf(bufx, "%d", hp->value.ival);
+ buf = bufx;
+ break;
+
+ case T_SPECLINE:
+ {
+ long line = ip->lineno;
+ long col = ip->colno;
+
+ adjust_position(CPP_LINE_BASE(ip), ip->cur, &line, &col);
+
+ bufx = (char *)alloca(10);
+ sprintf(bufx, "%d", (int)line);
+ buf = bufx;
+ }
+ break;
+
+ case T_DATE:
+ case T_TIME:
+ bufx = (char *)alloca(20);
+ timebuf = timestamp(pfile);
+ if (hp->type == T_DATE)
+ sprintf(bufx, "\"%s %2d %4d\"", monthnames[timebuf->tm_mon],
+ timebuf->tm_mday, timebuf->tm_year + 1900);
+ else
+ sprintf(bufx, "\"%02d:%02d:%02d\"", timebuf->tm_hour,
+ timebuf->tm_min, timebuf->tm_sec);
+ buf = bufx;
+ break;
+
+ case T_SPEC_DEFINED:
+ buf = " 0 "; /* Assume symbol is not defined */
+ ip = CPP_BUFFER(pfile);
+ SKIP_WHITE_SPACE(ip->cur);
+ if (*ip->cur == '(')
+ {
+ paren++;
+ ip->cur++; /* Skip over the paren */
+ SKIP_WHITE_SPACE(ip->cur);
+ }
+ if (!is_idstart[*ip->cur])
+ goto oops;
+ if ((hp = cpp_lookup((const char *)ip->cur, -1, -1)))
+ {
+ buf = " 1 ";
+ }
+ while (is_idchar[*ip->cur])
+ ++ip->cur;
+ SKIP_WHITE_SPACE(ip->cur);
+ if (paren)
+ {
+ if (*ip->cur != ')')
+ goto oops;
+ ++ip->cur;
+ }
+ break;
+
+ oops:
+
+ cpp_error(pfile, "`defined' without an identifier");
+ break;
+
+ default:
+ cpp_error(pfile, "cccp error: invalid special hash type"); /* time for gdb */
+ abort();
+ }
+ len = strlen(buf);
+ CPP_RESERVE(pfile, len + 1);
+ CPP_PUTS_Q(pfile, buf, len);
+ CPP_NUL_TERMINATE_Q(pfile);
+
+ return;
+}
+
+/* Initialize the built-in macros. */
+
+static void
+initialize_builtins(cpp_reader * pfile)
+{
+ install("__LINE__", -1, T_SPECLINE, 0, 0, -1);
+ install("__DATE__", -1, T_DATE, 0, 0, -1);
+ install("__FILE__", -1, T_FILE, 0, 0, -1);
+ install("__BASE_FILE__", -1, T_BASE_FILE, 0, 0, -1);
+ install("__INCLUDE_LEVEL__", -1, T_INCLUDE_LEVEL, 0, 0, -1);
+ install("__VERSION__", -1, T_VERSION, 0, 0, -1);
+#ifndef NO_BUILTIN_SIZE_TYPE
+ install("__SIZE_TYPE__", -1, T_SIZE_TYPE, 0, 0, -1);
+#endif
+#ifndef NO_BUILTIN_PTRDIFF_TYPE
+ install("__PTRDIFF_TYPE__ ", -1, T_PTRDIFF_TYPE, 0, 0, -1);
+#endif
+ install("__WCHAR_TYPE__", -1, T_WCHAR_TYPE, 0, 0, -1);
+ install("__USER_LABEL_PREFIX__", -1, T_USER_LABEL_PREFIX_TYPE, 0, 0, -1);
+ install("__REGISTER_PREFIX__", -1, T_REGISTER_PREFIX_TYPE, 0, 0, -1);
+ install("__TIME__", -1, T_TIME, 0, 0, -1);
+ if (!CPP_TRADITIONAL(pfile))
+ install("__STDC__", -1, T_CONST, STDC_VALUE, 0, -1);
+ if (CPP_OPTIONS(pfile)->objc)
+ install("__OBJC__", -1, T_CONST, 1, 0, -1);
+/* This is supplied using a -D by the compiler driver
+ * so that it is present only when truly compiling with GNU C. */
+/* install ("__GNUC__", -1, T_CONST, 2, 0, -1); */
+
+ if (CPP_OPTIONS(pfile)->debug_output)
+ {
+ char directive[2048];
+ struct directive *dp = &directive_table[0];
+ struct tm *timebuf = timestamp(pfile);
+ cpp_buffer *pbuffer = CPP_BUFFER(pfile);
+
+ while (CPP_PREV_BUFFER(pbuffer))
+ pbuffer = CPP_PREV_BUFFER(pbuffer);
+ sprintf(directive, " __BASE_FILE__ \"%s\"\n", pbuffer->nominal_fname);
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+
+ sprintf(directive, " __VERSION__ \"%s\"\n", version_string);
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+
+#ifndef NO_BUILTIN_SIZE_TYPE
+ sprintf(directive, " __SIZE_TYPE__ %s\n", SIZE_TYPE);
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+#endif
+
+#ifndef NO_BUILTIN_PTRDIFF_TYPE
+ sprintf(directive, " __PTRDIFF_TYPE__ %s\n", PTRDIFF_TYPE);
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+#endif
+
+ sprintf(directive, " __WCHAR_TYPE__ %s\n", CPP_WCHAR_TYPE(pfile));
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+
+ sprintf(directive, " __DATE__ \"%s %2d %4d\"\n",
+ monthnames[timebuf->tm_mon],
+ timebuf->tm_mday, timebuf->tm_year + 1900);
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+
+ sprintf(directive, " __TIME__ \"%02d:%02d:%02d\"\n",
+ timebuf->tm_hour, timebuf->tm_min, timebuf->tm_sec);
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)], pfile,
+ dp);
+
+ if (!CPP_TRADITIONAL(pfile))
+ {
+ sprintf(directive, " __STDC__ 1");
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)],
+ pfile, dp);
+ }
+ if (CPP_OPTIONS(pfile)->objc)
+ {
+ sprintf(directive, " __OBJC__ 1");
+ output_line_command(pfile, 0, same_file);
+ pass_thru_directive(directive, &directive[strlen(directive)],
+ pfile, dp);
+ }
+ }
+}
+
+/* Return 1 iff a token ending in C1 followed directly by a token C2
+ * could cause mis-tokenization. */
+
+static int
+unsafe_chars(int c1, int c2)
+{
+ switch (c1)
+ {
+ case '+':
+ case '-':
+ if (c2 == c1 || c2 == '=')
+ return 1;
+ goto letter;
+ case '.':
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ case 'e':
+ case 'E':
+ if (c2 == '-' || c2 == '+')
+ return 1; /* could extend a pre-processing number */
+ goto letter;
+ case 'L':
+ if (c2 == '\'' || c2 == '\"')
+ return 1; /* Could turn into L"xxx" or L'xxx'. */
+ goto letter;
+ letter:
+ case '_':
+ case 'a':
+ case 'b':
+ case 'c':
+ case 'd':
+ case 'f':
+ case 'g':
+ case 'h':
+ case 'i':
+ case 'j':
+ case 'k':
+ case 'l':
+ case 'm':
+ case 'n':
+ case 'o':
+ case 'p':
+ case 'q':
+ case 'r':
+ case 's':
+ case 't':
+ case 'u':
+ case 'v':
+ case 'w':
+ case 'x':
+ case 'y':
+ case 'z':
+ case 'A':
+ case 'B':
+ case 'C':
+ case 'D':
+ case 'F':
+ case 'G':
+ case 'H':
+ case 'I':
+ case 'J':
+ case 'K':
+ case 'M':
+ case 'N':
+ case 'O':
+ case 'P':
+ case 'Q':
+ case 'R':
+ case 'S':
+ case 'T':
+ case 'U':
+ case 'V':
+ case 'W':
+ case 'X':
+ case 'Y':
+ case 'Z':
+ /* We're in the middle of either a name or a pre-processing number. */
+ return (is_idchar[c2] || c2 == '.');
+ case '<':
+ case '>':
+ case '!':
+ case '%':
+ case '#':
+ case ':':
+ case '^':
+ case '&':
+ case '|':
+ case '*':
+ case '/':
+ case '=':
+ return (c2 == c1 || c2 == '=');
+ }
+ return 0;
+}
+
+/* Expand a macro call.
+ * HP points to the symbol that is the macro being called.
+ * Put the result of expansion onto the input stack
+ * so that subsequent input by our caller will use it.
+ *
+ * If macro wants arguments, caller has already verified that
+ * an argument list follows; arguments come from the input stack. */
+
+static void
+macroexpand(cpp_reader * pfile, HASHNODE * hp)
+{
+ int nargs;
+ DEFINITION *defn = hp->value.defn;
+ unsigned char *xbuf;
+ long start_line, start_column;
+ int xbuf_len;
+ struct argdata *args;
+ long old_written = CPP_WRITTEN(pfile);
+
+ int rest_args, rest_zero;
+ int i;
+
+ pfile->output_escapes++;
+ cpp_buf_line_and_col(cpp_file_buffer(pfile), &start_line, &start_column);
+
+ rest_zero = 0;
+ args = NULL;
+ nargs = defn->nargs;
+
+ if (nargs >= 0)
+ {
+ enum cpp_token token;
+
+ token = CPP_OTHER;
+
+ args = (struct argdata *)alloca((nargs + 1) * sizeof(struct argdata));
+
+ for (i = 0; i < nargs; i++)
+ {
+ args[i].raw = args[i].expanded = 0;
+ args[i].raw_length = 0;
+ args[i].expand_length = args[i].stringified_length = -1;
+ args[i].use_count = 0;
+ }
+
+ /* Parse all the macro args that are supplied. I counts them.
+ * The first NARGS args are stored in ARGS.
+ * The rest are discarded. If rest_args is set then we assume
+ * macarg absorbed the rest of the args. */
+ i = 0;
+ rest_args = 0;
+ rest_args = 0;
+ FORWARD(1); /* Discard the open-parenthesis before the first arg. */
+ do
+ {
+ if (rest_args)
+ continue;
+ if (i < nargs || (nargs == 0 && i == 0))
+ {
+ /* if we are working on last arg which absorbs rest of args... */
+ if (i == nargs - 1 && defn->rest_args)
+ rest_args = 1;
+ args[i].raw = CPP_WRITTEN(pfile);
+ token = macarg(pfile, rest_args);
+ args[i].raw_length = CPP_WRITTEN(pfile) - args[i].raw;
+ args[i].newlines = 0; /* FIXME */
+ }
+ else
+ token = macarg(pfile, 0);
+ if (token == CPP_EOF || token == CPP_POP)
+ {
+ cpp_error_with_line(pfile, start_line, start_column,
+ "unterminated macro call");
+ return;
+ }
+ i++;
+ }
+ while (token == CPP_COMMA);
+
+ /* If we got one arg but it was just whitespace, call that 0 args. */
+ if (i == 1)
+ {
+ unsigned char *bp = ARG_BASE + args[0].raw;
+ unsigned char *lim = bp + args[0].raw_length;
+
+ /* cpp.texi says for foo ( ) we provide one argument.
+ * However, if foo wants just 0 arguments, treat this as 0. */
+ if (nargs == 0)
+ while (bp != lim && is_space[*bp])
+ bp++;
+ if (bp == lim)
+ i = 0;
+ }
+ /* Don't output an error message if we have already output one for
+ * a parse error above. */
+ if (nargs == 0 && i > 0)
+ {
+ cpp_error(pfile, "arguments given to macro `%s'", hp->name);
+ }
+ else if (i < nargs)
+ {
+ /* traditional C allows foo() if foo wants one argument. */
+ if (nargs == 1 && i == 0 && CPP_TRADITIONAL(pfile));
+ /* the rest args token is allowed to absorb 0 tokens */
+ else if (i == nargs - 1 && defn->rest_args)
+ rest_zero = 1;
+ else if (i == 0)
+ cpp_error(pfile, "macro `%s' used without args", hp->name);
+ else if (i == 1)
+ cpp_error(pfile, "macro `%s' used with just one arg", hp->name);
+ else
+ cpp_error(pfile, "macro `%s' used with only %d args",
+ hp->name, i);
+ }
+ else if (i > nargs)
+ {
+ cpp_error(pfile,
+ "macro `%s' used with too many (%d) args", hp->name, i);
+ }
+ }
+ /* If macro wants zero args, we parsed the arglist for checking only.
+ * Read directly from the macro definition. */
+ if (nargs <= 0)
+ {
+ xbuf = defn->expansion;
+ xbuf_len = defn->length;
+ }
+ else
+ {
+ unsigned char *exp = defn->expansion;
+ int offset; /* offset in expansion,
+ * copied a piece at a time */
+ int totlen; /* total amount of exp buffer filled so far */
+
+ struct reflist *ap, *last_ap;
+
+ /* Macro really takes args. Compute the expansion of this call. */
+
+ /* Compute length in characters of the macro's expansion.
+ * Also count number of times each arg is used. */
+ xbuf_len = defn->length;
+ for (ap = defn->pattern; ap != NULL; ap = ap->next)
+ {
+ if (ap->stringify)
+ {
+ struct argdata *arg = &args[ap->argno];
+
+ /* Stringify it it hasn't already been */
+ if (arg->stringified_length < 0)
+ {
+ int arglen = arg->raw_length;
+ int escaped = 0;
+ int in_string = 0;
+ int c;
+
+ /* Initially need_space is -1. Otherwise, 1 means the
+ * previous character was a space, but we suppressed it;
+ * 0 means the previous character was a non-space. */
+ int need_space = -1;
+
+ i = 0;
+ arg->stringified = CPP_WRITTEN(pfile);
+ if (!CPP_TRADITIONAL(pfile))
+ CPP_PUTC(pfile, '\"'); /* insert beginning quote */
+ for (; i < arglen; i++)
+ {
+ c = (ARG_BASE + arg->raw)[i];
+
+ if (!in_string)
+ {
+ /* Internal sequences of whitespace are replaced by
+ * one space except within an string or char token. */
+ if (is_space[c])
+ {
+ if (CPP_WRITTEN(pfile) > arg->stringified
+ && (CPP_PWRITTEN(pfile))[-1] == '@')
+ {
+ /* "@ " escape markers are removed */
+ CPP_ADJUST_WRITTEN(pfile, -1);
+ continue;
+ }
+ if (need_space == 0)
+ need_space = 1;
+ continue;
+ }
+ else if (need_space > 0)
+ CPP_PUTC(pfile, ' ');
+ need_space = 0;
+ }
+ if (escaped)
+ escaped = 0;
+ else
+ {
+ if (c == '\\')
+ escaped = 1;
+ if (in_string)
+ {
+ if (c == in_string)
+ in_string = 0;
+ }
+ else if (c == '\"' || c == '\'')
+ in_string = c;
+ }
+
+ /* Escape these chars */
+ if (c == '\"' || (in_string && c == '\\'))
+ CPP_PUTC(pfile, '\\');
+ if (isprint(c))
+ CPP_PUTC(pfile, c);
+ else
+ {
+ CPP_RESERVE(pfile, 4);
+ sprintf((char *)CPP_PWRITTEN(pfile), "\\%03o",
+ (unsigned int)c);
+ CPP_ADJUST_WRITTEN(pfile, 4);
+ }
+ }
+ if (!CPP_TRADITIONAL(pfile))
+ CPP_PUTC(pfile, '\"'); /* insert ending quote */
+ arg->stringified_length
+ = CPP_WRITTEN(pfile) - arg->stringified;
+ }
+ xbuf_len += args[ap->argno].stringified_length;
+ }
+ else if (ap->raw_before || ap->raw_after || CPP_TRADITIONAL(pfile))
+ /* Add 4 for two newline-space markers to prevent
+ * token concatenation. */
+ xbuf_len += args[ap->argno].raw_length + 4;
+ else
+ {
+ /* We have an ordinary (expanded) occurrence of the arg.
+ * So compute its expansion, if we have not already. */
+ if (args[ap->argno].expand_length < 0)
+ {
+ args[ap->argno].expanded = CPP_WRITTEN(pfile);
+ cpp_expand_to_buffer(pfile,
+ ARG_BASE + args[ap->argno].raw,
+ args[ap->argno].raw_length);
+
+ args[ap->argno].expand_length
+ = CPP_WRITTEN(pfile) - args[ap->argno].expanded;
+ }
+ /* Add 4 for two newline-space markers to prevent
+ * token concatenation. */
+ xbuf_len += args[ap->argno].expand_length + 4;
+ }
+ if (args[ap->argno].use_count < 10)
+ args[ap->argno].use_count++;
+ }
+
+ xbuf = (unsigned char *)xmalloc(xbuf_len + 1);
+
+ /* Generate in XBUF the complete expansion
+ * with arguments substituted in.
+ * TOTLEN is the total size generated so far.
+ * OFFSET is the index in the definition
+ * of where we are copying from. */
+ offset = totlen = 0;
+ for (last_ap = NULL, ap = defn->pattern; ap != NULL;
+ last_ap = ap, ap = ap->next)
+ {
+ struct argdata *arg = &args[ap->argno];
+ int count_before = totlen;
+
+ /* Add chars to XBUF. */
+ for (i = 0; i < ap->nchars; i++, offset++)
+ xbuf[totlen++] = exp[offset];
+
+ /* If followed by an empty rest arg with concatenation,
+ * delete the last run of nonwhite chars. */
+ if (rest_zero && totlen > count_before
+ && ((ap->rest_args && ap->raw_before)
+ || (last_ap != NULL && last_ap->rest_args
+ && last_ap->raw_after)))
+ {
+ /* Delete final whitespace. */
+ while (totlen > count_before && is_space[xbuf[totlen - 1]])
+ totlen--;
+
+ /* Delete the nonwhites before them. */
+ while (totlen > count_before && !is_space[xbuf[totlen - 1]])
+ totlen--;
+ }
+ if (ap->stringify != 0)
+ {
+ memcpy(xbuf + totlen, ARG_BASE + arg->stringified,
+ arg->stringified_length);
+ totlen += arg->stringified_length;
+ }
+ else if (ap->raw_before || ap->raw_after || CPP_TRADITIONAL(pfile))
+ {
+ unsigned char *p1 = ARG_BASE + arg->raw;
+ unsigned char *l1 = p1 + arg->raw_length;
+
+ if (ap->raw_before)
+ {
+ while (p1 != l1 && is_space[*p1])
+ p1++;
+ while (p1 != l1 && is_idchar[*p1])
+ xbuf[totlen++] = *p1++;
+ }
+ if (ap->raw_after)
+ {
+ /* Arg is concatenated after: delete trailing whitespace,
+ * whitespace markers, and no-reexpansion markers. */
+ while (p1 != l1)
+ {
+ if (is_space[l1[-1]])
+ l1--;
+ else if (l1[-1] == '-')
+ {
+ unsigned char *p2 = l1 - 1;
+
+ /* If a `-' is preceded by an odd number of newlines then it
+ * and the last newline are a no-reexpansion marker. */
+ while (p2 != p1 && p2[-1] == '\n')
+ p2--;
+ if ((l1 - 1 - p2) & 1)
+ {
+ l1 -= 2;
+ }
+ else
+ break;
+ }
+ else
+ break;
+ }
+ }
+ memcpy(xbuf + totlen, p1, l1 - p1);
+ totlen += l1 - p1;
+ }
+ else
+ {
+ unsigned char *expanded = ARG_BASE + arg->expanded;
+
+ if (!ap->raw_before && totlen > 0 && arg->expand_length
+ && !CPP_TRADITIONAL(pfile)
+ && unsafe_chars(xbuf[totlen - 1], expanded[0]))
+ {
+ xbuf[totlen++] = '@';
+ xbuf[totlen++] = ' ';
+ }
+ memcpy(xbuf + totlen, expanded, arg->expand_length);
+ totlen += arg->expand_length;
+
+ if (!ap->raw_after && totlen > 0 && offset < defn->length
+ && !CPP_TRADITIONAL(pfile)
+ && unsafe_chars(xbuf[totlen - 1], exp[offset]))
+ {
+ xbuf[totlen++] = '@';
+ xbuf[totlen++] = ' ';
+ }
+ /* If a macro argument with newlines is used multiple times,
+ * then only expand the newlines once. This avoids creating
+ * output lines which don't correspond to any input line,
+ * which confuses gdb and gcov. */
+ if (arg->use_count > 1 && arg->newlines > 0)
+ {
+ /* Don't bother doing change_newlines for subsequent
+ * uses of arg. */
+ arg->use_count = 1;
+ arg->expand_length
+ = change_newlines(expanded, arg->expand_length);
+ }
+ }
+
+ if (totlen > xbuf_len)
+ abort();
+ }
+
+ /* if there is anything left of the definition
+ * after handling the arg list, copy that in too. */
+
+ for (i = offset; i < defn->length; i++)
+ {
+ /* if we've reached the end of the macro */
+ if (exp[i] == ')')
+ rest_zero = 0;
+ if (!(rest_zero && last_ap != NULL && last_ap->rest_args
+ && last_ap->raw_after))
+ xbuf[totlen++] = exp[i];
+ }
+
+ xbuf[totlen] = 0;
+ xbuf_len = totlen;
+
+ }
+
+ pfile->output_escapes--;
+
+ /* Now put the expansion on the input stack
+ * so our caller will commence reading from it. */
+ push_macro_expansion(pfile, xbuf, xbuf_len, hp);
+ CPP_BUFFER(pfile)->has_escapes = 1;
+
+ /* Pop the space we've used in the token_buffer for argument expansion. */
+ CPP_SET_WRITTEN(pfile, old_written);
+
+ /* Recursive macro use sometimes works traditionally.
+ * #define foo(x,y) bar (x (y,0), y)
+ * foo (foo, baz) */
+
+ if (!CPP_TRADITIONAL(pfile))
+ hp->type = T_DISABLED;
+}
+
+static void
+push_macro_expansion(cpp_reader * pfile, unsigned char *xbuf, int xbuf_len,
+ HASHNODE * hp)
+{
+ cpp_buffer *mbuf = cpp_push_buffer(pfile, xbuf, xbuf_len);
+
+ mbuf->cleanup = macro_cleanup;
+ mbuf->data = hp;
+
+ /* The first chars of the expansion should be a "@ " added by
+ * collect_expansion. This is to prevent accidental token-pasting
+ * between the text preceding the macro invocation, and the macro
+ * expansion text.
+ *
+ * We would like to avoid adding unneeded spaces (for the sake of
+ * tools that use cpp, such as imake). In some common cases we can
+ * tell that it is safe to omit the space.
+ *
+ * The character before the macro invocation cannot have been an
+ * idchar (or else it would have been pasted with the idchars of
+ * the macro name). Therefore, if the first non-space character
+ * of the expansion is an idchar, we do not need the extra space
+ * to prevent token pasting.
+ *
+ * Also, we don't need the extra space if the first char is '(',
+ * or some other (less common) characters. */
+
+ if (xbuf[0] == '@' && xbuf[1] == ' '
+ && (is_idchar[xbuf[2]] || xbuf[2] == '(' || xbuf[2] == '\''
+ || xbuf[2] == '\"'))
+ mbuf->cur += 2;
+}
+
+/* Like cpp_get_token, except that it does not read past end-of-line.
+ * Also, horizontal space is skipped, and macros are popped. */
+
+static enum cpp_token
+get_directive_token(cpp_reader * pfile)
+{
+ for (;;)
+ {
+ long old_written = CPP_WRITTEN(pfile);
+ enum cpp_token token;
+
+ cpp_skip_hspace(pfile);
+ if (PEEKC() == '\n')
+ return CPP_VSPACE;
+ token = cpp_get_token(pfile);
+ switch (token)
+ {
+ case CPP_POP:
+ if (!CPP_IS_MACRO_BUFFER(CPP_BUFFER(pfile)))
+ return token;
+ /* ... else fall though ... */
+ case CPP_HSPACE:
+ case CPP_COMMENT:
+ CPP_SET_WRITTEN(pfile, old_written);
+ break;
+ default:
+ return token;
+ }
+ }
+}
+
+/* Handle #include and #import.
+ * This function expects to see "fname" or <fname> on the input.
+ *
+ * The input is normally in part of the output_buffer following
+ * CPP_WRITTEN, and will get overwritten by output_line_command.
+ * I.e. in input file specification has been popped by handle_directive.
+ * This is safe. */
+
+static int
+do_include(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *unused1, unsigned char *unused2)
+{
+ int importing = (keyword->type == T_IMPORT);
+ int skip_dirs = (keyword->type == T_INCLUDE_NEXT);
+ char *fname; /* Dynamically allocated fname buffer */
+ char *pcftry;
+ unsigned char *fbeg, *fend; /* Beginning and end of fname */
+ enum cpp_token token;
+
+ /* Chain of dirs to search */
+ struct file_name_list *search_start = CPP_OPTIONS(pfile)->include;
+ struct file_name_list dsp[1]; /* First in chain, if #include "..." */
+ struct file_name_list *searchptr = 0;
+ long old_written = CPP_WRITTEN(pfile);
+
+ int flen;
+
+ int f; /* file number */
+
+ int angle_brackets = 0; /* 0 for "...", 1 for <...> */
+ char *pcfbuf;
+ int pcfnum;
+
+ f = -1; /* JF we iz paranoid! */
+
+ unused1 = NULL;
+ unused2 = NULL;
+ if (importing && CPP_OPTIONS(pfile)->warn_import
+ && !CPP_OPTIONS(pfile)->inhibit_warnings
+ && !CPP_BUFFER(pfile)->system_header_p && !pfile->import_warning)
+ {
+ pfile->import_warning = 1;
+ cpp_warning(pfile, "using `#import' is not recommended");
+ fprintf(stderr,
+ "The fact that a certain header file need not be processed more than once\n");
+ fprintf(stderr,
+ "should be indicated in the header file, not where it is used.\n");
+ fprintf(stderr,
+ "The best way to do this is with a conditional of this form:\n\n");
+ fprintf(stderr, " #ifndef _FOO_H_INCLUDED\n");
+ fprintf(stderr, " #define _FOO_H_INCLUDED\n");
+ fprintf(stderr, " ... <real contents of file> ...\n");
+ fprintf(stderr, " #endif /* Not _FOO_H_INCLUDED */\n\n");
+ fprintf(stderr, "Then users can use `#include' any number of times.\n");
+ fprintf(stderr,
+ "GNU C automatically avoids processing the file more than once\n");
+ fprintf(stderr, "when it is equipped with such a conditional.\n");
+ }
+ pfile->parsing_include_directive++;
+ token = get_directive_token(pfile);
+ pfile->parsing_include_directive--;
+
+ if (token == CPP_STRING)
+ {
+ /* FIXME - check no trailing garbage */
+ fbeg = pfile->token_buffer + old_written + 1;
+ fend = CPP_PWRITTEN(pfile) - 1;
+ if (fbeg[-1] == '<')
+ {
+ angle_brackets = 1;
+ /* If -I-, start with the first -I dir after the -I-. */
+ if (CPP_OPTIONS(pfile)->first_bracket_include)
+ search_start = CPP_OPTIONS(pfile)->first_bracket_include;
+ }
+ /* If -I- was specified, don't search current dir, only spec'd ones. */
+ else if (!CPP_OPTIONS(pfile)->ignore_srcdir)
+ {
+ cpp_buffer *fp;
+
+ /* We have "filename". Figure out directory this source
+ * file is coming from and put it on the front of the list. */
+
+ for (fp = CPP_BUFFER(pfile); fp != NULL; fp = CPP_PREV_BUFFER(fp))
+ {
+ int n;
+ const char *ep, *nam;
+
+ if ((nam = fp->nominal_fname) != NULL)
+ {
+ /* Found a named file. Figure out dir of the file,
+ * and put it in front of the search list. */
+ dsp[0].next = search_start;
+ search_start = dsp;
+#ifndef VMS
+ ep = strrchr(nam, '/');
+#else /* VMS */
+ ep = strrchr(nam, ']');
+ if (ep == NULL)
+ ep = strrchr(nam, '>');
+ if (ep == NULL)
+ ep = strrchr(nam, ':');
+ if (ep != NULL)
+ ep++;
+#endif /* VMS */
+ if (ep != NULL)
+ {
+ n = ep - nam;
+ dsp[0].fname = (char *)alloca(n + 1);
+ strncpy(dsp[0].fname, nam, n);
+ dsp[0].fname[n] = '\0';
+ if (n + INCLUDE_LEN_FUDGE > pfile->max_include_len)
+ pfile->max_include_len = n + INCLUDE_LEN_FUDGE;
+ }
+ else
+ {
+ dsp[0].fname = 0; /* Current directory */
+ }
+ dsp[0].got_name_map = 0;
+ break;
+ }
+ }
+ }
+ }
+ else
+ {
+ cpp_error(pfile,
+ "`#%s' expects \"FILENAME\" or <FILENAME>", keyword->name);
+ CPP_SET_WRITTEN(pfile, old_written);
+ skip_rest_of_line(pfile);
+ return 0;
+ }
+
+ *fend = 0;
+
+ token = get_directive_token(pfile);
+ if (token != CPP_VSPACE)
+ {
+ cpp_error(pfile, "junk at end of `#include'");
+ while (token != CPP_VSPACE && token != CPP_EOF && token != CPP_POP)
+ token = get_directive_token(pfile);
+ }
+ /* For #include_next, skip in the search path
+ * past the dir in which the containing file was found. */
+ if (skip_dirs)
+ {
+ cpp_buffer *fp;
+
+ for (fp = CPP_BUFFER(pfile); fp != NULL; fp = CPP_PREV_BUFFER(fp))
+ if (fp->fname != NULL)
+ {
+ /* fp->dir is null if the containing file was specified with
+ * an absolute file name. In that case, don't skip anything. */
+ if (fp->dir == SELF_DIR_DUMMY)
+ search_start = CPP_OPTIONS(pfile)->include;
+ else if (fp->dir)
+ search_start = fp->dir->next;
+ break;
+ }
+ }
+ CPP_SET_WRITTEN(pfile, old_written);
+
+ flen = fend - fbeg;
+
+ if (flen == 0)
+ {
+ cpp_error(pfile, "empty file name in `#%s'", keyword->name);
+ return 0;
+ }
+ /* Allocate this permanently, because it gets stored in the definitions
+ * of macros. */
+ fname = (char *)xmalloc(pfile->max_include_len + flen + 4);
+ /* + 2 above for slash and terminating null. */
+ /* + 2 added for '.h' on VMS (to support '#include filename') */
+
+ /* If specified file name is absolute, just open it. */
+
+#ifndef __EMX__
+ if (*fbeg == '/')
+#else
+ if (_fnisabs(fbeg))
+#endif
+ {
+ strncpy(fname, (const char *)fbeg, flen);
+ fname[flen] = 0;
+ if (redundant_include_p(pfile, fname))
+ return 0;
+ if (importing)
+ f = lookup_import(pfile, fname, NULL);
+ else
+ f = open_include_file(pfile, fname, NULL);
+ if (f == -2)
+ return 0; /* Already included this file */
+ }
+ else
+ {
+ /* Search directory path, trying to open the file.
+ * Copy each filename tried into FNAME. */
+
+ for (searchptr = search_start; searchptr; searchptr = searchptr->next)
+ {
+ if (searchptr->fname)
+ {
+ /* The empty string in a search path is ignored.
+ * This makes it possible to turn off entirely
+ * a standard piece of the list. */
+ if (searchptr->fname[0] == 0)
+ continue;
+ strcpy(fname, searchptr->fname);
+ strcat(fname, "/");
+ fname[strlen(fname) + flen] = 0;
+ }
+ else
+ {
+ fname[0] = 0;
+ }
+ strncat(fname, (const char *)fbeg, flen);
+#ifdef VMS
+ /* Change this 1/2 Unix 1/2 VMS file specification into a
+ * full VMS file specification */
+ if (searchptr->fname && (searchptr->fname[0] != 0))
+ {
+ /* Fix up the filename */
+ hack_vms_include_specification(fname);
+ }
+ else
+ {
+ /* This is a normal VMS filespec, so use it unchanged. */
+ strncpy(fname, fbeg, flen);
+ fname[flen] = 0;
+ /* if it's '#include filename', add the missing .h */
+ if (strchr(fname, '.') == NULL)
+ {
+ strcat(fname, ".h");
+ }
+ }
+#endif /* VMS */
+ /* ??? There are currently 3 separate mechanisms for avoiding processing
+ * of redundant include files: #import, #pragma once, and
+ * redundant_include_p. It would be nice if they were unified. */
+ if (redundant_include_p(pfile, fname))
+ return 0;
+ if (importing)
+ f = lookup_import(pfile, fname, searchptr);
+ else
+ f = open_include_file(pfile, fname, searchptr);
+ if (f == -2)
+ return 0; /* Already included this file */
+#ifdef EACCES
+ else if (f == -1 && errno == EACCES)
+ cpp_warning(pfile, "Header file %s exists, but is not readable",
+ fname);
+#endif
+ if (f >= 0)
+ break;
+ }
+ }
+
+ if (f < 0)
+ {
+ /* A file that was not found. */
+ strncpy(fname, (const char *)fbeg, flen);
+ fname[flen] = 0;
+ /* If generating dependencies and -MG was specified, we assume missing
+ * files are leaf files, living in the same directory as the source file
+ * or other similar place; these missing files may be generated from
+ * other files and may not exist yet (eg: y.tab.h). */
+
+ if (CPP_OPTIONS(pfile)->print_deps_missing_files
+ && CPP_PRINT_DEPS(pfile)
+ > (angle_brackets || (pfile->system_include_depth > 0)))
+ {
+ /* If it was requested as a system header file,
+ * then assume it belongs in the first place to look for such. */
+ if (angle_brackets)
+ {
+ for (searchptr = search_start; searchptr;
+ searchptr = searchptr->next)
+ {
+ if (searchptr->fname)
+ {
+ char *p;
+
+ if (searchptr->fname[0] == 0)
+ continue;
+ p = (char *)alloca(strlen(searchptr->fname)
+ + strlen(fname) + 2);
+ strcpy(p, searchptr->fname);
+ strcat(p, "/");
+ strcat(p, fname);
+ deps_output(pfile, p, ' ');
+ break;
+ }
+ }
+ }
+ else
+ {
+ /* Otherwise, omit the directory, as if the file existed
+ * in the directory with the source. */
+ deps_output(pfile, fname, ' ');
+ }
+ }
+ /* If -M was specified, and this header file won't be added to the
+ * dependency list, then don't count this as an error, because we can
+ * still produce correct output. Otherwise, we can't produce correct
+ * output, because there may be dependencies we need inside the missing
+ * file, and we don't know what directory this missing file exists in. */
+ else if (CPP_PRINT_DEPS(pfile)
+ && (CPP_PRINT_DEPS(pfile)
+ <= (angle_brackets || (pfile->system_include_depth > 0))))
+ cpp_warning(pfile, "No include path in which to find %s", fname);
+ else if (search_start)
+ cpp_error_from_errno(pfile, fname);
+ else
+ cpp_error(pfile, "No include path in which to find %s", fname);
+ }
+ else
+ {
+ /* Check to see if this include file is a once-only include file.
+ * If so, give up. */
+
+ struct file_name_list *ptr;
+
+ for (ptr = pfile->dont_repeat_files; ptr; ptr = ptr->next)
+ {
+ if (!strcmp(ptr->fname, fname))
+ {
+ close(f);
+ return 0; /* This file was once'd. */
+ }
+ }
+
+ for (ptr = pfile->all_include_files; ptr; ptr = ptr->next)
+ {
+ if (!strcmp(ptr->fname, fname))
+ break; /* This file was included before. */
+ }
+
+ if (ptr == 0)
+ {
+ /* This is the first time for this file. */
+ /* Add it to list of files included. */
+
+ ptr =
+ (struct file_name_list *)xmalloc(sizeof(struct file_name_list));
+
+ ptr->control_macro = 0;
+ ptr->c_system_include_path = 0;
+ ptr->next = pfile->all_include_files;
+ pfile->all_include_files = ptr;
+ ptr->fname = savestring(fname);
+ ptr->got_name_map = 0;
+
+ /* For -M, add this file to the dependencies. */
+ if (CPP_PRINT_DEPS(pfile)
+ > (angle_brackets || (pfile->system_include_depth > 0)))
+ deps_output(pfile, fname, ' ');
+ }
+ /* Handle -H option. */
+ if (CPP_OPTIONS(pfile)->print_include_names)
+ {
+ cpp_buffer *buf = CPP_BUFFER(pfile);
+
+ while ((buf = CPP_PREV_BUFFER(buf)) != NULL)
+ putc('.', stderr);
+ fprintf(stderr, "%s\n", fname);
+ }
+ if (angle_brackets)
+ pfile->system_include_depth++;
+
+ /* Actually process the file. */
+
+ /* Record file on "seen" list for #import. */
+ add_import(pfile, f, fname);
+
+ pcftry = (char *)alloca(strlen(fname) + 30);
+ pcfbuf = 0;
+ pcfnum = 0;
+
+ /* Actually process the file */
+ cpp_push_buffer(pfile, NULL, 0);
+ if (finclude(pfile, f, fname, is_system_include(pfile, fname),
+ searchptr != dsp ? searchptr : SELF_DIR_DUMMY))
+ {
+ output_line_command(pfile, 0, enter_file);
+ pfile->only_seen_white = 2;
+ }
+ if (angle_brackets)
+ pfile->system_include_depth--;
+ }
+ return 0;
+}
+
+/* Return nonzero if there is no need to include file NAME
+ * because it has already been included and it contains a conditional
+ * to make a repeated include do nothing. */
+
+static int
+redundant_include_p(cpp_reader * pfile, char *name)
+{
+ struct file_name_list *l = pfile->all_include_files;
+
+ for (; l; l = l->next)
+ if (!strcmp(name, l->fname)
+ && l->control_macro
+ && cpp_lookup((const char *)l->control_macro, -1, -1))
+ return 1;
+ return 0;
+}
+
+/* Return nonzero if the given FILENAME is an absolute pathname which
+ * designates a file within one of the known "system" include file
+ * directories. We assume here that if the given FILENAME looks like
+ * it is the name of a file which resides either directly in a "system"
+ * include file directory, or within any subdirectory thereof, then the
+ * given file must be a "system" include file. This function tells us
+ * if we should suppress pedantic errors/warnings for the given FILENAME.
+ *
+ * The value is 2 if the file is a C-language system header file
+ * for which C++ should (on most systems) assume `extern "C"'. */
+
+static int
+is_system_include(cpp_reader * pfile, char *filename)
+{
+ struct file_name_list *searchptr;
+
+ for (searchptr = CPP_OPTIONS(pfile)->first_system_include; searchptr;
+ searchptr = searchptr->next)
+ if (searchptr->fname)
+ {
+ char *sys_dir = searchptr->fname;
+ unsigned length = strlen(sys_dir);
+
+ if (!strncmp(sys_dir, filename, length) && filename[length] == '/')
+ {
+ if (searchptr->c_system_include_path)
+ return 2;
+ else
+ return 1;
+ }
+ }
+ return 0;
+}
+
+/*
+ * Install a name in the assertion hash table.
+ *
+ * If LEN is >= 0, it is the length of the name.
+ * Otherwise, compute the length by scanning the entire name.
+ *
+ * If HASH is >= 0, it is the precomputed hash code.
+ * Otherwise, compute the hash code.
+ */
+static ASSERTION_HASHNODE *
+assertion_install(cpp_reader * pfile, const char *name, int len, int hash)
+{
+ ASSERTION_HASHNODE *hp;
+ int i, bucket;
+
+ i = sizeof(ASSERTION_HASHNODE) + len + 1;
+ hp = (ASSERTION_HASHNODE *) xmalloc(i);
+ bucket = hash;
+ hp->bucket_hdr = &pfile->assertion_hashtab[bucket];
+ hp->next = pfile->assertion_hashtab[bucket];
+ pfile->assertion_hashtab[bucket] = hp;
+ hp->prev = NULL;
+ if (hp->next != NULL)
+ hp->next->prev = hp;
+ hp->length = len;
+ hp->value = 0;
+ hp->name = ((char *)hp) + sizeof(ASSERTION_HASHNODE);
+ memcpy(hp->name, name, len);
+ hp->name[len] = 0;
+ return hp;
+}
+/*
+ * find the most recent hash node for name name (ending with first
+ * non-identifier char) installed by install
+ *
+ * If LEN is >= 0, it is the length of the name.
+ * Otherwise, compute the length by scanning the entire name.
+ *
+ * If HASH is >= 0, it is the precomputed hash code.
+ * Otherwise, compute the hash code.
+ */
+
+static ASSERTION_HASHNODE *
+assertion_lookup(cpp_reader * pfile, const char *name, int len, int hash)
+{
+ ASSERTION_HASHNODE *bucket;
+
+ bucket = pfile->assertion_hashtab[hash];
+ while (bucket)
+ {
+ if (bucket->length == len && strncmp(bucket->name, name, len) == 0)
+ return bucket;
+ bucket = bucket->next;
+ }
+ return NULL;
+}
+
+static void
+delete_assertion(ASSERTION_HASHNODE * hp)
+{
+ struct tokenlist_list *tail;
+
+ if (hp->prev != NULL)
+ hp->prev->next = hp->next;
+ if (hp->next != NULL)
+ hp->next->prev = hp->prev;
+
+ for (tail = hp->value; tail;)
+ {
+ struct tokenlist_list *next = tail->next;
+
+ free_token_list(tail->tokens);
+ free(tail);
+ tail = next;
+ }
+
+ /* make sure that the bucket chain header that
+ * the deleted guy was on points to the right thing afterwards. */
+ if (hp == *hp->bucket_hdr)
+ *hp->bucket_hdr = hp->next;
+
+ free(hp);
+}
+
+/* Convert a character string literal into a nul-terminated string.
+ * The input string is [IN ... LIMIT).
+ * The result is placed in RESULT. RESULT can be the same as IN.
+ * The value returned in the end of the string written to RESULT,
+ * or NULL on error. */
+
+static char *
+convert_string(cpp_reader * pfile, char *result, char *in, char *limit,
+ int handle_escapes)
+{
+ unsigned char c;
+
+ c = *in++;
+ if (c != '\"')
+ return NULL;
+ while (in < limit)
+ {
+ c = *in++;
+
+ switch (c)
+ {
+ case '\0':
+ return NULL;
+ case '\"':
+ limit = in;
+ break;
+ case '\\':
+ if (handle_escapes)
+ {
+ char *bpc = in;
+ int i =
+ (unsigned char)cpp_parse_escape(pfile, &bpc);
+
+ in = bpc;
+ if (i >= 0)
+ *result++ = (unsigned char)c;
+ break;
+ }
+ /* else fall through */
+ default:
+ *result++ = c;
+ }
+ }
+ *result = 0;
+ return result;
+}
+
+/*
+ * interpret #line command. Remembers previously seen fnames
+ * in its very own hash table.
+ */
+#define FNAME_HASHSIZE 37
+
+static int
+do_line(cpp_reader * pfile, struct directive *keyword,
+ unsigned char *unused1, unsigned char *unused2)
+{
+ cpp_buffer *ip = CPP_BUFFER(pfile);
+ int new_lineno;
+ long old_written = CPP_WRITTEN(pfile);
+ enum file_change_code file_change = same_file;
+ enum cpp_token token;
+
+ token = get_directive_token(pfile);
+
+ keyword = NULL;
+ unused1 = unused2 = NULL;
+
+ if (token != CPP_NUMBER || !isdigit(pfile->token_buffer[old_written]))
+ {
+ cpp_error(pfile, "invalid format `#line' command");
+ goto bad_line_directive;
+ }
+ /* The Newline at the end of this line remains to be processed.
+ * To put the next line at the specified line number,
+ * we must store a line number now that is one less. */
+ new_lineno = atoi((char *)(pfile->token_buffer + old_written)) - 1;
+ CPP_SET_WRITTEN(pfile, old_written);
+
+ /* NEW_LINENO is one less than the actual line number here. */
+ if (CPP_PEDANTIC(pfile) && new_lineno < 0)
+ cpp_pedwarn(pfile, "line number out of range in `#line' command");
+
+ token = get_directive_token(pfile);
+
+ if (token == CPP_STRING)
+ {
+ char *fname = (char *)pfile->token_buffer + old_written;
+ char *end_name;
+ static HASHNODE *fname_table[FNAME_HASHSIZE];
+ HASHNODE *hp, **hash_bucket;
+ unsigned char *p;
+ long num_start;
+ int fname_length;
+
+ /* Turn the file name, which is a character string literal,
+ * into a null-terminated string. Do this in place. */
+ end_name =
+ convert_string(pfile, fname, fname, (char *)CPP_PWRITTEN(pfile), 1);
+ if (end_name == NULL)
+ {
+ cpp_error(pfile, "invalid format `#line' command");
+ goto bad_line_directive;
+ }
+ fname_length = end_name - fname;
+
+ num_start = CPP_WRITTEN(pfile);
+ token = get_directive_token(pfile);
+ if (token != CPP_VSPACE && token != CPP_EOF && token != CPP_POP)
+ {
+ p = pfile->token_buffer + num_start;
+ if (CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "garbage at end of `#line' command");
+
+ if (token != CPP_NUMBER || *p < '0' || *p > '4' || p[1] != '\0')
+ {
+ cpp_error(pfile, "invalid format `#line' command");
+ goto bad_line_directive;
+ }
+ if (*p == '1')
+ file_change = enter_file;
+ else if (*p == 2)
+ file_change = leave_file;
+ else if (*p == 3)
+ ip->system_header_p = 1;
+ else /* if (*p == 4) */
+ ip->system_header_p = 2;
+
+ CPP_SET_WRITTEN(pfile, num_start);
+ token = get_directive_token(pfile);
+ p = pfile->token_buffer + num_start;
+ if (token == CPP_NUMBER && p[1] == '\0'
+ && (*p == '3' || *p == '4'))
+ {
+ ip->system_header_p = *p == 3 ? 1 : 2;
+ token = get_directive_token(pfile);
+ }
+ if (token != CPP_VSPACE)
+ {
+ cpp_error(pfile, "invalid format `#line' command");
+ goto bad_line_directive;
+ }
+ }
+ hash_bucket = &fname_table[hashf(fname, fname_length, FNAME_HASHSIZE)];
+ for (hp = *hash_bucket; hp != NULL; hp = hp->next)
+ if (hp->length == fname_length &&
+ strncmp(hp->value.cpval, fname, fname_length) == 0)
+ {
+ ip->nominal_fname = hp->value.cpval;
+ break;
+ }
+ if (hp == 0)
+ {
+ /* Didn't find it; cons up a new one. */
+ hp = (HASHNODE *) xcalloc(1, sizeof(HASHNODE) + fname_length + 1);
+ hp->next = *hash_bucket;
+ *hash_bucket = hp;
+
+ hp->length = fname_length;
+ ip->nominal_fname = hp->value.cpval =
+ ((char *)hp) + sizeof(HASHNODE);
+ memcpy(hp->value.cpval, fname, fname_length);
+ }
+ }
+ else if (token != CPP_VSPACE && token != CPP_EOF)
+ {
+ cpp_error(pfile, "invalid format `#line' command");
+ goto bad_line_directive;
+ }
+ ip->lineno = new_lineno;
+ bad_line_directive:
+ skip_rest_of_line(pfile);
+ CPP_SET_WRITTEN(pfile, old_written);
+ output_line_command(pfile, 0, file_change);
+ return 0;
+}
+
+/*
+ * remove the definition of a symbol from the symbol table.
+ * according to un*x /lib/cpp, it is not an error to undef
+ * something that has no definitions, so it isn't one here either.
+ */
+
+static int
+do_undef(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ int sym_length;
+ HASHNODE *hp;
+ unsigned char *orig_buf = buf;
+
+ SKIP_WHITE_SPACE(buf);
+ sym_length = check_macro_name(pfile, buf, "macro");
+
+ while ((hp = cpp_lookup((const char *)buf, sym_length, -1)) != NULL)
+ {
+ /* If we are generating additional info for debugging (with -g) we
+ * need to pass through all effective #undef commands. */
+ if (CPP_OPTIONS(pfile)->debug_output && keyword)
+ pass_thru_directive((char *)orig_buf, (char *)limit, pfile, keyword);
+ if (hp->type != T_MACRO)
+ cpp_warning(pfile, "undefining `%s'", hp->name);
+ delete_macro(hp);
+ }
+
+ if (CPP_PEDANTIC(pfile))
+ {
+ buf += sym_length;
+ SKIP_WHITE_SPACE(buf);
+ if (buf != limit)
+ cpp_pedwarn(pfile, "garbage after `#undef' directive");
+ }
+ return 0;
+}
+
+/*
+ * Report an error detected by the program we are processing.
+ * Use the text of the line in the error message.
+ * (We use error because it prints the filename & line#.)
+ */
+
+static int
+do_error(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ int length = limit - buf;
+ unsigned char *copy = (unsigned char *)xmalloc(length + 1);
+
+ keyword = NULL;
+ memcpy(copy, buf, length);
+ copy[length] = 0;
+ SKIP_WHITE_SPACE(copy);
+ cpp_error(pfile, "#error %s", copy);
+ return 0;
+}
+
+/*
+ * Report a warning detected by the program we are processing.
+ * Use the text of the line in the warning message, then continue.
+ * (We use error because it prints the filename & line#.)
+ */
+
+static int
+do_warning(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ int length = limit - buf;
+ unsigned char *copy = (unsigned char *)xmalloc(length + 1);
+
+ keyword = NULL;
+ memcpy(copy, buf, length);
+ copy[length] = 0;
+ SKIP_WHITE_SPACE(copy);
+ cpp_warning(pfile, "#warning %s", copy);
+ return 0;
+}
+
+/* Remember the name of the current file being read from so that we can
+ * avoid ever including it again. */
+
+static int
+do_once(cpp_reader * pfile)
+{
+ cpp_buffer *ip = NULL;
+ struct file_name_list *new_;
+
+ for (ip = CPP_BUFFER(pfile);; ip = CPP_PREV_BUFFER(ip))
+ {
+ if (ip == NULL)
+ return 0;
+ if (ip->fname != NULL)
+ break;
+ }
+
+ new_ = (struct file_name_list *)xmalloc(sizeof(struct file_name_list));
+
+ new_->next = pfile->dont_repeat_files;
+ pfile->dont_repeat_files = new_;
+ new_->fname = savestring(ip->fname);
+ new_->control_macro = 0;
+ new_->got_name_map = 0;
+ new_->c_system_include_path = 0;
+
+ return 0;
+}
+
+/* #ident has already been copied to the output file, so just ignore it. */
+
+static int
+do_ident(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+/* long old_written = CPP_WRITTEN (pfile); */
+
+ /* Allow #ident in system headers, since that's not user's fault. */
+ if (CPP_PEDANTIC(pfile) && !CPP_BUFFER(pfile)->system_header_p)
+ cpp_pedwarn(pfile, "ANSI C does not allow `#ident'");
+
+ keyword = NULL;
+ buf = NULL;
+ limit = NULL;
+ /* Leave rest of line to be read by later calls to cpp_get_token. */
+
+ return 0;
+}
+
+/* #pragma and its argument line have already been copied to the output file.
+ * Just check for some recognized pragmas that need validation here. */
+
+static int
+do_pragma(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ while (*buf == ' ' || *buf == '\t')
+ buf++;
+
+ keyword = NULL;
+ limit = NULL;
+ if (!strncmp((const char *)buf, "once", 4))
+ {
+ /* Allow #pragma once in system headers, since that's not the user's
+ * fault. */
+ if (!CPP_BUFFER(pfile)->system_header_p)
+ cpp_warning(pfile, "`#pragma once' is obsolete");
+ do_once(pfile);
+ }
+ if (!strncmp((const char *)buf, "implementation", 14))
+ {
+ /* Be quiet about `#pragma implementation' for a file only if it hasn't
+ * been included yet. */
+ struct file_name_list *ptr;
+ char *p = (char *)buf + 14, *fname, *inc_fname;
+ int fname_len;
+
+ SKIP_WHITE_SPACE(p);
+ if (*p == '\n' || *p != '\"')
+ return 0;
+
+ fname = p + 1;
+ p = strchr(fname, '\"');
+ fname_len =
+ (int)(((int)(p != NULL)) ? ((int)(p - fname))
+ : ((int)(strlen(fname))));
+
+ for (ptr = pfile->all_include_files; ptr; ptr = ptr->next)
+ {
+ inc_fname = strrchr(ptr->fname, '/');
+ inc_fname = inc_fname ? inc_fname + 1 : (char *)ptr->fname;
+ if (inc_fname && !strncmp(inc_fname, fname, fname_len))
+ cpp_warning(pfile,
+ "`#pragma implementation' for `%s' appears after file is included",
+ fname);
+ }
+ }
+ return 0;
+}
+
+/* Just ignore #sccs, on systems where we define it at all. */
+
+/*
+ * handle #if command by
+ * 1) inserting special `defined' keyword into the hash table
+ * that gets turned into 0 or 1 by special_symbol (thus,
+ * if the luser has a symbol called `defined' already, it won't
+ * work inside the #if command)
+ * 2) rescan the input into a temporary output buffer
+ * 3) pass the output buffer to the yacc parser and collect a value
+ * 4) clean up the mess left from steps 1 and 2.
+ * 5) call conditional_skip to skip til the next #endif (etc.),
+ * or not, depending on the value from step 3.
+ */
+
+static int
+do_if(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ HOST_WIDE_INT value = eval_if_expression(pfile, buf, limit - buf);
+
+ keyword = NULL;
+ conditional_skip(pfile, value == 0, T_IF, NULL);
+ return 0;
+}
+
+/*
+ * handle a #elif directive by not changing if_stack either.
+ * see the comment above do_else.
+ */
+
+static int
+do_elif(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+
+ keyword = NULL;
+
+ if (pfile->if_stack == CPP_BUFFER(pfile)->if_stack)
+ {
+ cpp_error(pfile, "`#elif' not within a conditional");
+ return 0;
+ }
+ else
+ {
+ if (pfile->if_stack->type != T_IF && pfile->if_stack->type != T_ELIF)
+ {
+ cpp_error(pfile, "`#elif' after `#else'");
+ if (pfile->if_stack->fname != NULL
+ && CPP_BUFFER(pfile)->fname != NULL
+ && strcmp(pfile->if_stack->fname,
+ CPP_BUFFER(pfile)->nominal_fname) != 0)
+ fprintf(stderr, ", file %s", pfile->if_stack->fname);
+ fprintf(stderr, ")\n");
+ }
+ pfile->if_stack->type = T_ELIF;
+ }
+
+ if (pfile->if_stack->if_succeeded)
+ skip_if_group(pfile, 0);
+ else
+ {
+ HOST_WIDE_INT value = eval_if_expression(pfile, buf, limit - buf);
+
+ if (value == 0)
+ skip_if_group(pfile, 0);
+ else
+ {
+ ++pfile->if_stack->if_succeeded; /* continue processing input */
+ output_line_command(pfile, 1, same_file);
+ }
+ }
+ return 0;
+}
+
+/*
+ * evaluate a #if expression in BUF, of length LENGTH,
+ * then parse the result as a C expression and return the value as an int.
+ */
+static HOST_WIDE_INT
+eval_if_expression(cpp_reader * pfile, unsigned char *buf, int length)
+{
+ HASHNODE *save_defined;
+ HOST_WIDE_INT value;
+ long old_written = CPP_WRITTEN(pfile);
+
+ buf = NULL;
+ length = 0;
+ save_defined = install("defined", -1, T_SPEC_DEFINED, 0, 0, -1);
+ pfile->pcp_inside_if = 1;
+
+ value = cpp_parse_expr(pfile);
+ pfile->pcp_inside_if = 0;
+ delete_macro(save_defined); /* clean up special symbol */
+
+ CPP_SET_WRITTEN(pfile, old_written); /* Pop */
+
+ return value;
+}
+
+/*
+ * routine to handle ifdef/ifndef. Try to look up the symbol,
+ * then do or don't skip to the #endif/#else/#elif depending
+ * on what directive is actually being processed.
+ */
+
+static int
+do_xifdef(cpp_reader * pfile, struct directive *keyword, unsigned char *unused1,
+ unsigned char *unused2)
+{
+ int skip;
+ cpp_buffer *ip = CPP_BUFFER(pfile);
+ char *ident;
+ int ident_length;
+ enum cpp_token token;
+ int start_of_file = 0;
+ unsigned char *control_macro = 0;
+ int old_written = CPP_WRITTEN(pfile);
+
+ unused1 = NULL;
+ unused2 = NULL;
+ /* Detect a #ifndef at start of file (not counting comments). */
+ if (ip->fname != 0 && keyword->type == T_IFNDEF)
+ start_of_file = pfile->only_seen_white == 2;
+
+ pfile->no_macro_expand++;
+ token = get_directive_token(pfile);
+ pfile->no_macro_expand--;
+
+ ident = (char *)pfile->token_buffer + old_written;
+ ident_length = CPP_WRITTEN(pfile) - old_written;
+ CPP_SET_WRITTEN(pfile, old_written); /* Pop */
+
+ if (token == CPP_VSPACE || token == CPP_POP || token == CPP_EOF)
+ {
+ skip = (keyword->type == T_IFDEF);
+ if (!CPP_TRADITIONAL(pfile))
+ cpp_pedwarn(pfile, "`#%s' with no argument", keyword->name);
+ }
+ else if (token == CPP_NAME)
+ {
+ HASHNODE *hp = cpp_lookup(ident, ident_length, -1);
+
+ skip = (hp == NULL) ^ (keyword->type == T_IFNDEF);
+ if (start_of_file && !skip)
+ {
+ control_macro = (unsigned char *)xmalloc(ident_length + 1);
+ memcpy(control_macro, ident, ident_length + 1);
+ }
+ }
+ else
+ {
+ skip = (keyword->type == T_IFDEF);
+ if (!CPP_TRADITIONAL(pfile))
+ cpp_error(pfile, "`#%s' with invalid argument", keyword->name);
+ }
+
+ if (!CPP_TRADITIONAL(pfile))
+ {
+ int c;
+
+ cpp_skip_hspace(pfile);
+ c = PEEKC();
+ if (c != EOF && c != '\n')
+ cpp_pedwarn(pfile, "garbage at end of `#%s' argument",
+ keyword->name);
+ }
+ skip_rest_of_line(pfile);
+
+ conditional_skip(pfile, skip, T_IF, control_macro);
+ return 0;
+}
+
+/* Push TYPE on stack; then, if SKIP is nonzero, skip ahead.
+ * If this is a #ifndef starting at the beginning of a file,
+ * CONTROL_MACRO is the macro name tested by the #ifndef.
+ * Otherwise, CONTROL_MACRO is 0. */
+
+static void
+conditional_skip(cpp_reader * pfile, int skip, enum node_type type,
+ unsigned char *control_macro)
+{
+ IF_STACK_FRAME *temp;
+
+ temp = (IF_STACK_FRAME *) xcalloc(1, sizeof(IF_STACK_FRAME));
+ temp->fname = CPP_BUFFER(pfile)->nominal_fname;
+ temp->next = pfile->if_stack;
+ temp->control_macro = control_macro;
+ pfile->if_stack = temp;
+
+ pfile->if_stack->type = type;
+
+ if (skip != 0)
+ {
+ skip_if_group(pfile, 0);
+ return;
+ }
+ else
+ {
+ ++pfile->if_stack->if_succeeded;
+ output_line_command(pfile, 1, same_file);
+ }
+}
+
+/*
+ * skip to #endif, #else, or #elif. adjust line numbers, etc.
+ * leaves input ptr at the sharp sign found.
+ * If ANY is nonzero, return at next directive of any sort.
+ */
+
+static void
+skip_if_group(cpp_reader * pfile, int any)
+{
+ int c;
+ struct directive *kt;
+ IF_STACK_FRAME *save_if_stack = pfile->if_stack; /* don't pop past here */
+
+ int ident_length;
+ char *ident;
+ struct parse_marker line_start_mark;
+
+ parse_set_mark(&line_start_mark, pfile);
+
+ if (CPP_OPTIONS(pfile)->output_conditionals)
+ {
+ static char failed[] = "#failed\n";
+
+ CPP_PUTS(pfile, failed, sizeof(failed) - 1);
+ pfile->lineno++;
+ output_line_command(pfile, 1, same_file);
+ }
+ beg_of_line:
+ if (CPP_OPTIONS(pfile)->output_conditionals)
+ {
+ cpp_buffer *pbuf = CPP_BUFFER(pfile);
+ unsigned char *start_line = pbuf->buf + line_start_mark.position;
+
+ CPP_PUTS(pfile, start_line, pbuf->cur - start_line);
+ }
+ parse_move_mark(&line_start_mark, pfile);
+ if (!CPP_TRADITIONAL(pfile))
+ cpp_skip_hspace(pfile);
+ c = GETC();
+ if (c == '#')
+ {
+ int old_written = CPP_WRITTEN(pfile);
+
+ cpp_skip_hspace(pfile);
+
+ parse_name(pfile, GETC());
+ ident_length = CPP_WRITTEN(pfile) - old_written;
+ ident = (char *)pfile->token_buffer + old_written;
+ pfile->limit = (unsigned char *)ident;
+
+ for (kt = directive_table; kt->length >= 0; kt++)
+ {
+ IF_STACK_FRAME *temp;
+
+ if (ident_length == kt->length
+ && strncmp(ident, kt->name, kt->length) == 0)
+ {
+ /* If we are asked to return on next directive, do so now. */
+ if (any)
+ goto done;
+
+ switch (kt->type)
+ {
+ case T_IF:
+ case T_IFDEF:
+ case T_IFNDEF:
+ temp
+ =
+ (IF_STACK_FRAME *) xcalloc(1, sizeof(IF_STACK_FRAME));
+ temp->next = pfile->if_stack;
+ pfile->if_stack = temp;
+ temp->fname = CPP_BUFFER(pfile)->nominal_fname;
+ temp->type = kt->type;
+ break;
+ case T_ELSE:
+ case T_ENDIF:
+ if (CPP_PEDANTIC(pfile)
+ && pfile->if_stack != save_if_stack)
+ validate_else(pfile,
+ kt->type ==
+ T_ELSE ? "#else" : "#endif");
+ case T_ELIF:
+ if (pfile->if_stack == CPP_BUFFER(pfile)->if_stack)
+ {
+ cpp_error(pfile,
+ "`#%s' not within a conditional",
+ kt->name);
+ break;
+ }
+ else if (pfile->if_stack == save_if_stack)
+ goto done; /* found what we came for */
+
+ if (kt->type != T_ENDIF)
+ {
+ if (pfile->if_stack->type == T_ELSE)
+ cpp_error(pfile,
+ "`#else' or `#elif' after `#else'");
+ pfile->if_stack->type = kt->type;
+ break;
+ }
+ temp = pfile->if_stack;
+ pfile->if_stack = temp->next;
+ free(temp);
+ break;
+ default:;
+ }
+ break;
+ }
+ /* Don't let erroneous code go by. */
+ if (kt->length < 0 && !CPP_OPTIONS(pfile)->lang_asm
+ && CPP_PEDANTIC(pfile))
+ cpp_pedwarn(pfile, "invalid preprocessor directive name");
+ }
+ c = GETC();
+ }
+ /* We're in the middle of a line. Skip the rest of it. */
+ for (;;)
+ {
+ switch (c)
+ {
+ long old;
+
+ case EOF:
+ goto done;
+ case '/': /* possible comment */
+ c = skip_comment(pfile, NULL);
+ if (c == EOF)
+ goto done;
+ break;
+ case '\"':
+ case '\'':
+ FORWARD(-1);
+ old = CPP_WRITTEN(pfile);
+ cpp_get_token(pfile);
+ CPP_SET_WRITTEN(pfile, old);
+ break;
+ case '\\':
+ /* Char after backslash loses its special meaning. */
+ if (PEEKC() == '\n')
+ FORWARD(1);
+ break;
+ case '\n':
+ goto beg_of_line;
+ break;
+ }
+ c = GETC();
+ }
+ done:
+ if (CPP_OPTIONS(pfile)->output_conditionals)
+ {
+ static char end_failed[] = "#endfailed\n";
+
+ CPP_PUTS(pfile, end_failed, sizeof(end_failed) - 1);
+ pfile->lineno++;
+ }
+ pfile->only_seen_white = 1;
+ parse_goto_mark(&line_start_mark, pfile);
+ parse_clear_mark(&line_start_mark);
+}
+
+/*
+ * handle a #else directive. Do this by just continuing processing
+ * without changing if_stack ; this is so that the error message
+ * for missing #endif's etc. will point to the original #if. It
+ * is possible that something different would be better.
+ */
+
+static int
+do_else(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ cpp_buffer *ip = CPP_BUFFER(pfile);
+
+ keyword = NULL;
+ buf = NULL;
+ limit = NULL;
+
+ if (CPP_PEDANTIC(pfile))
+ validate_else(pfile, "#else");
+ skip_rest_of_line(pfile);
+
+ if (pfile->if_stack == CPP_BUFFER(pfile)->if_stack)
+ {
+ cpp_error(pfile, "`#else' not within a conditional");
+ return 0;
+ }
+ else
+ {
+ /* #ifndef can't have its special treatment for containing the whole file
+ * if it has a #else clause. */
+ pfile->if_stack->control_macro = 0;
+
+ if (pfile->if_stack->type != T_IF && pfile->if_stack->type != T_ELIF)
+ {
+ cpp_error(pfile, "`#else' after `#else'");
+ fprintf(stderr, " (matches line %d", pfile->if_stack->lineno);
+ if (strcmp(pfile->if_stack->fname, ip->nominal_fname) != 0)
+ fprintf(stderr, ", file %s", pfile->if_stack->fname);
+ fprintf(stderr, ")\n");
+ }
+ pfile->if_stack->type = T_ELSE;
+ }
+
+ if (pfile->if_stack->if_succeeded)
+ skip_if_group(pfile, 0);
+ else
+ {
+ ++pfile->if_stack->if_succeeded; /* continue processing input */
+ output_line_command(pfile, 1, same_file);
+ }
+ return 0;
+}
+
+/*
+ * unstack after #endif command
+ */
+
+static int
+do_endif(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ if (CPP_PEDANTIC(pfile))
+ validate_else(pfile, "#endif");
+ skip_rest_of_line(pfile);
+
+ keyword = NULL;
+ buf = NULL;
+ limit = NULL;
+
+ if (pfile->if_stack == CPP_BUFFER(pfile)->if_stack)
+ {
+ cpp_error(pfile, "unbalanced `#endif'");
+ }
+ else
+ {
+ IF_STACK_FRAME *temp = pfile->if_stack;
+
+ pfile->if_stack = temp->next;
+ if (temp->control_macro != 0)
+ {
+ /* This #endif matched a #ifndef at the start of the file.
+ * See if it is at the end of the file. */
+ struct parse_marker start_mark;
+ int c;
+
+ parse_set_mark(&start_mark, pfile);
+
+ for (;;)
+ {
+ cpp_skip_hspace(pfile);
+ c = GETC();
+ if (c != '\n')
+ break;
+ }
+ parse_goto_mark(&start_mark, pfile);
+ parse_clear_mark(&start_mark);
+
+ if (c == EOF)
+ {
+ /* If we get here, this #endif ends a #ifndef
+ * that contains all of the file (aside from whitespace).
+ * Arrange not to include the file again
+ * if the macro that was tested is defined.
+ *
+ * Do not do this for the top-level file in a -include or any
+ * file in a -imacros. */
+ {
+ struct file_name_list *ifile = pfile->all_include_files;
+
+ for (; ifile != NULL; ifile = ifile->next)
+ {
+ if (!strcmp(ifile->fname, CPP_BUFFER(pfile)->fname))
+ {
+ ifile->control_macro = temp->control_macro;
+ break;
+ }
+ }
+ }
+ }
+ }
+ free(temp);
+ output_line_command(pfile, 1, same_file);
+ }
+ return 0;
+}
+
+/* When an #else or #endif is found while skipping failed conditional,
+ * if -pedantic was specified, this is called to warn about text after
+ * the command name. P points to the first char after the command name. */
+
+static void
+validate_else(cpp_reader * pfile, const char *directive)
+{
+ int c;
+
+ cpp_skip_hspace(pfile);
+ c = PEEKC();
+ if (c != EOF && c != '\n')
+ cpp_pedwarn(pfile,
+ "text following `%s' violates ANSI standard", directive);
+}
+
+/* Get the next token, and add it to the text in pfile->token_buffer.
+ * Return the kind of token we got. */
+
+enum cpp_token
+cpp_get_token(cpp_reader * pfile)
+{
+ int c, c2, c3;
+ long old_written = 0;
+ long start_line, start_column;
+ enum cpp_token token;
+ struct cpp_options *opts = CPP_OPTIONS(pfile);
+
+ CPP_BUFFER(pfile)->prev = CPP_BUFFER(pfile)->cur;
+ get_next:
+ c = GETC();
+ if (c == EOF)
+ {
+ handle_eof:
+ if (CPP_BUFFER(pfile)->seen_eof)
+ {
+ if (cpp_pop_buffer(pfile) != CPP_NULL_BUFFER(pfile))
+ goto get_next;
+ else
+ return CPP_EOF;
+ }
+ else
+ {
+ cpp_buffer *next_buf = CPP_PREV_BUFFER(CPP_BUFFER(pfile));
+
+ CPP_BUFFER(pfile)->seen_eof = 1;
+ if (CPP_BUFFER(pfile)->nominal_fname && next_buf != 0)
+ {
+ /* We're about to return from an #include file.
+ * Emit #line information now (as part of the CPP_POP) result.
+ * But the #line refers to the file we will pop to. */
+ cpp_buffer *cur_buffer = CPP_BUFFER(pfile);
+
+ CPP_BUFFER(pfile) = next_buf;
+ pfile->input_stack_listing_current = 0;
+ output_line_command(pfile, 0, leave_file);
+ CPP_BUFFER(pfile) = cur_buffer;
+ }
+ return CPP_POP;
+ }
+ }
+ else
+ {
+ switch (c)
+ {
+ long newlines;
+ struct parse_marker start_mark;
+
+ case '/':
+ if (PEEKC() == '=')
+ goto op2;
+ if (opts->put_out_comments)
+ parse_set_mark(&start_mark, pfile);
+ newlines = 0;
+ cpp_buf_line_and_col(cpp_file_buffer(pfile),
+ &start_line, &start_column);
+ c = skip_comment(pfile, &newlines);
+ if (opts->put_out_comments && (c == '/' || c == EOF))
+ parse_clear_mark(&start_mark);
+ if (c == '/')
+ goto randomchar;
+ if (c == EOF)
+ {
+ cpp_error_with_line(pfile, start_line, start_column,
+ "unterminated comment");
+ goto handle_eof;
+ }
+ c = '/'; /* Initial letter of comment. */
+ return_comment:
+ /* Comments are equivalent to spaces.
+ * For -traditional, a comment is equivalent to nothing. */
+ if (opts->put_out_comments)
+ {
+ cpp_buffer *pbuf = CPP_BUFFER(pfile);
+ unsigned char *start = pbuf->buf + start_mark.position;
+ int len = pbuf->cur - start;
+
+ CPP_RESERVE(pfile, 1 + len);
+ CPP_PUTC_Q(pfile, c);
+ CPP_PUTS_Q(pfile, start, len);
+ pfile->lineno += newlines;
+ parse_clear_mark(&start_mark);
+ return CPP_COMMENT;
+ }
+ else if (CPP_TRADITIONAL(pfile))
+ {
+ return CPP_COMMENT;
+ }
+ else
+ {
+ CPP_RESERVE(pfile, 1);
+ CPP_PUTC_Q(pfile, ' ');
+ return CPP_HSPACE;
+ }
+
+ case '#':
+ if (!pfile->only_seen_white)
+ goto randomchar;
+ if (handle_directive(pfile))
+ return CPP_DIRECTIVE;
+ pfile->only_seen_white = 0;
+ return CPP_OTHER;
+
+ case '\"':
+ case '\'':
+ /* A single quoted string is treated like a double -- some
+ * programs (e.g., troff) are perverse this way */
+ cpp_buf_line_and_col(cpp_file_buffer(pfile),
+ &start_line, &start_column);
+ old_written = CPP_WRITTEN(pfile);
+ string:
+ CPP_PUTC(pfile, c);
+ while (1)
+ {
+ int cc = GETC();
+
+ if (cc == EOF)
+ {
+ if (CPP_IS_MACRO_BUFFER(CPP_BUFFER(pfile)))
+ {
+ /* try harder: this string crosses a macro expansion
+ * boundary. This can happen naturally if -traditional.
+ * Otherwise, only -D can make a macro with an unmatched
+ * quote. */
+ cpp_buffer *next_buf
+ = CPP_PREV_BUFFER(CPP_BUFFER(pfile));
+
+ (*CPP_BUFFER(pfile)->cleanup)
+ (CPP_BUFFER(pfile), pfile);
+ CPP_BUFFER(pfile) = next_buf;
+ continue;
+ }
+ if (!CPP_TRADITIONAL(pfile))
+ {
+ cpp_error_with_line(pfile, start_line, start_column,
+ "unterminated string or character constant");
+ if (pfile->multiline_string_line != start_line
+ && pfile->multiline_string_line != 0)
+ cpp_error_with_line(pfile,
+ pfile->multiline_string_line,
+ -1,
+ "possible real start of unterminated constant");
+ pfile->multiline_string_line = 0;
+ }
+ break;
+ }
+ CPP_PUTC(pfile, cc);
+ switch (cc)
+ {
+ case '\n':
+ /* Traditionally, end of line ends a string constant with
+ * no error. So exit the loop and record the new line. */
+ if (CPP_TRADITIONAL(pfile))
+ goto while2end;
+ if (c == '\'')
+ {
+ cpp_error_with_line(pfile, start_line, start_column,
+ "unterminated character constant");
+ goto while2end;
+ }
+ if (CPP_PEDANTIC(pfile)
+ && pfile->multiline_string_line == 0)
+ {
+ cpp_pedwarn_with_line(pfile, start_line,
+ start_column,
+ "string constant runs past end of line");
+ }
+ if (pfile->multiline_string_line == 0)
+ pfile->multiline_string_line = start_line;
+ break;
+
+ case '\\':
+ cc = GETC();
+ if (cc == '\n')
+ {
+ /* Backslash newline is replaced by nothing at all. */
+ CPP_ADJUST_WRITTEN(pfile, -1);
+ pfile->lineno++;
+ }
+ else
+ {
+ /* ANSI stupidly requires that in \\ the second \
+ * is *not* prevented from combining with a newline. */
+ NEWLINE_FIX1(cc);
+ if (cc != EOF)
+ CPP_PUTC(pfile, cc);
+ }
+ break;
+
+ case '\"':
+ case '\'':
+ if (cc == c)
+ goto while2end;
+ break;
+ }
+ }
+ while2end:
+ pfile->lineno += count_newlines(pfile->token_buffer + old_written,
+ CPP_PWRITTEN(pfile));
+ pfile->only_seen_white = 0;
+ return c == '\'' ? CPP_CHAR : CPP_STRING;
+
+ case '$':
+ if (!opts->dollars_in_ident)
+ goto randomchar;
+ goto letter;
+
+ case ':':
+ if (opts->cplusplus && PEEKC() == ':')
+ goto op2;
+ goto randomchar;
+
+ case '&':
+ case '+':
+ case '|':
+ NEWLINE_FIX;
+ c2 = PEEKC();
+ if (c2 == c || c2 == '=')
+ goto op2;
+ goto randomchar;
+
+ case '*':
+ case '!':
+ case '%':
+ case '=':
+ case '^':
+ NEWLINE_FIX;
+ if (PEEKC() == '=')
+ goto op2;
+ goto randomchar;
+
+ case '-':
+ NEWLINE_FIX;
+ c2 = PEEKC();
+ if (c2 == '-' && opts->chill)
+ {
+ /* Chill style comment */
+ if (opts->put_out_comments)
+ parse_set_mark(&start_mark, pfile);
+ FORWARD(1); /* Skip second '-'. */
+ for (;;)
+ {
+ c = GETC();
+ if (c == EOF)
+ break;
+ if (c == '\n')
+ {
+ /* Don't consider final '\n' to be part of comment. */
+ FORWARD(-1);
+ break;
+ }
+ }
+ c = '-';
+ goto return_comment;
+ }
+ if (c2 == '-' || c2 == '=' || c2 == '>')
+ goto op2;
+ goto randomchar;
+
+ case '<':
+ if (pfile->parsing_include_directive)
+ {
+ for (;;)
+ {
+ CPP_PUTC(pfile, c);
+ if (c == '>')
+ break;
+ c = GETC();
+ NEWLINE_FIX1(c);
+ if (c == '\n' || c == EOF)
+ {
+ cpp_error(pfile,
+ "missing '>' in `#include <FILENAME>'");
+ break;
+ }
+ }
+ return CPP_STRING;
+ }
+ /* else fall through */
+ case '>':
+ NEWLINE_FIX;
+ c2 = PEEKC();
+ if (c2 == '=')
+ goto op2;
+ if (c2 != c)
+ goto randomchar;
+ FORWARD(1);
+ CPP_RESERVE(pfile, 4);
+ CPP_PUTC(pfile, c);
+ CPP_PUTC(pfile, c2);
+ NEWLINE_FIX;
+ c3 = PEEKC();
+ if (c3 == '=')
+ CPP_PUTC_Q(pfile, GETC());
+ CPP_NUL_TERMINATE_Q(pfile);
+ pfile->only_seen_white = 0;
+ return CPP_OTHER;
+
+ case '@':
+ if (CPP_BUFFER(pfile)->has_escapes)
+ {
+ c = GETC();
+ if (c == '-')
+ {
+ if (pfile->output_escapes)
+ CPP_PUTS(pfile, "@-", 2);
+ parse_name(pfile, GETC());
+ return CPP_NAME;
+ }
+ else if (is_space[c])
+ {
+ CPP_RESERVE(pfile, 2);
+ if (pfile->output_escapes)
+ CPP_PUTC_Q(pfile, '@');
+ CPP_PUTC_Q(pfile, c);
+ return CPP_HSPACE;
+ }
+ }
+ if (pfile->output_escapes)
+ {
+ CPP_PUTS(pfile, "@@", 2);
+ return CPP_OTHER;
+ }
+ goto randomchar;
+
+ case '.':
+ NEWLINE_FIX;
+ c2 = PEEKC();
+ if (isdigit(c2))
+ {
+ CPP_RESERVE(pfile, 2);
+ CPP_PUTC_Q(pfile, '.');
+ c = GETC();
+ goto number;
+ }
+ /* FIXME - misses the case "..\\\n." */
+ if (c2 == '.' && PEEKN(1) == '.')
+ {
+ CPP_RESERVE(pfile, 4);
+ CPP_PUTC_Q(pfile, '.');
+ CPP_PUTC_Q(pfile, '.');
+ CPP_PUTC_Q(pfile, '.');
+ FORWARD(2);
+ CPP_NUL_TERMINATE_Q(pfile);
+ pfile->only_seen_white = 0;
+ return CPP_3DOTS;
+ }
+ goto randomchar;
+
+ op2:
+ token = CPP_OTHER;
+ pfile->only_seen_white = 0;
+ op2any:
+ CPP_RESERVE(pfile, 3);
+ CPP_PUTC_Q(pfile, c);
+ CPP_PUTC_Q(pfile, GETC());
+ CPP_NUL_TERMINATE_Q(pfile);
+ return token;
+
+ case 'L':
+ NEWLINE_FIX;
+ c2 = PEEKC();
+ if ((c2 == '\'' || c2 == '\"') && !CPP_TRADITIONAL(pfile))
+ {
+ CPP_PUTC(pfile, c);
+ c = GETC();
+ goto string;
+ }
+ goto letter;
+
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ number:
+ c2 = '.';
+ for (;;)
+ {
+ CPP_RESERVE(pfile, 2);
+ CPP_PUTC_Q(pfile, c);
+ NEWLINE_FIX;
+ c = PEEKC();
+ if (c == EOF)
+ break;
+ if (!is_idchar[c] && c != '.'
+ && ((c2 != 'e' && c2 != 'E') || (c != '+' && c != '-')))
+ break;
+ FORWARD(1);
+ c2 = c;
+ }
+ CPP_NUL_TERMINATE_Q(pfile);
+ pfile->only_seen_white = 0;
+ return CPP_NUMBER;
+ case 'b':
+ case 'c':
+ case 'd':
+ case 'h':
+ case 'o':
+ case 'B':
+ case 'C':
+ case 'D':
+ case 'H':
+ case 'O':
+ if (opts->chill && PEEKC() == '\'')
+ {
+ pfile->only_seen_white = 0;
+ CPP_RESERVE(pfile, 2);
+ CPP_PUTC_Q(pfile, c);
+ CPP_PUTC_Q(pfile, '\'');
+ FORWARD(1);
+ for (;;)
+ {
+ c = GETC();
+ if (c == EOF)
+ goto chill_number_eof;
+ if (!is_idchar[c])
+ {
+ if (c == '\\' && PEEKC() == '\n')
+ {
+ FORWARD(2);
+ continue;
+ }
+ break;
+ }
+ CPP_PUTC(pfile, c);
+ }
+ if (c == '\'')
+ {
+ CPP_RESERVE(pfile, 2);
+ CPP_PUTC_Q(pfile, c);
+ CPP_NUL_TERMINATE_Q(pfile);
+ return CPP_STRING;
+ }
+ else
+ {
+ FORWARD(-1);
+ chill_number_eof:
+ CPP_NUL_TERMINATE(pfile);
+ return CPP_NUMBER;
+ }
+ }
+ else
+ goto letter;
+ case '_':
+ case 'a':
+ case 'e':
+ case 'f':
+ case 'g':
+ case 'i':
+ case 'j':
+ case 'k':
+ case 'l':
+ case 'm':
+ case 'n':
+ case 'p':
+ case 'q':
+ case 'r':
+ case 's':
+ case 't':
+ case 'u':
+ case 'v':
+ case 'w':
+ case 'x':
+ case 'y':
+ case 'z':
+ case 'A':
+ case 'E':
+ case 'F':
+ case 'G':
+ case 'I':
+ case 'J':
+ case 'K':
+ case 'M':
+ case 'N':
+ case 'P':
+ case 'Q':
+ case 'R':
+ case 'S':
+ case 'T':
+ case 'U':
+ case 'V':
+ case 'W':
+ case 'X':
+ case 'Y':
+ case 'Z':
+ letter:
+ {
+ HASHNODE *hp;
+ char *ident;
+ int before_name_written = CPP_WRITTEN(pfile);
+ int ident_len;
+
+ parse_name(pfile, c);
+ pfile->only_seen_white = 0;
+ if (pfile->no_macro_expand)
+ return CPP_NAME;
+ ident = (char *)pfile->token_buffer + before_name_written;
+ ident_len = CPP_PWRITTEN(pfile) - (unsigned char *)ident;
+ hp = cpp_lookup(ident, ident_len, -1);
+ if (!hp)
+ return CPP_NAME;
+ if (hp->type == T_DISABLED)
+ {
+ if (pfile->output_escapes)
+ { /* Return "@-IDENT", followed by '\0'. */
+ int i;
+
+ CPP_RESERVE(pfile, 3);
+ ident =
+ (char *)pfile->token_buffer + before_name_written;
+ CPP_ADJUST_WRITTEN(pfile, 2);
+ for (i = ident_len; i >= 0; i--)
+ ident[i + 2] = ident[i];
+ ident[0] = '@';
+ ident[1] = '-';
+ }
+ return CPP_NAME;
+ }
+ /* If macro wants an arglist, verify that a '(' follows.
+ * first skip all whitespace, copying it to the output
+ * after the macro name. Then, if there is no '(',
+ * decide this is not a macro call and leave things that way. */
+ if (hp->type == T_MACRO && hp->value.defn->nargs >= 0)
+ {
+ struct parse_marker macro_mark;
+ int is_macro_call;
+
+ while (CPP_IS_MACRO_BUFFER(CPP_BUFFER(pfile)))
+ {
+ cpp_buffer *next_buf;
+
+ cpp_skip_hspace(pfile);
+ if (PEEKC() != EOF)
+ break;
+ next_buf = CPP_PREV_BUFFER(CPP_BUFFER(pfile));
+ (*CPP_BUFFER(pfile)->cleanup) (CPP_BUFFER(pfile),
+ pfile);
+ CPP_BUFFER(pfile) = next_buf;
+ }
+ parse_set_mark(¯o_mark, pfile);
+ for (;;)
+ {
+ cpp_skip_hspace(pfile);
+ c = PEEKC();
+ is_macro_call = c == '(';
+ if (c != '\n')
+ break;
+ FORWARD(1);
+ }
+ if (!is_macro_call)
+ parse_goto_mark(¯o_mark, pfile);
+ parse_clear_mark(¯o_mark);
+ if (!is_macro_call)
+ return CPP_NAME;
+ }
+ /* This is now known to be a macro call. */
+
+ /* it might not actually be a macro. */
+ if (hp->type != T_MACRO)
+ {
+ int xbuf_len;
+ unsigned char *xbuf;
+
+ CPP_SET_WRITTEN(pfile, before_name_written);
+ special_symbol(hp, pfile);
+ xbuf_len = CPP_WRITTEN(pfile) - before_name_written;
+ xbuf = (unsigned char *)xmalloc(xbuf_len + 1);
+ CPP_SET_WRITTEN(pfile, before_name_written);
+ memcpy(xbuf, CPP_PWRITTEN(pfile), xbuf_len + 1);
+ push_macro_expansion(pfile, xbuf, xbuf_len, hp);
+ }
+ else
+ {
+ /* Expand the macro, reading arguments as needed,
+ * and push the expansion on the input stack. */
+ macroexpand(pfile, hp);
+ CPP_SET_WRITTEN(pfile, before_name_written);
+ }
+
+ /* An extra "@ " is added to the end of a macro expansion
+ * to prevent accidental token pasting. We prefer to avoid
+ * unneeded extra spaces (for the sake of cpp-using tools like
+ * imake). Here we remove the space if it is safe to do so. */
+ if (pfile->buffer->rlimit - pfile->buffer->cur >= 3
+ && pfile->buffer->rlimit[-2] == '@'
+ && pfile->buffer->rlimit[-1] == ' ')
+ {
+ int c1 = pfile->buffer->rlimit[-3];
+
+ c2 = CPP_BUF_PEEK(CPP_PREV_BUFFER(CPP_BUFFER(pfile)));
+
+ if (c2 == EOF || !unsafe_chars(c1, c2))
+ pfile->buffer->rlimit -= 2;
+ }
+ }
+ goto get_next;
+
+ case ' ':
+ case '\t':
+ case '\v':
+ case '\r':
+ for (;;)
+ {
+ CPP_PUTC(pfile, c);
+ c = PEEKC();
+ if (c == EOF || !is_hor_space[c])
+ break;
+ FORWARD(1);
+ }
+ return CPP_HSPACE;
+
+ case '\\':
+ c2 = PEEKC();
+ if (c2 != '\n')
+ goto randomchar;
+ token = CPP_HSPACE;
+ goto op2any;
+
+ case '\n':
+ CPP_PUTC(pfile, c);
+ if (pfile->only_seen_white == 0)
+ pfile->only_seen_white = 1;
+ pfile->lineno++;
+ output_line_command(pfile, 1, same_file);
+ return CPP_VSPACE;
+
+ case '(':
+ token = CPP_LPAREN;
+ goto char1;
+ case ')':
+ token = CPP_RPAREN;
+ goto char1;
+ case '{':
+ token = CPP_LBRACE;
+ goto char1;
+ case '}':
+ token = CPP_RBRACE;
+ goto char1;
+ case ',':
+ token = CPP_COMMA;
+ goto char1;
+ case ';':
+ token = CPP_SEMICOLON;
+ goto char1;
+
+ randomchar:
+ default:
+ token = CPP_OTHER;
+ char1:
+ pfile->only_seen_white = 0;
+ CPP_PUTC(pfile, c);
+ return token;
+ }
+ }
+}
+
+#if 0 /* Unused */
+/* Like cpp_get_token, but skip spaces and comments. */
+enum cpp_token
+cpp_get_non_space_token(cpp_reader * pfile)
+{
+ int old_written = CPP_WRITTEN(pfile);
+
+ for (;;)
+ {
+ enum cpp_token token = cpp_get_token(pfile);
+
+ if (token != CPP_COMMENT && token != CPP_POP
+ && token != CPP_HSPACE && token != CPP_VSPACE)
+ return token;
+ CPP_SET_WRITTEN(pfile, old_written);
+ }
+}
+#endif
+
+/* Parse an identifier starting with C. */
+
+int
+parse_name(cpp_reader * pfile, int c)
+{
+ for (;;)
+ {
+ if (!is_idchar[c])
+ {
+ if (c == '\\' && PEEKC() == '\n')
+ {
+ FORWARD(2);
+ continue;
+ }
+ FORWARD(-1);
+ break;
+ }
+ CPP_RESERVE(pfile, 2); /* One more for final NUL. */
+ CPP_PUTC_Q(pfile, c);
+ c = GETC();
+ if (c == EOF)
+ break;
+ }
+ CPP_NUL_TERMINATE_Q(pfile);
+ return 1;
+}
+
+/* Maintain and search list of included files, for #import. */
+
+/* Hash a file name for import_hash_table. */
+
+static int
+import_hash(char *f)
+{
+ int val = 0;
+
+ while (*f)
+ val += *f++;
+ return (val % IMPORT_HASH_SIZE);
+}
+
+/* Search for file FILENAME in import_hash_table.
+ * Return -2 if found, either a matching name or a matching inode.
+ * Otherwise, open the file and return a file descriptor if successful
+ * or -1 if unsuccessful. */
+
+static int
+lookup_import(cpp_reader * pfile, char *filename,
+ struct file_name_list *searchptr)
+{
+ struct import_file *i;
+ int h;
+ int hashval;
+ struct stat sb;
+ int fd;
+
+ hashval = import_hash(filename);
+
+ /* Attempt to find file in list of already included files */
+ i = pfile->import_hash_table[hashval];
+
+ while (i)
+ {
+ if (!strcmp(filename, i->name))
+ return -2; /* return found */
+ i = i->next;
+ }
+ /* Open it and try a match on inode/dev */
+ fd = open_include_file(pfile, filename, searchptr);
+ if (fd < 0)
+ return fd;
+ fstat(fd, &sb);
+ for (h = 0; h < IMPORT_HASH_SIZE; h++)
+ {
+ i = pfile->import_hash_table[h];
+ while (i)
+ {
+ /* Compare the inode and the device.
+ * Supposedly on some systems the inode is not a scalar. */
+ if (!memcmp
+ ((char *)&i->inode, (char *)&sb.st_ino, sizeof(sb.st_ino))
+ && i->dev == sb.st_dev)
+ {
+ close(fd);
+ return -2; /* return found */
+ }
+ i = i->next;
+ }
+ }
+ return fd; /* Not found, return open file */
+}
+
+/* Add the file FNAME, open on descriptor FD, to import_hash_table. */
+
+static void
+add_import(cpp_reader * pfile, int fd, char *fname)
+{
+ struct import_file *i;
+ int hashval;
+ struct stat sb;
+
+ hashval = import_hash(fname);
+ fstat(fd, &sb);
+ i = (struct import_file *)xmalloc(sizeof(struct import_file));
+
+ i->name = (char *)xmalloc(strlen(fname) + 1);
+ strcpy(i->name, fname);
+ memcpy((char *)&i->inode, (char *)&sb.st_ino, sizeof(sb.st_ino));
+ i->dev = sb.st_dev;
+ i->next = pfile->import_hash_table[hashval];
+ pfile->import_hash_table[hashval] = i;
+}
+
+/* The file_name_map structure holds a mapping of file names for a
+ * particular directory. This mapping is read from the file named
+ * FILE_NAME_MAP_FILE in that directory. Such a file can be used to
+ * map filenames on a file system with severe filename restrictions,
+ * such as DOS. The format of the file name map file is just a series
+ * of lines with two tokens on each line. The first token is the name
+ * to map, and the second token is the actual name to use. */
+
+struct file_name_map {
+ struct file_name_map *map_next;
+ char *map_from;
+ char *map_to;
+};
+
+#if USE_FILE_NAME_MAPS
+
+#define FILE_NAME_MAP_FILE "header.gcc"
+
+/* Read a space delimited string of unlimited length from a stdio
+ * file. */
+
+static char *
+read_filename_string(int ch, FILE * f)
+{
+ char *alloc, *set;
+ int len;
+
+ len = 20;
+ set = alloc = (char *)xmalloc(len + 1);
+ if (!is_space[ch])
+ {
+ *set++ = ch;
+ while ((ch = getc(f)) != EOF && !is_space[ch])
+ {
+ if (set - alloc == len)
+ {
+ len *= 2;
+ alloc = (char *)xrealloc(alloc, len + 1);
+ set = alloc + len / 2;
+ }
+ *set++ = ch;
+ }
+ }
+ *set = '\0';
+ ungetc(ch, f);
+ return alloc;
+}
+
+/* This structure holds a linked list of file name maps, one per directory. */
+struct file_name_map_list {
+ struct file_name_map_list *map_list_next;
+ char *map_list_name;
+ struct file_name_map *map_list_map;
+};
+
+/* Read the file name map file for DIRNAME. */
+
+static struct file_name_map *
+read_name_map(cpp_reader * pfile, const char *dirname)
+{
+ struct file_name_map_list *map_list_ptr;
+ char *name;
+ FILE *f;
+
+ for (map_list_ptr = CPP_OPTIONS(pfile)->map_list; map_list_ptr;
+ map_list_ptr = map_list_ptr->map_list_next)
+ if (!strcmp(map_list_ptr->map_list_name, dirname))
+ return map_list_ptr->map_list_map;
+
+ map_list_ptr =
+ ((struct file_name_map_list *)xmalloc(sizeof(struct file_name_map_list)));
+
+ map_list_ptr->map_list_name = savestring(dirname);
+ map_list_ptr->map_list_map = NULL;
+
+ name = (char *)alloca(strlen(dirname) + strlen(FILE_NAME_MAP_FILE) + 2);
+ strcpy(name, dirname);
+ if (*dirname)
+ strcat(name, "/");
+ strcat(name, FILE_NAME_MAP_FILE);
+#ifndef __EMX__
+ f = fopen(name, "r");
+#else
+ f = fopen(name, "rt");
+#endif
+ if (!f)
+ map_list_ptr->map_list_map = NULL;
+ else
+ {
+ int ch;
+ int dirlen = strlen(dirname);
+
+ while ((ch = getc(f)) != EOF)
+ {
+ char *from, *to;
+ struct file_name_map *ptr;
+
+ if (is_space[ch])
+ continue;
+ from = read_filename_string(ch, f);
+ while ((ch = getc(f)) != EOF && is_hor_space[ch]);
+ to = read_filename_string(ch, f);
+
+ ptr =
+ ((struct file_name_map *)xmalloc(sizeof(struct file_name_map)));
+
+ ptr->map_from = from;
+
+ /* Make the real filename absolute. */
+ if (*to == '/')
+ ptr->map_to = to;
+ else
+ {
+ ptr->map_to = (char *)xmalloc(dirlen + strlen(to) + 2);
+ strcpy(ptr->map_to, dirname);
+ ptr->map_to[dirlen] = '/';
+ strcpy(ptr->map_to + dirlen + 1, to);
+ free(to);
+ }
+
+ ptr->map_next = map_list_ptr->map_list_map;
+ map_list_ptr->map_list_map = ptr;
+
+ while ((ch = getc(f)) != '\n')
+ if (ch == EOF)
+ break;
+ }
+ fclose(f);
+ }
+
+ map_list_ptr->map_list_next = CPP_OPTIONS(pfile)->map_list;
+ CPP_OPTIONS(pfile)->map_list = map_list_ptr;
+
+ return map_list_ptr->map_list_map;
+}
+
+/* Try to open include file FILENAME. SEARCHPTR is the directory
+ * being tried from the include file search path. This function maps
+ * filenames on file systems based on information read by
+ * read_name_map. */
+
+static int
+open_include_file(cpp_reader * pfile, char *filename,
+ struct file_name_list *searchptr)
+{
+ struct file_name_map *map;
+ const char *from;
+ const char *p, *dir;
+
+ if (searchptr && !searchptr->got_name_map)
+ {
+ searchptr->name_map = read_name_map(pfile,
+ searchptr->fname
+ ? searchptr->fname : ".");
+ searchptr->got_name_map = 1;
+ }
+ /* First check the mapping for the directory we are using. */
+ if (searchptr && searchptr->name_map)
+ {
+ from = filename;
+ if (searchptr->fname)
+ from += strlen(searchptr->fname) + 1;
+ for (map = searchptr->name_map; map; map = map->map_next)
+ {
+ if (!strcmp(map->map_from, from))
+ {
+ /* Found a match. */
+ return open(map->map_to, O_RDONLY, 0666);
+ }
+ }
+ }
+ /* Try to find a mapping file for the particular directory we are
+ * looking in. Thus #include <sys/types.h> will look up sys/types.h
+ * in /usr/include/header.gcc and look up types.h in
+ * /usr/include/sys/header.gcc. */
+ p = strrchr(filename, '/');
+ if (!p)
+ p = filename;
+ if (searchptr
+ && searchptr->fname
+ && strlen(searchptr->fname) == (unsigned)(p - filename)
+ && !strncmp(searchptr->fname, filename, p - filename))
+ {
+ /* FILENAME is in SEARCHPTR, which we've already checked. */
+ return open(filename, O_RDONLY, 0666);
+ }
+ if (p == filename)
+ {
+ dir = ".";
+ from = filename;
+ }
+ else
+ {
+ char *s;
+
+ s = (char *)alloca(p - filename + 1);
+ memcpy(s, filename, p - filename);
+ s[p - filename] = '\0';
+ from = p + 1;
+ dir = s;
+ }
+ for (map = read_name_map(pfile, dir); map; map = map->map_next)
+ if (!strcmp(map->map_from, from))
+ return open(map->map_to, O_RDONLY, 0666);
+
+ return open(filename, O_RDONLY, 0666);
+}
+
+#else
+
+static int
+open_include_file(cpp_reader * pfile, char *filename,
+ struct file_name_list *searchptr)
+{
+ pfile = NULL;
+ searchptr = NULL;
+ return open(filename, O_RDONLY, 0666);
+}
+
+#endif /* USE_FILE_NAME_MAPS */
+
+/* Process the contents of include file FNAME, already open on descriptor F,
+ * with output to OP.
+ * SYSTEM_HEADER_P is 1 if this file resides in any one of the known
+ * "system" include directories (as decided by the `is_system_include'
+ * function above).
+ * DIRPTR is the link in the dir path through which this file was found,
+ * or 0 if the file name was absolute or via the current directory.
+ * Return 1 on success, 0 on failure.
+ *
+ * The caller is responsible for the cpp_push_buffer. */
+
+static int
+finclude(cpp_reader * pfile, int f, const char *fname, int system_header_p,
+ struct file_name_list *dirptr)
+{
+ int st_mode;
+ long st_size;
+ long i;
+ int length;
+ cpp_buffer *fp; /* For input stack frame */
+
+ if (file_size_and_mode(f, &st_mode, &st_size) < 0)
+ {
+ cpp_perror_with_name(pfile, fname);
+ close(f);
+ cpp_pop_buffer(pfile);
+ return 0;
+ }
+ fp = CPP_BUFFER(pfile);
+ fp->nominal_fname = fp->fname = fname;
+ fp->dir = dirptr;
+ fp->system_header_p = system_header_p;
+ fp->lineno = 1;
+ fp->colno = 1;
+ fp->cleanup = file_cleanup;
+
+ if (S_ISREG(st_mode))
+ {
+ fp->buf = (unsigned char *)xmalloc(st_size + 2);
+ fp->alimit = fp->buf + st_size + 2;
+ fp->cur = fp->buf;
+
+ /* Read the file contents, knowing that st_size is an upper bound
+ * on the number of bytes we can read. */
+ length = safe_read(f, (char *)fp->buf, st_size);
+ fp->rlimit = fp->buf + length;
+ if (length < 0)
+ goto nope;
+ }
+ else if (S_ISDIR(st_mode))
+ {
+ cpp_error(pfile, "directory `%s' specified in #include", fname);
+ close(f);
+ return 0;
+ }
+ else
+ {
+ /* Cannot count its file size before reading.
+ * First read the entire file into heap and
+ * copy them into buffer on stack. */
+
+ int bsize = 2000;
+
+ st_size = 0;
+ fp->buf = (unsigned char *)xmalloc(bsize + 2);
+
+ for (;;)
+ {
+ i = safe_read(f, (char *)(fp->buf + st_size), bsize - st_size);
+ if (i < 0)
+ goto nope; /* error! */
+ st_size += i;
+ if (st_size != bsize)
+ break; /* End of file */
+ bsize *= 2;
+ fp->buf = (unsigned char *)xrealloc(fp->buf, bsize + 2);
+ }
+ length = st_size;
+ }
+
+ if ((length > 0 && fp->buf[length - 1] != '\n')
+ /* Backslash-newline at end is not good enough. */
+ || (length > 1 && fp->buf[length - 2] == '\\'))
+ {
+ fp->buf[length++] = '\n';
+ }
+ fp->buf[length] = '\0';
+ fp->rlimit = fp->buf + length;
+
+ /* Close descriptor now, so nesting does not use lots of descriptors. */
+ close(f);
+
+ /* Must do this before calling trigraph_pcp, so that the correct file name
+ * will be printed in warning messages. */
+
+ pfile->input_stack_listing_current = 0;
+
+ return 1;
+
+ nope:
+
+ cpp_perror_with_name(pfile, fname);
+ close(f);
+ free(fp->buf);
+ return 1;
+}
+
+int
+push_parse_file(cpp_reader * pfile, const char *fname)
+{
+ struct cpp_options *opts = CPP_OPTIONS(pfile);
+ struct cpp_pending *pend;
+ char *p;
+ int f;
+ cpp_buffer *fp;
+
+ /* The code looks at the defaults through this pointer, rather than through
+ * the constant structure above. This pointer gets changed if an environment
+ * variable specifies other defaults. */
+ struct default_include *include_defaults = include_defaults_array;
+
+ /* Add dirs from CPATH after dirs from -I. */
+ /* There seems to be confusion about what CPATH should do,
+ * so for the moment it is not documented. */
+ /* Some people say that CPATH should replace the standard include dirs,
+ * but that seems pointless: it comes before them, so it overrides them
+ * anyway. */
+ p = (char *)getenv("CPATH");
+ if (p != 0 && !opts->no_standard_includes)
+ path_include(pfile, p);
+
+ /* Now that dollars_in_ident is known, initialize is_idchar. */
+ initialize_char_syntax(opts);
+
+ /* Do partial setup of input buffer for the sake of generating
+ * early #line directives (when -g is in effect). */
+ fp = cpp_push_buffer(pfile, NULL, 0);
+ if (opts->in_fname == NULL)
+ opts->in_fname = "";
+ fp->nominal_fname = fp->fname = opts->in_fname;
+ fp->lineno = 0;
+
+ /* Install __LINE__, etc. Must follow initialize_char_syntax
+ * and option processing. */
+ initialize_builtins(pfile);
+
+ /* Do standard #defines and assertions
+ * that identify system and machine type. */
+
+ if (!opts->inhibit_predefs)
+ {
+ p = (char *)alloca(strlen(predefs) + 1);
+
+ strcpy(p, predefs);
+ while (*p)
+ {
+ char *q;
+
+ while (*p == ' ' || *p == '\t')
+ p++;
+ /* Handle -D options. */
+ if (p[0] == '-' && p[1] == 'D')
+ {
+ q = &p[2];
+ while (*p && *p != ' ' && *p != '\t')
+ p++;
+ if (*p != 0)
+ *p++ = 0;
+ if (opts->debug_output)
+ output_line_command(pfile, 0, same_file);
+ cpp_define(pfile, (unsigned char *)q);
+ while (*p == ' ' || *p == '\t')
+ p++;
+ }
+ else if (p[0] == '-' && p[1] == 'A')
+ {
+ /* Handle -A options (assertions). */
+ char *assertion;
+ char *past_name;
+ char *value;
+ char *past_value;
+ char *termination;
+ int save_char;
+
+ assertion = &p[2];
+ past_name = assertion;
+ /* Locate end of name. */
+ while (*past_name && *past_name != ' '
+ && *past_name != '\t' && *past_name != '(')
+ past_name++;
+ /* Locate `(' at start of value. */
+ value = past_name;
+ while (*value && (*value == ' ' || *value == '\t'))
+ value++;
+ if (*value++ != '(')
+ abort();
+ while (*value && (*value == ' ' || *value == '\t'))
+ value++;
+ past_value = value;
+ /* Locate end of value. */
+ while (*past_value && *past_value != ' '
+ && *past_value != '\t' && *past_value != ')')
+ past_value++;
+ termination = past_value;
+ while (*termination
+ && (*termination == ' ' || *termination == '\t'))
+ termination++;
+ if (*termination++ != ')')
+ abort();
+ if (*termination && *termination != ' '
+ && *termination != '\t')
+ abort();
+ /* Temporarily null-terminate the value. */
+ save_char = *termination;
+ *termination = '\0';
+ /* Install the assertion. */
+ make_assertion(pfile, "-A", assertion);
+ *termination = (char)save_char;
+ p = termination;
+ while (*p == ' ' || *p == '\t')
+ p++;
+ }
+ else
+ {
+ abort();
+ }
+ }
+ }
+ /* Now handle the command line options. */
+
+ /* Do -U's, -D's and -A's in the order they were seen. */
+ /* First reverse the list. */
+ opts->pending = nreverse_pending(opts->pending);
+
+ for (pend = opts->pending; pend; pend = pend->next)
+ {
+ if (pend->cmd != NULL && pend->cmd[0] == '-')
+ {
+ switch (pend->cmd[1])
+ {
+ case 'U':
+ if (opts->debug_output)
+ output_line_command(pfile, 0, same_file);
+ do_undef(pfile, NULL, (unsigned char *)pend->arg,
+ (unsigned char *)pend->arg + strlen(pend->arg));
+ break;
+ case 'D':
+ if (opts->debug_output)
+ output_line_command(pfile, 0, same_file);
+ cpp_define(pfile, (unsigned char *)pend->arg);
+ break;
+ case 'A':
+ make_assertion(pfile, "-A", pend->arg);
+ break;
+ }
+ }
+ }
+
+ opts->done_initializing = 1;
+
+ { /* read the appropriate environment variable and if it exists
+ * replace include_defaults with the listed path. */
+ char *epath = 0;
+
+ switch ((opts->objc << 1) + opts->cplusplus)
+ {
+ case 0:
+ epath = getenv("C_INCLUDE_PATH");
+ break;
+ case 1:
+ epath = getenv("CPLUS_INCLUDE_PATH");
+ break;
+ case 2:
+ epath = getenv("OBJC_INCLUDE_PATH");
+ break;
+ case 3:
+ epath = getenv("OBJCPLUS_INCLUDE_PATH");
+ break;
+ }
+ /* If the environment var for this language is set,
+ * add to the default list of include directories. */
+ if (epath)
+ {
+ char *nstore = (char *)alloca(strlen(epath) + 2);
+ int num_dirs;
+ char *startp, *endp;
+
+ for (num_dirs = 1, startp = epath; *startp; startp++)
+ if (*startp == PATH_SEPARATOR)
+ num_dirs++;
+ include_defaults
+ = (struct default_include *)xmalloc((num_dirs
+ *
+ sizeof(struct
+ default_include)) +
+ sizeof
+ (include_defaults_array));
+
+ startp = endp = epath;
+ num_dirs = 0;
+ while (1)
+ {
+ /* Handle cases like c:/usr/lib:d:/gcc/lib */
+ if ((*endp == PATH_SEPARATOR) || *endp == 0)
+ {
+ strncpy(nstore, startp, endp - startp);
+ if (endp == startp)
+ strcpy(nstore, ".");
+ else
+ nstore[endp - startp] = '\0';
+
+ include_defaults[num_dirs].fname = savestring(nstore);
+ include_defaults[num_dirs].cplusplus = opts->cplusplus;
+ include_defaults[num_dirs].cxx_aware = 1;
+ num_dirs++;
+ if (*endp == '\0')
+ break;
+ endp = startp = endp + 1;
+ }
+ else
+ endp++;
+ }
+ /* Put the usual defaults back in at the end. */
+ memcpy((char *)&include_defaults[num_dirs],
+ (char *)include_defaults_array,
+ sizeof(include_defaults_array));
+ }
+ }
+
+ append_include_chain(pfile, opts->before_system, opts->last_before_system);
+ opts->first_system_include = opts->before_system;
+
+ /* Unless -fnostdinc,
+ * tack on the standard include file dirs to the specified list */
+ if (!opts->no_standard_includes)
+ {
+ struct default_include *di = include_defaults;
+ char *specd_prefix = opts->include_prefix;
+ char *default_prefix = savestring(GCC_INCLUDE_DIR);
+ int default_len = 0;
+
+ /* Remove the `include' from /usr/local/lib/gcc.../include. */
+ if (!strcmp(default_prefix + strlen(default_prefix) - 8, "/include"))
+ {
+ default_len = strlen(default_prefix) - 7;
+ default_prefix[default_len] = 0;
+ }
+ /* Search "translated" versions of GNU directories.
+ * These have /usr/local/lib/gcc... replaced by specd_prefix. */
+ if (specd_prefix != 0 && default_len != 0)
+ for (di = include_defaults; di->fname; di++)
+ {
+ /* Some standard dirs are only for C++. */
+ if (!di->cplusplus
+ || (opts->cplusplus
+ && !opts->no_standard_cplusplus_includes))
+ {
+ /* Does this dir start with the prefix? */
+ if (!strncmp(di->fname, default_prefix, default_len))
+ {
+ /* Yes; change prefix and add to search list. */
+ struct file_name_list *new_
+ =
+ (struct file_name_list *)
+ xmalloc(sizeof(struct file_name_list));
+ int this_len =
+ strlen(specd_prefix) + strlen(di->fname) -
+ default_len;
+ char *str =
+ (char *)xmalloc(this_len + 1);
+
+ strcpy(str, specd_prefix);
+ strcat(str, di->fname + default_len);
+ new_->fname = str;
+ new_->control_macro = 0;
+ new_->c_system_include_path = !di->cxx_aware;
+ new_->got_name_map = 0;
+ append_include_chain(pfile, new_, new_);
+ if (opts->first_system_include == 0)
+ opts->first_system_include = new_;
+ }
+ }
+ }
+ /* Search ordinary names for GNU include directories. */
+ for (di = include_defaults; di->fname; di++)
+ {
+ /* Some standard dirs are only for C++. */
+ if (!di->cplusplus
+ || (opts->cplusplus && !opts->no_standard_cplusplus_includes))
+ {
+ struct file_name_list *new_
+ = (struct file_name_list *)
+ xmalloc(sizeof(struct file_name_list));
+
+ new_->control_macro = 0;
+ new_->c_system_include_path = !di->cxx_aware;
+ new_->fname = (char *)di->fname;
+ new_->got_name_map = 0;
+ append_include_chain(pfile, new_, new_);
+ if (opts->first_system_include == 0)
+ opts->first_system_include = new_;
+ }
+ }
+ }
+ /* Tack the after_include chain at the end of the include chain. */
+ append_include_chain(pfile, opts->after_include, opts->last_after_include);
+ if (opts->first_system_include == 0)
+ opts->first_system_include = opts->after_include;
+
+ /* With -v, print the list of dirs to search. */
+ if (opts->verbose)
+ {
+ struct file_name_list *fl;
+
+ fprintf(stderr, "#include \"...\" search starts here:\n");
+ for (fl = opts->include; fl; fl = fl->next)
+ {
+ if (fl == opts->first_bracket_include)
+ fprintf(stderr, "#include <...> search starts here:\n");
+ fprintf(stderr, " %s\n", fl->fname);
+ }
+ fprintf(stderr, "End of search list.\n");
+ }
+ /* Scan the -imacros files before the main input.
+ * Much like #including them, but with no_output set
+ * so that only their macro definitions matter. */
+
+ opts->no_output++;
+ pfile->no_record_file++;
+ for (pend = opts->pending; pend; pend = pend->next)
+ {
+ if (pend->cmd != NULL && strcmp(pend->cmd, "-imacros") == 0)
+ {
+ int fd = open(pend->arg, O_RDONLY, 0666);
+
+ if (fd < 0)
+ {
+ cpp_perror_with_name(pfile, pend->arg);
+ return FATAL_EXIT_CODE;
+ }
+ cpp_push_buffer(pfile, NULL, 0);
+ finclude(pfile, fd, pend->arg, 0, NULL);
+ cpp_scan_buffer(pfile);
+ }
+ }
+ opts->no_output--;
+ pfile->no_record_file--;
+
+ /* Copy the entire contents of the main input file into
+ * the stacked input buffer previously allocated for it. */
+ if (fname == NULL || *fname == 0)
+ {
+ fname = "";
+ f = 0;
+ }
+ else if ((f = open(fname, O_RDONLY, 0666)) < 0)
+ cpp_pfatal_with_name(pfile, fname);
+
+ /* -MG doesn't select the form of output and must be specified with one of
+ * -M or -MM. -MG doesn't make sense with -MD or -MMD since they don't
+ * inhibit compilation. */
+ if (opts->print_deps_missing_files
+ && (opts->print_deps == 0 || !opts->no_output))
+ cpp_fatal("-MG must be specified with one of -M or -MM");
+
+ /* Either of two environment variables can specify output of deps.
+ * Its value is either "OUTPUT_FILE" or "OUTPUT_FILE DEPS_TARGET",
+ * where OUTPUT_FILE is the file to write deps info to
+ * and DEPS_TARGET is the target to mention in the deps. */
+
+ if (opts->print_deps == 0
+ && (getenv("SUNPRO_DEPENDENCIES") != 0
+ || getenv("DEPENDENCIES_OUTPUT") != 0))
+ {
+ char *spec = getenv("DEPENDENCIES_OUTPUT");
+ char *s;
+ char *output_file;
+
+ if (spec == 0)
+ {
+ spec = getenv("SUNPRO_DEPENDENCIES");
+ opts->print_deps = 2;
+ }
+ else
+ opts->print_deps = 1;
+
+ s = spec;
+ /* Find the space before the DEPS_TARGET, if there is one. */
+ /* This should use index. (mrs) */
+ while (*s != 0 && *s != ' ')
+ s++;
+ if (*s != 0)
+ {
+ opts->deps_target = s + 1;
+ output_file = (char *)xmalloc(s - spec + 1);
+ memcpy(output_file, spec, s - spec);
+ output_file[s - spec] = 0;
+ }
+ else
+ {
+ opts->deps_target = 0;
+ output_file = spec;
+ }
+
+ opts->deps_file = output_file;
+ opts->print_deps_append = 1;
+ }
+ /* For -M, print the expected object file name
+ * as the target of this Make-rule. */
+ if (opts->print_deps)
+ {
+ pfile->deps_allocated_size = 200;
+ pfile->deps_buffer = (char *)xmalloc(pfile->deps_allocated_size);
+ pfile->deps_buffer[0] = 0;
+ pfile->deps_size = 0;
+ pfile->deps_column = 0;
+
+ if (opts->deps_target)
+ deps_output(pfile, opts->deps_target, ':');
+ else if (*opts->in_fname == 0)
+ deps_output(pfile, "-", ':');
+ else
+ {
+ char *q;
+ int len;
+
+ /* Discard all directory prefixes from filename. */
+ if ((q = (char *)strrchr(opts->in_fname, '/')) != NULL
+#ifdef DIR_SEPARATOR
+ && (q = strrchr(opts->in_fname, DIR_SEPARATOR)) != NULL
+#endif
+ )
+ ++q;
+ else
+ q = (char *)opts->in_fname;
+
+ /* Copy remainder to mungable area. */
+ p = (char *)alloca(strlen(q) + 8);
+ strcpy(p, q);
+
+ /* Output P, but remove known suffixes. */
+ len = strlen(p);
+ q = p + len;
+ if (len >= 2 && p[len - 2] == '.' && strchr("cCsSm", p[len - 1]))
+ q = p + (len - 2);
+ else if (len >= 3
+ && p[len - 3] == '.'
+ && p[len - 2] == 'c' && p[len - 1] == 'c')
+ q = p + (len - 3);
+ else if (len >= 4
+ && p[len - 4] == '.'
+ && p[len - 3] == 'c'
+ && p[len - 2] == 'x' && p[len - 1] == 'x')
+ q = p + (len - 4);
+ else if (len >= 4
+ && p[len - 4] == '.'
+ && p[len - 3] == 'c'
+ && p[len - 2] == 'p' && p[len - 1] == 'p')
+ q = p + (len - 4);
+
+ /* Supply our own suffix. */
+ strcpy(q, ".o");
+
+ deps_output(pfile, p, ':');
+ deps_output(pfile, opts->in_fname, ' ');
+ }
+ }
+
+ /* Scan the -include files before the main input.
+ * We push these in reverse order, so that the first one is handled first. */
+
+ pfile->no_record_file++;
+ opts->pending = nreverse_pending(opts->pending);
+ for (pend = opts->pending; pend; pend = pend->next)
+ {
+ if (pend->cmd != NULL && strcmp(pend->cmd, "-include") == 0)
+ {
+ int fd = open(pend->arg, O_RDONLY, 0666);
+
+ if (fd < 0)
+ {
+ cpp_perror_with_name(pfile, pend->arg);
+ return FATAL_EXIT_CODE;
+ }
+ cpp_push_buffer(pfile, NULL, 0);
+ finclude(pfile, fd, pend->arg, 0, NULL);
+ }
+ }
+ pfile->no_record_file--;
+
+ /* Free the pending list. */
+ for (pend = opts->pending; pend;)
+ {
+ struct cpp_pending *next = pend->next;
+
+ free(pend);
+ pend = next;
+ }
+ opts->pending = NULL;
+
+ if (finclude(pfile, f, fname, 0, NULL))
+ output_line_command(pfile, 0, same_file);
+ return SUCCESS_EXIT_CODE;
+}
+
+void
+init_parse_file(cpp_reader * pfile)
+{
+ memset((char *)pfile, 0, sizeof(cpp_reader));
+ pfile->get_token = cpp_get_token;
+
+ pfile->token_buffer_size = 200;
+ pfile->token_buffer = (unsigned char *)xmalloc(pfile->token_buffer_size);
+ CPP_SET_WRITTEN(pfile, 0);
+
+ pfile->system_include_depth = 0;
+ pfile->dont_repeat_files = 0;
+ pfile->all_include_files = 0;
+ pfile->max_include_len = 0;
+ pfile->timebuf = NULL;
+ pfile->only_seen_white = 1;
+ pfile->buffer = CPP_NULL_BUFFER(pfile);
+}
+
+static struct cpp_pending *
+nreverse_pending(struct cpp_pending *list)
+{
+ struct cpp_pending *prev = 0, *next, *pend;
+
+ for (pend = list; pend; pend = next)
+ {
+ next = pend->next;
+ pend->next = prev;
+ prev = pend;
+ }
+ return prev;
+}
+
+static void
+push_pending(cpp_reader * pfile, const char *cmd, const char *arg)
+{
+ struct cpp_pending *pend
+ = (struct cpp_pending *)xmalloc(sizeof(struct cpp_pending));
+
+ pend->cmd = cmd;
+ pend->arg = arg;
+ pend->next = CPP_OPTIONS(pfile)->pending;
+ CPP_OPTIONS(pfile)->pending = pend;
+}
+
+/* Handle command-line options in (argc, argv).
+ * Can be called multiple times, to handle multiple sets of options.
+ * Returns if an unrecognized option is seen.
+ * Returns number of handled arguments. */
+
+int
+cpp_handle_options(cpp_reader * pfile, int argc, char **argv)
+{
+ int i;
+ struct cpp_options *opts = CPP_OPTIONS(pfile);
+
+ for (i = 0; i < argc; i++)
+ {
+ if (argv[i][0] != '-')
+ {
+ if (opts->out_fname != NULL)
+ cpp_fatal("Usage: %s [switches] input output", argv[0]);
+ else if (opts->in_fname != NULL)
+ opts->out_fname = argv[i];
+ else
+ opts->in_fname = argv[i];
+ }
+ else
+ {
+ switch (argv[i][1])
+ {
+
+ case 'i':
+ if (!strcmp(argv[i], "-include")
+ || !strcmp(argv[i], "-imacros"))
+ {
+ if (i + 1 == argc)
+ cpp_fatal("Filename missing after `%s' option",
+ argv[i]);
+ else
+ push_pending(pfile, argv[i], argv[i + 1]), i++;
+ }
+ if (!strcmp(argv[i], "-iprefix"))
+ {
+ if (i + 1 == argc)
+ cpp_fatal("Filename missing after `-iprefix' option");
+ else
+ opts->include_prefix = argv[++i];
+ }
+ if (!strcmp(argv[i], "-ifoutput"))
+ {
+ opts->output_conditionals = 1;
+ }
+ if (!strcmp(argv[i], "-isystem"))
+ {
+ struct file_name_list *dirtmp;
+
+ if (i + 1 == argc)
+ cpp_fatal("Filename missing after `-isystem' option");
+
+ dirtmp =
+ (struct file_name_list
+ *)xmalloc(sizeof(struct file_name_list));
+
+ dirtmp->next = 0;
+ dirtmp->control_macro = 0;
+ dirtmp->c_system_include_path = 1;
+ dirtmp->fname = (char *)xmalloc(strlen(argv[i + 1]) + 1);
+ strcpy(dirtmp->fname, argv[++i]);
+ dirtmp->got_name_map = 0;
+
+ if (opts->before_system == 0)
+ opts->before_system = dirtmp;
+ else
+ opts->last_before_system->next = dirtmp;
+ opts->last_before_system = dirtmp; /* Tail follows the last one */
+ }
+ /* Add directory to end of path for includes,
+ * with the default prefix at the front of its name. */
+ if (!strcmp(argv[i], "-iwithprefix"))
+ {
+ struct file_name_list *dirtmp;
+ char *prefix;
+
+ if (opts->include_prefix != 0)
+ prefix = opts->include_prefix;
+ else
+ {
+ prefix = savestring(GCC_INCLUDE_DIR);
+ /* Remove the `include' from /usr/local/lib/gcc.../include. */
+ if (!strcmp
+ (prefix + strlen(prefix) - 8, "/include"))
+ prefix[strlen(prefix) - 7] = 0;
+ }
+
+ dirtmp =
+ (struct file_name_list
+ *)xmalloc(sizeof(struct file_name_list));
+
+ dirtmp->next = 0; /* New one goes on the end */
+ dirtmp->control_macro = 0;
+ dirtmp->c_system_include_path = 0;
+ if (i + 1 == argc)
+ cpp_fatal
+ ("Directory name missing after `-iwithprefix' option");
+
+ dirtmp->fname = (char *)xmalloc(strlen(argv[i + 1])
+ + strlen(prefix) + 1);
+ strcpy(dirtmp->fname, prefix);
+ strcat(dirtmp->fname, argv[++i]);
+ dirtmp->got_name_map = 0;
+
+ if (opts->after_include == 0)
+ opts->after_include = dirtmp;
+ else
+ opts->last_after_include->next = dirtmp;
+ opts->last_after_include = dirtmp; /* Tail follows the last one */
+ }
+ /* Add directory to main path for includes,
+ * with the default prefix at the front of its name. */
+ if (!strcmp(argv[i], "-iwithprefixbefore"))
+ {
+ struct file_name_list *dirtmp;
+ char *prefix;
+
+ if (opts->include_prefix != 0)
+ prefix = opts->include_prefix;
+ else
+ {
+ prefix = savestring(GCC_INCLUDE_DIR);
+ /* Remove the `include' from /usr/local/lib/gcc.../include. */
+ if (!strcmp
+ (prefix + strlen(prefix) - 8, "/include"))
+ prefix[strlen(prefix) - 7] = 0;
+ }
+
+ dirtmp =
+ (struct file_name_list
+ *)xmalloc(sizeof(struct file_name_list));
+
+ dirtmp->next = 0; /* New one goes on the end */
+ dirtmp->control_macro = 0;
+ dirtmp->c_system_include_path = 0;
+ if (i + 1 == argc)
+ cpp_fatal
+ ("Directory name missing after `-iwithprefixbefore' option");
+
+ dirtmp->fname = (char *)xmalloc(strlen(argv[i + 1])
+ + strlen(prefix) + 1);
+ strcpy(dirtmp->fname, prefix);
+ strcat(dirtmp->fname, argv[++i]);
+ dirtmp->got_name_map = 0;
+
+ append_include_chain(pfile, dirtmp, dirtmp);
+ }
+ /* Add directory to end of path for includes. */
+ if (!strcmp(argv[i], "-idirafter"))
+ {
+ struct file_name_list *dirtmp;
+
+ dirtmp =
+ (struct file_name_list
+ *)xmalloc(sizeof(struct file_name_list));
+
+ dirtmp->next = 0; /* New one goes on the end */
+ dirtmp->control_macro = 0;
+ dirtmp->c_system_include_path = 0;
+ if (i + 1 == argc)
+ cpp_fatal
+ ("Directory name missing after `-idirafter' option");
+ else
+ dirtmp->fname = argv[++i];
+ dirtmp->got_name_map = 0;
+
+ if (opts->after_include == 0)
+ opts->after_include = dirtmp;
+ else
+ opts->last_after_include->next = dirtmp;
+ opts->last_after_include = dirtmp; /* Tail follows the last one */
+ }
+ break;
+
+ case 'o':
+ if (opts->out_fname != NULL)
+ cpp_fatal("Output filename specified twice");
+ if (i + 1 == argc)
+ cpp_fatal("Filename missing after -o option");
+ opts->out_fname = argv[++i];
+ if (!strcmp(opts->out_fname, "-"))
+ opts->out_fname = "";
+ break;
+
+ case 'p':
+ if (!strcmp(argv[i], "-pedantic"))
+ CPP_PEDANTIC(pfile) = 1;
+ else if (!strcmp(argv[i], "-pedantic-errors"))
+ {
+ CPP_PEDANTIC(pfile) = 1;
+ opts->pedantic_errors = 1;
+ }
+ break;
+
+ case 't':
+ if (!strcmp(argv[i], "-traditional"))
+ {
+ opts->traditional = 1;
+ if (opts->dollars_in_ident > 0)
+ opts->dollars_in_ident = 1;
+ }
+ else if (!strcmp(argv[i], "-trigraphs"))
+ {
+ if (!opts->chill)
+ opts->no_trigraphs = 0;
+ }
+ break;
+
+ case 'l':
+ if (!strcmp(argv[i], "-lang-c"))
+ opts->cplusplus = 0, opts->cplusplus_comments =
+ 0, opts->objc = 0;
+ if (!strcmp(argv[i], "-lang-c++"))
+ opts->cplusplus = 1, opts->cplusplus_comments =
+ 1, opts->objc = 0;
+ if (!strcmp(argv[i], "-lang-c-c++-comments"))
+ opts->cplusplus = 0, opts->cplusplus_comments =
+ 1, opts->objc = 0;
+ if (!strcmp(argv[i], "-lang-objc"))
+ opts->objc = 1, opts->cplusplus =
+ 0, opts->cplusplus_comments = 1;
+ if (!strcmp(argv[i], "-lang-objc++"))
+ opts->objc = 1, opts->cplusplus =
+ 1, opts->cplusplus_comments = 1;
+ if (!strcmp(argv[i], "-lang-asm"))
+ opts->lang_asm = 1;
+ if (!strcmp(argv[i], "-lint"))
+ opts->for_lint = 1;
+ if (!strcmp(argv[i], "-lang-chill"))
+ opts->objc = 0, opts->cplusplus = 0, opts->chill = 1,
+ opts->traditional = 1, opts->no_trigraphs = 1;
+ break;
+
+ case '+':
+ opts->cplusplus = 1, opts->cplusplus_comments = 1;
+ break;
+
+ case 'w':
+ opts->inhibit_warnings = 1;
+ break;
+
+ case 'W':
+ if (!strcmp(argv[i], "-Wtrigraphs"))
+ opts->warn_trigraphs = 1;
+ else if (!strcmp(argv[i], "-Wno-trigraphs"))
+ opts->warn_trigraphs = 0;
+ else if (!strcmp(argv[i], "-Wcomment"))
+ opts->warn_comments = 1;
+ else if (!strcmp(argv[i], "-Wno-comment"))
+ opts->warn_comments = 0;
+ else if (!strcmp(argv[i], "-Wcomments"))
+ opts->warn_comments = 1;
+ else if (!strcmp(argv[i], "-Wno-comments"))
+ opts->warn_comments = 0;
+ else if (!strcmp(argv[i], "-Wtraditional"))
+ opts->warn_stringify = 1;
+ else if (!strcmp(argv[i], "-Wno-traditional"))
+ opts->warn_stringify = 0;
+ else if (!strcmp(argv[i], "-Wimport"))
+ opts->warn_import = 1;
+ else if (!strcmp(argv[i], "-Wno-import"))
+ opts->warn_import = 0;
+ else if (!strcmp(argv[i], "-Werror"))
+ opts->warnings_are_errors = 1;
+ else if (!strcmp(argv[i], "-Wno-error"))
+ opts->warnings_are_errors = 0;
+ else if (!strcmp(argv[i], "-Wall"))
+ {
+ opts->warn_trigraphs = 1;
+ opts->warn_comments = 1;
+ }
+ break;
+
+ case 'M':
+ /* The style of the choices here is a bit mixed.
+ * The chosen scheme is a hybrid of keeping all options in one string
+ * and specifying each option in a separate argument:
+ * -M|-MM|-MD file|-MMD file [-MG]. An alternative is:
+ * -M|-MM|-MD file|-MMD file|-MG|-MMG; or more concisely:
+ * -M[M][G][D file]. This is awkward to handle in specs, and is not
+ * as extensible. */
+ /* ??? -MG must be specified in addition to one of -M or -MM.
+ * This can be relaxed in the future without breaking anything.
+ * The converse isn't true. */
+
+ /* -MG isn't valid with -MD or -MMD. This is checked for later. */
+ if (!strcmp(argv[i], "-MG"))
+ {
+ opts->print_deps_missing_files = 1;
+ break;
+ }
+ if (!strcmp(argv[i], "-M"))
+ opts->print_deps = 2;
+ else if (!strcmp(argv[i], "-MM"))
+ opts->print_deps = 1;
+ else if (!strcmp(argv[i], "-MD"))
+ opts->print_deps = 2;
+ else if (!strcmp(argv[i], "-MMD"))
+ opts->print_deps = 1;
+ /* For -MD and -MMD options, write deps on file named by next arg. */
+ if (!strcmp(argv[i], "-MD") || !strcmp(argv[i], "-MMD"))
+ {
+ if (i + 1 == argc)
+ cpp_fatal("Filename missing after %s option",
+ argv[i]);
+ opts->deps_file = argv[++i];
+ }
+ else
+ {
+ /* For -M and -MM, write deps on standard output
+ * and suppress the usual output. */
+ opts->no_output = 1;
+ }
+ break;
+
+ case 'd':
+ {
+ char *p = argv[i] + 2;
+ char c;
+
+ while ((c = *p++) != 0)
+ {
+ /* Arg to -d specifies what parts of macros to dump */
+ switch (c)
+ {
+ case 'M':
+ opts->dump_macros = dump_only;
+ opts->no_output = 1;
+ break;
+ case 'N':
+ opts->dump_macros = dump_names;
+ break;
+ case 'D':
+ opts->dump_macros = dump_definitions;
+ break;
+ }
+ }
+ }
+ break;
+
+ case 'g':
+ if (argv[i][2] == '3')
+ opts->debug_output = 1;
+ break;
+
+ case 'v':
+ fprintf(stderr, "GNU CPP version %s", version_string);
+#ifdef TARGET_VERSION
+ TARGET_VERSION;
+#endif
+ fprintf(stderr, "\n");
+ opts->verbose = 1;
+ break;
+
+ case 'H':
+ opts->print_include_names = 1;
+ break;
+
+ case 'D':
+ if (argv[i][2] != 0)
+ push_pending(pfile, "-D", argv[i] + 2);
+ else if (i + 1 == argc)
+ cpp_fatal("Macro name missing after -D option");
+ else
+ i++, push_pending(pfile, "-D", argv[i]);
+ break;
+
+ case 'A':
+ {
+ char *p = NULL;
+
+ if (argv[i][2] != 0)
+ p = argv[i] + 2;
+ else if (i + 1 == argc)
+ cpp_fatal("Assertion missing after -A option");
+ else
+ p = argv[++i];
+
+ if (!strcmp(p, "-"))
+ {
+ struct cpp_pending **ptr;
+
+ /* -A- eliminates all predefined macros and assertions.
+ * Let's include also any that were specified earlier
+ * on the command line. That way we can get rid of any
+ * that were passed automatically in from GCC. */
+
+ opts->inhibit_predefs = 1;
+ for (ptr = &opts->pending; *ptr != NULL;)
+ {
+ struct cpp_pending *pend = *ptr;
+
+ if (pend->cmd && pend->cmd[0] == '-'
+ && (pend->cmd[1] == 'D'
+ || pend->cmd[1] == 'A'))
+ {
+ *ptr = pend->next;
+ free(pend);
+ }
+ else
+ ptr = &pend->next;
+ }
+ }
+ else
+ {
+ push_pending(pfile, "-A", p);
+ }
+ }
+ break;
+
+ case 'U': /* JF #undef something */
+ if (argv[i][2] != 0)
+ push_pending(pfile, "-U", argv[i] + 2);
+ else if (i + 1 == argc)
+ cpp_fatal("Macro name missing after -U option");
+ else
+ push_pending(pfile, "-U", argv[i + 1]), i++;
+ break;
+
+ case 'C':
+ opts->put_out_comments = 1;
+ break;
+
+ case 'E': /* -E comes from cc -E; ignore it. */
+ break;
+
+ case 'P':
+ opts->no_line_commands = 1;
+ break;
+
+ case '$': /* Don't include $ in identifiers. */
+ opts->dollars_in_ident = 0;
+ break;
+
+ case 'I': /* Add directory to path for includes. */
+ {
+ struct file_name_list *dirtmp;
+
+ if (!CPP_OPTIONS(pfile)->ignore_srcdir
+ && !strcmp(argv[i] + 2, "-"))
+ {
+ CPP_OPTIONS(pfile)->ignore_srcdir = 1;
+ /* Don't use any preceding -I directories for #include <...>. */
+ CPP_OPTIONS(pfile)->first_bracket_include = 0;
+ }
+ else
+ {
+ dirtmp =
+ (struct file_name_list
+ *)xmalloc(sizeof(struct file_name_list));
+
+ dirtmp->next = 0; /* New one goes on the end */
+ dirtmp->control_macro = 0;
+ dirtmp->c_system_include_path = 0;
+ if (argv[i][2] != 0)
+ dirtmp->fname = argv[i] + 2;
+ else if (i + 1 == argc)
+ cpp_fatal
+ ("Directory name missing after -I option");
+ else
+ dirtmp->fname = argv[++i];
+ dirtmp->got_name_map = 0;
+ append_include_chain(pfile, dirtmp, dirtmp);
+ }
+ }
+ break;
+
+ case 'n':
+ if (!strcmp(argv[i], "-nostdinc"))
+ /* -nostdinc causes no default include directories.
+ * You must specify all include-file directories with -I. */
+ opts->no_standard_includes = 1;
+ else if (!strcmp(argv[i], "-nostdinc++"))
+ /* -nostdinc++ causes no default C++-specific include directories. */
+ opts->no_standard_cplusplus_includes = 1;
+ break;
+
+ case 'u':
+ /* Sun compiler passes undocumented switch "-undef".
+ * Let's assume it means to inhibit the predefined symbols. */
+ opts->inhibit_predefs = 1;
+ break;
+
+ case '\0': /* JF handle '-' as file name meaning stdin or stdout */
+ if (opts->in_fname == NULL)
+ {
+ opts->in_fname = "";
+ break;
+ }
+ else if (opts->out_fname == NULL)
+ {
+ opts->out_fname = "";
+ break;
+ } /* else fall through into error */
+ default:
+ return i;
+ }
+ }
+ }
+ return i;
+}
+
+void
+cpp_finish(cpp_reader * pfile)
+{
+ struct cpp_options *opts = CPP_OPTIONS(pfile);
+
+ if (opts->print_deps)
+ {
+ /* Stream on which to print the dependency information. */
+ FILE *deps_stream;
+
+ /* Don't actually write the deps file if compilation has failed. */
+ if (pfile->errors == 0)
+ {
+ const char *deps_mode =
+ opts->print_deps_append ? "a" : "w";
+
+ if (opts->deps_file == 0)
+ deps_stream = stdout;
+ else if ((deps_stream = fopen(opts->deps_file, deps_mode)) == 0)
+ cpp_pfatal_with_name(pfile, opts->deps_file);
+ fputs(pfile->deps_buffer, deps_stream);
+ putc('\n', deps_stream);
+ if (opts->deps_file)
+ {
+ if (ferror(deps_stream) || fclose(deps_stream) != 0)
+ cpp_fatal("I/O error on output");
+ }
+ }
+ }
+}
+
+static int
+do_assert(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ long symstart; /* remember where symbol name starts */
+ int c;
+ int sym_length; /* and how long it is */
+ struct arglist *tokens = NULL;
+
+ if (CPP_PEDANTIC(pfile) && CPP_OPTIONS(pfile)->done_initializing
+ && !CPP_BUFFER(pfile)->system_header_p)
+ cpp_pedwarn(pfile, "ANSI C does not allow `#assert'");
+
+ keyword = NULL;
+ buf = NULL;
+ limit = NULL;
+
+ cpp_skip_hspace(pfile);
+ symstart = CPP_WRITTEN(pfile); /* remember where it starts */
+ parse_name(pfile, GETC());
+ sym_length = check_macro_name(pfile, pfile->token_buffer + symstart,
+ "assertion");
+
+ cpp_skip_hspace(pfile);
+ if (PEEKC() != '(')
+ {
+ cpp_error(pfile, "missing token-sequence in `#assert'");
+ goto error;
+ }
+ {
+ int error_flag = 0;
+
+ tokens = read_token_list(pfile, &error_flag);
+ if (error_flag)
+ goto error;
+ if (tokens == 0)
+ {
+ cpp_error(pfile, "empty token-sequence in `#assert'");
+ goto error;
+ }
+ cpp_skip_hspace(pfile);
+ c = PEEKC();
+ if (c != EOF && c != '\n')
+ cpp_pedwarn(pfile, "junk at end of `#assert'");
+ skip_rest_of_line(pfile);
+ }
+
+ /* If this name isn't already an assertion name, make it one.
+ * Error if it was already in use in some other way. */
+
+ {
+ ASSERTION_HASHNODE *hp;
+ const char *symname = (char *)pfile->token_buffer + symstart;
+ int hashcode =
+ hashf(symname, sym_length, ASSERTION_HASHSIZE);
+ struct tokenlist_list *value =
+ (struct tokenlist_list *)xmalloc(sizeof(struct tokenlist_list));
+
+ hp = assertion_lookup(pfile, symname, sym_length, hashcode);
+ if (hp == NULL)
+ {
+ if (sym_length == 7 && !strncmp(symname, "defined", sym_length))
+ cpp_error(pfile, "`defined' redefined as assertion");
+ hp = assertion_install(pfile, symname, sym_length, hashcode);
+ }
+ /* Add the spec'd token-sequence to the list of such. */
+ value->tokens = tokens;
+ value->next = hp->value;
+ hp->value = value;
+ }
+ CPP_SET_WRITTEN(pfile, symstart); /* Pop */
+ return 0;
+ error:
+ CPP_SET_WRITTEN(pfile, symstart); /* Pop */
+ skip_rest_of_line(pfile);
+ return 1;
+}
+
+static int
+do_unassert(cpp_reader * pfile, struct directive *keyword, unsigned char *buf,
+ unsigned char *limit)
+{
+ long symstart; /* remember where symbol name starts */
+ int sym_length; /* and how long it is */
+ int c;
+
+ struct arglist *tokens = NULL;
+ int tokens_specified = 0;
+
+ keyword = NULL;
+ buf = NULL;
+ limit = NULL;
+
+ if (CPP_PEDANTIC(pfile) && CPP_OPTIONS(pfile)->done_initializing
+ && !CPP_BUFFER(pfile)->system_header_p)
+ cpp_pedwarn(pfile, "ANSI C does not allow `#unassert'");
+
+ cpp_skip_hspace(pfile);
+
+ symstart = CPP_WRITTEN(pfile); /* remember where it starts */
+ parse_name(pfile, GETC());
+ sym_length = check_macro_name(pfile, pfile->token_buffer + symstart,
+ "assertion");
+
+ cpp_skip_hspace(pfile);
+ if (PEEKC() == '(')
+ {
+ int error_flag = 0;
+
+ tokens = read_token_list(pfile, &error_flag);
+ if (error_flag)
+ goto error;
+ if (tokens == 0)
+ {
+ cpp_error(pfile, "empty token list in `#unassert'");
+ goto error;
+ }
+ tokens_specified = 1;
+ }
+ cpp_skip_hspace(pfile);
+ c = PEEKC();
+ if (c != EOF && c != '\n')
+ cpp_error(pfile, "junk at end of `#unassert'");
+ skip_rest_of_line(pfile);
+
+ {
+ ASSERTION_HASHNODE *hp;
+ const char *symname = (char *)pfile->token_buffer + symstart;
+ int hashcode =
+ hashf(symname, sym_length, ASSERTION_HASHSIZE);
+ struct tokenlist_list *tail, *prev;
+
+ hp = assertion_lookup(pfile, symname, sym_length, hashcode);
+ if (hp == NULL)
+ return 1;
+
+ /* If no token list was specified, then eliminate this assertion
+ * entirely. */
+ if (!tokens_specified)
+ delete_assertion(hp);
+ else
+ {
+ /* If a list of tokens was given, then delete any matching list. */
+
+ tail = hp->value;
+ prev = 0;
+ while (tail)
+ {
+ struct tokenlist_list *next = tail->next;
+
+ if (compare_token_lists(tail->tokens, tokens))
+ {
+ if (prev)
+ prev->next = next;
+ else
+ hp->value = tail->next;
+ free_token_list(tail->tokens);
+ free(tail);
+ }
+ else
+ {
+ prev = tail;
+ }
+ tail = next;
+ }
+ }
+ }
+
+ CPP_SET_WRITTEN(pfile, symstart); /* Pop */
+ return 0;
+ error:
+ CPP_SET_WRITTEN(pfile, symstart); /* Pop */
+ skip_rest_of_line(pfile);
+ return 1;
+}
+
+/* Test whether there is an assertion named NAME
+ * and optionally whether it has an asserted token list TOKENS.
+ * NAME is not null terminated; its length is SYM_LENGTH.
+ * If TOKENS_SPECIFIED is 0, then don't check for any token list. */
+
+static int
+check_assertion(cpp_reader * pfile, const char *name, int sym_length,
+ int tokens_specified, struct arglist *tokens)
+{
+ ASSERTION_HASHNODE *hp;
+ int hashcode = hashf(name, sym_length, ASSERTION_HASHSIZE);
+
+ if (CPP_PEDANTIC(pfile) && !CPP_BUFFER(pfile)->system_header_p)
+ cpp_pedwarn(pfile, "ANSI C does not allow testing assertions");
+
+ hp = assertion_lookup(pfile, name, sym_length, hashcode);
+ if (hp == NULL)
+ /* It is not an assertion; just return false. */
+ return 0;
+
+ /* If no token list was specified, then value is 1. */
+ if (!tokens_specified)
+ return 1;
+
+ {
+ struct tokenlist_list *tail;
+
+ tail = hp->value;
+
+ /* If a list of tokens was given,
+ * then succeed if the assertion records a matching list. */
+
+ while (tail)
+ {
+ if (compare_token_lists(tail->tokens, tokens))
+ return 1;
+ tail = tail->next;
+ }
+
+ /* Fail if the assertion has no matching list. */
+ return 0;
+ }
+}
+
+/* Compare two lists of tokens for equality including order of tokens. */
+
+static int
+compare_token_lists(struct arglist *l1, struct arglist *l2)
+{
+ while (l1 && l2)
+ {
+ if (l1->length != l2->length)
+ return 0;
+ if (strncmp(l1->name, l2->name, l1->length))
+ return 0;
+ l1 = l1->next;
+ l2 = l2->next;
+ }
+
+ /* Succeed if both lists end at the same time. */
+ return l1 == l2;
+}
+
+struct arglist *
+reverse_token_list(struct arglist *tokens)
+{
+ struct arglist *prev = 0, *cur, *next;
+
+ for (cur = tokens; cur; cur = next)
+ {
+ next = cur->next;
+ cur->next = prev;
+ prev = cur;
+ }
+ return prev;
+}
+
+/* Read a space-separated list of tokens ending in a close parenthesis.
+ * Return a list of strings, in the order they were written.
+ * (In case of error, return 0 and store -1 in *ERROR_FLAG.) */
+
+static struct arglist *
+read_token_list(cpp_reader * pfile, int *error_flag)
+{
+ struct arglist *token_ptrs = 0;
+ int depth = 1;
+ int length;
+
+ *error_flag = 0;
+ FORWARD(1); /* Skip '(' */
+
+ /* Loop over the assertion value tokens. */
+ while (depth > 0)
+ {
+ struct arglist *temp;
+ long name_written = CPP_WRITTEN(pfile);
+ int c;
+
+ cpp_skip_hspace(pfile);
+
+ c = GETC();
+
+ /* Find the end of the token. */
+ if (c == '(')
+ {
+ CPP_PUTC(pfile, c);
+ depth++;
+ }
+ else if (c == ')')
+ {
+ depth--;
+ if (depth == 0)
+ break;
+ CPP_PUTC(pfile, c);
+ }
+ else if (c == '"' || c == '\'')
+ {
+ FORWARD(-1);
+ cpp_get_token(pfile);
+ }
+ else if (c == '\n')
+ break;
+ else
+ {
+ while (c != EOF && !is_space[c] && c != '(' && c != ')'
+ && c != '"' && c != '\'')
+ {
+ CPP_PUTC(pfile, c);
+ c = GETC();
+ }
+ if (c != EOF)
+ FORWARD(-1);
+ }
+
+ length = CPP_WRITTEN(pfile) - name_written;
+ temp = (struct arglist *)xmalloc(sizeof(struct arglist) + length + 1);
+
+ temp->name = (char *)(temp + 1);
+ memcpy(temp->name, (char *)(pfile->token_buffer + name_written),
+ length);
+ temp->name[length] = 0;
+ temp->next = token_ptrs;
+ token_ptrs = temp;
+ temp->length = length;
+
+ CPP_ADJUST_WRITTEN(pfile, -length); /* pop */
+
+ if (c == EOF || c == '\n')
+ { /* FIXME */
+ cpp_error(pfile,
+ "unterminated token sequence following `#' operator");
+ return 0;
+ }
+ }
+
+ /* We accumulated the names in reverse order.
+ * Now reverse them to get the proper order. */
+ return reverse_token_list(token_ptrs);
+}
+
+static void
+free_token_list(struct arglist *tokens)
+{
+ while (tokens)
+ {
+ struct arglist *next = tokens->next;
+
+ free(tokens->name);
+ free(tokens);
+ tokens = next;
+ }
+}
+
+/* Get the file-mode and data size of the file open on FD
+ * and store them in *MODE_POINTER and *SIZE_POINTER. */
+
+static int
+file_size_and_mode(int fd, int *mode_pointer, long int *size_pointer)
+{
+ struct stat sbuf;
+
+ if (fstat(fd, &sbuf) < 0)
+ return (-1);
+ if (mode_pointer)
+ *mode_pointer = sbuf.st_mode;
+ if (size_pointer)
+ *size_pointer = sbuf.st_size;
+ return 0;
+}
+
+/* Read LEN bytes at PTR from descriptor DESC, for file FILENAME,
+ * retrying if necessary. Return a negative value if an error occurs,
+ * otherwise return the actual number of bytes read,
+ * which must be LEN unless end-of-file was reached. */
+
+static int
+safe_read(int desc, char *ptr, int len)
+{
+ int left = len;
+
+ while (left > 0)
+ {
+ int nchars = read(desc, ptr, left);
+
+ if (nchars < 0)
+ {
+#ifdef EINTR
+ if (errno == EINTR)
+ continue;
+#endif
+ return nchars;
+ }
+ if (nchars == 0)
+ break;
+ ptr += nchars;
+ left -= nchars;
+ }
+ return len - left;
+}
+
+static char *
+savestring(const char *input)
+{
+ unsigned size = strlen(input);
+ char *output = (char *)xmalloc(size + 1);
+
+ strcpy(output, input);
+ return output;
+}
+
+/* Initialize PMARK to remember the current position of PFILE. */
+void
+parse_set_mark(struct parse_marker *pmark, cpp_reader * pfile)
+{
+ cpp_buffer *pbuf = CPP_BUFFER(pfile);
+
+ pmark->next = pbuf->marks;
+ pbuf->marks = pmark;
+ pmark->buf = pbuf;
+ pmark->position = pbuf->cur - pbuf->buf;
+}
+
+/* Cleanup PMARK - we no longer need it. */
+static void
+parse_clear_mark(struct parse_marker *pmark)
+{
+ struct parse_marker **pp = &pmark->buf->marks;
+
+ for (;; pp = &(*pp)->next)
+ {
+ if (*pp == NULL)
+ cpp_fatal("internal error", "in parse_set_mark");
+ if (*pp == pmark)
+ break;
+ }
+ *pp = pmark->next;
+}
+
+/* Backup the current position of PFILE to that saved in PMARK. */
+
+static void
+parse_goto_mark(struct parse_marker *pmark, cpp_reader * pfile)
+{
+ cpp_buffer *pbuf = CPP_BUFFER(pfile);
+
+ if (pbuf != pmark->buf)
+ cpp_fatal("internal error %s", "parse_goto_mark");
+ pbuf->cur = pbuf->buf + pmark->position;
+}
+
+/* Reset PMARK to point to the current position of PFILE. (Same
+ * as parse_clear_mark (PMARK), parse_set_mark (PMARK, PFILE) but faster. */
+
+static void
+parse_move_mark(struct parse_marker *pmark, cpp_reader * pfile)
+{
+ cpp_buffer *pbuf = CPP_BUFFER(pfile);
+
+ if (pbuf != pmark->buf)
+ cpp_fatal("internal error %s", "parse_move_mark");
+ pmark->position = pbuf->cur - pbuf->buf;
+}
+
+int
+cpp_read_check_assertion(cpp_reader * pfile)
+{
+ int name_start = CPP_WRITTEN(pfile);
+ int name_length, name_written;
+ int result;
+
+ FORWARD(1); /* Skip '#' */
+ cpp_skip_hspace(pfile);
+ parse_name(pfile, GETC());
+ name_written = CPP_WRITTEN(pfile);
+ name_length = name_written - name_start;
+ cpp_skip_hspace(pfile);
+ if (CPP_BUF_PEEK(CPP_BUFFER(pfile)) == '(')
+ {
+ int error_flag;
+ struct arglist *token_ptrs = read_token_list(pfile, &error_flag);
+
+ result = check_assertion(pfile,
+ (char *)pfile->token_buffer + name_start,
+ name_length, 1, token_ptrs);
+ }
+ else
+ result = check_assertion(pfile,
+ (char *)pfile->token_buffer + name_start,
+ name_length, 0, NULL);
+ CPP_ADJUST_WRITTEN(pfile, -name_length); /* pop */
+ return result;
+}
+
+static void
+cpp_print_file_and_line(cpp_reader * pfile)
+{
+ cpp_buffer *ip = cpp_file_buffer(pfile);
+
+ if (ip != NULL)
+ {
+ long line, col;
+
+ cpp_buf_line_and_col(ip, &line, &col);
+ cpp_file_line_for_message(pfile, ip->nominal_fname,
+ line, pfile->show_column ? col : -1);
+ }
+}
+
+static void
+cpp_error_v(cpp_reader * pfile, const char *msg, va_list args)
+{
+ cpp_print_containing_files(pfile);
+ cpp_print_file_and_line(pfile);
+ cpp_message_v(pfile, 1, msg, args);
+}
+
+void
+cpp_error(cpp_reader * pfile, const char *msg, ...)
+{
+ va_list args;
+
+ va_start(args, msg);
+
+ cpp_error_v(pfile, msg, args);
+
+ va_end(args);
+}
+
+/* Print error message but don't count it. */
+
+static void
+cpp_warning_v(cpp_reader * pfile, const char *msg, va_list args)
+{
+ if (CPP_OPTIONS(pfile)->inhibit_warnings)
+ return;
+
+ if (CPP_OPTIONS(pfile)->warnings_are_errors)
+ pfile->errors++;
+
+ cpp_print_containing_files(pfile);
+ cpp_print_file_and_line(pfile);
+ cpp_message_v(pfile, 0, msg, args);
+}
+
+void
+cpp_warning(cpp_reader * pfile, const char *msg, ...)
+{
+ va_list args;
+
+ va_start(args, msg);
+
+ cpp_warning_v(pfile, msg, args);
+
+ va_end(args);
+}
+
+/* Print an error message and maybe count it. */
+
+void
+cpp_pedwarn(cpp_reader * pfile, const char *msg, ...)
+{
+ va_list args;
+
+ va_start(args, msg);
+
+ if (CPP_OPTIONS(pfile)->pedantic_errors)
+ cpp_error_v(pfile, msg, args);
+ else
+ cpp_warning_v(pfile, msg, args);
+
+ va_end(args);
+}
+
+static void
+cpp_error_with_line(cpp_reader * pfile, int line, int column, const char *msg)
+{
+ cpp_buffer *ip = cpp_file_buffer(pfile);
+
+ cpp_print_containing_files(pfile);
+
+ if (ip != NULL)
+ cpp_file_line_for_message(pfile, ip->nominal_fname, line, column);
+
+ cpp_message(pfile, 1, msg, NULL, NULL, NULL);
+}
+
+static void
+cpp_warning_with_line(cpp_reader * pfile, int line, int column, const char *msg)
+{
+ cpp_buffer *ip;
+
+ if (CPP_OPTIONS(pfile)->inhibit_warnings)
+ return;
+
+ if (CPP_OPTIONS(pfile)->warnings_are_errors)
+ pfile->errors++;
+
+ cpp_print_containing_files(pfile);
+
+ ip = cpp_file_buffer(pfile);
+
+ if (ip != NULL)
+ cpp_file_line_for_message(pfile, ip->nominal_fname, line, column);
+
+ cpp_message(pfile, 0, msg, NULL, NULL, NULL);
+}
+
+static void
+cpp_pedwarn_with_line(cpp_reader * pfile, int line, int column, const char *msg)
+{
+ if (CPP_OPTIONS(pfile)->pedantic_errors)
+ cpp_error_with_line(pfile, column, line, msg);
+ else
+ cpp_warning_with_line(pfile, line, column, msg);
+}
+
+/* Report a warning (or an error if pedantic_errors)
+ * giving specified file name and line number, not current. */
+
+void
+cpp_pedwarn_with_file_and_line(cpp_reader * pfile,
+ const char *file, int line,
+ const char *msg, const char *arg1,
+ const char *arg2, const char *arg3)
+{
+ if (!CPP_OPTIONS(pfile)->pedantic_errors
+ && CPP_OPTIONS(pfile)->inhibit_warnings)
+ return;
+ if (file != NULL)
+ cpp_file_line_for_message(pfile, file, line, -1);
+ cpp_message(pfile, CPP_OPTIONS(pfile)->pedantic_errors,
+ msg, arg1, arg2, arg3);
+}
+
+/* This defines "errno" properly for VMS, and gives us EACCES. */
+#include <errno.h>
+#ifndef errno
+extern int errno;
+
+#endif
+
+#ifndef HAVE_STRERROR
+extern int sys_nerr;
+
+#if defined(bsd4_4)
+extern const char *const sys_errlist[];
+
+#else
+extern char *sys_errlist[];
+
+#endif
+#endif /* HAVE_STRERROR */
+
+/*
+ * my_strerror - return the descriptive text associated with an `errno' code.
+ */
+
+static const char *
+my_strerror(int errnum)
+{
+ const char *result;
+
+#ifndef HAVE_STRERROR
+ result = ((errnum < sys_nerr) ? sys_errlist[errnum] : 0);
+#else
+ result = strerror(errnum);
+#endif
+
+ if (!result)
+ result = "undocumented I/O error";
+
+ return result;
+}
+
+/* Error including a message from `errno'. */
+
+static void
+cpp_error_from_errno(cpp_reader * pfile, const char *name)
+{
+ cpp_buffer *ip = cpp_file_buffer(pfile);
+
+ cpp_print_containing_files(pfile);
+
+ if (ip != NULL)
+ cpp_file_line_for_message(pfile, ip->nominal_fname, ip->lineno, -1);
+
+ cpp_message(pfile, 1, "%s: %s", name, my_strerror(errno), NULL);
+}
+
+void
+cpp_perror_with_name(cpp_reader * pfile, const char *name)
+{
+ cpp_message(pfile, 1, "%s: %s: %s", progname, name, my_strerror(errno));
+}
+
+/* TODO:
+ * No pre-compiled header file support.
+ *
+ * Possibly different enum token codes for each C/C++ token.
+ *
+ * Should clean up remaining directives to that do_XXX functions
+ * only take two arguments and all have command_reads_line.
+ *
+ * Find and cleanup remaining uses of static variables,
+ *
+ * Support for trigraphs.
+ *
+ * Support -dM flag (dump_all_macros).
+ *
+ * Support for_lint flag.
+ */
--- /dev/null
+
+/* Definitions for CPP library.
+ Copyright (C) 1995 Free Software Foundation, Inc.
+ Written by Per Bothner, 1994-95.
+
+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, 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ In other words, you are welcome to use, share and improve this program.
+ You are forbidden to forbid anyone else to use, share and improve
+ what you give them. Help stamp out software-hoarding! */
+
+#include <stdarg.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#ifndef HOST_BITS_PER_WIDE_INT
+
+#if HOST_BITS_PER_LONG > HOST_BITS_PER_INT
+#define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
+#define HOST_WIDE_INT long
+#else
+#define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_INT
+#define HOST_WIDE_INT int
+#endif
+
+#endif
+
+#define STATIC_BUFFERS
+
+typedef struct cpp_reader cpp_reader;
+typedef struct cpp_buffer cpp_buffer;
+typedef struct cpp_options cpp_options;
+
+enum cpp_token {
+ CPP_EOF = -1,
+ CPP_OTHER = 0,
+ CPP_COMMENT = 1,
+ CPP_HSPACE,
+ CPP_VSPACE, /* newlines and #line directives */
+ CPP_NAME,
+ CPP_NUMBER,
+ CPP_CHAR,
+ CPP_STRING,
+ CPP_DIRECTIVE,
+ CPP_LPAREN, /* "(" */
+ CPP_RPAREN, /* ")" */
+ CPP_LBRACE, /* "{" */
+ CPP_RBRACE, /* "}" */
+ CPP_COMMA, /* "," */
+ CPP_SEMICOLON, /* ";" */
+ CPP_3DOTS, /* "..." */
+ /* POP_TOKEN is returned when we've popped a cpp_buffer. */
+ CPP_POP
+};
+
+typedef enum cpp_token (*parse_underflow_t) (cpp_reader *);
+typedef int (*parse_cleanup_t) (cpp_buffer *, cpp_reader *);
+
+/* A parse_marker indicates a previous position,
+ which we can backtrack to. */
+
+struct parse_marker {
+ cpp_buffer *buf;
+ struct parse_marker *next;
+ int position;
+};
+
+extern int cpp_handle_options(cpp_reader * pfile, int, char **);
+extern enum cpp_token cpp_get_token(cpp_reader * pfile);
+extern void cpp_skip_hspace(cpp_reader * pfile);
+
+/* Maintain and search list of included files, for #import. */
+
+#define IMPORT_HASH_SIZE 31
+
+struct import_file {
+ char *name;
+ ino_t inode;
+ dev_t dev;
+ struct import_file *next;
+};
+
+/* If we have a huge buffer, may need to cache more recent counts */
+#define CPP_LINE_BASE(BUF) ((BUF)->buf + (BUF)->line_base)
+
+enum dump_type {
+ dump_none = 0, dump_only, dump_names, dump_definitions
+};
+
+struct cpp_buffer {
+ unsigned char *buf;
+ unsigned char *cur;
+ unsigned char *rlimit; /* end of valid data */
+ unsigned char *alimit; /* end of allocated buffer */
+ unsigned char *prev; /* start of current token */
+
+ const char *fname;
+ /* Filename specified with #line command. */
+ const char *nominal_fname;
+
+ /* Record where in the search path this file was found.
+ * For #include_next. */
+ struct file_name_list *dir;
+
+ long line_base;
+ long lineno; /* Line number at CPP_LINE_BASE. */
+ long colno; /* Column number at CPP_LINE_BASE. */
+#ifndef STATIC_BUFFERS
+ cpp_buffer *chain;
+#endif
+ parse_underflow_t underflow;
+ parse_cleanup_t cleanup;
+ void *data;
+ struct parse_marker *marks;
+ /* Value of if_stack at start of this file.
+ * Used to prohibit unmatched #endif (etc) in an include file. */
+ struct if_stack *if_stack;
+
+ /* True if this is a header file included using <FILENAME>. */
+ char system_header_p;
+ char seen_eof;
+
+ /* True if buffer contains escape sequences.
+ * Currently there are are only two kind:
+ * "@-" means following identifier should not be macro-expanded.
+ * "@ " means a token-separator. This turns into " " in final output
+ * if not stringizing and needed to separate tokens; otherwise nothing.
+ * "@@" means a normal '@'.
+ * (An '@' inside a string stands for itself and is never an escape.) */
+ char has_escapes;
+};
+
+struct cpp_pending; /* Forward declaration - for C++. */
+struct file_name_map_list;
+
+typedef struct assertion_hashnode ASSERTION_HASHNODE;
+
+#define ASSERTION_HASHSIZE 37
+
+#ifdef STATIC_BUFFERS
+/* Maximum nesting of cpp_buffers. We use a static limit, partly for
+ efficiency, and partly to limit runaway recursion. */
+#define CPP_STACK_MAX 200
+#endif
+
+struct cpp_reader {
+ unsigned char *limit;
+ parse_underflow_t get_token;
+ cpp_buffer *buffer;
+#ifdef STATIC_BUFFERS
+ cpp_buffer buffer_stack[CPP_STACK_MAX];
+#endif
+
+ int errors; /* Error counter for exit code */
+ void *data;
+
+ unsigned char *token_buffer;
+ int token_buffer_size;
+
+ /* Line where a newline was first seen in a string constant. */
+ int multiline_string_line;
+
+ /* Current depth in #include directives that use <...>. */
+ int system_include_depth;
+
+ /* List of included files that contained #pragma once. */
+ struct file_name_list *dont_repeat_files;
+
+ /* List of other included files.
+ * If ->control_macro if nonzero, the file had a #ifndef
+ * around the entire contents, and ->control_macro gives the macro name. */
+ struct file_name_list *all_include_files;
+
+ /* Current maximum length of directory names in the search path
+ * for include files. (Altered as we get more of them.) */
+ int max_include_len;
+
+ /* Hash table of files already included with #include or #import. */
+ struct import_file *import_hash_table[IMPORT_HASH_SIZE];
+
+ struct if_stack *if_stack;
+
+ /* Nonzero means we are inside an IF during a -pcp run. In this mode
+ * macro expansion is done, and preconditions are output for all macro
+ * uses requiring them. */
+ char pcp_inside_if;
+
+ /* Nonzero means we have printed (while error reporting) a list of
+ * containing files that matches the current status. */
+ char input_stack_listing_current;
+
+ /* If non-zero, macros are not expanded. */
+ char no_macro_expand;
+
+ /* Print column number in error messages. */
+ char show_column;
+
+ /* We're printed a warning recommending against using #import. */
+ char import_warning;
+
+ /* If true, character between '<' and '>' are a single (string) token. */
+ char parsing_include_directive;
+
+ /* True if escape sequences (as described for has_escapes in
+ * parse_buffer) should be emitted. */
+ char output_escapes;
+
+ /* 0: Have seen non-white-space on this line.
+ * 1: Only seen white space so far on this line.
+ * 2: Only seen white space so far in this file. */
+ char only_seen_white;
+
+ /* Nonzero means this file was included with a -imacros or -include
+ * command line and should not be recorded as an include file. */
+
+ int no_record_file;
+
+ long lineno;
+
+ struct tm *timebuf;
+
+ ASSERTION_HASHNODE *assertion_hashtab[ASSERTION_HASHSIZE];
+
+ /* Buffer of -M output. */
+ char *deps_buffer;
+
+ /* Number of bytes allocated in above. */
+ int deps_allocated_size;
+
+ /* Number of bytes used. */
+ int deps_size;
+
+ /* Number of bytes since the last newline. */
+ int deps_column;
+};
+
+#define CPP_BUF_PEEK(BUFFER) \
+ ((BUFFER)->cur < (BUFFER)->rlimit ? *(BUFFER)->cur : EOF)
+#define CPP_BUF_GET(BUFFER) \
+ ((BUFFER)->cur < (BUFFER)->rlimit ? *(BUFFER)->cur++ : EOF)
+#define CPP_FORWARD(BUFFER, N) ((BUFFER)->cur += (N))
+
+/* Number of characters currently in PFILE's output buffer. */
+#define CPP_WRITTEN(PFILE) ((PFILE)->limit - (PFILE)->token_buffer)
+#define CPP_PWRITTEN(PFILE) ((PFILE)->limit)
+
+/* Make sure PFILE->token_buffer has space for at least N more characters. */
+#define CPP_RESERVE(PFILE, N) \
+ ((unsigned int)(CPP_WRITTEN (PFILE) + N) > (unsigned int) (PFILE)->token_buffer_size \
+ && (cpp_grow_buffer (PFILE, N), 0))
+
+/* Append string STR (of length N) to PFILE's output buffer.
+ Assume there is enough space. */
+#define CPP_PUTS_Q(PFILE, STR, N) \
+ (memcpy ((PFILE)->limit, STR, (N)), (PFILE)->limit += (N))
+/* Append string STR (of length N) to PFILE's output buffer. Make space. */
+#define CPP_PUTS(PFILE, STR, N) CPP_RESERVE(PFILE, N), CPP_PUTS_Q(PFILE, STR,N)
+/* Append character CH to PFILE's output buffer. Assume sufficient space. */
+#define CPP_PUTC_Q(PFILE, CH) (*(PFILE)->limit++ = (CH))
+/* Append character CH to PFILE's output buffer. Make space if need be. */
+#define CPP_PUTC(PFILE, CH) (CPP_RESERVE (PFILE, 1), CPP_PUTC_Q (PFILE, CH))
+/* Make sure PFILE->limit is followed by '\0'. */
+#define CPP_NUL_TERMINATE_Q(PFILE) (*(PFILE)->limit = 0)
+#define CPP_NUL_TERMINATE(PFILE) (CPP_RESERVE(PFILE, 1), *(PFILE)->limit = 0)
+#define CPP_ADJUST_WRITTEN(PFILE,DELTA) ((PFILE)->limit += (DELTA))
+#define CPP_SET_WRITTEN(PFILE,N) ((PFILE)->limit = (PFILE)->token_buffer + (N))
+
+#define CPP_OPTIONS(PFILE) ((cpp_options*)(PFILE)->data)
+#define CPP_BUFFER(PFILE) ((PFILE)->buffer)
+#ifdef STATIC_BUFFERS
+#define CPP_PREV_BUFFER(BUFFER) ((BUFFER)+1)
+#define CPP_NULL_BUFFER(PFILE) (&(PFILE)->buffer_stack[CPP_STACK_MAX])
+#else
+#define CPP_PREV_BUFFER(BUFFER) ((BUFFER)->chain)
+#define CPP_NULL_BUFFER(PFILE) ((cpp_buffer*)0)
+#endif
+
+/* Pointed to by parse_file::data. */
+struct cpp_options {
+ const char *in_fname;
+
+ /* Name of output file, for error messages. */
+ const char *out_fname;
+
+ struct file_name_map_list *map_list;
+
+ /* Non-0 means -v, so print the full set of include dirs. */
+ char verbose;
+
+ /* Nonzero means use extra default include directories for C++. */
+
+ char cplusplus;
+
+ /* Nonzero means handle cplusplus style comments */
+
+ char cplusplus_comments;
+
+ /* Nonzero means handle #import, for objective C. */
+
+ char objc;
+
+ /* Nonzero means this is an assembly file, and allow
+ * unknown directives, which could be comments. */
+
+ int lang_asm;
+
+ /* Nonzero means turn NOTREACHED into #pragma NOTREACHED etc */
+
+ char for_lint;
+
+ /* Nonzero means handle CHILL comment syntax
+ * and output CHILL string delimiter for __DATE___ etc. */
+
+ char chill;
+
+ /* Nonzero means copy comments into the output file. */
+
+ char put_out_comments;
+
+ /* Nonzero means don't process the ANSI trigraph sequences. */
+
+ char no_trigraphs;
+
+ /* Nonzero means print the names of included files rather than
+ * the preprocessed output. 1 means just the #include "...",
+ * 2 means #include <...> as well. */
+
+ char print_deps;
+
+ /* Nonzero if missing .h files in -M output are assumed to be generated
+ * files and not errors. */
+
+ char print_deps_missing_files;
+
+ /* If true, fopen (deps_file, "a") else fopen (deps_file, "w"). */
+ char print_deps_append;
+
+ /* Nonzero means print names of header files (-H). */
+
+ char print_include_names;
+
+ /* Nonzero means try to make failure to fit ANSI C an error. */
+
+ char pedantic_errors;
+
+ /* Nonzero means don't print warning messages. -w. */
+
+ char inhibit_warnings;
+
+ /* Nonzero means warn if slash-star appears in a comment. */
+
+ char warn_comments;
+
+ /* Nonzero means warn if there are any trigraphs. */
+
+ char warn_trigraphs;
+
+ /* Nonzero means warn if #import is used. */
+
+ char warn_import;
+
+ /* Nonzero means warn if a macro argument is (or would be)
+ * stringified with -traditional. */
+
+ char warn_stringify;
+
+ /* Nonzero means turn warnings into errors. */
+
+ char warnings_are_errors;
+
+ /* Nonzero causes output not to be done,
+ * but directives such as #define that have side effects
+ * are still obeyed. */
+
+ char no_output;
+
+ /* Nonzero means don't output line number information. */
+
+ char no_line_commands;
+
+/* Nonzero means output the text in failing conditionals,
+ inside #failed ... #endfailed. */
+
+ char output_conditionals;
+
+ /* Nonzero means -I- has been seen,
+ * so don't look for #include "foo" the source-file directory. */
+ char ignore_srcdir;
+
+/* Zero means dollar signs are punctuation.
+ -$ stores 0; -traditional may store 1. Default is 1 for VMS, 0 otherwise.
+ This must be 0 for correct processing of this ANSI C program:
+ #define foo(a) #a
+ #define lose(b) foo (b)
+ #define test$
+ lose (test) */
+ char dollars_in_ident;
+#ifndef DOLLARS_IN_IDENTIFIERS
+#define DOLLARS_IN_IDENTIFIERS 1
+#endif
+
+ /* Nonzero means try to imitate old fashioned non-ANSI preprocessor. */
+ char traditional;
+
+ /* Nonzero means give all the error messages the ANSI standard requires. */
+ char pedantic;
+
+ char done_initializing;
+
+ struct file_name_list *include; /* First dir to search */
+ /* First dir to search for <file> */
+ /* This is the first element to use for #include <...>.
+ * If it is 0, use the entire chain for such includes. */
+ struct file_name_list *first_bracket_include;
+ /* This is the first element in the chain that corresponds to
+ * a directory of system header files. */
+ struct file_name_list *first_system_include;
+ struct file_name_list *last_include; /* Last in chain */
+
+ /* Chain of include directories to put at the end of the other chain. */
+ struct file_name_list *after_include;
+ struct file_name_list *last_after_include; /* Last in chain */
+
+ /* Chain to put at the start of the system include files. */
+ struct file_name_list *before_system;
+ struct file_name_list *last_before_system; /* Last in chain */
+
+ /* Directory prefix that should replace `/usr' in the standard
+ * include file directories. */
+ char *include_prefix;
+
+ char inhibit_predefs;
+ char no_standard_includes;
+ char no_standard_cplusplus_includes;
+
+/* dump_only means inhibit output of the preprocessed text
+ and instead output the definitions of all user-defined
+ macros in a form suitable for use as input to cccp.
+ dump_names means pass #define and the macro name through to output.
+ dump_definitions means pass the whole definition (plus #define) through
+*/
+
+ enum dump_type dump_macros;
+
+/* Nonzero means pass all #define and #undef directives which we actually
+ process through to the output stream. This feature is used primarily
+ to allow cc1 to record the #defines and #undefs for the sake of
+ debuggers which understand about preprocessor macros, but it may
+ also be useful with -E to figure out how symbols are defined, and
+ where they are defined. */
+ int debug_output;
+
+ /* Pending -D, -U and -A options, in reverse order. */
+ struct cpp_pending *pending;
+
+ /* File name which deps are being written to.
+ * This is 0 if deps are being written to stdout. */
+ char *deps_file;
+
+ /* Target-name to write with the dependency information. */
+ char *deps_target;
+};
+
+#define CPP_TRADITIONAL(PFILE) (CPP_OPTIONS(PFILE)-> traditional)
+#define CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic)
+#define CPP_PRINT_DEPS(PFILE) (CPP_OPTIONS (PFILE)->print_deps)
+
+/* Name under which this program was invoked. */
+
+extern char *progname;
+
+/* The structure of a node in the hash table. The hash table
+ has entries for all tokens defined by #define commands (type T_MACRO),
+ plus some special tokens like __LINE__ (these each have their own
+ type, and the appropriate code is run when that type of node is seen.
+ It does not contain control words like "#define", which are recognized
+ by a separate piece of code. */
+
+/* different flavors of hash nodes --- also used in keyword table */
+enum node_type {
+ T_DEFINE = 1, /* the `#define' keyword */
+ T_INCLUDE, /* the `#include' keyword */
+ T_INCLUDE_NEXT, /* the `#include_next' keyword */
+ T_IMPORT, /* the `#import' keyword */
+ T_IFDEF, /* the `#ifdef' keyword */
+ T_IFNDEF, /* the `#ifndef' keyword */
+ T_IF, /* the `#if' keyword */
+ T_ELSE, /* `#else' */
+ T_PRAGMA, /* `#pragma' */
+ T_ELIF, /* `#elif' */
+ T_UNDEF, /* `#undef' */
+ T_LINE, /* `#line' */
+ T_ERROR, /* `#error' */
+ T_WARNING, /* `#warning' */
+ T_ENDIF, /* `#endif' */
+ T_SCCS, /* `#sccs', used on system V. */
+ T_IDENT, /* `#ident', used on system V. */
+ T_ASSERT, /* `#assert', taken from system V. */
+ T_UNASSERT, /* `#unassert', taken from system V. */
+ T_SPECLINE, /* special symbol `__LINE__' */
+ T_DATE, /* `__DATE__' */
+ T_FILE, /* `__FILE__' */
+ T_BASE_FILE, /* `__BASE_FILE__' */
+ T_INCLUDE_LEVEL, /* `__INCLUDE_LEVEL__' */
+ T_VERSION, /* `__VERSION__' */
+ T_SIZE_TYPE, /* `__SIZE_TYPE__' */
+ T_PTRDIFF_TYPE, /* `__PTRDIFF_TYPE__' */
+ T_WCHAR_TYPE, /* `__WCHAR_TYPE__' */
+ T_USER_LABEL_PREFIX_TYPE, /* `__USER_LABEL_PREFIX__' */
+ T_REGISTER_PREFIX_TYPE, /* `__REGISTER_PREFIX__' */
+ T_TIME, /* `__TIME__' */
+ T_CONST, /* Constant value, used by `__STDC__' */
+ T_MACRO, /* macro defined by `#define' */
+ T_DISABLED, /* macro temporarily turned off for rescan */
+ T_SPEC_DEFINED, /* special `defined' macro for use in #if statements */
+ T_PCSTRING, /* precompiled string (hashval is KEYDEF *) */
+ T_UNUSED /* Used for something not defined. */
+};
+
+/* Structure allocated for every #define. For a simple replacement
+ such as
+ #define foo bar ,
+ nargs = -1, the `pattern' list is null, and the expansion is just
+ the replacement text. Nargs = 0 means a functionlike macro with no args,
+ e.g.,
+ #define getchar() getc (stdin) .
+ When there are args, the expansion is the replacement text with the
+ args squashed out, and the reflist is a list describing how to
+ build the output from the input: e.g., "3 chars, then the 1st arg,
+ then 9 chars, then the 3rd arg, then 0 chars, then the 2nd arg".
+ The chars here come from the expansion. Whatever is left of the
+ expansion after the last arg-occurrence is copied after that arg.
+ Note that the reflist can be arbitrarily long---
+ its length depends on the number of times the arguments appear in
+ the replacement text, not how many args there are. Example:
+ #define f(x) x+x+x+x+x+x+x would have replacement text "++++++" and
+ pattern list
+ { (0, 1), (1, 1), (1, 1), ..., (1, 1), NULL }
+ where (x, y) means (nchars, argno). */
+
+struct reflist {
+ struct reflist *next;
+ char stringify; /* nonzero if this arg was preceded by a
+ * # operator. */
+ char raw_before; /* Nonzero if a ## operator before arg. */
+ char raw_after; /* Nonzero if a ## operator after arg. */
+ char rest_args; /* Nonzero if this arg. absorbs the rest */
+ int nchars; /* Number of literal chars to copy before
+ * this arg occurrence. */
+ int argno; /* Number of arg to substitute (origin-0) */
+};
+
+typedef struct definition DEFINITION;
+struct definition {
+ int nargs;
+ int length; /* length of expansion string */
+ int predefined; /* True if the macro was builtin or */
+ /* came from the command line */
+ unsigned char *expansion;
+ int line; /* Line number of definition */
+ const char *file; /* File of definition */
+ char rest_args; /* Nonzero if last arg. absorbs the rest */
+ struct reflist *pattern;
+ union {
+ /* Names of macro args, concatenated in reverse order
+ * with comma-space between them.
+ * The only use of this is that we warn on redefinition
+ * if this differs between the old and new definitions. */
+ unsigned char *argnames;
+ } args;
+};
+
+extern unsigned char is_idchar[256];
+
+/* Stack of conditionals currently in progress
+ (including both successful and failing conditionals). */
+
+struct if_stack {
+ struct if_stack *next; /* for chaining to the next stack frame */
+ const char *fname; /* copied from input when frame is made */
+ int lineno; /* similarly */
+ int if_succeeded; /* true if a leg of this if-group
+ * has been passed through rescan */
+ unsigned char *control_macro; /* For #ifndef at start of file,
+ * this is the macro name tested. */
+ enum node_type type; /* type of last directive seen in this group */
+};
+typedef struct if_stack IF_STACK_FRAME;
+
+extern void cpp_buf_line_and_col(cpp_buffer *, long *, long *);
+extern cpp_buffer *cpp_file_buffer(cpp_reader *);
+extern void cpp_define(cpp_reader *, unsigned char *);
+
+extern void cpp_error(cpp_reader * pfile, const char *msg, ...);
+extern void cpp_warning(cpp_reader * pfile, const char *msg, ...);
+extern void cpp_pedwarn(cpp_reader * pfile, const char *msg, ...);
+extern void cpp_fatal(const char *msg, ...);
+extern void cpp_file_line_for_message(cpp_reader * pfile,
+ const char *filename, int line,
+ int column);
+extern void cpp_perror_with_name(cpp_reader * pfile, const char *name);
+extern void cpp_pfatal_with_name(cpp_reader * pfile, const char *name);
+extern void cpp_message(cpp_reader * pfile, int is_error,
+ const char *msg, ...);
+extern void cpp_message_v(cpp_reader * pfile, int is_error,
+ const char *msg, va_list args);
+
+extern void cpp_grow_buffer(cpp_reader * pfile, long n);
+extern int cpp_parse_escape(cpp_reader * pfile, char **string_ptr);
+
+void cpp_print_containing_files(cpp_reader * pfile);
+HOST_WIDE_INT cpp_parse_expr(cpp_reader * pfile);
+void skip_rest_of_line(cpp_reader * pfile);
+void init_parse_file(cpp_reader * pfile);
+void init_parse_options(struct cpp_options *opts);
+int push_parse_file(cpp_reader * pfile, const char *fname);
+void cpp_finish(cpp_reader * pfile);
+int cpp_read_check_assertion(cpp_reader * pfile);
+
+void *xmalloc(unsigned size);
+void *xrealloc(void *old, unsigned size);
+void *xcalloc(unsigned number, unsigned size);
+
+#ifdef __EMX__
+#define PATH_SEPARATOR ';'
+#endif
--- /dev/null
+/* CPP main program, using CPP Library.
+ * Copyright (C) 1995 Free Software Foundation, Inc.
+ * Written by Per Bothner, 1994-95.
+ *
+ * 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, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * In other words, you are welcome to use, share and improve this program.
+ * You are forbidden to forbid anyone else to use, share and improve
+ * what you give them. Help stamp out software-hoarding! */
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+#include "config.h"
+#include "cpplib.h"
+
+#define EPP_DEBUG 0
+
+cpp_reader parse_in;
+cpp_options options;
+
+int
+main(int argc, char **argv)
+{
+ char *p;
+ int i;
+ int argi = 1; /* Next argument to handle. */
+ struct cpp_options *opts = &options;
+ enum cpp_token kind;
+ int got_text;
+
+ p = argv[0] + strlen(argv[0]);
+#ifndef __EMX__
+ while (p != argv[0] && p[-1] != '/')
+#else
+ while (p != argv[0] && p[-1] != '/' && p[-1] != '\\')
+#endif
+ --p;
+ progname = p;
+
+ init_parse_file(&parse_in);
+ parse_in.data = opts;
+
+ init_parse_options(opts);
+
+ argi += cpp_handle_options(&parse_in, argc - argi, argv + argi);
+ if (argi < argc)
+ cpp_fatal("Invalid option `%s'", argv[argi]);
+ parse_in.show_column = 1;
+
+ i = push_parse_file(&parse_in, opts->in_fname);
+ if (i != SUCCESS_EXIT_CODE)
+ return i;
+
+ /* Now that we know the input file is valid, open the output. */
+
+ if (!opts->out_fname || !strcmp(opts->out_fname, ""))
+ opts->out_fname = "stdout";
+ else if (!freopen(opts->out_fname, "w", stdout))
+ cpp_pfatal_with_name(&parse_in, opts->out_fname);
+
+ got_text = 0;
+ for (i = 0;; i++)
+ {
+ kind = cpp_get_token(&parse_in);
+#if EPP_DEBUG
+ fprintf(stderr, "%03d: kind=%d len=%d out=%d text=%d\n", i,
+ kind, CPP_WRITTEN(&parse_in), !opts->no_output, got_text);
+#endif
+ switch (kind)
+ {
+ case CPP_EOF:
+ goto done;
+
+ case CPP_HSPACE:
+ continue;
+
+ case CPP_VSPACE:
+ if (!got_text)
+ goto next;
+ break;
+
+ default:
+ case CPP_OTHER:
+ case CPP_NAME:
+ case CPP_NUMBER:
+ case CPP_CHAR:
+ case CPP_STRING:
+ case CPP_LPAREN:
+ case CPP_RPAREN:
+ case CPP_LBRACE:
+ case CPP_RBRACE:
+ case CPP_COMMA:
+ case CPP_SEMICOLON:
+ case CPP_3DOTS:
+ got_text = 1;
+ continue;
+
+ case CPP_COMMENT:
+ case CPP_DIRECTIVE:
+ case CPP_POP:
+ continue;
+ }
+#if EPP_DEBUG
+ fprintf(stderr, "'");
+ fwrite(parse_in.token_buffer, 1, CPP_WRITTEN(&parse_in), stderr);
+ fprintf(stderr, "'\n");
+#endif
+ if (!opts->no_output)
+ {
+ fwrite(parse_in.token_buffer, 1, CPP_WRITTEN(&parse_in), stdout);
+ }
+ next:
+ parse_in.limit = parse_in.token_buffer;
+ got_text = 0;
+ }
+
+ done:
+ cpp_finish(&parse_in);
+
+ if (parse_in.errors)
+ exit(FATAL_EXIT_CODE);
+ exit(SUCCESS_EXIT_CODE);
+}
--- /dev/null
+Bitstream Vera Fonts Copyright
+
+The fonts have a generous copyright, allowing derivative works (as
+long as "Bitstream" or "Vera" are not in the names), and full
+redistribution (so long as they are not *sold* by themselves). They
+can be be bundled, redistributed and sold with any software.
+
+The fonts are distributed under the following copyright:
+
+Copyright
+=========
+
+Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream
+Vera is a trademark of Bitstream, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the fonts accompanying this license ("Fonts") and associated
+documentation files (the "Font Software"), to reproduce and distribute
+the Font Software, including without limitation the rights to use,
+copy, merge, publish, distribute, and/or sell copies of the Font
+Software, and to permit persons to whom the Font Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright and trademark notices and this permission notice
+shall be included in all copies of one or more of the Font Software
+typefaces.
+
+The Font Software may be modified, altered, or added to, and in
+particular the designs of glyphs or characters in the Fonts may be
+modified and additional glyphs or characters may be added to the
+Fonts, only if the fonts are renamed to names not containing either
+the words "Bitstream" or the word "Vera".
+
+This License becomes null and void to the extent applicable to Fonts
+or Font Software that has been modified and is distributed under the
+"Bitstream Vera" names.
+
+The Font Software may be sold as part of a larger software package but
+no copy of one or more of the Font Software typefaces may be sold by
+itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
+BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL,
+OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT
+SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
+
+Except as contained in this notice, the names of Gnome, the Gnome
+Foundation, and Bitstream Inc., shall not be used in advertising or
+otherwise to promote the sale, use or other dealings in this Font
+Software without prior written authorization from the Gnome Foundation
+or Bitstream Inc., respectively. For further information, contact:
+fonts at gnome dot org.
+
+Copyright FAQ
+=============
+
+ 1. I don't understand the resale restriction... What gives?
+
+ Bitstream is giving away these fonts, but wishes to ensure its
+ competitors can't just drop the fonts as is into a font sale system
+ and sell them as is. It seems fair that if Bitstream can't make money
+ from the Bitstream Vera fonts, their competitors should not be able to
+ do so either. You can sell the fonts as part of any software package,
+ however.
+
+ 2. I want to package these fonts separately for distribution and
+ sale as part of a larger software package or system. Can I do so?
+
+ Yes. A RPM or Debian package is a "larger software package" to begin
+ with, and you aren't selling them independently by themselves.
+ See 1. above.
+
+ 3. Are derivative works allowed?
+ Yes!
+
+ 4. Can I change or add to the font(s)?
+ Yes, but you must change the name(s) of the font(s).
+
+ 5. Under what terms are derivative works allowed?
+
+ You must change the name(s) of the fonts. This is to ensure the
+ quality of the fonts, both to protect Bitstream and Gnome. We want to
+ ensure that if an application has opened a font specifically of these
+ names, it gets what it expects (though of course, using fontconfig,
+ substitutions could still could have occurred during font
+ opening). You must include the Bitstream copyright. Additional
+ copyrights can be added, as per copyright law. Happy Font Hacking!
+
+ 6. If I have improvements for Bitstream Vera, is it possible they might get
+ adopted in future versions?
+
+ Yes. The contract between the Gnome Foundation and Bitstream has
+ provisions for working with Bitstream to ensure quality additions to
+ the Bitstream Vera font family. Please contact us if you have such
+ additions. Note, that in general, we will want such additions for the
+ entire family, not just a single font, and that you'll have to keep
+ both Gnome and Jim Lyles, Vera's designer, happy! To make sense to add
+ glyphs to the font, they must be stylistically in keeping with Vera's
+ design. Vera cannot become a "ransom note" font. Jim Lyles will be
+ providing a document describing the design elements used in Vera, as a
+ guide and aid for people interested in contributing to Vera.
+
+ 7. I want to sell a software package that uses these fonts: Can I do so?
+
+ Sure. Bundle the fonts with your software and sell your software
+ with the fonts. That is the intent of the copyright.
+
+ 8. If applications have built the names "Bitstream Vera" into them,
+ can I override this somehow to use fonts of my choosing?
+
+ This depends on exact details of the software. Most open source
+ systems and software (e.g., Gnome, KDE, etc.) are now converting to
+ use fontconfig (see www.fontconfig.org) to handle font configuration,
+ selection and substitution; it has provisions for overriding font
+ names and subsituting alternatives. An example is provided by the
+ supplied local.conf file, which chooses the family Bitstream Vera for
+ "sans", "serif" and "monospace". Other software (e.g., the XFree86
+ core server) has other mechanisms for font substitution.
+
--- /dev/null
+fontdir = $(pkgdatadir)/fonts
+
+font_DATA = Vera.ttf VeraBd.ttf COPYRIGHT.Vera
+
+EXTRA_DIST = $(font_DATA)
+
+install-data-hook:
+ cd $(DESTDIR)$(fontdir); rm -f normal.ttf; $(LN_S) Vera.ttf normal.ttf
+ cd $(DESTDIR)$(fontdir); rm -f bold.ttf; $(LN_S) VeraBd.ttf bold.ttf
+
+uninstall-local:
+ cd $(DESTDIR)$(fontdir); rm -f *.ttf
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = fonts
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(fontdir)"
+fontDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(font_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+fontdir = $(pkgdatadir)/fonts
+font_DATA = Vera.ttf VeraBd.ttf COPYRIGHT.Vera
+EXTRA_DIST = $(font_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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign fonts/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign fonts/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
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-fontDATA: $(font_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(fontdir)" || $(MKDIR_P) "$(DESTDIR)$(fontdir)"
+ @list='$(font_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(fontDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fontdir)/$$f'"; \
+ $(fontDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fontdir)/$$f"; \
+ done
+
+uninstall-fontDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(font_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(fontdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(fontdir)/$$f"; \
+ done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(fontdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-fontDATA
+ @$(NORMAL_INSTALL)
+ $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+
+install-dvi: install-dvi-am
+
+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
+
+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-fontDATA uninstall-local
+
+.MAKE: install-am install-data-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-hook install-dvi \
+ install-dvi-am install-exec install-exec-am install-fontDATA \
+ 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 uninstall uninstall-am uninstall-fontDATA \
+ uninstall-local
+
+
+install-data-hook:
+ cd $(DESTDIR)$(fontdir); rm -f normal.ttf; $(LN_S) Vera.ttf normal.ttf
+ cd $(DESTDIR)$(fontdir); rm -f bold.ttf; $(LN_S) VeraBd.ttf bold.ttf
+
+uninstall-local:
+ cd $(DESTDIR)$(fontdir); rm -f *.ttf
+# 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:
--- /dev/null
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2006-12-25.00
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dst_arg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix='/';;
+ -*) prefix='./';;
+ *) prefix='';;
+ esac
+
+ eval "$initialize_posix_glob"
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob set -f
+ set fnord $dstdir
+ shift
+ $posix_glob set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test -z "$d" && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
--- /dev/null
+libe16dir = $(pkglibdir)
+
+if BUILD_ROOTHACKLIB
+
+libe16_LTLIBRARIES = libhack.la
+
+libhack_la_SOURCES = e16_hack.c
+libhack_la_CPPFLAGS = -I$(top_srcdir)/src $(X_CFLAGS) $(CWARNFLAGS)
+
+libhack_la_LIBADD = $(DLOPEN_LIBS)
+libhack_la_LDFLAGS = -avoid-version
+
+endif
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = lib
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libe16dir)"
+libe16LTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(libe16_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+@BUILD_ROOTHACKLIB_TRUE@libhack_la_DEPENDENCIES = \
+@BUILD_ROOTHACKLIB_TRUE@ $(am__DEPENDENCIES_1)
+am__libhack_la_SOURCES_DIST = e16_hack.c
+@BUILD_ROOTHACKLIB_TRUE@am_libhack_la_OBJECTS = \
+@BUILD_ROOTHACKLIB_TRUE@ libhack_la-e16_hack.lo
+libhack_la_OBJECTS = $(am_libhack_la_OBJECTS)
+libhack_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(libhack_la_LDFLAGS) $(LDFLAGS) -o $@
+@BUILD_ROOTHACKLIB_TRUE@am_libhack_la_rpath = -rpath $(libe16dir)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libhack_la_SOURCES)
+DIST_SOURCES = $(am__libhack_la_SOURCES_DIST)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+libe16dir = $(pkglibdir)
+@BUILD_ROOTHACKLIB_TRUE@libe16_LTLIBRARIES = libhack.la
+@BUILD_ROOTHACKLIB_TRUE@libhack_la_SOURCES = e16_hack.c
+@BUILD_ROOTHACKLIB_TRUE@libhack_la_CPPFLAGS = -I$(top_srcdir)/src $(X_CFLAGS) $(CWARNFLAGS)
+@BUILD_ROOTHACKLIB_TRUE@libhack_la_LIBADD = $(DLOPEN_LIBS)
+@BUILD_ROOTHACKLIB_TRUE@libhack_la_LDFLAGS = -avoid-version
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign lib/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign lib/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
+install-libe16LTLIBRARIES: $(libe16_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libe16dir)" || $(MKDIR_P) "$(DESTDIR)$(libe16dir)"
+ @list='$(libe16_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libe16LTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libe16dir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libe16LTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libe16dir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-libe16LTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libe16_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libe16dir)/$$p'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libe16dir)/$$p"; \
+ done
+
+clean-libe16LTLIBRARIES:
+ -test -z "$(libe16_LTLIBRARIES)" || rm -f $(libe16_LTLIBRARIES)
+ @list='$(libe16_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libhack.la: $(libhack_la_OBJECTS) $(libhack_la_DEPENDENCIES)
+ $(libhack_la_LINK) $(am_libhack_la_rpath) $(libhack_la_OBJECTS) $(libhack_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhack_la-e16_hack.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+libhack_la-e16_hack.lo: e16_hack.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libhack_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libhack_la-e16_hack.lo -MD -MP -MF $(DEPDIR)/libhack_la-e16_hack.Tpo -c -o libhack_la-e16_hack.lo `test -f 'e16_hack.c' || echo '$(srcdir)/'`e16_hack.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libhack_la-e16_hack.Tpo $(DEPDIR)/libhack_la-e16_hack.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='e16_hack.c' object='libhack_la-e16_hack.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libhack_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libhack_la-e16_hack.lo `test -f 'e16_hack.c' || echo '$(srcdir)/'`e16_hack.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+ for dir in "$(DESTDIR)$(libe16dir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libe16LTLIBRARIES 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
+
+info: info-am
+
+info-am:
+
+install-data-am: install-libe16LTLIBRARIES
+
+install-dvi: install-dvi-am
+
+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
+
+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-libe16LTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libe16LTLIBRARIES clean-libtool ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am \
+ install-libe16LTLIBRARIES install-man install-pdf \
+ install-pdf-am install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am uninstall-libe16LTLIBRARIES
+
+# 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:
--- /dev/null
+/*
+ * Copyright (C) 2005-2007 Carsten Haitzler
+ * Copyright (C) 2006-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Basic hack mechanism (dlopen etc.) taken from e_hack.c in e17.
+ */
+#include <stdio.h>
+#include <stdlib.h>
+#include <dlfcn.h>
+#include <X11/Xlib.h>
+#include <X11/X.h>
+
+#include "config.h"
+#include "util.h"
+
+/* dlopened xlib so we can find the symbols in the real xlib to call them */
+static void *lib_xlib = NULL;
+
+static Window root = None;
+
+/* Find our root window */
+static Window
+MyRoot(Display * dpy)
+{
+ char *s;
+
+ if (root != None)
+ return root;
+
+ root = DefaultRootWindow(dpy);
+
+ s = getenv("ENL_WM_ROOT");
+ if (!s)
+ return root;
+
+ sscanf(s, "%lx", &root);
+ return root;
+}
+
+typedef Window(CWF) (Display * _display, Window _parent, int _x,
+ int _y, unsigned int _width,
+ unsigned int _height,
+ unsigned int _border_width, int _depth,
+ unsigned int _class, Visual * _visual,
+ unsigned long _valuemask,
+ XSetWindowAttributes * _attributes);
+
+/* XCreateWindow intercept hack */
+__EXPORT__ Window
+XCreateWindow(Display * display, Window parent, int x, int y,
+ unsigned int width, unsigned int height,
+ unsigned int border_width,
+ int depth, unsigned int clss, Visual * visual,
+ unsigned long valuemask, XSetWindowAttributes * attributes)
+{
+ static CWF *func = NULL;
+
+ /* find the real Xlib and the real X function */
+ if (!lib_xlib)
+ lib_xlib = dlopen("libX11.so", RTLD_GLOBAL | RTLD_LAZY);
+ if (!func)
+ func = (CWF *) dlsym(lib_xlib, "XCreateWindow");
+
+ if (parent == DefaultRootWindow(display))
+ parent = MyRoot(display);
+
+ return (*func) (display, parent, x, y, width, height, border_width, depth,
+ clss, visual, valuemask, attributes);
+}
+
+typedef Window(CSWF) (Display * _display, Window _parent, int _x,
+ int _y, unsigned int _width,
+ unsigned int _height,
+ unsigned int _border_width,
+ unsigned long _border,
+ unsigned long _background);
+
+/* XCreateSimpleWindow intercept hack */
+__EXPORT__ Window
+XCreateSimpleWindow(Display * display, Window parent, int x, int y,
+ unsigned int width, unsigned int height,
+ unsigned int border_width,
+ unsigned long border, unsigned long background)
+{
+ static CSWF *func = NULL;
+
+ /* find the real Xlib and the real X function */
+ if (!lib_xlib)
+ lib_xlib = dlopen("libX11.so", RTLD_GLOBAL | RTLD_LAZY);
+ if (!func)
+ func = (CSWF *) dlsym(lib_xlib, "XCreateSimpleWindow");
+
+ if (parent == DefaultRootWindow(display))
+ parent = MyRoot(display);
+
+ return (*func) (display, parent, x, y, width, height,
+ border_width, border, background);
+}
+
+typedef int (RWF) (Display * _display, Window _window, Window _parent,
+ int x, int y);
+
+/* XReparentWindow intercept hack */
+__EXPORT__ int
+XReparentWindow(Display * display, Window window, Window parent, int x, int y)
+{
+ static RWF *func = NULL;
+
+ /* find the real Xlib and the real X function */
+ if (!lib_xlib)
+ lib_xlib = dlopen("libX11.so", RTLD_GLOBAL | RTLD_LAZY);
+ if (!func)
+ func = (RWF *) dlsym(lib_xlib, "XReparentWindow");
+
+ if (parent == DefaultRootWindow(display))
+ parent = MyRoot(display);
+
+ return (*func) (display, window, parent, x, y);
+}
--- /dev/null
+# ltmain.sh - Provide generalized library-building support services.
+# NOTE: Changing this file will not affect anything until you rerun configure.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
+# 2007, 2008 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+# 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 of the License, 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.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+basename="s,^.*/,,g"
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# The name of this program:
+progname=`echo "$progpath" | $SED $basename`
+modename="$progname"
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=1.5.26
+TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
+
+# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Check that we have a working $echo.
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
+ # Yippee, $echo works!
+ :
+else
+ # Restart under the correct shell, and then maybe $echo will work.
+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+default_mode=
+help="Try \`$progname --help' for more information."
+magic="%%%MAGIC variable%%%"
+mkdir="mkdir"
+mv="mv -f"
+rm="rm -f"
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ SP2NL='tr \040 \012'
+ NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ SP2NL='tr \100 \n'
+ NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+lt_env=
+for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ lt_env=\"$lt_var=\$$lt_var \$lt_env\"
+ $lt_var=C
+ export $lt_var
+ fi"
+done
+
+if test -n "$lt_env"; then
+ lt_env="env $lt_env"
+fi
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ $echo "$modename: not configured to build any kind of library" 1>&2
+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
+ exit $EXIT_FAILURE
+fi
+
+# Global variables.
+mode=$default_mode
+nonopt=
+prev=
+prevopt=
+run=
+show="$echo"
+show_help=
+execute_dlfiles=
+duplicate_deps=no
+preserve_args=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+extracted_archives=
+extracted_serial=0
+
+#####################################
+# Shell function definitions:
+# This seems to be the best place for them
+
+# func_mktempdir [string]
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible. If
+# given, STRING is the basename for that directory.
+func_mktempdir ()
+{
+ my_template="${TMPDIR-/tmp}/${1-$progname}"
+
+ if test "$run" = ":"; then
+ # Return a directory name, but don't create it in dry-run mode
+ my_tmpdir="${my_template}-$$"
+ else
+
+ # If mktemp works, use that first and foremost
+ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
+
+ if test ! -d "$my_tmpdir"; then
+ # Failing that, at least try and use $RANDOM to avoid a race
+ my_tmpdir="${my_template}-${RANDOM-0}$$"
+
+ save_mktempdir_umask=`umask`
+ umask 0077
+ $mkdir "$my_tmpdir"
+ umask $save_mktempdir_umask
+ fi
+
+ # If we're not in dry-run mode, bomb out on failure
+ test -d "$my_tmpdir" || {
+ $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
+ exit $EXIT_FAILURE
+ }
+ fi
+
+ $echo "X$my_tmpdir" | $Xsed
+}
+
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid ()
+{
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
+ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+ win32_nmres=`eval $NM -f posix -A $1 | \
+ $SED -n -e '1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
+ case $win32_nmres in
+ import*) win32_libid_type="x86 archive import";;
+ *) win32_libid_type="x86 archive static";;
+ esac
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $echo $win32_libid_type
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ CC_quoted="$CC_quoted $arg"
+ done
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ CC_quoted="$CC_quoted $arg"
+ done
+ case "$@ " in
+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ $echo "$modename: unable to infer tagged configuration"
+ $echo "$modename: specify a tag with \`--tag'" 1>&2
+ exit $EXIT_FAILURE
+# else
+# $echo "$modename: using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+ f_ex_an_ar_dir="$1"; shift
+ f_ex_an_ar_oldlib="$1"
+
+ $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
+ $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
+ exit $EXIT_FAILURE
+ fi
+}
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+ my_status=""
+
+ $show "${rm}r $my_gentop"
+ $run ${rm}r "$my_gentop"
+ $show "$mkdir $my_gentop"
+ $run $mkdir "$my_gentop"
+ my_status=$?
+ if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
+ exit $my_status
+ fi
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
+ my_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ extracted_serial=`expr $extracted_serial + 1`
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ $show "${rm}r $my_xdir"
+ $run ${rm}r "$my_xdir"
+ $show "$mkdir $my_xdir"
+ $run $mkdir "$my_xdir"
+ exit_status=$?
+ if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
+ exit $exit_status
+ fi
+ case $host in
+ *-darwin*)
+ $show "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ if test -z "$run"; then
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
+ darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ $show "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ func_extract_an_archive "`pwd`" "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
+ done # $darwin_arches
+ ## Okay now we have a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+ lipo -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ ${rm}r unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd "$darwin_orig_dir"
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ fi # $darwin_arches
+ fi # $run
+ ;;
+ *)
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ done
+ func_extract_archives_result="$my_oldobjs"
+}
+# End of Shell function definitions
+#####################################
+
+# Darwin sucks
+eval std_shrext=\"$shrext_cmds\"
+
+disable_libs=no
+
+# Parse our command line options once, thoroughly.
+while test "$#" -gt 0
+do
+ arg="$1"
+ shift
+
+ case $arg in
+ -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ execute_dlfiles)
+ execute_dlfiles="$execute_dlfiles $arg"
+ ;;
+ tag)
+ tagname="$arg"
+ preserve_args="${preserve_args}=$arg"
+
+ # Check whether tagname contains only valid characters
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ $echo "$progname: invalid tag name: $tagname" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ case $tagname in
+ CC)
+ # Don't test for the "default" C tag, as we know, it's there, but
+ # not specially marked.
+ ;;
+ *)
+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
+ taglist="$taglist $tagname"
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
+ else
+ $echo "$progname: ignoring unknown tag $tagname" 1>&2
+ fi
+ ;;
+ esac
+ ;;
+ *)
+ eval "$prev=\$arg"
+ ;;
+ esac
+
+ prev=
+ prevopt=
+ continue
+ fi
+
+ # Have we seen a non-optional argument yet?
+ case $arg in
+ --help)
+ show_help=yes
+ ;;
+
+ --version)
+ echo "\
+$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ exit $?
+ ;;
+
+ --config)
+ ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
+ done
+ exit $?
+ ;;
+
+ --debug)
+ $echo "$progname: enabling shell trace mode"
+ set -x
+ preserve_args="$preserve_args $arg"
+ ;;
+
+ --dry-run | -n)
+ run=:
+ ;;
+
+ --features)
+ $echo "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ $echo "enable shared libraries"
+ else
+ $echo "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ $echo "enable static libraries"
+ else
+ $echo "disable static libraries"
+ fi
+ exit $?
+ ;;
+
+ --finish) mode="finish" ;;
+
+ --mode) prevopt="--mode" prev=mode ;;
+ --mode=*) mode="$optarg" ;;
+
+ --preserve-dup-deps) duplicate_deps="yes" ;;
+
+ --quiet | --silent)
+ show=:
+ preserve_args="$preserve_args $arg"
+ ;;
+
+ --tag)
+ prevopt="--tag"
+ prev=tag
+ preserve_args="$preserve_args --tag"
+ ;;
+ --tag=*)
+ set tag "$optarg" ${1+"$@"}
+ shift
+ prev=tag
+ preserve_args="$preserve_args --tag"
+ ;;
+
+ -dlopen)
+ prevopt="-dlopen"
+ prev=execute_dlfiles
+ ;;
+
+ -*)
+ $echo "$modename: unrecognized option \`$arg'" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+
+ *)
+ nonopt="$arg"
+ break
+ ;;
+ esac
+done
+
+if test -n "$prevopt"; then
+ $echo "$modename: option \`$prevopt' requires an argument" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+fi
+
+case $disable_libs in
+no)
+ ;;
+shared)
+ build_libtool_libs=no
+ build_old_libs=yes
+ ;;
+static)
+ build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+ ;;
+esac
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end. This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+if test -z "$show_help"; then
+
+ # Infer the operation mode.
+ if test -z "$mode"; then
+ $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
+ $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
+ case $nonopt in
+ *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
+ mode=link
+ for arg
+ do
+ case $arg in
+ -c)
+ mode=compile
+ break
+ ;;
+ esac
+ done
+ ;;
+ *db | *dbx | *strace | *truss)
+ mode=execute
+ ;;
+ *install*|cp|mv)
+ mode=install
+ ;;
+ *rm)
+ mode=uninstall
+ ;;
+ *)
+ # If we have no mode, but dlfiles were specified, then do execute mode.
+ test -n "$execute_dlfiles" && mode=execute
+
+ # Just use the default operation mode.
+ if test -z "$mode"; then
+ if test -n "$nonopt"; then
+ $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
+ else
+ $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
+ fi
+ fi
+ ;;
+ esac
+ fi
+
+ # Only execute mode is allowed to have -dlopen flags.
+ if test -n "$execute_dlfiles" && test "$mode" != execute; then
+ $echo "$modename: unrecognized option \`-dlopen'" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Change the help message to a mode-specific one.
+ generic_help="$help"
+ help="Try \`$modename --help --mode=$mode' for more information."
+
+ # These modes are in order of execution frequency so that they run quickly.
+ case $mode in
+ # libtool compile mode
+ compile)
+ modename="$modename: compile"
+ # Get the compilation command and the source file.
+ base_compile=
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
+ suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
+
+ for arg
+ do
+ case $arg_mode in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
+
+ target )
+ libobj="$arg"
+ arg_mode=normal
+ continue
+ ;;
+
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ if test -n "$libobj" ; then
+ $echo "$modename: you cannot specify \`-o' more than once" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ arg_mode=target
+ continue
+ ;;
+
+ -static | -prefer-pic | -prefer-non-pic)
+ later="$later $arg"
+ continue
+ ;;
+
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
+
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
+
+ -Wc,*)
+ args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
+
+ # Double-quote args containing other shell metacharacters.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ lastarg="$lastarg $arg"
+ done
+ IFS="$save_ifs"
+ lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
+
+ # Add the arguments to base_compile.
+ base_compile="$base_compile $lastarg"
+ continue
+ ;;
+
+ * )
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
+ ;;
+ esac # case $arg_mode
+
+ # Aesthetically quote the previous argument.
+ lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
+
+ case $lastarg in
+ # Double-quote args containing other shell metacharacters.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, and some SunOS ksh mistreat backslash-escaping
+ # in scan sets (worked around with variable expansion),
+ # and furthermore cannot handle '|' '&' '(' ')' in scan sets
+ # at all, so we specify them separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ lastarg="\"$lastarg\""
+ ;;
+ esac
+
+ base_compile="$base_compile $lastarg"
+ done # for arg
+
+ case $arg_mode in
+ arg)
+ $echo "$modename: you must specify an argument for -Xcompile"
+ exit $EXIT_FAILURE
+ ;;
+ target)
+ $echo "$modename: you must specify a target with \`-o'" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ *)
+ # Get the name of the library object.
+ [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
+ ;;
+ esac
+
+ # Recognize several different file suffixes.
+ # If the user specifies -o file.o, it is replaced with file.lo
+ xform='[cCFSifmso]'
+ case $libobj in
+ *.ada) xform=ada ;;
+ *.adb) xform=adb ;;
+ *.ads) xform=ads ;;
+ *.asm) xform=asm ;;
+ *.c++) xform=c++ ;;
+ *.cc) xform=cc ;;
+ *.ii) xform=ii ;;
+ *.class) xform=class ;;
+ *.cpp) xform=cpp ;;
+ *.cxx) xform=cxx ;;
+ *.[fF][09]?) xform=[fF][09]. ;;
+ *.for) xform=for ;;
+ *.java) xform=java ;;
+ *.obj) xform=obj ;;
+ *.sx) xform=sx ;;
+ esac
+
+ libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
+
+ case $libobj in
+ *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
+ *)
+ $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -static)
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
+ case $qlibobj in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ qlibobj="\"$qlibobj\"" ;;
+ esac
+ test "X$libobj" != "X$qlibobj" \
+ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
+ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
+ objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
+ xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$obj"; then
+ xdir=
+ else
+ xdir=$xdir/
+ fi
+ lobj=${xdir}$objdir/$objname
+
+ if test -z "$base_compile"; then
+ $echo "$modename: you must specify a compilation command" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Delete any leftover library objects.
+ if test "$build_old_libs" = yes; then
+ removelist="$obj $lobj $libobj ${libobj}T"
+ else
+ removelist="$lobj $libobj ${libobj}T"
+ fi
+
+ $run $rm $removelist
+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
+
+ # On Cygwin there's no "real" PIC flag so we must build both object types
+ case $host_os in
+ cygwin* | mingw* | pw32* | os2*)
+ pic_mode=default
+ ;;
+ esac
+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+ # non-PIC code in shared libraries is not supported
+ pic_mode=default
+ fi
+
+ # Calculate the filename of the output object if compiler does
+ # not support -o with -c
+ if test "$compiler_c_o" = no; then
+ output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+ lockfile="$output_obj.lock"
+ removelist="$removelist $output_obj $lockfile"
+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
+ else
+ output_obj=
+ need_locks=no
+ lockfile=
+ fi
+
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+ until $run ln "$progpath" "$lockfile" 2>/dev/null; do
+ $show "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ elif test "$need_locks" = warn; then
+ if test -f "$lockfile"; then
+ $echo "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+ $echo "$srcfile" > "$lockfile"
+ fi
+
+ if test -n "$fix_srcfile_path"; then
+ eval srcfile=\"$fix_srcfile_path\"
+ fi
+ qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
+ case $qsrcfile in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ qsrcfile="\"$qsrcfile\"" ;;
+ esac
+
+ $run $rm "$libobj" "${libobj}T"
+
+ # Create a libtool object file (analogous to a ".la" file),
+ # but don't create it if we're doing a dry run.
+ test -z "$run" && cat > ${libobj}T <<EOF
+# $libobj - a libtool object file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+EOF
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ if test ! -d "${xdir}$objdir"; then
+ $show "$mkdir ${xdir}$objdir"
+ $run $mkdir ${xdir}$objdir
+ exit_status=$?
+ if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
+ exit $exit_status
+ fi
+ fi
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ $run $rm "$lobj" "$output_obj"
+
+ $show "$command"
+ if $run eval $lt_env "$command"; then :
+ else
+ test -n "$output_obj" && $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $echo "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed, then go on to compile the next one
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ $show "$mv $output_obj $lobj"
+ if $run $mv $output_obj $lobj; then :
+ else
+ error=$?
+ $run $rm $removelist
+ exit $error
+ fi
+ fi
+
+ # Append the name of the PIC object to the libtool object file.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object='$objdir/$objname'
+
+EOF
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ else
+ # No PIC object so indicate it doesn't exist in the libtool
+ # object file.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object=none
+
+EOF
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ $run $rm "$obj" "$output_obj"
+ $show "$command"
+ if $run eval $lt_env "$command"; then :
+ else
+ $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $echo "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+ $show "$mv $output_obj $obj"
+ if $run $mv $output_obj $obj; then :
+ else
+ error=$?
+ $run $rm $removelist
+ exit $error
+ fi
+ fi
+
+ # Append the name of the non-PIC object the libtool object file.
+ # Only append if the libtool object file exists.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+# Name of the non-PIC object.
+non_pic_object='$objname'
+
+EOF
+ else
+ # Append the name of the non-PIC object the libtool object file.
+ # Only append if the libtool object file exists.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+# Name of the non-PIC object.
+non_pic_object=none
+
+EOF
+ fi
+
+ $run $mv "${libobj}T" "${libobj}"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ $run $rm "$lockfile"
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ # libtool link mode
+ link | relink)
+ modename="$modename: link"
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args="$nonopt"
+ base_compile="$nonopt $@"
+ compile_command="$nonopt"
+ finalize_command="$nonopt"
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ notinst_path= # paths that contain not-installed libtool libraries
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ single_module="${wl}-single_module"
+
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
+
+ # See if our shared archives depend on static archives.
+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+ # Go through the arguments, transforming them on the way.
+ while test "$#" -gt 0; do
+ arg="$1"
+ shift
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
+ ;;
+ *) qarg=$arg ;;
+ esac
+ libtool_args="$libtool_args $qarg"
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ output)
+ compile_command="$compile_command @OUTPUT@"
+ finalize_command="$finalize_command @OUTPUT@"
+ ;;
+ esac
+
+ case $prev in
+ dlfiles|dlprefiles)
+ if test "$preload" = no; then
+ # Add the symbol object into the linking commands.
+ compile_command="$compile_command @SYMFILE@"
+ finalize_command="$finalize_command @SYMFILE@"
+ preload=yes
+ fi
+ case $arg in
+ *.la | *.lo) ;; # We handle these cases below.
+ force)
+ if test "$dlself" = no; then
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ self)
+ if test "$prev" = dlprefiles; then
+ dlself=yes
+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+ dlself=yes
+ else
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ *)
+ if test "$prev" = dlfiles; then
+ dlfiles="$dlfiles $arg"
+ else
+ dlprefiles="$dlprefiles $arg"
+ fi
+ prev=
+ continue
+ ;;
+ esac
+ ;;
+ expsyms)
+ export_symbols="$arg"
+ if test ! -f "$arg"; then
+ $echo "$modename: symbol file \`$arg' does not exist"
+ exit $EXIT_FAILURE
+ fi
+ prev=
+ continue
+ ;;
+ expsyms_regex)
+ export_symbols_regex="$arg"
+ prev=
+ continue
+ ;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
+ release)
+ release="-$arg"
+ prev=
+ continue
+ ;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat $save_arg`
+ do
+# moreargs="$moreargs $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ # If there is no directory component, then add one.
+ case $arg in
+ */* | *\\*) . $arg ;;
+ *) . ./$arg ;;
+ esac
+
+ if test -z "$pic_object" || \
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none && \
+ test "$non_pic_object" = none; then
+ $echo "$modename: cannot find name of object for \`$arg'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ libobjs="$libobjs $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if test -z "$run"; then
+ $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
+ exit $EXIT_FAILURE
+ else
+ # Dry-run case.
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
+ non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
+ libobjs="$libobjs $pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ fi
+ fi
+ done
+ else
+ $echo "$modename: link input file \`$save_arg' does not exist"
+ exit $EXIT_FAILURE
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
+ rpath | xrpath)
+ # We need an absolute path.
+ case $arg in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ $echo "$modename: only absolute run-paths are allowed" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+ *) rpath="$rpath $arg" ;;
+ esac
+ else
+ case "$xrpath " in
+ *" $arg "*) ;;
+ *) xrpath="$xrpath $arg" ;;
+ esac
+ fi
+ prev=
+ continue
+ ;;
+ xcompiler)
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ compile_command="$compile_command $qarg"
+ finalize_command="$finalize_command $qarg"
+ continue
+ ;;
+ xlinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $wl$qarg"
+ prev=
+ compile_command="$compile_command $wl$qarg"
+ finalize_command="$finalize_command $wl$qarg"
+ continue
+ ;;
+ xcclinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ compile_command="$compile_command $qarg"
+ finalize_command="$finalize_command $qarg"
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
+ darwin_framework|darwin_framework_skip)
+ test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ prev=
+ continue
+ ;;
+ *)
+ eval "$prev=\"\$arg\""
+ prev=
+ continue
+ ;;
+ esac
+ fi # test -n "$prev"
+
+ prevarg="$arg"
+
+ case $arg in
+ -all-static)
+ if test -n "$link_static_flag"; then
+ compile_command="$compile_command $link_static_flag"
+ finalize_command="$finalize_command $link_static_flag"
+ fi
+ continue
+ ;;
+
+ -allow-undefined)
+ # FIXME: remove this flag sometime in the future.
+ $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
+ continue
+ ;;
+
+ -avoid-version)
+ avoid_version=yes
+ continue
+ ;;
+
+ -dlopen)
+ prev=dlfiles
+ continue
+ ;;
+
+ -dlpreopen)
+ prev=dlprefiles
+ continue
+ ;;
+
+ -export-dynamic)
+ export_dynamic=yes
+ continue
+ ;;
+
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ $echo "$modename: more than one -exported-symbols argument is not allowed"
+ exit $EXIT_FAILURE
+ fi
+ if test "X$arg" = "X-export-symbols"; then
+ prev=expsyms
+ else
+ prev=expsyms_regex
+ fi
+ continue
+ ;;
+
+ -framework|-arch|-isysroot)
+ case " $CC " in
+ *" ${arg} ${1} "* | *" ${arg} ${1} "*)
+ prev=darwin_framework_skip ;;
+ *) compiler_flags="$compiler_flags $arg"
+ prev=darwin_framework ;;
+ esac
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ continue
+ ;;
+
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+ # so, if we see these flags be careful not to treat them like -L
+ -L[A-Z][A-Z]*:*)
+ case $with_gcc/$host in
+ no/*-*-irix* | /*-*-irix*)
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ ;;
+ esac
+ continue
+ ;;
+
+ -L*)
+ dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
+ absdir="$dir"
+ notinst_path="$notinst_path $dir"
+ fi
+ dir="$absdir"
+ ;;
+ esac
+ case "$deplibs " in
+ *" -L$dir "*) ;;
+ *)
+ deplibs="$deplibs -L$dir"
+ lib_search_path="$lib_search_path $dir"
+ ;;
+ esac
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$dir:"*) ;;
+ *) dllsearchpath="$dllsearchpath:$dir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ continue
+ ;;
+
+ -l*)
+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
+ # These systems don't actually have a C or math library (as such)
+ continue
+ ;;
+ *-*-os2*)
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ deplibs="$deplibs -framework System"
+ continue
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
+ fi
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
+ # Tru64 UNIX uses -model [arg] to determine the layout of C++
+ # classes, name mangling, and exception handling.
+ -model)
+ compile_command="$compile_command $arg"
+ compiler_flags="$compiler_flags $arg"
+ finalize_command="$finalize_command $arg"
+ prev=xcompiler
+ continue
+ ;;
+
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ compiler_flags="$compiler_flags $arg"
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ continue
+ ;;
+
+ -multi_module)
+ single_module="${wl}-multi_module"
+ continue
+ ;;
+
+ -module)
+ module=yes
+ continue
+ ;;
+
+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+ # -r[0-9][0-9]* specifies the processor on the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+ # +DA*, +DD* enable 64-bit mode on the HP compiler
+ # -q* pass through compiler args for the IBM compiler
+ # -m* pass through architecture-specific compiler args for GCC
+ # -m*, -t[45]*, -txscale* pass through architecture-specific
+ # compiler args for GCC
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ compiler_flags="$compiler_flags $arg"
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
+ -no-fast-install)
+ fast_install=no
+ continue
+ ;;
+
+ -no-install)
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin in order for the loader to find any dlls it needs.
+ $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
+ $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
+ fast_install=no
+ ;;
+ *) no_install=yes ;;
+ esac
+ continue
+ ;;
+
+ -no-undefined)
+ allow_undefined=no
+ continue
+ ;;
+
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
+ -o) prev=output ;;
+
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
+ -release)
+ prev=release
+ continue
+ ;;
+
+ -rpath)
+ prev=rpath
+ continue
+ ;;
+
+ -R)
+ prev=xrpath
+ continue
+ ;;
+
+ -R*)
+ dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ $echo "$modename: only absolute run-paths are allowed" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ continue
+ ;;
+
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+ # didn't have a PIC flag, but the assumption that the effects
+ # would be equivalent was wrong. It would break on at least
+ # Digital Unix and AIX.
+ continue
+ ;;
+
+ -thread-safe)
+ thread_safe=yes
+ continue
+ ;;
+
+ -version-info)
+ prev=vinfo
+ continue
+ ;;
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
+
+ -Wc,*)
+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ case $flag in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ flag="\"$flag\""
+ ;;
+ esac
+ arg="$arg $wl$flag"
+ compiler_flags="$compiler_flags $flag"
+ done
+ IFS="$save_ifs"
+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ ;;
+
+ -Wl,*)
+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ case $flag in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ flag="\"$flag\""
+ ;;
+ esac
+ arg="$arg $wl$flag"
+ compiler_flags="$compiler_flags $wl$flag"
+ linker_flags="$linker_flags $flag"
+ done
+ IFS="$save_ifs"
+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ ;;
+
+ -Xcompiler)
+ prev=xcompiler
+ continue
+ ;;
+
+ -Xlinker)
+ prev=xlinker
+ continue
+ ;;
+
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
+ # Some other compiler flag.
+ -* | +*)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ ;;
+
+ *.$objext)
+ # A standard object.
+ objs="$objs $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ # If there is no directory component, then add one.
+ case $arg in
+ */* | *\\*) . $arg ;;
+ *) . ./$arg ;;
+ esac
+
+ if test -z "$pic_object" || \
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none && \
+ test "$non_pic_object" = none; then
+ $echo "$modename: cannot find name of object for \`$arg'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ libobjs="$libobjs $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if test -z "$run"; then
+ $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
+ exit $EXIT_FAILURE
+ else
+ # Dry-run case.
+
+ # Extract subdirectory from the argument.
+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$xdir" = "X$arg"; then
+ xdir=
+ else
+ xdir="$xdir/"
+ fi
+
+ pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
+ non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
+ libobjs="$libobjs $pic_object"
+ non_pic_objects="$non_pic_objects $non_pic_object"
+ fi
+ fi
+ ;;
+
+ *.$libext)
+ # An archive.
+ deplibs="$deplibs $arg"
+ old_deplibs="$old_deplibs $arg"
+ continue
+ ;;
+
+ *.la)
+ # A libtool-controlled library.
+
+ if test "$prev" = dlfiles; then
+ # This library was specified with -dlopen.
+ dlfiles="$dlfiles $arg"
+ prev=
+ elif test "$prev" = dlprefiles; then
+ # The library was specified with -dlpreopen.
+ dlprefiles="$dlprefiles $arg"
+ prev=
+ else
+ deplibs="$deplibs $arg"
+ fi
+ continue
+ ;;
+
+ # Some other compiler argument.
+ *)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ ;;
+ esac # arg
+
+ # Now actually substitute the argument into the commands.
+ if test -n "$arg"; then
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ fi
+ done # argument parsing loop
+
+ if test -n "$prev"; then
+ $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+ eval arg=\"$export_dynamic_flag_spec\"
+ compile_command="$compile_command $arg"
+ finalize_command="$finalize_command $arg"
+ fi
+
+ oldlibs=
+ # calculate the name of the file, without its directory
+ outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
+ libobjs_save="$libobjs"
+
+ if test -n "$shlibpath_var"; then
+ # get the directories listed in $shlibpath_var
+ eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+ else
+ shlib_search_path=
+ fi
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+ output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$output_objdir" = "X$output"; then
+ output_objdir="$objdir"
+ else
+ output_objdir="$output_objdir/$objdir"
+ fi
+ # Create the object directory.
+ if test ! -d "$output_objdir"; then
+ $show "$mkdir $output_objdir"
+ $run $mkdir $output_objdir
+ exit_status=$?
+ if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
+ exit $exit_status
+ fi
+ fi
+
+ # Determine the type of output
+ case $output in
+ "")
+ $echo "$modename: you must specify an output file" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ *.$libext) linkmode=oldlib ;;
+ *.lo | *.$objext) linkmode=obj ;;
+ *.la) linkmode=lib ;;
+ *) linkmode=prog ;; # Anything else should be a program.
+ esac
+
+ case $host in
+ *cygwin* | *mingw* | *pw32*)
+ # don't eliminate duplications in $postdeps and $predeps
+ duplicate_compiler_generated_deps=yes
+ ;;
+ *)
+ duplicate_compiler_generated_deps=$duplicate_deps
+ ;;
+ esac
+ specialdeplibs=
+
+ libs=
+ # Find all interdependent deplibs by searching for libraries
+ # that are linked more than once (e.g. -la -lb -la)
+ for deplib in $deplibs; do
+ if test "X$duplicate_deps" = "Xyes" ; then
+ case "$libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ libs="$libs $deplib"
+ done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no # whether we're linking any uninstalled libtool libraries
+ notinst_deplibs= # not-installed libtool libraries
+ case $linkmode in
+ lib)
+ passes="conv link"
+ for file in $dlfiles $dlprefiles; do
+ case $file in
+ *.la) ;;
+ *)
+ $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+ done
+ ;;
+ prog)
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes="conv scan dlopen dlpreopen link"
+ ;;
+ *) passes="conv"
+ ;;
+ esac
+ for pass in $passes; do
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+ link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
+ esac
+ fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags $deplib"
+ fi
+ continue
+ ;;
+ -l*)
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
+ continue
+ fi
+ name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
+ if test "$linkmode" = lib; then
+ searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+ else
+ searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+ fi
+ for searchdir in $searchdirs; do
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
+ done
+ if test "$found" != yes; then
+ # deplib doesn't seem to be a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if (${SED} -e '2q' $lib |
+ grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ library_names=
+ old_library=
+ case $lib in
+ */* | *\\*) . $lib ;;
+ *) . ./$lib ;;
+ esac
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$ladir" = "X$lib" && ladir="."
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
+ fi
+ ;; # -l
+ -L*)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
+ ;;
+ *)
+ $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
+ ;;
+ esac # linkmode
+ continue
+ ;; # -L
+ -R*)
+ if test "$pass" = link; then
+ dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
+ # Make sure the xrpath contains only unique directories.
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ fi
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ *.la) lib="$deplib" ;;
+ *.$libext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ case $linkmode in
+ lib)
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method
+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+ if eval $echo \"$deplib\" 2>/dev/null \
+ | $SED 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ $echo
+ $echo "*** Warning: Trying to link with static lib archive $deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because the file extensions .$libext of this argument makes me believe"
+ $echo "*** that it is just a static archive that I should not used here."
+ else
+ $echo
+ $echo "*** Warning: Linking the shared library $output against the"
+ $echo "*** static library $deplib is not portable!"
+ deplibs="$deplib $deplibs"
+ fi
+ continue
+ ;;
+ prog)
+ if test "$pass" != link; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ continue
+ ;;
+ esac # linkmode
+ ;; # *.$libext
+ *.lo | *.$objext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ newdlprefiles="$newdlprefiles $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ newdlfiles="$newdlfiles $deplib"
+ fi
+ fi
+ continue
+ ;;
+ %DEPLIBS%)
+ alldeplibs=yes
+ continue
+ ;;
+ esac # case $deplib
+ if test "$found" = yes || test -f "$lib"; then :
+ else
+ $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Check to see that this really is a libtool archive.
+ if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+ else
+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$ladir" = "X$lib" && ladir="."
+
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ # If the library was installed with an old release of libtool,
+ # it will not redefine variables installed, or shouldnotlink
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+
+
+ # Read the .la file
+ case $lib in
+ */* | *\\*) . $lib ;;
+ *) . ./$lib ;;
+ esac
+
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan" ||
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+ test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
+ test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
+ fi
+
+ if test "$pass" = conv; then
+ # Only check for convenience libraries
+ deplibs="$lib $deplibs"
+ if test -z "$libdir"; then
+ if test -z "$old_library"; then
+ $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ # It is a libtool convenience library, so add in its objects.
+ convenience="$convenience $ladir/$objdir/$old_library"
+ old_convenience="$old_convenience $ladir/$objdir/$old_library"
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if test "X$duplicate_deps" = "Xyes" ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ $echo "$modename: \`$lib' is not a convenience library" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ continue
+ fi # $pass = conv
+
+
+ # Get the name of the library we link against.
+ linklib=
+ for l in $old_library $library_names; do
+ linklib="$l"
+ done
+ if test -z "$linklib"; then
+ $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # This library was specified with -dlopen.
+ if test "$pass" = dlopen; then
+ if test -z "$libdir"; then
+ $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
+ # If there is no dlname, no dlopen support or we're linking
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ dlprefiles="$dlprefiles $lib $dependency_libs"
+ else
+ newdlfiles="$newdlfiles $lib"
+ fi
+ continue
+ fi # $pass = dlopen
+
+ # We need an absolute path.
+ case $ladir in
+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+ *)
+ abs_ladir=`cd "$ladir" && pwd`
+ if test -z "$abs_ladir"; then
+ $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
+ $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
+ abs_ladir="$ladir"
+ fi
+ ;;
+ esac
+ laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+
+ # Find the relevant object directory and library name.
+ if test "X$installed" = Xyes; then
+ if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ $echo "$modename: warning: library \`$lib' was moved." 1>&2
+ dir="$ladir"
+ absdir="$abs_ladir"
+ libdir="$abs_ladir"
+ else
+ dir="$libdir"
+ absdir="$libdir"
+ fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ else
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
+ fi # $installed = yes
+ name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+
+ # This library was specified with -dlpreopen.
+ if test "$pass" = dlpreopen; then
+ if test -z "$libdir"; then
+ $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
+ # are required to link).
+ if test -n "$old_library"; then
+ newdlprefiles="$newdlprefiles $dir/$old_library"
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
+ elif test -n "$dlname"; then
+ newdlprefiles="$newdlprefiles $dir/$dlname"
+ else
+ newdlprefiles="$newdlprefiles $dir/$linklib"
+ fi
+ fi # $pass = dlpreopen
+
+ if test -z "$libdir"; then
+ # Link the convenience library
+ if test "$linkmode" = lib; then
+ deplibs="$dir/$old_library $deplibs"
+ elif test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$dir/$old_library $compile_deplibs"
+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
+ else
+ deplibs="$lib $deplibs" # used for prog,scan pass
+ fi
+ continue
+ fi
+
+
+ if test "$linkmode" = prog && test "$pass" != link; then
+ newlib_search_path="$newlib_search_path $ladir"
+ deplibs="$lib $deplibs"
+
+ linkalldeplibs=no
+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
+ test "$build_libtool_libs" = no; then
+ linkalldeplibs=yes
+ fi
+
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
+ esac
+ # Need to link against all dependency_libs?
+ if test "$linkalldeplibs" = yes; then
+ deplibs="$deplib $deplibs"
+ else
+ # Need to hardcode shared library paths
+ # or/and link against static libraries
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ if test "X$duplicate_deps" = "Xyes" ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done # for deplib
+ continue
+ fi # $linkmode = prog...
+
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath " in
+ *" $dir "*) ;;
+ *" $absdir "*) ;;
+ *) temp_rpath="$temp_rpath $absdir" ;;
+ esac
+ fi
+
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi # $linkmode,$pass = prog,link...
+
+ if test "$alldeplibs" = yes &&
+ { test "$deplibs_check_method" = pass_all ||
+ { test "$build_libtool_libs" = yes &&
+ test -n "$library_names"; }; }; then
+ # We only need to search for static libraries
+ continue
+ fi
+ fi
+
+ link_static=no # Whether the deplib will be linked statically
+ use_static_libs=$prefer_static_libs
+ if test "$use_static_libs" = built && test "$installed" = yes ; then
+ use_static_libs=no
+ fi
+ if test -n "$library_names" &&
+ { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=yes
+ fi
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on
+ # some systems (darwin)
+ if test "$shouldnotlink" = yes && test "$pass" = link ; then
+ $echo
+ if test "$linkmode" = prog; then
+ $echo "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $echo "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $echo "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+ # figure out the soname
+ set dummy $library_names
+ realname="$2"
+ shift; shift
+ libname=`eval \\$echo \"$libname_spec\"`
+ # use dlname if we got it. it's perfectly good, no?
+ if test -n "$dlname"; then
+ soname="$dlname"
+ elif test -n "$soname_spec"; then
+ # bleh windows
+ case $host in
+ *cygwin* | mingw*)
+ major=`expr $current - $age`
+ versuffix="-$major"
+ ;;
+ esac
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+
+ # Make a new name for the extract_expsyms_cmds to use
+ soroot="$soname"
+ soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
+ newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
+
+ # If the library has no export list, then create one now
+ if test -f "$output_objdir/$soname-def"; then :
+ else
+ $show "extracting exported symbol list from \`$soname'"
+ save_ifs="$IFS"; IFS='~'
+ cmds=$extract_expsyms_cmds
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+ fi
+
+ # Create $newlib
+ if test -f "$output_objdir/$newlib"; then :; else
+ $show "generating import library for \`$soname'"
+ save_ifs="$IFS"; IFS='~'
+ cmds=$old_archive_from_expsyms_cmds
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+ fi
+ # make sure the library variables are pointing to the new library
+ dir=$output_objdir
+ linklib=$newlib
+ fi # test -n "$old_archive_from_expsyms_cmds"
+
+ if test "$linkmode" = prog || test "$mode" != relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ case $hardcode_action in
+ immediate | unsupported)
+ if test "$hardcode_direct" = no; then
+ add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
+ *-*-sysv4*uw2*) add_dir="-L$dir" ;;
+ *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+ *-*-unixware7*) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a module then we can not link against
+ # it, someone is ignoring the new warnings I added
+ if /usr/bin/file -L $add 2> /dev/null |
+ $EGREP ": [^:]* bundle" >/dev/null ; then
+ $echo "** Warning, lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ $echo
+ $echo "** And there doesn't seem to be a static archive available"
+ $echo "** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
+ elif test "$hardcode_minus_L" = no; then
+ case $host in
+ *-*-sunos*) add_shlibpath="$dir" ;;
+ esac
+ add_dir="-L$dir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = no; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ relink)
+ if test "$hardcode_direct" = yes; then
+ add="$dir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$dir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ *) lib_linked=no ;;
+ esac
+
+ if test "$lib_linked" != yes; then
+ $echo "$modename: configuration error: unsupported hardcode properties"
+ exit $EXIT_FAILURE
+ fi
+
+ if test -n "$add_shlibpath"; then
+ case :$compile_shlibpath: in
+ *":$add_shlibpath:"*) ;;
+ *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
+ esac
+ fi
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ if test "$hardcode_direct" != yes && \
+ test "$hardcode_minus_L" != yes && \
+ test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ fi
+ fi
+ fi
+
+ if test "$linkmode" = prog || test "$mode" = relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ # Finalize command for both is simple: just hardcode it.
+ if test "$hardcode_direct" = yes; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+ add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ fi
+
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ fi
+ fi
+ elif test "$linkmode" = prog; then
+ # Here we assume that one of hardcode_direct or hardcode_minus_L
+ # is not unsupported. This is valid on all known static and
+ # shared platforms.
+ if test "$hardcode_direct" != unsupported; then
+ test -n "$old_library" && linklib="$old_library"
+ compile_deplibs="$dir/$linklib $compile_deplibs"
+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
+ else
+ compile_deplibs="-l$name -L$dir $compile_deplibs"
+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+ fi
+ elif test "$build_libtool_libs" = yes; then
+ # Not a shared library
+ if test "$deplibs_check_method" != pass_all; then
+ # We're trying link a shared library against a static one
+ # but the system doesn't support it.
+
+ # Just print a warning and add the library to dependency_libs so
+ # that the program can be linked against the static library.
+ $echo
+ $echo "*** Warning: This system can not link to static lib archive $lib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have."
+ if test "$module" = yes; then
+ $echo "*** But as you try to build a module library, libtool will still create "
+ $echo "*** a static module, that should work as long as the dlopening application"
+ $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ if test -z "$global_symbol_pipe"; then
+ $echo
+ $echo "*** However, this would only work if libtool was able to extract symbol"
+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $echo "*** not find such a program. So, this module is probably useless."
+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ else
+ deplibs="$dir/$old_library $deplibs"
+ link_static=yes
+ fi
+ fi # link shared/static library?
+
+ if test "$linkmode" = lib; then
+ if test -n "$dependency_libs" &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
+ # Extract -R from dependency_libs
+ temp_deplibs=
+ for libdir in $dependency_libs; do
+ case $libdir in
+ -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
+ case " $xrpath " in
+ *" $temp_xrpath "*) ;;
+ *) xrpath="$xrpath $temp_xrpath";;
+ esac;;
+ *) temp_deplibs="$temp_deplibs $libdir";;
+ esac
+ done
+ dependency_libs="$temp_deplibs"
+ fi
+
+ newlib_search_path="$newlib_search_path $absdir"
+ # Link against this library
+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+ # ... and its dependency_libs
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ newdependency_libs="$deplib $newdependency_libs"
+ if test "X$duplicate_deps" = "Xyes" ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+
+ if test "$link_all_deplibs" != no; then
+ # Add the search paths of all dependency libraries
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) path="$deplib" ;;
+ *.la)
+ dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$dir" = "X$deplib" && dir="."
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
+ absdir="$dir"
+ fi
+ ;;
+ esac
+ if grep "^installed=no" $deplib > /dev/null; then
+ path="$absdir/$objdir"
+ else
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ if test "$absdir" != "$libdir"; then
+ $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
+ fi
+ path="$absdir"
+ fi
+ depdepl=
+ case $host in
+ *-*-darwin*)
+ # we do not want to link against static libs,
+ # but need to link against shared
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$deplibdir/$depdepl" ; then
+ depdepl="$deplibdir/$depdepl"
+ elif test -f "$path/$depdepl" ; then
+ depdepl="$path/$depdepl"
+ else
+ # Can't find it, oh well...
+ depdepl=
+ fi
+ # do not add paths which are already there
+ case " $newlib_search_path " in
+ *" $path "*) ;;
+ *) newlib_search_path="$newlib_search_path $path";;
+ esac
+ fi
+ path=""
+ ;;
+ *)
+ path="-L$path"
+ ;;
+ esac
+ ;;
+ -l*)
+ case $host in
+ *-*-darwin*)
+ # Again, we only want to link against shared libraries
+ eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
+ for tmp in $newlib_search_path ; do
+ if test -f "$tmp/lib$tmp_libs.dylib" ; then
+ eval depdepl="$tmp/lib$tmp_libs.dylib"
+ break
+ fi
+ done
+ path=""
+ ;;
+ *) continue ;;
+ esac
+ ;;
+ *) continue ;;
+ esac
+ case " $deplibs " in
+ *" $path "*) ;;
+ *) deplibs="$path $deplibs" ;;
+ esac
+ case " $deplibs " in
+ *" $depdepl "*) ;;
+ *) deplibs="$depdepl $deplibs" ;;
+ esac
+ done
+ fi # link_all_deplibs != no
+ fi # linkmode = lib
+ done # for deplib in $libs
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
+ # Link the dlpreopened libraries before other libraries
+ for deplib in $save_deplibs; do
+ deplibs="$deplib $deplibs"
+ done
+ fi
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
+ # Make sure lib_search_path contains only unique directories.
+ lib_search_path=
+ for dir in $newlib_search_path; do
+ case "$lib_search_path " in
+ *" $dir "*) ;;
+ *) lib_search_path="$lib_search_path $dir" ;;
+ esac
+ done
+ newlib_search_path=
+ fi
+
+ if test "$linkmode,$pass" != "prog,link"; then
+ vars="deplibs"
+ else
+ vars="compile_deplibs finalize_deplibs"
+ fi
+ for var in $vars dependency_libs; do
+ # Add libraries to $var in reverse order
+ eval tmp_libs=\"\$$var\"
+ new_libs=
+ for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
+ case $deplib in
+ -L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
+ *)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
+ case " $specialdeplibs " in
+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
+ *)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$deplib $new_libs" ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
+ done
+ tmp_libs=
+ for deplib in $new_libs; do
+ case $deplib in
+ -L*)
+ case " $tmp_libs " in
+ *" $deplib "*) ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ done
+ eval $var=\"$tmp_libs\"
+ done # for var
+ fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ tmp_libs="$tmp_libs $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
+ done # for pass
+ if test "$linkmode" = prog; then
+ dlfiles="$newdlfiles"
+ dlprefiles="$newdlprefiles"
+ fi
+
+ case $linkmode in
+ oldlib)
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
+ esac
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
+ fi
+
+ if test -n "$rpath"; then
+ $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
+ fi
+
+ if test -n "$xrpath"; then
+ $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
+ fi
+
+ if test -n "$vinfo"; then
+ $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
+ fi
+
+ if test -n "$release"; then
+ $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
+ fi
+
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
+ fi
+
+ # Now set the variables for building old libraries.
+ build_libtool_libs=no
+ oldlibs="$output"
+ objs="$objs$old_deplibs"
+ ;;
+
+ lib)
+ # Make sure we only generate libraries of the form `libNAME.la'.
+ case $outputname in
+ lib*)
+ name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ ;;
+ *)
+ if test "$module" = no; then
+ $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ if test "$need_lib_prefix" != no; then
+ # Add the "lib" prefix for modules if required
+ name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ else
+ libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
+ fi
+ ;;
+ esac
+
+ if test -n "$objs"; then
+ if test "$deplibs_check_method" != pass_all; then
+ $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
+ exit $EXIT_FAILURE
+ else
+ $echo
+ $echo "*** Warning: Linking the shared library $output against the non-libtool"
+ $echo "*** objects $objs is not portable!"
+ libobjs="$libobjs $objs"
+ fi
+ fi
+
+ if test "$dlself" != no; then
+ $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
+ fi
+
+ set dummy $rpath
+ if test "$#" -gt 2; then
+ $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
+ fi
+ install_libdir="$2"
+
+ oldlibs=
+ if test -z "$rpath"; then
+ if test "$build_libtool_libs" = yes; then
+ # Building a libtool convenience library.
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ fi
+
+ if test -n "$vinfo"; then
+ $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
+ fi
+
+ if test -n "$release"; then
+ $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
+ fi
+ else
+
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0
+ IFS="$save_ifs"
+
+ if test -n "$8"; then
+ $echo "$modename: too many parameters to \`-version-info'" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$2"
+ number_minor="$3"
+ number_revision="$4"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ darwin|linux|osf|windows|none)
+ current=`expr $number_major + $number_minor`
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ current=`expr $number_major + $number_minor`
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ esac
+ ;;
+ no)
+ current="$2"
+ revision="$3"
+ age="$4"
+ ;;
+ esac
+
+ # Check that each of the things are valid numbers.
+ case $current in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ case $revision in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ case $age in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ if test "$age" -gt "$current"; then
+ $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Calculate the version variables.
+ major=
+ versuffix=
+ verstring=
+ case $version_type in
+ none) ;;
+
+ darwin)
+ # Like Linux, but with the current version available in
+ # verstring for coding it into the library header
+ major=.`expr $current - $age`
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ minor_current=`expr $current + 1`
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current";
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ major=`expr $current - $age`
+ else
+ major=`expr $current - $age + 1`
+ fi
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+ esac
+ verstring="$verstring_prefix$major.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$revision
+ while test "$loop" -ne 0; do
+ iface=`expr $revision - $loop`
+ loop=`expr $loop - 1`
+ verstring="$verstring_prefix$major.$iface:$verstring"
+ done
+
+ # Before this point, $major must not contain `.'.
+ major=.$major
+ versuffix="$major.$revision"
+ ;;
+
+ linux)
+ major=.`expr $current - $age`
+ versuffix="$major.$age.$revision"
+ ;;
+
+ osf)
+ major=.`expr $current - $age`
+ versuffix=".$current.$age.$revision"
+ verstring="$current.$age.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$age
+ while test "$loop" -ne 0; do
+ iface=`expr $current - $loop`
+ loop=`expr $loop - 1`
+ verstring="$verstring:${iface}.0"
+ done
+
+ # Make executables depend on our current version.
+ verstring="$verstring:${current}.0"
+ ;;
+
+ sunos)
+ major=".$current"
+ versuffix=".$current.$revision"
+ ;;
+
+ windows)
+ # Use '-' rather than '.', since we only want one
+ # extension on DOS 8.3 filesystems.
+ major=`expr $current - $age`
+ versuffix="-$major"
+ ;;
+
+ *)
+ $echo "$modename: unknown library version type \`$version_type'" 1>&2
+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ # Clear the version info if we defaulted, and they specified a release.
+ if test -z "$vinfo" && test -n "$release"; then
+ major=
+ case $version_type in
+ darwin)
+ # we can't check for "0.0" in archive_cmds due to quoting
+ # problems, so we reset it completely
+ verstring=
+ ;;
+ *)
+ verstring="0.0"
+ ;;
+ esac
+ if test "$need_version" = no; then
+ versuffix=
+ else
+ versuffix=".0.0"
+ fi
+ fi
+
+ # Remove version info from name if versioning should be avoided
+ if test "$avoid_version" = yes && test "$need_version" = no; then
+ major=
+ versuffix=
+ verstring=""
+ fi
+
+ # Check to see if the archive will have undefined symbols.
+ if test "$allow_undefined" = yes; then
+ if test "$allow_undefined_flag" = unsupported; then
+ $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
+ build_libtool_libs=no
+ build_old_libs=yes
+ fi
+ else
+ # Don't allow undefined symbols.
+ allow_undefined_flag="$no_undefined_flag"
+ fi
+ fi
+
+ if test "$mode" != relink; then
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$echo "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ removelist="$removelist $p"
+ ;;
+ *) ;;
+ esac
+ done
+ if test -n "$removelist"; then
+ $show "${rm}r $removelist"
+ $run ${rm}r $removelist
+ fi
+ fi
+
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ oldlibs="$oldlibs $output_objdir/$libname.$libext"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
+ fi
+
+ # Eliminate all temporary directories.
+ #for path in $notinst_path; do
+ # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
+ # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
+ # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
+ #done
+
+ if test -n "$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ temp_xrpath=
+ for libdir in $xrpath; do
+ temp_xrpath="$temp_xrpath -R$libdir"
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+ dependency_libs="$temp_xrpath $dependency_libs"
+ fi
+ fi
+
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
+ old_dlfiles="$dlfiles"
+ dlfiles=
+ for lib in $old_dlfiles; do
+ case " $dlprefiles $dlfiles " in
+ *" $lib "*) ;;
+ *) dlfiles="$dlfiles $lib" ;;
+ esac
+ done
+
+ # Make sure dlprefiles contains only unique files
+ old_dlprefiles="$dlprefiles"
+ dlprefiles=
+ for lib in $old_dlprefiles; do
+ case "$dlprefiles " in
+ *" $lib "*) ;;
+ *) dlprefiles="$dlprefiles $lib" ;;
+ esac
+ done
+
+ if test "$build_libtool_libs" = yes; then
+ if test -n "$rpath"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
+ # these systems don't actually have a c library (as such)!
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C library is in the System framework
+ deplibs="$deplibs -framework System"
+ ;;
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+ deplibs="$deplibs -lc"
+ fi
+ ;;
+ esac
+ fi
+
+ # Transform deplibs into only deplibs that can be linked in shared.
+ name_save=$name
+ libname_save=$libname
+ release_save=$release
+ versuffix_save=$versuffix
+ major_save=$major
+ # I'm not sure if I'm treating the release correctly. I think
+ # release should show up in the -l (ie -lgmp5) so we don't want to
+ # add it in twice. Is that correct?
+ release=""
+ versuffix=""
+ major=""
+ newdeplibs=
+ droppeddeps=no
+ case $deplibs_check_method in
+ pass_all)
+ # Don't check for shared/static. Everything works.
+ # This might be a little naive. We might want to check
+ # whether the library exists or not. But this is on
+ # osf3 & osf4 and I'm not really sure... Just
+ # implementing what was already the behavior.
+ newdeplibs=$deplibs
+ ;;
+ test_compile)
+ # This code stresses the "libraries are programs" paradigm to its
+ # limits. Maybe even breaks it. We compile a program, linking it
+ # against the deplibs as a proxy for the library. Then we can check
+ # whether they linked in statically or dynamically with ldd.
+ $rm conftest.c
+ cat > conftest.c <<EOF
+ int main() { return 0; }
+EOF
+ $rm conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ name=`expr $i : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which I believe you do not have"
+ $echo "*** because a test_compile did reveal that the linker did not use it for"
+ $echo "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ else
+ newdeplibs="$newdeplibs $i"
+ fi
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ name=`expr $i : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ $rm conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because a test_compile did reveal that the linker did not use this one"
+ $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning! Library $i is needed by this library but I was not able to"
+ $echo "*** make it link in! You will probably need to install it or some"
+ $echo "*** library that it depends on before this library will be fully"
+ $echo "*** functional. Installing it before continuing would be even better."
+ fi
+ else
+ newdeplibs="$newdeplibs $i"
+ fi
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+ file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+ for a_deplib in $deplibs; do
+ name=`expr $a_deplib : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null \
+ | grep " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $echo "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ else
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ fi
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method
+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+ for a_deplib in $deplibs; do
+ name=`expr $a_deplib : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test -n "$name" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval $echo \"$potent_lib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ else
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ fi
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+ -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
+ done
+ fi
+ if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
+ | grep . >/dev/null; then
+ $echo
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $echo "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $echo "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $echo "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $echo
+ $echo "*** Warning: libtool could not satisfy all declared inter-library"
+ $echo "*** dependencies of module $libname. Therefore, libtool will create"
+ $echo "*** a static module, that should work as long as the dlopening"
+ $echo "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $echo
+ $echo "*** However, this would only work if libtool was able to extract symbol"
+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $echo "*** not find such a program. So, this module is probably useless."
+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $echo "*** The inter-library dependencies that have been dropped here will be"
+ $echo "*** automatically added whenever a program is linked with this library"
+ $echo "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $echo
+ $echo "*** Since this library must not contain undefined symbols,"
+ $echo "*** because either the platform does not support them or"
+ $echo "*** it was explicitly requested with -no-undefined,"
+ $echo "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ deplibs="$new_libs"
+
+
+ # All the library-specific variables (install_libdir is set above).
+ library_names=
+ old_library=
+ dlname=
+
+ # Test again, we may have decided not to build it any more
+ if test "$build_libtool_libs" = yes; then
+ if test "$hardcode_into_libs" = yes; then
+ # Hardcode the library paths
+ hardcode_libdirs=
+ dep_rpath=
+ rpath="$finalize_rpath"
+ test "$mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ dep_rpath="$dep_rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ if test -n "$hardcode_libdir_flag_spec_ld"; then
+ case $archive_cmds in
+ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
+ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
+ esac
+ else
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ fi
+ fi
+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+ fi
+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+ fi
+
+ shlibpath="$finalize_shlibpath"
+ test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+ if test -n "$shlibpath"; then
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+ fi
+
+ # Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
+ eval library_names=\"$library_names_spec\"
+ set dummy $library_names
+ realname="$2"
+ shift; shift
+
+ if test -n "$soname_spec"; then
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
+
+ lib="$output_objdir/$realname"
+ linknames=
+ for link
+ do
+ linknames="$linknames $link"
+ done
+
+ # Use standard objects if they are pic
+ test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+ $show "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $run $rm $export_symbols
+ cmds=$export_symbols_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ if len=`expr "X$cmd" : ".*"` &&
+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ $show "using reloadable object file for export list..."
+ skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ if test -n "$export_symbols_regex"; then
+ $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
+ $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ $show "$mv \"${export_symbols}T\" \"$export_symbols\""
+ $run eval '$mv "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+ fi
+
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
+ fi
+
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ else
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ libobjs="$libobjs $func_extract_archives_result"
+ fi
+ fi
+
+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+ eval flag=\"$thread_safe_flag_spec\"
+ linker_flags="$linker_flags $flag"
+ fi
+
+ # Make a backup of the uninstalled library when relinking
+ if test "$mode" = relink; then
+ $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
+ fi
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
+ else
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" &&
+ len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise.
+ $echo "creating reloadable object files..."
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+ output_la=`$echo "X$output" | $Xsed -e "$basename"`
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ delfiles=
+ last_robj=
+ k=1
+ output=$output_objdir/$output_la-${k}.$objext
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ eval test_cmds=\"$reload_cmds $objlist $last_robj\"
+ if test "X$objlist" = X ||
+ { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
+ test "$len" -le "$max_cmd_len"; }; then
+ objlist="$objlist $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
+ fi
+ last_robj=$output_objdir/$output_la-${k}.$objext
+ k=`expr $k + 1`
+ output=$output_objdir/$output_la-${k}.$objext
+ objlist=$obj
+ len=1
+ fi
+ done
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+
+ if ${skipped_export-false}; then
+ $show "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $run $rm $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
+ fi
+
+ # Set up a command to remove the reloadable object files
+ # after they are used.
+ i=0
+ while test "$i" -lt "$k"
+ do
+ i=`expr $i + 1`
+ delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
+ done
+
+ $echo "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+
+ # Append the command to remove the reloadable object files
+ # to the just-reset $cmds.
+ eval cmds=\"\$cmds~\$rm $delfiles\"
+ fi
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
+
+ if test -n "$convenience"; then
+ if test -z "$whole_archive_flag_spec"; then
+ $show "${rm}r $gentop"
+ $run ${rm}r "$gentop"
+ fi
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ # Create links to the real library.
+ for linkname in $linknames; do
+ if test "$realname" != "$linkname"; then
+ $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
+ $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
+ fi
+ done
+
+ # If -module or -export-dynamic was specified, set the dlname.
+ if test "$module" = yes || test "$export_dynamic" = yes; then
+ # On all known operating systems, these are identical.
+ dlname="$soname"
+ fi
+ fi
+ ;;
+
+ obj)
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
+ esac
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
+ fi
+
+ if test -n "$rpath"; then
+ $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
+ fi
+
+ if test -n "$xrpath"; then
+ $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
+ fi
+
+ if test -n "$vinfo"; then
+ $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
+ fi
+
+ if test -n "$release"; then
+ $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
+ fi
+
+ case $output in
+ *.lo)
+ if test -n "$objs$old_deplibs"; then
+ $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ libobj="$output"
+ obj=`$echo "X$output" | $Xsed -e "$lo2o"`
+ ;;
+ *)
+ libobj=
+ obj="$output"
+ ;;
+ esac
+
+ # Delete the old objects.
+ $run $rm $obj $libobj
+
+ # Objects from convenience libraries. This assumes
+ # single-version convenience libraries. Whenever we create
+ # different ones for PIC/non-PIC, this we'll have to duplicate
+ # the extraction.
+ reload_conv_objs=
+ gentop=
+ # reload_cmds runs $LD directly, so let us get rid of
+ # -Wl from whole_archive_flag_spec and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ else
+ gentop="$output_objdir/${obj}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
+ fi
+ fi
+
+ # Create the old-style object.
+ reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+ output="$obj"
+ cmds=$reload_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+
+ # Exit if we aren't doing a library object file.
+ if test -z "$libobj"; then
+ if test -n "$gentop"; then
+ $show "${rm}r $gentop"
+ $run ${rm}r $gentop
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$build_libtool_libs" != yes; then
+ if test -n "$gentop"; then
+ $show "${rm}r $gentop"
+ $run ${rm}r $gentop
+ fi
+
+ # Create an invalid libtool object if no PIC, so that we don't
+ # accidentally link it into a program.
+ # $show "echo timestamp > $libobj"
+ # $run eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test -n "$pic_flag" || test "$pic_mode" != default; then
+ # Only do commands if we really have different PIC objects.
+ reload_objs="$libobjs $reload_conv_objs"
+ output="$libobj"
+ cmds=$reload_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+ fi
+
+ if test -n "$gentop"; then
+ $show "${rm}r $gentop"
+ $run ${rm}r $gentop
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ prog)
+ case $host in
+ *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
+ esac
+ if test -n "$vinfo"; then
+ $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
+ fi
+
+ if test -n "$release"; then
+ $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
+ fi
+
+ if test "$preload" = yes; then
+ if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
+ test "$dlopen_self_static" = unknown; then
+ $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
+ fi
+ fi
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
+ finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
+ ;;
+ esac
+
+ case $host in
+ *darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ if test "$tagname" = CXX ; then
+ compile_command="$compile_command ${wl}-bind_at_load"
+ finalize_command="$finalize_command ${wl}-bind_at_load"
+ fi
+ ;;
+ esac
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $compile_deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $compile_deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ compile_deplibs="$new_libs"
+
+
+ compile_command="$compile_command $compile_deplibs"
+ finalize_command="$finalize_command $finalize_deplibs"
+
+ if test -n "$rpath$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ for libdir in $rpath $xrpath; do
+ # This is the magic to use -rpath.
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ fi
+
+ # Now hardcode the library paths
+ rpath=
+ hardcode_libdirs=
+ for libdir in $compile_rpath $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$libdir:"*) ;;
+ *) dllsearchpath="$dllsearchpath:$libdir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ compile_rpath="$rpath"
+
+ rpath=
+ hardcode_libdirs=
+ for libdir in $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$finalize_perm_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ finalize_rpath="$rpath"
+
+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
+ # Transform all the library objects into standard objects.
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ fi
+
+ dlsyms=
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
+ dlsyms="${outputname}S.c"
+ else
+ $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
+ fi
+ fi
+
+ if test -n "$dlsyms"; then
+ case $dlsyms in
+ "") ;;
+ *.c)
+ # Discover the nlist of each of the dlfiles.
+ nlist="$output_objdir/${outputname}.nm"
+
+ $show "$rm $nlist ${nlist}S ${nlist}T"
+ $run $rm "$nlist" "${nlist}S" "${nlist}T"
+
+ # Parse the name list into a source file.
+ $show "creating $output_objdir/$dlsyms"
+
+ test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
+/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
+/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+/* Prevent the only kind of declaration conflicts we can make. */
+#define lt_preloaded_symbols some_other_symbol
+
+/* External symbol declarations for the compiler. */\
+"
+
+ if test "$dlself" = yes; then
+ $show "generating symbol list for \`$output'"
+
+ test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
+
+ # Add our own program objects to the symbol list.
+ progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ for arg in $progfiles; do
+ $show "extracting global C symbols from \`$arg'"
+ $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -n "$exclude_expsyms"; then
+ $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ $run eval '$mv "$nlist"T "$nlist"'
+ fi
+
+ if test -n "$export_symbols_regex"; then
+ $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ $run eval '$mv "$nlist"T "$nlist"'
+ fi
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ export_symbols="$output_objdir/$outputname.exp"
+ $run $rm $export_symbols
+ $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+ case $host in
+ *cygwin* | *mingw* )
+ $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ else
+ $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+ $run eval 'mv "$nlist"T "$nlist"'
+ case $host in
+ *cygwin* | *mingw* )
+ $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ fi
+ fi
+
+ for arg in $dlprefiles; do
+ $show "extracting global C symbols from \`$arg'"
+ name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
+ $run eval '$echo ": $name " >> "$nlist"'
+ $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -z "$run"; then
+ # Make sure we have at least an empty file.
+ test -f "$nlist" || : > "$nlist"
+
+ if test -n "$exclude_expsyms"; then
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $mv "$nlist"T "$nlist"
+ fi
+
+ # Try sorting and uniquifying the output.
+ if grep -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
+ :
+ else
+ grep -v "^: " < "$nlist" > "$nlist"S
+ fi
+
+ if test -f "$nlist"S; then
+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
+ else
+ $echo '/* NONE */' >> "$output_objdir/$dlsyms"
+ fi
+
+ $echo >> "$output_objdir/$dlsyms" "\
+
+#undef lt_preloaded_symbols
+
+#if defined (__STDC__) && __STDC__
+# define lt_ptr void *
+#else
+# define lt_ptr char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+"
+
+ case $host in
+ *cygwin* | *mingw* )
+ $echo >> "$output_objdir/$dlsyms" "\
+/* DATA imports from DLLs on WIN32 can't be const, because
+ runtime relocations are performed -- see ld's documentation
+ on pseudo-relocs */
+struct {
+"
+ ;;
+ * )
+ $echo >> "$output_objdir/$dlsyms" "\
+const struct {
+"
+ ;;
+ esac
+
+
+ $echo >> "$output_objdir/$dlsyms" "\
+ const char *name;
+ lt_ptr address;
+}
+lt_preloaded_symbols[] =
+{\
+"
+
+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
+
+ $echo >> "$output_objdir/$dlsyms" "\
+ {0, (lt_ptr) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+ fi
+
+ pic_flag_for_symtable=
+ case $host in
+ # compiling the symbol table file with pic_flag works around
+ # a FreeBSD bug that causes programs to crash when -lm is
+ # linked before any other PIC object. But we must not use
+ # pic_flag when linking with -static. The problem exists in
+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ case "$compile_command " in
+ *" -static "*) ;;
+ *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
+ esac;;
+ *-*-hpux*)
+ case "$compile_command " in
+ *" -static "*) ;;
+ *) pic_flag_for_symtable=" $pic_flag";;
+ esac
+ esac
+
+ # Now compile the dynamic symbol file.
+ $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
+ $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
+
+ # Clean up the generated files.
+ $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
+ $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
+
+ # Transform the symbol file into the correct name.
+ case $host in
+ *cygwin* | *mingw* )
+ if test -f "$output_objdir/${outputname}.def" ; then
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ else
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ fi
+ ;;
+ * )
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ ;;
+ esac
+ ;;
+ *)
+ $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+ else
+ # We keep going just in case the user didn't refer to
+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
+ # really was required.
+
+ # Nullify the symbol file.
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
+ fi
+
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ # Replace the output file specification.
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
+ link_command="$compile_command$compile_rpath"
+
+ # We have no uninstalled library dependencies, so finalize right now.
+ $show "$link_command"
+ $run eval "$link_command"
+ exit_status=$?
+
+ # Delete the generated files.
+ if test -n "$dlsyms"; then
+ $show "$rm $output_objdir/${outputname}S.${objext}"
+ $run $rm "$output_objdir/${outputname}S.${objext}"
+ fi
+
+ exit $exit_status
+ fi
+
+ if test -n "$shlibpath_var"; then
+ # We should set the shlibpath_var
+ rpath=
+ for dir in $temp_rpath; do
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*)
+ # Absolute path.
+ rpath="$rpath$dir:"
+ ;;
+ *)
+ # Relative path: add a thisdir entry.
+ rpath="$rpath\$thisdir/$dir:"
+ ;;
+ esac
+ done
+ temp_rpath="$rpath"
+ fi
+
+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+ fi
+ if test -n "$finalize_shlibpath"; then
+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+ fi
+
+ compile_var=
+ finalize_var=
+ if test -n "$runpath_var"; then
+ if test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ if test -n "$finalize_perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $finalize_perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ fi
+
+ if test "$no_install" = yes; then
+ # We don't need to create a wrapper script.
+ link_command="$compile_var$compile_command$compile_rpath"
+ # Replace the output file specification.
+ link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ # Delete the old output file.
+ $run $rm $output
+ # Link the executable and exit
+ $show "$link_command"
+ $run eval "$link_command" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+ $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
+ $echo "$modename: \`$output' will be relinked during installation" 1>&2
+ else
+ if test "$fast_install" != no; then
+ link_command="$finalize_var$compile_command$finalize_rpath"
+ if test "$fast_install" = yes; then
+ relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
+ else
+ # fast_install is set to needless
+ relink_command=
+ fi
+ else
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+ fi
+ fi
+
+ # Replace the output file specification.
+ link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+ # Delete the old output files.
+ $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+ $show "$link_command"
+ $run eval "$link_command" || exit $?
+
+ # Now create the wrapper script.
+ $show "creating $output"
+
+ # Quote the relink command for shipping.
+ if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
+ relink_command="$var=\"$var_value\"; export $var; $relink_command"
+ fi
+ done
+ relink_command="(cd `pwd`; $relink_command)"
+ relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
+ fi
+
+ # Quote $echo for shipping.
+ if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
+ case $progpath in
+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
+ esac
+ qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
+ else
+ qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Only actually do things if our run command is non-null.
+ if test -z "$run"; then
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
+ esac
+ # test for cygwin because mv fails w/o .exe extensions
+ case $host in
+ *cygwin*)
+ exeext=.exe
+ outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
+ *) exeext= ;;
+ esac
+ case $host in
+ *cygwin* | *mingw* )
+ output_name=`basename $output`
+ output_path=`dirname $output`
+ cwrappersource="$output_path/$objdir/lt-$output_name.c"
+ cwrapper="$output_path/$output_name.exe"
+ $rm $cwrappersource $cwrapper
+ trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ cat > $cwrappersource <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "/bin/sh $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat >> $cwrappersource<<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <sys/stat.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# ifndef DIR_SEPARATOR_2
+# define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+# define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+/* -DDEBUG is fairly common in CFLAGS. */
+#undef DEBUG
+#if defined DEBUGWRAPPER
+# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
+#else
+# define DEBUG(format, ...)
+#endif
+
+const char *program_name = NULL;
+
+void * xmalloc (size_t num);
+char * xstrdup (const char *string);
+const char * base_name (const char *name);
+char * find_executable(const char *wrapper);
+int check_executable(const char *path);
+char * strendzap(char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int i;
+
+ program_name = (char *) xstrdup (base_name (argv[0]));
+ DEBUG("(main) argv[0] : %s\n",argv[0]);
+ DEBUG("(main) program_name : %s\n",program_name);
+ newargz = XMALLOC(char *, argc+2);
+EOF
+
+ cat >> $cwrappersource <<EOF
+ newargz[0] = (char *) xstrdup("$SHELL");
+EOF
+
+ cat >> $cwrappersource <<"EOF"
+ newargz[1] = find_executable(argv[0]);
+ if (newargz[1] == NULL)
+ lt_fatal("Couldn't find %s", argv[0]);
+ DEBUG("(main) found exe at : %s\n",newargz[1]);
+ /* we know the script has the same name, without the .exe */
+ /* so make sure newargz[1] doesn't end in .exe */
+ strendzap(newargz[1],".exe");
+ for (i = 1; i < argc; i++)
+ newargz[i+1] = xstrdup(argv[i]);
+ newargz[argc+1] = NULL;
+
+ for (i=0; i<argc+1; i++)
+ {
+ DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
+ ;
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",(char const **)newargz);
+EOF
+ ;;
+ *)
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",newargz);
+EOF
+ ;;
+ esac
+
+ cat >> $cwrappersource <<"EOF"
+ return 127;
+}
+
+void *
+xmalloc (size_t num)
+{
+ void * p = (void *) malloc (num);
+ if (!p)
+ lt_fatal ("Memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
+;
+}
+
+const char *
+base_name (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha ((unsigned char)name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return base;
+}
+
+int
+check_executable(const char * path)
+{
+ struct stat st;
+
+ DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
+ if ((!path) || (!*path))
+ return 0;
+
+ if ((stat (path, &st) >= 0) &&
+ (
+ /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
+#if defined (S_IXOTH)
+ ((st.st_mode & S_IXOTH) == S_IXOTH) ||
+#endif
+#if defined (S_IXGRP)
+ ((st.st_mode & S_IXGRP) == S_IXGRP) ||
+#endif
+ ((st.st_mode & S_IXUSR) == S_IXUSR))
+ )
+ return 1;
+ else
+ return 0;
+}
+
+/* Searches for the full path of the wrapper. Returns
+ newly allocated full path name if found, NULL otherwise */
+char *
+find_executable (const char* wrapper)
+{
+ int has_slash = 0;
+ const char* p;
+ const char* p_next;
+ /* static buffer for getcwd */
+ char tmp[LT_PATHMAX + 1];
+ int tmp_len;
+ char* concat_name;
+
+ DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
+
+ if ((wrapper == NULL) || (*wrapper == '\0'))
+ return NULL;
+
+ /* Absolute path? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable(concat_name))
+ return concat_name;
+ XFREE(concat_name);
+ }
+ else
+ {
+#endif
+ if (IS_DIR_SEPARATOR (wrapper[0]))
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable(concat_name))
+ return concat_name;
+ XFREE(concat_name);
+ }
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ }
+#endif
+
+ for (p = wrapper; *p; p++)
+ if (*p == '/')
+ {
+ has_slash = 1;
+ break;
+ }
+ if (!has_slash)
+ {
+ /* no slashes; search PATH */
+ const char* path = getenv ("PATH");
+ if (path != NULL)
+ {
+ for (p = path; *p; p = p_next)
+ {
+ const char* q;
+ size_t p_len;
+ for (q = p; *q; q++)
+ if (IS_PATH_SEPARATOR(*q))
+ break;
+ p_len = q - p;
+ p_next = (*q == '\0' ? q : q + 1);
+ if (p_len == 0)
+ {
+ /* empty path: current directory */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen(tmp);
+ concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+ }
+ else
+ {
+ concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
+ memcpy (concat_name, p, p_len);
+ concat_name[p_len] = '/';
+ strcpy (concat_name + p_len + 1, wrapper);
+ }
+ if (check_executable(concat_name))
+ return concat_name;
+ XFREE(concat_name);
+ }
+ }
+ /* not found in PATH; assume curdir */
+ }
+ /* Relative path | not found in path: prepend cwd */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen(tmp);
+ concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+
+ if (check_executable(concat_name))
+ return concat_name;
+ XFREE(concat_name);
+ return NULL;
+}
+
+char *
+strendzap(char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert(str != NULL);
+ assert(pat != NULL);
+
+ len = strlen(str);
+ patlen = strlen(pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp(str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+static void
+lt_error_core (int exit_status, const char * mode,
+ const char * message, va_list ap)
+{
+ fprintf (stderr, "%s: %s: ", program_name, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+ va_end (ap);
+}
+EOF
+ # we should really use a build-platform specific compiler
+ # here, but OTOH, the wrappers (shell script and this C one)
+ # are only useful if you want to execute the "real" binary.
+ # Since the "real" binary is built for $host, then this
+ # wrapper might as well be built for $host, too.
+ $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
+ ;;
+ esac
+ $rm $output
+ trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
+
+ $echo > $output "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+ # install mode needs the following variable:
+ notinst_deplibs='$notinst_deplibs'
+else
+ # When we are sourced in execute mode, \$file and \$echo are already set.
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ echo=\"$qecho\"
+ file=\"\$0\"
+ # Make sure echo works.
+ if test \"X\$1\" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+ elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
+ # Yippee, \$echo works!
+ :
+ else
+ # Restart under the correct shell, and then maybe \$echo will work.
+ exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
+ fi
+ fi\
+"
+ $echo >> $output "\
+
+ # Find the directory that this script lives in.
+ thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+ # Follow symbolic links until we get to the real thisdir.
+ file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
+ while test -n \"\$file\"; do
+ destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
+
+ # If there was a directory component, then change thisdir.
+ if test \"x\$destdir\" != \"x\$file\"; then
+ case \"\$destdir\" in
+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+ *) thisdir=\"\$thisdir/\$destdir\" ;;
+ esac
+ fi
+
+ file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
+ file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
+ done
+
+ # Try to get the absolute directory name.
+ absdir=\`cd \"\$thisdir\" && pwd\`
+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+ if test "$fast_install" = yes; then
+ $echo >> $output "\
+ program=lt-'$outputname'$exeext
+ progdir=\"\$thisdir/$objdir\"
+
+ if test ! -f \"\$progdir/\$program\" || \\
+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+ file=\"\$\$-\$program\"
+
+ if test ! -d \"\$progdir\"; then
+ $mkdir \"\$progdir\"
+ else
+ $rm \"\$progdir/\$file\"
+ fi"
+
+ $echo >> $output "\
+
+ # relink executable if necessary
+ if test -n \"\$relink_command\"; then
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+ else
+ $echo \"\$relink_command_output\" >&2
+ $rm \"\$progdir/\$file\"
+ exit $EXIT_FAILURE
+ fi
+ fi
+
+ $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+ { $rm \"\$progdir/\$program\";
+ $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+ $rm \"\$progdir/\$file\"
+ fi"
+ else
+ $echo >> $output "\
+ program='$outputname'
+ progdir=\"\$thisdir/$objdir\"
+"
+ fi
+
+ $echo >> $output "\
+
+ if test -f \"\$progdir/\$program\"; then"
+
+ # Export our shlibpath_var if we have one.
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ $echo >> $output "\
+ # Add our own library path to $shlibpath_var
+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+ # Some systems cannot cope with colon-terminated $shlibpath_var
+ # The second colon is a workaround for a bug in BeOS R4 sed
+ $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
+
+ export $shlibpath_var
+"
+ fi
+
+ # fixup the dll searchpath if we need to.
+ if test -n "$dllsearchpath"; then
+ $echo >> $output "\
+ # Add the dll search path components to the executable PATH
+ PATH=$dllsearchpath:\$PATH
+"
+ fi
+
+ $echo >> $output "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+"
+ case $host in
+ # Backslashes separate directories on plain windows
+ *-*-mingw | *-*-os2*)
+ $echo >> $output "\
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+ ;;
+
+ *)
+ $echo >> $output "\
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+ ;;
+ esac
+ $echo >> $output "\
+ \$echo \"\$0: cannot exec \$program \$*\"
+ exit $EXIT_FAILURE
+ fi
+ else
+ # The program doesn't exist.
+ \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
+ \$echo \"This script is just a wrapper for \$program.\" 1>&2
+ $echo \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit $EXIT_FAILURE
+ fi
+fi\
+"
+ chmod +x $output
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+ esac
+
+ # See if we need to build an old-fashioned archive.
+ for oldlib in $oldlibs; do
+
+ if test "$build_libtool_libs" = convenience; then
+ oldobjs="$libobjs_save"
+ addlibs="$convenience"
+ build_libtool_libs=no
+ else
+ if test "$build_libtool_libs" = module; then
+ oldobjs="$libobjs_save"
+ build_libtool_libs=no
+ else
+ oldobjs="$old_deplibs $non_pic_objects"
+ fi
+ addlibs="$old_convenience"
+ fi
+
+ if test -n "$addlibs"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $addlibs
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # Do each command in the archive commands.
+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+ cmds=$old_archive_from_new_cmds
+ else
+ # POSIX demands no paths to be encoded in archives. We have
+ # to avoid creating archives with duplicate basenames if we
+ # might have to extract them afterwards, e.g., when creating a
+ # static archive out of a convenience library, or when linking
+ # the entirety of a libtool archive into another (currently
+ # not supported by libtool).
+ if (for obj in $oldobjs
+ do
+ $echo "X$obj" | $Xsed -e 's%^.*/%%'
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $echo "copying selected object files to avoid basename conflicts..."
+
+ if test -z "$gentop"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ $show "${rm}r $gentop"
+ $run ${rm}r "$gentop"
+ $show "$mkdir $gentop"
+ $run $mkdir "$gentop"
+ exit_status=$?
+ if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
+ exit $exit_status
+ fi
+ fi
+
+ save_oldobjs=$oldobjs
+ oldobjs=
+ counter=1
+ for obj in $save_oldobjs
+ do
+ objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
+ case " $oldobjs " in
+ " ") oldobjs=$obj ;;
+ *[\ /]"$objbase "*)
+ while :; do
+ # Make sure we don't pick an alternate name that also
+ # overlaps.
+ newobj=lt$counter-$objbase
+ counter=`expr $counter + 1`
+ case " $oldobjs " in
+ *[\ /]"$newobj "*) ;;
+ *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+ esac
+ done
+ $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+ $run ln "$obj" "$gentop/$newobj" ||
+ $run cp "$obj" "$gentop/$newobj"
+ oldobjs="$oldobjs $gentop/$newobj"
+ ;;
+ *) oldobjs="$oldobjs $obj" ;;
+ esac
+ done
+ fi
+
+ eval cmds=\"$old_archive_cmds\"
+
+ if len=`expr "X$cmds" : ".*"` &&
+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ $echo "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ for obj in $save_oldobjs
+ do
+ oldobjs="$objlist $obj"
+ objlist="$objlist $obj"
+ eval test_cmds=\"$old_archive_cmds\"
+ if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
+ test "$len" -le "$max_cmd_len"; then
+ :
+ else
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
+ fi
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+ fi
+ fi
+ fi
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ eval cmd=\"$cmd\"
+ IFS="$save_ifs"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+ done
+
+ if test -n "$generated"; then
+ $show "${rm}r$generated"
+ $run ${rm}r$generated
+ fi
+
+ # Now create the libtool archive.
+ case $output in
+ *.la)
+ old_library=
+ test "$build_old_libs" = yes && old_library="$libname.$libext"
+ $show "creating $output"
+
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
+ relink_command="$var=\"$var_value\"; export $var; $relink_command"
+ fi
+ done
+ # Quote the link command for shipping.
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+ relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
+
+ # Only create the output if not a dry run.
+ if test -z "$run"; then
+ for installed in no yes; do
+ if test "$installed" = yes; then
+ if test -z "$install_libdir"; then
+ break
+ fi
+ output="$output_objdir/$outputname"i
+ # Replace all uninstalled libtool libraries with the installed ones
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ *.la)
+ name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+ for lib in $dlfiles; do
+ name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ newdlfiles="$newdlfiles $libdir/$name"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ newdlprefiles="$newdlprefiles $libdir/$name"
+ done
+ dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlfiles="$newdlfiles $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlprefiles="$newdlprefiles $abs"
+ done
+ dlprefiles="$newdlprefiles"
+ fi
+ $rm $output
+ # place dlname in correct position for cygwin
+ tdlname=$dlname
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ esac
+ $echo > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+ if test "$installed" = no && test "$need_relink" = yes; then
+ $echo >> $output "\
+relink_command=\"$relink_command\""
+ fi
+ done
+ fi
+
+ # Do a symbolic link so that the libtool archive can be found in
+ # LD_LIBRARY_PATH before the program is installed.
+ $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
+ $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
+ ;;
+ esac
+ exit $EXIT_SUCCESS
+ ;;
+
+ # libtool install mode
+ install)
+ modename="$modename: install"
+
+ # There may be an optional sh(1) argument at the beginning of
+ # install_prog (especially on Windows NT).
+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+ # Allow the use of GNU shtool's install command.
+ $echo "X$nonopt" | grep shtool > /dev/null; then
+ # Aesthetically quote it.
+ arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ install_prog="$arg "
+ arg="$1"
+ shift
+ else
+ install_prog=
+ arg=$nonopt
+ fi
+
+ # The real first argument should be the name of the installation program.
+ # Aesthetically quote it.
+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ install_prog="$install_prog$arg"
+
+ # We need to accept at least all the BSD install flags.
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ for arg
+ do
+ if test -n "$dest"; then
+ files="$files $dest"
+ dest=$arg
+ continue
+ fi
+
+ case $arg in
+ -d) isdir=yes ;;
+ -f)
+ case " $install_prog " in
+ *[\\\ /]cp\ *) ;;
+ *) prev=$arg ;;
+ esac
+ ;;
+ -g | -m | -o) prev=$arg ;;
+ -s)
+ stripme=" -s"
+ continue
+ ;;
+ -*)
+ ;;
+ *)
+ # If the previous option needed an argument, then skip it.
+ if test -n "$prev"; then
+ prev=
+ else
+ dest=$arg
+ continue
+ fi
+ ;;
+ esac
+
+ # Aesthetically quote the argument.
+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ case $arg in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ arg="\"$arg\""
+ ;;
+ esac
+ install_prog="$install_prog $arg"
+ done
+
+ if test -z "$install_prog"; then
+ $echo "$modename: you must specify an install program" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ if test -n "$prev"; then
+ $echo "$modename: the \`$prev' option requires an argument" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ if test -z "$files"; then
+ if test -z "$dest"; then
+ $echo "$modename: no file or destination specified" 1>&2
+ else
+ $echo "$modename: you must specify a destination" 1>&2
+ fi
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Strip any trailing slash from the destination.
+ dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
+
+ # Check to see that the destination is a directory.
+ test -d "$dest" && isdir=yes
+ if test "$isdir" = yes; then
+ destdir="$dest"
+ destname=
+ else
+ destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$destdir" = "X$dest" && destdir=.
+ destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
+
+ # Not a directory, so check to see that there is only one file specified.
+ set dummy $files
+ if test "$#" -gt 2; then
+ $echo "$modename: \`$dest' is not a directory" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ fi
+ case $destdir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ for file in $files; do
+ case $file in
+ *.lo) ;;
+ *)
+ $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in $files; do
+
+ # Do each installation.
+ case $file in
+ *.$libext)
+ # Do the static libraries later.
+ staticlibs="$staticlibs $file"
+ ;;
+
+ *.la)
+ # Check to see that this really is a libtool archive.
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+ else
+ $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ library_names=
+ old_library=
+ relink_command=
+ # If there is no directory component, then add one.
+ case $file in
+ */* | *\\*) . $file ;;
+ *) . ./$file ;;
+ esac
+
+ # Add the libdir to current_libdirs if it is the destination.
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) current_libdirs="$current_libdirs $libdir" ;;
+ esac
+ else
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+ *) future_libdirs="$future_libdirs $libdir" ;;
+ esac
+ fi
+
+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
+ test "X$dir" = "X$file/" && dir=
+ dir="$dir$objdir"
+
+ if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ if test "$inst_prefix_dir" = "$destdir"; then
+ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
+ else
+ relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
+ fi
+
+ $echo "$modename: warning: relinking \`$file'" 1>&2
+ $show "$relink_command"
+ if $run eval "$relink_command"; then :
+ else
+ $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ fi
+
+ # See the names of the shared library.
+ set dummy $library_names
+ if test -n "$2"; then
+ realname="$2"
+ shift
+ shift
+
+ srcname="$realname"
+ test -n "$relink_command" && srcname="$realname"T
+
+ # Install the shared library and build the symlinks.
+ $show "$install_prog $dir/$srcname $destdir/$realname"
+ $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
+ if test -n "$stripme" && test -n "$striplib"; then
+ $show "$striplib $destdir/$realname"
+ $run eval "$striplib $destdir/$realname" || exit $?
+ fi
+
+ if test "$#" -gt 0; then
+ # Delete the old symlinks, and create new ones.
+ # Try `ln -sf' first, because the `ln' binary might depend on
+ # the symlink we replace! Solaris /bin/ln does not understand -f,
+ # so we also need to try rm && ln -s.
+ for linkname
+ do
+ if test "$linkname" != "$realname"; then
+ $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
+ $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
+ fi
+ done
+ fi
+
+ # Do each command in the postinstall commands.
+ lib="$destdir/$realname"
+ cmds=$postinstall_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+ fi
+
+ # Install the pseudo-library for information purposes.
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+ ;;
+
+ *.lo)
+ # Install (i.e. copy) a libtool object.
+
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ destfile="$destdir/$destfile"
+ fi
+
+ # Deduce the name of the destination old-style object file.
+ case $destfile in
+ *.lo)
+ staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
+ ;;
+ *.$objext)
+ staticdest="$destfile"
+ destfile=
+ ;;
+ *)
+ $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ # Install the libtool object if requested.
+ if test -n "$destfile"; then
+ $show "$install_prog $file $destfile"
+ $run eval "$install_prog $file $destfile" || exit $?
+ fi
+
+ # Install the old object if enabled.
+ if test "$build_old_libs" = yes; then
+ # Deduce the name of the old-style object file.
+ staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
+
+ $show "$install_prog $staticobj $staticdest"
+ $run eval "$install_prog \$staticobj \$staticdest" || exit $?
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+
+ *)
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ destfile="$destdir/$destfile"
+ fi
+
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ file=`$echo $file|${SED} 's,.exe$,,'`
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
+ # Do a test to see if this is really a libtool program.
+ case $host in
+ *cygwin*|*mingw*)
+ wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
+ ;;
+ *)
+ wrapper=$file
+ ;;
+ esac
+ if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
+ notinst_deplibs=
+ relink_command=
+
+ # Note that it is not necessary on cygwin/mingw to append a dot to
+ # foo even if both foo and FILE.exe exist: automatic-append-.exe
+ # behavior happens only for exec(3), not for open(2)! Also, sourcing
+ # `FILE.' does not work on cygwin managed mounts.
+ #
+ # If there is no directory component, then add one.
+ case $wrapper in
+ */* | *\\*) . ${wrapper} ;;
+ *) . ./${wrapper} ;;
+ esac
+
+ # Check the variables that should have been set.
+ if test -z "$notinst_deplibs"; then
+ $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ finalize=yes
+ for lib in $notinst_deplibs; do
+ # Check to see that each library is installed.
+ libdir=
+ if test -f "$lib"; then
+ # If there is no directory component, then add one.
+ case $lib in
+ */* | *\\*) . $lib ;;
+ *) . ./$lib ;;
+ esac
+ fi
+ libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+ if test -n "$libdir" && test ! -f "$libfile"; then
+ $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
+ finalize=no
+ fi
+ done
+
+ relink_command=
+ # Note that it is not necessary on cygwin/mingw to append a dot to
+ # foo even if both foo and FILE.exe exist: automatic-append-.exe
+ # behavior happens only for exec(3), not for open(2)! Also, sourcing
+ # `FILE.' does not work on cygwin managed mounts.
+ #
+ # If there is no directory component, then add one.
+ case $wrapper in
+ */* | *\\*) . ${wrapper} ;;
+ *) . ./${wrapper} ;;
+ esac
+
+ outputname=
+ if test "$fast_install" = no && test -n "$relink_command"; then
+ if test "$finalize" = yes && test -z "$run"; then
+ tmpdir=`func_mktempdir`
+ file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
+ outputname="$tmpdir/$file"
+ # Replace the output file specification.
+ relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
+
+ $show "$relink_command"
+ if $run eval "$relink_command"; then :
+ else
+ $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
+ ${rm}r "$tmpdir"
+ continue
+ fi
+ file="$outputname"
+ else
+ $echo "$modename: warning: cannot relink \`$file'" 1>&2
+ fi
+ else
+ # Install the binary that we compiled earlier.
+ file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+ fi
+ fi
+
+ # remove .exe since cygwin /usr/bin/install will append another
+ # one anyway
+ case $install_prog,$host in
+ */usr/bin/install*,*cygwin*)
+ case $file:$destfile in
+ *.exe:*.exe)
+ # this is ok
+ ;;
+ *.exe:*)
+ destfile=$destfile.exe
+ ;;
+ *:*.exe)
+ destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
+ ;;
+ esac
+ ;;
+ esac
+ $show "$install_prog$stripme $file $destfile"
+ $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
+ test -n "$outputname" && ${rm}r "$tmpdir"
+ ;;
+ esac
+ done
+
+ for file in $staticlibs; do
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+
+ # Set up the ranlib parameters.
+ oldlib="$destdir/$name"
+
+ $show "$install_prog $file $oldlib"
+ $run eval "$install_prog \$file \$oldlib" || exit $?
+
+ if test -n "$stripme" && test -n "$old_striplib"; then
+ $show "$old_striplib $oldlib"
+ $run eval "$old_striplib $oldlib" || exit $?
+ fi
+
+ # Do each command in the postinstall commands.
+ cmds=$old_postinstall_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || exit $?
+ done
+ IFS="$save_ifs"
+ done
+
+ if test -n "$future_libdirs"; then
+ $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
+ fi
+
+ if test -n "$current_libdirs"; then
+ # Maybe just do a dry run.
+ test -n "$run" && current_libdirs=" -n$current_libdirs"
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+ else
+ exit $EXIT_SUCCESS
+ fi
+ ;;
+
+ # libtool finish mode
+ finish)
+ modename="$modename: finish"
+ libdirs="$nonopt"
+ admincmds=
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ for dir
+ do
+ libdirs="$libdirs $dir"
+ done
+
+ for libdir in $libdirs; do
+ if test -n "$finish_cmds"; then
+ # Do each command in the finish commands.
+ cmds=$finish_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd" || admincmds="$admincmds
+ $cmd"
+ done
+ IFS="$save_ifs"
+ fi
+ if test -n "$finish_eval"; then
+ # Do the single finish_eval.
+ eval cmds=\"$finish_eval\"
+ $run eval "$cmds" || admincmds="$admincmds
+ $cmds"
+ fi
+ done
+ fi
+
+ # Exit here if they wanted silent mode.
+ test "$show" = : && exit $EXIT_SUCCESS
+
+ $echo "X----------------------------------------------------------------------" | $Xsed
+ $echo "Libraries have been installed in:"
+ for libdir in $libdirs; do
+ $echo " $libdir"
+ done
+ $echo
+ $echo "If you ever happen to want to link against installed libraries"
+ $echo "in a given directory, LIBDIR, you must either use libtool, and"
+ $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ $echo "flag during linking and do at least one of the following:"
+ if test -n "$shlibpath_var"; then
+ $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ $echo " during execution"
+ fi
+ if test -n "$runpath_var"; then
+ $echo " - add LIBDIR to the \`$runpath_var' environment variable"
+ $echo " during linking"
+ fi
+ if test -n "$hardcode_libdir_flag_spec"; then
+ libdir=LIBDIR
+ eval flag=\"$hardcode_libdir_flag_spec\"
+
+ $echo " - use the \`$flag' linker flag"
+ fi
+ if test -n "$admincmds"; then
+ $echo " - have your system administrator run these commands:$admincmds"
+ fi
+ if test -f /etc/ld.so.conf; then
+ $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ fi
+ $echo
+ $echo "See any operating system documentation about shared libraries for"
+ $echo "more information, such as the ld(1) and ld.so(8) manual pages."
+ $echo "X----------------------------------------------------------------------" | $Xsed
+ exit $EXIT_SUCCESS
+ ;;
+
+ # libtool execute mode
+ execute)
+ modename="$modename: execute"
+
+ # The first argument is the command name.
+ cmd="$nonopt"
+ if test -z "$cmd"; then
+ $echo "$modename: you must specify a COMMAND" 1>&2
+ $echo "$help"
+ exit $EXIT_FAILURE
+ fi
+
+ # Handle -dlopen flags immediately.
+ for file in $execute_dlfiles; do
+ if test ! -f "$file"; then
+ $echo "$modename: \`$file' is not a file" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ dir=
+ case $file in
+ *.la)
+ # Check to see that this really is a libtool archive.
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+ else
+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Read the libtool library.
+ dlname=
+ library_names=
+
+ # If there is no directory component, then add one.
+ case $file in
+ */* | *\\*) . $file ;;
+ *) . ./$file ;;
+ esac
+
+ # Skip this library if it cannot be dlopened.
+ if test -z "$dlname"; then
+ # Warn if it was a shared library.
+ test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
+ continue
+ fi
+
+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$dir" = "X$file" && dir=.
+
+ if test -f "$dir/$objdir/$dlname"; then
+ dir="$dir/$objdir"
+ else
+ if test ! -f "$dir/$dlname"; then
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ fi
+ ;;
+
+ *.lo)
+ # Just add the directory containing the .lo file.
+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+ test "X$dir" = "X$file" && dir=.
+ ;;
+
+ *)
+ $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
+ continue
+ ;;
+ esac
+
+ # Get the absolute pathname.
+ absdir=`cd "$dir" && pwd`
+ test -n "$absdir" && dir="$absdir"
+
+ # Now add the directory to shlibpath_var.
+ if eval "test -z \"\$$shlibpath_var\""; then
+ eval "$shlibpath_var=\"\$dir\""
+ else
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+ fi
+ done
+
+ # This variable tells wrapper scripts just to set shlibpath_var
+ # rather than running their programs.
+ libtool_execute_magic="$magic"
+
+ # Check if any of the arguments is a wrapper script.
+ args=
+ for file
+ do
+ case $file in
+ -*) ;;
+ *)
+ # Do a test to see if this is really a libtool program.
+ if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ # If there is no directory component, then add one.
+ case $file in
+ */* | *\\*) . $file ;;
+ *) . ./$file ;;
+ esac
+
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ fi
+ ;;
+ esac
+ # Quote arguments (to preserve shell metacharacters).
+ file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
+ args="$args \"$file\""
+ done
+
+ if test -z "$run"; then
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
+
+ # Restore saved environment variables
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ fi"
+ done
+
+ # Now prepare to actually exec the command.
+ exec_cmd="\$cmd$args"
+ else
+ # Display what would be done.
+ if test -n "$shlibpath_var"; then
+ eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
+ $echo "export $shlibpath_var"
+ fi
+ $echo "$cmd$args"
+ exit $EXIT_SUCCESS
+ fi
+ ;;
+
+ # libtool clean and uninstall mode
+ clean | uninstall)
+ modename="$modename: $mode"
+ rm="$nonopt"
+ files=
+ rmforce=
+ exit_status=0
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ for arg
+ do
+ case $arg in
+ -f) rm="$rm $arg"; rmforce=yes ;;
+ -*) rm="$rm $arg" ;;
+ *) files="$files $arg" ;;
+ esac
+ done
+
+ if test -z "$rm"; then
+ $echo "$modename: you must specify an RM program" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ rmdirs=
+
+ origobjdir="$objdir"
+ for file in $files; do
+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+ if test "X$dir" = "X$file"; then
+ dir=.
+ objdir="$origobjdir"
+ else
+ objdir="$dir/$origobjdir"
+ fi
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ test "$mode" = uninstall && objdir="$dir"
+
+ # Remember objdir for removal later, being careful to avoid duplicates
+ if test "$mode" = clean; then
+ case " $rmdirs " in
+ *" $objdir "*) ;;
+ *) rmdirs="$rmdirs $objdir" ;;
+ esac
+ fi
+
+ # Don't error if the file doesn't exist and rm -f was used.
+ if (test -L "$file") >/dev/null 2>&1 \
+ || (test -h "$file") >/dev/null 2>&1 \
+ || test -f "$file"; then
+ :
+ elif test -d "$file"; then
+ exit_status=1
+ continue
+ elif test "$rmforce" = yes; then
+ continue
+ fi
+
+ rmfiles="$file"
+
+ case $name in
+ *.la)
+ # Possibly a libtool archive, so verify it.
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ . $dir/$name
+
+ # Delete the libtool libraries and symlinks.
+ for n in $library_names; do
+ rmfiles="$rmfiles $objdir/$n"
+ done
+ test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
+
+ case "$mode" in
+ clean)
+ case " $library_names " in
+ # " " in the beginning catches empty $dlname
+ *" $dlname "*) ;;
+ *) rmfiles="$rmfiles $objdir/$dlname" ;;
+ esac
+ test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+ ;;
+ uninstall)
+ if test -n "$library_names"; then
+ # Do each command in the postuninstall commands.
+ cmds=$postuninstall_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd"
+ if test "$?" -ne 0 && test "$rmforce" != yes; then
+ exit_status=1
+ fi
+ done
+ IFS="$save_ifs"
+ fi
+
+ if test -n "$old_library"; then
+ # Do each command in the old_postuninstall commands.
+ cmds=$old_postuninstall_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $show "$cmd"
+ $run eval "$cmd"
+ if test "$?" -ne 0 && test "$rmforce" != yes; then
+ exit_status=1
+ fi
+ done
+ IFS="$save_ifs"
+ fi
+ # FIXME: should reinstall the best remaining shared library.
+ ;;
+ esac
+ fi
+ ;;
+
+ *.lo)
+ # Possibly a libtool object, so verify it.
+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+
+ # Read the .lo file
+ . $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" \
+ && test "$pic_object" != none; then
+ rmfiles="$rmfiles $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" \
+ && test "$non_pic_object" != none; then
+ rmfiles="$rmfiles $dir/$non_pic_object"
+ fi
+ fi
+ ;;
+
+ *)
+ if test "$mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ file=`$echo $file|${SED} 's,.exe$,,'`
+ noexename=`$echo $name|${SED} 's,.exe$,,'`
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ rmfiles="$rmfiles $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+ relink_command=
+ . $dir/$noexename
+
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ rmfiles="$rmfiles $objdir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ $show "$rm $rmfiles"
+ $run $rm $rmfiles || exit_status=1
+ done
+ objdir="$origobjdir"
+
+ # Try to remove the ${objdir}s in the directories where we deleted files
+ for dir in $rmdirs; do
+ if test -d "$dir"; then
+ $show "rmdir $dir"
+ $run rmdir $dir >/dev/null 2>&1
+ fi
+ done
+
+ exit $exit_status
+ ;;
+
+ "")
+ $echo "$modename: you must specify a MODE" 1>&2
+ $echo "$generic_help" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+ esac
+
+ if test -z "$exec_cmd"; then
+ $echo "$modename: invalid operation mode \`$mode'" 1>&2
+ $echo "$generic_help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+fi # test -z "$show_help"
+
+if test -n "$exec_cmd"; then
+ eval exec $exec_cmd
+ exit $EXIT_FAILURE
+fi
+
+# We need to display help for each of the modes.
+case $mode in
+"") $echo \
+"Usage: $modename [OPTION]... [MODE-ARG]...
+
+Provide generalized library-building support services.
+
+ --config show all configuration variables
+ --debug enable verbose shell tracing
+-n, --dry-run display commands without modifying any files
+ --features display basic configuration information and exit
+ --finish same as \`--mode=finish'
+ --help display this help message and exit
+ --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
+ --quiet same as \`--silent'
+ --silent don't print informational messages
+ --tag=TAG use configuration variables from tag TAG
+ --version print version information
+
+MODE must be one of the following:
+
+ clean remove files from the build directory
+ compile compile a source file into a libtool object
+ execute automatically set library path, then run a program
+ finish complete the installation of libtool libraries
+ install install libraries or executables
+ link create a library or an executable
+ uninstall remove libraries from an installed directory
+
+MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
+a more detailed description of MODE.
+
+Report bugs to <bug-libtool@gnu.org>."
+ exit $EXIT_SUCCESS
+ ;;
+
+clean)
+ $echo \
+"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+compile)
+ $echo \
+"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
+ -prefer-pic try to building PIC objects only
+ -prefer-non-pic try to building non-PIC objects only
+ -static always build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+ ;;
+
+execute)
+ $echo \
+"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+ -dlopen FILE add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+ ;;
+
+finish)
+ $echo \
+"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges. Use
+the \`--dry-run' option if you just want to see what would be executed."
+ ;;
+
+install)
+ $echo \
+"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command. The first component should be
+either the \`install' or \`cp' program.
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+ ;;
+
+link)
+ $echo \
+"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+ -all-static do not do any dynamic linking at all
+ -avoid-version do not add a version suffix if possible
+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+ -export-symbols SYMFILE
+ try to export only the symbols listed in SYMFILE
+ -export-symbols-regex REGEX
+ try to export only the symbols matching REGEX
+ -LLIBDIR search LIBDIR for required installed libraries
+ -lNAME OUTPUT-FILE requires the installed library libNAME
+ -module build a library that can dlopened
+ -no-fast-install disable the fast-install mode
+ -no-install link a not-installable executable
+ -no-undefined declare that a library does not refer to external symbols
+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
+ -release RELEASE specify package release information
+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+ -version-info CURRENT[:REVISION[:AGE]]
+ specify library version info [each variable defaults to 0]
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename. Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+ ;;
+
+uninstall)
+ $echo \
+"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+*)
+ $echo "$modename: invalid operation mode \`$mode'" 1>&2
+ $echo "$help" 1>&2
+ exit $EXIT_FAILURE
+ ;;
+esac
+
+$echo
+$echo "Try \`$modename --help' for more information about other modes."
+
+exit $?
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+disable_libs=shared
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+disable_libs=static
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
--- /dev/null
+dnl Copyright (C) 2004-2008 Kim Woelders
+dnl This code is public domain and can be freely used or copied.
+dnl Originally snatched from somewhere...
+
+dnl Macro for checking if the compiler supports __attribute__
+
+dnl Usage: AC_C___ATTRIBUTE__
+
+dnl Call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__.
+dnl If the compiler supports __attribute__, HAVE___ATTRIBUTE__ is
+dnl defined to 1 and __UNUSED__ is defined to __attribute__((unused))
+dnl otherwise, HAVE___ATTRIBUTE__ is not defined and __UNUSED__ is
+dnl defined to nothing.
+
+AC_DEFUN([AC_C___ATTRIBUTE__],
+[
+ AC_MSG_CHECKING(for __attribute__)
+ AC_CACHE_VAL(ac_cv___attribute__, [
+ AC_TRY_COMPILE([#include <stdlib.h>],
+ [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
+ ac_cv___attribute__=yes, ac_cv___attribute__=no)])
+ if test "$ac_cv___attribute__" = "yes"; then
+ AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__])
+ AC_DEFINE(__UNUSED__, __attribute__((unused)), [Macro declaring a function argument to be unused])
+ else
+ AC_DEFINE(__UNUSED__, , [Macro declaring a function argument to be unused])
+ fi
+ AC_MSG_RESULT($ac_cv___attribute__)
+])
--- /dev/null
+dnl Copyright (C) 2008 Kim Woelders
+dnl This code is public domain and can be freely used or copied.
+
+dnl Macro to set compiler warning flags
+
+dnl Provides configure argument --enable-werror to stop compilation on warnings
+
+dnl Usage: AC_C_WARNFLAGS([LANG])
+dnl Set LANG to 'cpp' when compiling for C++
+
+AC_DEFUN([AC_C_WARNFLAGS], [
+ define(ac_c_compile_cpp, ifelse([$1], [cpp], [yes], [no]))
+
+ AC_ARG_ENABLE(werror,
+ [ --enable-werror treat compiler warnings as errors @<:@default=no@:>@],,
+ enable_werror=no)
+
+ if test "x$GCC" = "xyes"; then
+ CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings"
+ ifelse(ac_c_compile_cpp, no, [
+ CWARNFLAGS="$CWARNFLAGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes"
+ ],)
+
+ if test "x$enable_werror" = "xyes"; then
+ CWARNFLAGS="$CWARNFLAGS -Werror"
+ fi
+ fi
+ AC_SUBST(CWARNFLAGS)
+])
--- /dev/null
+# codeset.m4 serial AM1 (gettext-0.10.40)
+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_LANGINFO_CODESET],
+[
+ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
+ [AC_TRY_LINK([#include <langinfo.h>],
+ [char* cs = nl_langinfo(CODESET);],
+ am_cv_langinfo_codeset=yes,
+ am_cv_langinfo_codeset=no)
+ ])
+ if test $am_cv_langinfo_codeset = yes; then
+ AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
+ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
+ fi
+])
--- /dev/null
+# Configure paths for ESD
+# Manish Singh 98-9-30
+# stolen back from Frank Belew
+# stolen from Manish Singh
+# Shamelessly stolen from Owen Taylor
+
+dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
+dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
+dnl
+AC_DEFUN([AM_PATH_ESD],
+[dnl
+dnl Get the cflags and libraries from the esd-config script
+dnl
+AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)],
+ esd_prefix="$withval", esd_prefix="")
+AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
+ esd_exec_prefix="$withval", esd_exec_prefix="")
+AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program],
+ , enable_esdtest=yes)
+
+ if test x$esd_exec_prefix != x ; then
+ esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
+ if test x${ESD_CONFIG+set} != xset ; then
+ ESD_CONFIG=$esd_exec_prefix/bin/esd-config
+ fi
+ fi
+ if test x$esd_prefix != x ; then
+ esd_args="$esd_args --prefix=$esd_prefix"
+ if test x${ESD_CONFIG+set} != xset ; then
+ ESD_CONFIG=$esd_prefix/bin/esd-config
+ fi
+ fi
+
+ AC_PATH_PROG(ESD_CONFIG, esd-config, no)
+ min_esd_version=ifelse([$1], ,0.2.7,$1)
+ AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
+ no_esd=""
+ if test "$ESD_CONFIG" = "no" ; then
+ no_esd=yes
+ else
+ ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
+ ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
+
+ esd_major_version=`$ESD_CONFIG $esd_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+ esd_minor_version=`$ESD_CONFIG $esd_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+ esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+ if test "x$enable_esdtest" = "xyes" ; then
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $ESD_CFLAGS"
+ LIBS="$LIBS $ESD_LIBS"
+dnl
+dnl Now check if the installed ESD is sufficiently new. (Also sanity
+dnl checks the results of esd-config to some extent
+dnl
+ rm -f conf.esdtest
+ AC_TRY_RUN([
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <esd.h>
+
+char*
+my_strdup (char *str)
+{
+ char *new_str;
+
+ if (str)
+ {
+ new_str = malloc ((strlen (str) + 1) * sizeof(char));
+ strcpy (new_str, str);
+ }
+ else
+ new_str = NULL;
+
+ return new_str;
+}
+
+int main ()
+{
+ int major, minor, micro;
+ char *tmp_version;
+
+ system ("touch conf.esdtest");
+
+ /* HP/UX 9 (%@#!) writes to sscanf strings */
+ tmp_version = my_strdup("$min_esd_version");
+ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
+ printf("%s, bad version string\n", "$min_esd_version");
+ exit(1);
+ }
+
+ if (($esd_major_version > major) ||
+ (($esd_major_version == major) && ($esd_minor_version > minor)) ||
+ (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
+ {
+ return 0;
+ }
+ else
+ {
+ printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
+ printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
+ printf("*** best to upgrade to the required version.\n");
+ printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
+ printf("*** to point to the correct copy of esd-config, and remove the file\n");
+ printf("*** config.cache before re-running configure\n");
+ return 1;
+ }
+}
+
+],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ if test "x$no_esd" = x ; then
+ AC_MSG_RESULT(yes)
+ ifelse([$2], , :, [$2])
+ else
+ AC_MSG_RESULT(no)
+ if test "$ESD_CONFIG" = "no" ; then
+ echo "*** The esd-config script installed by ESD could not be found"
+ echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
+ echo "*** your path, or set the ESD_CONFIG environment variable to the"
+ echo "*** full path to esd-config."
+ else
+ if test -f conf.esdtest ; then
+ :
+ else
+ echo "*** Could not run ESD test program, checking why..."
+ CFLAGS="$CFLAGS $ESD_CFLAGS"
+ LIBS="$LIBS $ESD_LIBS"
+ AC_TRY_LINK([
+#include <stdio.h>
+#include <esd.h>
+], [ return 0; ],
+ [ echo "*** The test program compiled, but did not run. This usually means"
+ echo "*** that the run-time linker is not finding ESD or finding the wrong"
+ echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
+ echo "*** is required on your system"
+ echo "***"
+ echo "*** If you have an old version installed, it is best to remove it, although"
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
+ echo "*** exact error that occured. This usually means ESD was incorrectly installed"
+ echo "*** or that you have moved ESD since it was installed. In the latter case, you"
+ echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ ESD_CFLAGS=""
+ ESD_LIBS=""
+ ifelse([$3], , :, [$3])
+ fi
+ AC_SUBST(ESD_CFLAGS)
+ AC_SUBST(ESD_LIBS)
+ rm -f conf.esdtest
+])
--- /dev/null
+# gettext.m4 serial 20 (gettext-0.12)
+dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
+
+dnl Macro to add for using GNU gettext.
+
+dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
+dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
+dnl default (if it is not specified or empty) is 'no-libtool'.
+dnl INTLSYMBOL should be 'external' for packages with no intl directory,
+dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
+dnl If INTLSYMBOL is 'use-libtool', then a libtool library
+dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
+dnl depending on --{enable,disable}-{shared,static} and on the presence of
+dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
+dnl $(top_builddir)/intl/libintl.a will be created.
+dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
+dnl implementations (in libc or libintl) without the ngettext() function
+dnl will be ignored. If NEEDSYMBOL is specified and is
+dnl 'need-formatstring-macros', then GNU gettext implementations that don't
+dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
+dnl INTLDIR is used to find the intl libraries. If empty,
+dnl the value `$(top_builddir)/intl/' is used.
+dnl
+dnl The result of the configuration is one of three cases:
+dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
+dnl and used.
+dnl Catalog format: GNU --> install in $(datadir)
+dnl Catalog extension: .mo after installation, .gmo in source tree
+dnl 2) GNU gettext has been found in the system's C library.
+dnl Catalog format: GNU --> install in $(datadir)
+dnl Catalog extension: .mo after installation, .gmo in source tree
+dnl 3) No internationalization, always use English msgid.
+dnl Catalog format: none
+dnl Catalog extension: none
+dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
+dnl The use of .gmo is historical (it was needed to avoid overwriting the
+dnl GNU format catalogs when building on a platform with an X/Open gettext),
+dnl but we keep it in order not to force irrelevant filename changes on the
+dnl maintainers.
+dnl
+AC_DEFUN([AM_GNU_GETTEXT],
+[
+ dnl Argument checking.
+ ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
+ [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
+])])])])])
+ ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
+ [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
+])])])])
+ define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
+ define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
+
+ AC_REQUIRE([AM_PO_SUBDIRS])dnl
+ ifelse(gt_included_intl, yes, [
+ AC_REQUIRE([AM_INTL_SUBDIR])dnl
+ ])
+
+ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ AC_REQUIRE([AC_LIB_RPATH])
+
+ dnl Sometimes libintl requires libiconv, so first search for libiconv.
+ dnl Ideally we would do this search only after the
+ dnl if test "$USE_NLS" = "yes"; then
+ dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then
+ dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
+ dnl the configure script would need to contain the same shell code
+ dnl again, outside any 'if'. There are two solutions:
+ dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
+ dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
+ dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
+ dnl documented, we avoid it.
+ ifelse(gt_included_intl, yes, , [
+ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
+ ])
+
+ dnl Set USE_NLS.
+ AM_NLS
+
+ ifelse(gt_included_intl, yes, [
+ BUILD_INCLUDED_LIBINTL=no
+ USE_INCLUDED_LIBINTL=no
+ ])
+ LIBINTL=
+ LTLIBINTL=
+ POSUB=
+
+ dnl If we use NLS figure out what method
+ if test "$USE_NLS" = "yes"; then
+ gt_use_preinstalled_gnugettext=no
+ ifelse(gt_included_intl, yes, [
+ AC_MSG_CHECKING([whether included gettext is requested])
+ AC_ARG_WITH(included-gettext,
+ [ --with-included-gettext use the GNU gettext library included here],
+ nls_cv_force_use_gnu_gettext=$withval,
+ nls_cv_force_use_gnu_gettext=no)
+ AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
+
+ nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
+ if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
+ ])
+ dnl User does not insist on using GNU NLS library. Figure out what
+ dnl to use. If GNU gettext is available we use this. Else we have
+ dnl to fall back to GNU NLS library.
+
+ dnl Add a version number to the cache macros.
+ define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
+ define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
+ define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
+
+ AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
+ [AC_TRY_LINK([#include <libintl.h>
+]ifelse([$2], [need-formatstring-macros],
+[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+#endif
+changequote(,)dnl
+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
+changequote([,])dnl
+], [])[extern int _nl_msg_cat_cntr;
+extern int *_nl_domain_bindings;],
+ [bindtextdomain ("", "");
+return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
+ gt_cv_func_gnugettext_libc=yes,
+ gt_cv_func_gnugettext_libc=no)])
+
+ if test "$gt_cv_func_gnugettext_libc" != "yes"; then
+ dnl Sometimes libintl requires libiconv, so first search for libiconv.
+ ifelse(gt_included_intl, yes, , [
+ AM_ICONV_LINK
+ ])
+ dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
+ dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
+ dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
+ dnl even if libiconv doesn't exist.
+ AC_LIB_LINKFLAGS_BODY([intl])
+ AC_CACHE_CHECK([for GNU gettext in libintl],
+ gt_cv_func_gnugettext_libintl,
+ [gt_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $INCINTL"
+ gt_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBINTL"
+ dnl Now see whether libintl exists and does not depend on libiconv.
+ AC_TRY_LINK([#include <libintl.h>
+]ifelse([$2], [need-formatstring-macros],
+[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+#endif
+changequote(,)dnl
+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
+changequote([,])dnl
+], [])[extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+"C"
+#endif
+const char *_nl_expand_alias ();],
+ [bindtextdomain ("", "");
+return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
+ gt_cv_func_gnugettext_libintl=yes,
+ gt_cv_func_gnugettext_libintl=no)
+ dnl Now see whether libintl exists and depends on libiconv.
+ if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
+ LIBS="$LIBS $LIBICONV"
+ AC_TRY_LINK([#include <libintl.h>
+]ifelse([$2], [need-formatstring-macros],
+[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
+#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
+#endif
+changequote(,)dnl
+typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
+changequote([,])dnl
+], [])[extern int _nl_msg_cat_cntr;
+extern
+#ifdef __cplusplus
+"C"
+#endif
+const char *_nl_expand_alias ();],
+ [bindtextdomain ("", "");
+return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
+ [LIBINTL="$LIBINTL $LIBICONV"
+ LTLIBINTL="$LTLIBINTL $LTLIBICONV"
+ gt_cv_func_gnugettext_libintl=yes
+ ])
+ fi
+ CPPFLAGS="$gt_save_CPPFLAGS"
+ LIBS="$gt_save_LIBS"])
+ fi
+
+ dnl If an already present or preinstalled GNU gettext() is found,
+ dnl use it. But if this macro is used in GNU gettext, and GNU
+ dnl gettext is already preinstalled in libintl, we update this
+ dnl libintl. (Cf. the install rule in intl/Makefile.in.)
+ if test "$gt_cv_func_gnugettext_libc" = "yes" \
+ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
+ && test "$PACKAGE" != gettext-runtime \
+ && test "$PACKAGE" != gettext-tools; }; then
+ gt_use_preinstalled_gnugettext=yes
+ else
+ dnl Reset the values set by searching for libintl.
+ LIBINTL=
+ LTLIBINTL=
+ INCINTL=
+ fi
+
+ ifelse(gt_included_intl, yes, [
+ if test "$gt_use_preinstalled_gnugettext" != "yes"; then
+ dnl GNU gettext is not found in the C library.
+ dnl Fall back on included GNU gettext library.
+ nls_cv_use_gnu_gettext=yes
+ fi
+ fi
+
+ if test "$nls_cv_use_gnu_gettext" = "yes"; then
+ dnl Mark actions used to generate GNU NLS library.
+ BUILD_INCLUDED_LIBINTL=yes
+ USE_INCLUDED_LIBINTL=yes
+ LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
+ LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
+ LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+ fi
+
+ if test "$gt_use_preinstalled_gnugettext" = "yes" \
+ || test "$nls_cv_use_gnu_gettext" = "yes"; then
+ dnl Mark actions to use GNU gettext tools.
+ CATOBJEXT=.gmo
+ fi
+ ])
+
+ if test "$gt_use_preinstalled_gnugettext" = "yes" \
+ || test "$nls_cv_use_gnu_gettext" = "yes"; then
+ AC_DEFINE(ENABLE_NLS, 1,
+ [Define to 1 if translation of program messages to the user's native language
+ is requested.])
+ else
+ USE_NLS=no
+ fi
+ fi
+
+ AC_MSG_CHECKING([whether to use NLS])
+ AC_MSG_RESULT([$USE_NLS])
+ if test "$USE_NLS" = "yes"; then
+ AC_MSG_CHECKING([where the gettext function comes from])
+ if test "$gt_use_preinstalled_gnugettext" = "yes"; then
+ if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
+ gt_source="external libintl"
+ else
+ gt_source="libc"
+ fi
+ else
+ gt_source="included intl directory"
+ fi
+ AC_MSG_RESULT([$gt_source])
+ fi
+
+ if test "$USE_NLS" = "yes"; then
+
+ if test "$gt_use_preinstalled_gnugettext" = "yes"; then
+ if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
+ AC_MSG_CHECKING([how to link with libintl])
+ AC_MSG_RESULT([$LIBINTL])
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
+ fi
+
+ dnl For backward compatibility. Some packages may be using this.
+ AC_DEFINE(HAVE_GETTEXT, 1,
+ [Define if the GNU gettext() function is already present or preinstalled.])
+ AC_DEFINE(HAVE_DCGETTEXT, 1,
+ [Define if the GNU dcgettext() function is already present or preinstalled.])
+ fi
+
+ dnl We need to process the po/ directory.
+ POSUB=po
+ fi
+
+ ifelse(gt_included_intl, yes, [
+ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
+ dnl to 'yes' because some of the testsuite requires it.
+ if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
+ BUILD_INCLUDED_LIBINTL=yes
+ fi
+
+ dnl Make all variables we use known to autoconf.
+ AC_SUBST(BUILD_INCLUDED_LIBINTL)
+ AC_SUBST(USE_INCLUDED_LIBINTL)
+ AC_SUBST(CATOBJEXT)
+
+ dnl For backward compatibility. Some configure.ins may be using this.
+ nls_cv_header_intl=
+ nls_cv_header_libgt=
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ DATADIRNAME=share
+ AC_SUBST(DATADIRNAME)
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ INSTOBJEXT=.mo
+ AC_SUBST(INSTOBJEXT)
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ GENCAT=gencat
+ AC_SUBST(GENCAT)
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ if test "$USE_INCLUDED_LIBINTL" = yes; then
+ INTLOBJS="\$(GETTOBJS)"
+ fi
+ AC_SUBST(INTLOBJS)
+
+ dnl Enable libtool support if the surrounding package wishes it.
+ INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
+ AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
+ ])
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ INTLLIBS="$LIBINTL"
+ AC_SUBST(INTLLIBS)
+
+ dnl Make all documented variables known to autoconf.
+ AC_SUBST(LIBINTL)
+ AC_SUBST(LTLIBINTL)
+ AC_SUBST(POSUB)
+])
+
+
+dnl Checks for all prerequisites of the intl subdirectory,
+dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
+dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
+AC_DEFUN([AM_INTL_SUBDIR],
+[
+ AC_REQUIRE([AC_PROG_INSTALL])dnl
+ AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+ AC_REQUIRE([AC_PROG_CC])dnl
+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
+ AC_REQUIRE([AC_PROG_RANLIB])dnl
+ AC_REQUIRE([AC_ISC_POSIX])dnl
+ AC_REQUIRE([AC_HEADER_STDC])dnl
+ AC_REQUIRE([AC_C_CONST])dnl
+ AC_REQUIRE([AC_C_INLINE])dnl
+ AC_REQUIRE([AC_TYPE_OFF_T])dnl
+ AC_REQUIRE([AC_TYPE_SIZE_T])dnl
+ AC_REQUIRE([AC_FUNC_ALLOCA])dnl
+ AC_REQUIRE([AC_FUNC_MMAP])dnl
+ AC_REQUIRE([jm_GLIBC21])dnl
+ AC_REQUIRE([gt_INTDIV0])dnl
+ AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
+ AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
+ AC_REQUIRE([gt_INTTYPES_PRI])dnl
+
+ AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
+stdlib.h string.h unistd.h sys/param.h])
+ AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
+geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
+strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
+__fsetlocking])
+
+ AM_ICONV
+ AM_LANGINFO_CODESET
+ if test $ac_cv_header_locale_h = yes; then
+ AM_LC_MESSAGES
+ fi
+
+ dnl intl/plural.c is generated from intl/plural.y. It requires bison,
+ dnl because plural.y uses bison specific features. It requires at least
+ dnl bison-1.26 because earlier versions generate a plural.c that doesn't
+ dnl compile.
+ dnl bison is only needed for the maintainer (who touches plural.y). But in
+ dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
+ dnl the rule in general Makefile. Now, some people carelessly touch the
+ dnl files or have a broken "make" program, hence the plural.c rule will
+ dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
+ dnl present or too old.
+ AC_CHECK_PROGS([INTLBISON], [bison])
+ if test -z "$INTLBISON"; then
+ ac_verc_fail=yes
+ else
+ dnl Found it, now check the version.
+ AC_MSG_CHECKING([version of bison])
+changequote(<<,>>)dnl
+ ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+ case $ac_prog_version in
+ '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+ 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
+changequote([,])dnl
+ ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
+ *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
+ esac
+ AC_MSG_RESULT([$ac_prog_version])
+ fi
+ if test $ac_verc_fail = yes; then
+ INTLBISON=:
+ fi
+])
+
+
+dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
+AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
--- /dev/null
+# iconv.m4 serial AM4 (gettext-0.11.3)
+dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
+[
+ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ AC_REQUIRE([AC_LIB_RPATH])
+
+ dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([iconv])
+])
+
+AC_DEFUN([AM_ICONV_LINK],
+[
+ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
+ dnl those with the standalone portable GNU libiconv installed).
+
+ dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+ dnl accordingly.
+ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
+
+ dnl Add $INCICONV to CPPFLAGS before performing the following checks,
+ dnl because if the user has installed libiconv and not disabled its use
+ dnl via --without-libiconv-prefix, he wants to use it. The first
+ dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
+ am_save_CPPFLAGS="$CPPFLAGS"
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
+
+ AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
+ am_cv_func_iconv="no, consider installing GNU libiconv"
+ am_cv_lib_iconv=no
+ AC_TRY_LINK([#include <stdlib.h>
+#include <iconv.h>],
+ [iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);],
+ am_cv_func_iconv=yes)
+ if test "$am_cv_func_iconv" != yes; then
+ am_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBICONV"
+ AC_TRY_LINK([#include <stdlib.h>
+#include <iconv.h>],
+ [iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);],
+ am_cv_lib_iconv=yes
+ am_cv_func_iconv=yes)
+ LIBS="$am_save_LIBS"
+ fi
+ ])
+ if test "$am_cv_func_iconv" = yes; then
+ AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
+ fi
+ if test "$am_cv_lib_iconv" = yes; then
+ AC_MSG_CHECKING([how to link with libiconv])
+ AC_MSG_RESULT([$LIBICONV])
+ else
+ dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
+ dnl either.
+ CPPFLAGS="$am_save_CPPFLAGS"
+ LIBICONV=
+ LTLIBICONV=
+ fi
+ AC_SUBST(LIBICONV)
+ AC_SUBST(LTLIBICONV)
+])
+
+AC_DEFUN([AM_ICONV],
+[
+ AM_ICONV_LINK
+ if test "$am_cv_func_iconv" = yes; then
+ AC_MSG_CHECKING([for iconv declaration])
+ AC_CACHE_VAL(am_cv_proto_iconv, [
+ AC_TRY_COMPILE([
+#include <stdlib.h>
+#include <iconv.h>
+extern
+#ifdef __cplusplus
+"C"
+#endif
+#if defined(__STDC__) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+#else
+size_t iconv();
+#endif
+], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
+ am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
+ am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
+ AC_MSG_RESULT([$]{ac_t:-
+ }[$]am_cv_proto_iconv)
+ AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
+ [Define as const if the declaration of iconv() needs const.])
+ fi
+])
--- /dev/null
+# lib-ld.m4 serial 2 (gettext-0.12)
+dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl Subroutines of libtool.m4,
+dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
+dnl with libtool.m4.
+
+dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
+AC_DEFUN([AC_LIB_PROG_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+ acl_cv_prog_gnu_ld=yes
+else
+ acl_cv_prog_gnu_ld=no
+fi])
+with_gnu_ld=$acl_cv_prog_gnu_ld
+])
+
+dnl From libtool-1.4. Sets the variable LD.
+AC_DEFUN([AC_LIB_PROG_LD],
+[AC_ARG_WITH(gnu-ld,
+[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
+test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by GCC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]* | [A-Za-z]:[\\/]*)]
+ [re_direlt='/[^/][^/]*/\.\./']
+ # Canonicalize the path of ld
+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(acl_cv_path_LD,
+[if test -z "$LD"; then
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ acl_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some GNU ld's only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+ test "$with_gnu_ld" != no && break
+ else
+ test "$with_gnu_ld" != yes && break
+ fi
+ fi
+ done
+ IFS="$ac_save_ifs"
+else
+ acl_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$acl_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_LIB_PROG_LD_GNU
+])
--- /dev/null
+# lib-link.m4 serial 4 (gettext-0.12)
+dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Bruno Haible.
+
+dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
+dnl augments the CPPFLAGS variable.
+AC_DEFUN([AC_LIB_LINKFLAGS],
+[
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ AC_REQUIRE([AC_LIB_RPATH])
+ define([Name],[translit([$1],[./-], [___])])
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+ AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
+ ac_cv_lib[]Name[]_libs="$LIB[]NAME"
+ ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
+ ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
+ ])
+ LIB[]NAME="$ac_cv_lib[]Name[]_libs"
+ LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
+ INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
+ AC_SUBST([LIB]NAME)
+ AC_SUBST([LTLIB]NAME)
+ dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
+ dnl results of this search when this library appears as a dependency.
+ HAVE_LIB[]NAME=yes
+ undefine([Name])
+ undefine([NAME])
+])
+
+dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
+dnl searches for libname and the libraries corresponding to explicit and
+dnl implicit dependencies, together with the specified include files and
+dnl the ability to compile and link the specified testcode. If found, it
+dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
+dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
+dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
+dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
+AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
+[
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ AC_REQUIRE([AC_LIB_RPATH])
+ define([Name],[translit([$1],[./-], [___])])
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+
+ dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
+
+ dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
+ dnl because if the user has installed lib[]Name and not disabled its use
+ dnl via --without-lib[]Name-prefix, he wants to use it.
+ ac_save_CPPFLAGS="$CPPFLAGS"
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
+
+ AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
+ ac_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIB[]NAME"
+ AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
+ LIBS="$ac_save_LIBS"
+ ])
+ if test "$ac_cv_lib[]Name" = yes; then
+ HAVE_LIB[]NAME=yes
+ AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
+ AC_MSG_CHECKING([how to link with lib[]$1])
+ AC_MSG_RESULT([$LIB[]NAME])
+ else
+ HAVE_LIB[]NAME=no
+ dnl If $LIB[]NAME didn't lead to a usable library, we don't need
+ dnl $INC[]NAME either.
+ CPPFLAGS="$ac_save_CPPFLAGS"
+ LIB[]NAME=
+ LTLIB[]NAME=
+ fi
+ AC_SUBST([HAVE_LIB]NAME)
+ AC_SUBST([LIB]NAME)
+ AC_SUBST([LTLIB]NAME)
+ undefine([Name])
+ undefine([NAME])
+])
+
+dnl Determine the platform dependent parameters needed to use rpath:
+dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
+dnl hardcode_direct, hardcode_minus_L.
+AC_DEFUN([AC_LIB_RPATH],
+[
+ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
+ AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
+ . ./conftest.sh
+ rm -f ./conftest.sh
+ acl_cv_rpath=done
+ ])
+ wl="$acl_cv_wl"
+ libext="$acl_cv_libext"
+ shlibext="$acl_cv_shlibext"
+ hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
+ hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
+ hardcode_direct="$acl_cv_hardcode_direct"
+ hardcode_minus_L="$acl_cv_hardcode_minus_L"
+ dnl Determine whether the user wants rpath handling at all.
+ AC_ARG_ENABLE(rpath,
+ [ --disable-rpath do not hardcode runtime library paths],
+ :, enable_rpath=yes)
+])
+
+dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
+AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+[
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+ dnl By default, look in $includedir and $libdir.
+ use_additional=yes
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ AC_LIB_ARG_WITH([lib$1-prefix],
+[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
+ --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
+[
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/lib"
+ fi
+ fi
+])
+ dnl Search the library and its dependencies in $additional_libdir and
+ dnl $LDFLAGS. Using breadth-first-seach.
+ LIB[]NAME=
+ LTLIB[]NAME=
+ INC[]NAME=
+ rpathdirs=
+ ltrpathdirs=
+ names_already_handled=
+ names_next_round='$1 $2'
+ while test -n "$names_next_round"; do
+ names_this_round="$names_next_round"
+ names_next_round=
+ for name in $names_this_round; do
+ already_handled=
+ for n in $names_already_handled; do
+ if test "$n" = "$name"; then
+ already_handled=yes
+ break
+ fi
+ done
+ if test -z "$already_handled"; then
+ names_already_handled="$names_already_handled $name"
+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
+ dnl or AC_LIB_HAVE_LINKFLAGS call.
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
+ eval value=\"\$HAVE_LIB$uppername\"
+ if test -n "$value"; then
+ if test "$value" = yes; then
+ eval value=\"\$LIB$uppername\"
+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
+ eval value=\"\$LTLIB$uppername\"
+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
+ else
+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
+ dnl that this library doesn't exist. So just drop it.
+ :
+ fi
+ else
+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
+ found_dir=
+ found_la=
+ found_so=
+ found_a=
+ if test $use_additional = yes; then
+ if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
+ found_dir="$additional_libdir"
+ found_so="$additional_libdir/lib$name.$shlibext"
+ if test -f "$additional_libdir/lib$name.la"; then
+ found_la="$additional_libdir/lib$name.la"
+ fi
+ else
+ if test -f "$additional_libdir/lib$name.$libext"; then
+ found_dir="$additional_libdir"
+ found_a="$additional_libdir/lib$name.$libext"
+ if test -f "$additional_libdir/lib$name.la"; then
+ found_la="$additional_libdir/lib$name.la"
+ fi
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ for x in $LDFLAGS $LTLIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ case "$x" in
+ -L*)
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
+ if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
+ found_dir="$dir"
+ found_so="$dir/lib$name.$shlibext"
+ if test -f "$dir/lib$name.la"; then
+ found_la="$dir/lib$name.la"
+ fi
+ else
+ if test -f "$dir/lib$name.$libext"; then
+ found_dir="$dir"
+ found_a="$dir/lib$name.$libext"
+ if test -f "$dir/lib$name.la"; then
+ found_la="$dir/lib$name.la"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ if test "X$found_dir" != "X"; then
+ break
+ fi
+ done
+ fi
+ if test "X$found_dir" != "X"; then
+ dnl Found the library.
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
+ if test "X$found_so" != "X"; then
+ dnl Linking with a shared library. We attempt to hardcode its
+ dnl directory into the executable's runpath, unless it's the
+ dnl standard /usr/lib.
+ if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
+ dnl No hardcoding is needed.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ else
+ dnl Use an explicit option to hardcode DIR into the resulting
+ dnl binary.
+ dnl Potentially add DIR to ltrpathdirs.
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $found_dir"
+ fi
+ dnl The hardcoding into $LIBNAME is system dependent.
+ if test "$hardcode_direct" = yes; then
+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
+ dnl resulting binary.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ else
+ if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
+ dnl Use an explicit option to hardcode DIR into the resulting
+ dnl binary.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ dnl Potentially add DIR to rpathdirs.
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $found_dir"
+ fi
+ else
+ dnl Rely on "-L$found_dir".
+ dnl But don't add it if it's already contained in the LDFLAGS
+ dnl or the already constructed $LIBNAME
+ haveit=
+ for x in $LDFLAGS $LIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
+ fi
+ if test "$hardcode_minus_L" != no; then
+ dnl FIXME: Not sure whether we should use
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
+ dnl here.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ else
+ dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
+ dnl here, because this doesn't fit in flags passed to the
+ dnl compiler. So give up. No hardcoding. This affects only
+ dnl very old systems.
+ dnl FIXME: Not sure whether we should use
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
+ dnl here.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
+ fi
+ fi
+ fi
+ fi
+ else
+ if test "X$found_a" != "X"; then
+ dnl Linking with a static library.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
+ else
+ dnl We shouldn't come here, but anyway it's good to have a
+ dnl fallback.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
+ fi
+ fi
+ dnl Assume the include files are nearby.
+ additional_includedir=
+ case "$found_dir" in
+ */lib | */lib/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
+ additional_includedir="$basedir/include"
+ ;;
+ esac
+ if test "X$additional_includedir" != "X"; then
+ dnl Potentially add $additional_includedir to $INCNAME.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/include,
+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
+ dnl 3. if it's already present in $CPPFLAGS or the already
+ dnl constructed $INCNAME,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ for x in $CPPFLAGS $INC[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ dnl Really add $additional_includedir to $INCNAME.
+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ fi
+ dnl Look for dependencies.
+ if test -n "$found_la"; then
+ dnl Read the .la file. It defines the variables
+ dnl dlname, library_names, old_library, dependency_libs, current,
+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
+ save_libdir="$libdir"
+ case "$found_la" in
+ */* | *\\*) . "$found_la" ;;
+ *) . "./$found_la" ;;
+ esac
+ libdir="$save_libdir"
+ dnl We use only dependency_libs.
+ for dep in $dependency_libs; do
+ case "$dep" in
+ -L*)
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/lib,
+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
+ dnl 3. if it's already present in $LDFLAGS or the already
+ dnl constructed $LIBNAME,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_libdir" != "X/usr/lib"; then
+ haveit=
+ if test "X$additional_libdir" = "X/usr/local/lib"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ haveit=
+ for x in $LDFLAGS $LIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ dnl Really add $additional_libdir to $LIBNAME.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
+ fi
+ fi
+ haveit=
+ for x in $LDFLAGS $LTLIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ dnl Really add $additional_libdir to $LTLIBNAME.
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ ;;
+ -R*)
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
+ if test "$enable_rpath" != no; then
+ dnl Potentially add DIR to rpathdirs.
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ dnl Potentially add DIR to ltrpathdirs.
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $dir"
+ fi
+ fi
+ ;;
+ -l*)
+ dnl Handle this in the next round.
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
+ ;;
+ *.la)
+ dnl Handle this in the next round. Throw away the .la's
+ dnl directory; it is already contained in a preceding -L
+ dnl option.
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+ ;;
+ *)
+ dnl Most likely an immediate library name.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
+ ;;
+ esac
+ done
+ fi
+ else
+ dnl Didn't find the library; assume it is in the system directories
+ dnl known to the linker and runtime loader. (All the system
+ dnl directories known to the linker should also be known to the
+ dnl runtime loader, otherwise the system is severely misconfigured.)
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
+ fi
+ fi
+ fi
+ done
+ done
+ if test "X$rpathdirs" != "X"; then
+ if test -n "$hardcode_libdir_separator"; then
+ dnl Weird platform: only the last -rpath option counts, the user must
+ dnl pass all path elements in one option. We can arrange that for a
+ dnl single library, but not when more than one $LIBNAMEs are used.
+ alldirs=
+ for found_dir in $rpathdirs; do
+ alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
+ done
+ dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
+ acl_save_libdir="$libdir"
+ libdir="$alldirs"
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
+ else
+ dnl The -rpath options are cumulative.
+ for found_dir in $rpathdirs; do
+ acl_save_libdir="$libdir"
+ libdir="$found_dir"
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
+ done
+ fi
+ fi
+ if test "X$ltrpathdirs" != "X"; then
+ dnl When using libtool, the option that works for both libraries and
+ dnl executables is -R. The -R options are cumulative.
+ for found_dir in $ltrpathdirs; do
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
+ done
+ fi
+])
+
+dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
+dnl unless already present in VAR.
+dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
+dnl contains two or three consecutive elements that belong together.
+AC_DEFUN([AC_LIB_APPENDTOVAR],
+[
+ for element in [$2]; do
+ haveit=
+ for x in $[$1]; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ [$1]="${[$1]}${[$1]:+ }$element"
+ fi
+ done
+])
--- /dev/null
+# lib-prefix.m4 serial 2 (gettext-0.12)
+dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Bruno Haible.
+
+dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
+dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
+dnl require excessive bracketing.
+ifdef([AC_HELP_STRING],
+[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
+[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
+
+dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
+dnl to access previously installed libraries. The basic assumption is that
+dnl a user will want packages to use other packages he previously installed
+dnl with the same --prefix option.
+dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
+dnl libraries, but is otherwise very convenient.
+AC_DEFUN([AC_LIB_PREFIX],
+[
+ AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
+ AC_REQUIRE([AC_PROG_CC])
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ dnl By default, look in $includedir and $libdir.
+ use_additional=yes
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ AC_LIB_ARG_WITH([lib-prefix],
+[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
+ --without-lib-prefix don't search for libraries in includedir and libdir],
+[
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/lib"
+ fi
+ fi
+])
+ if test $use_additional = yes; then
+ dnl Potentially add $additional_includedir to $CPPFLAGS.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/include,
+ dnl 2. if it's already present in $CPPFLAGS,
+ dnl 3. if it's /usr/local/include and we are using GCC on Linux,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ for x in $CPPFLAGS; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ dnl Really add $additional_includedir to $CPPFLAGS.
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ dnl Potentially add $additional_libdir to $LDFLAGS.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/lib,
+ dnl 2. if it's already present in $LDFLAGS,
+ dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_libdir" != "X/usr/lib"; then
+ haveit=
+ for x in $LDFLAGS; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test "X$additional_libdir" = "X/usr/local/lib"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ dnl Really add $additional_libdir to $LDFLAGS.
+ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ fi
+])
+
+dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
+dnl acl_final_exec_prefix, containing the values to which $prefix and
+dnl $exec_prefix will expand at the end of the configure script.
+AC_DEFUN([AC_LIB_PREPARE_PREFIX],
+[
+ dnl Unfortunately, prefix and exec_prefix get only finally determined
+ dnl at the end of configure.
+ if test "X$prefix" = "XNONE"; then
+ acl_final_prefix="$ac_default_prefix"
+ else
+ acl_final_prefix="$prefix"
+ fi
+ if test "X$exec_prefix" = "XNONE"; then
+ acl_final_exec_prefix='${prefix}'
+ else
+ acl_final_exec_prefix="$exec_prefix"
+ fi
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
+ prefix="$acl_save_prefix"
+])
+
+dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
+dnl variables prefix and exec_prefix bound to the values they will have
+dnl at the end of the configure script.
+AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
+[
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ $1
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+])
--- /dev/null
+# nls.m4 serial 1 (gettext-0.12)
+dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
+
+AC_DEFUN([AM_NLS],
+[
+ AC_MSG_CHECKING([whether NLS is requested])
+ dnl Default is enabled NLS
+ AC_ARG_ENABLE(nls,
+ [ --disable-nls do not use Native Language Support],
+ USE_NLS=$enableval, USE_NLS=yes)
+ AC_MSG_RESULT($USE_NLS)
+ AC_SUBST(USE_NLS)
+])
+
+AC_DEFUN([AM_MKINSTALLDIRS],
+[
+ dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
+ dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
+ dnl Try to locate it.
+ MKINSTALLDIRS=
+ if test -n "$ac_aux_dir"; then
+ case "$ac_aux_dir" in
+ /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
+ *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
+ esac
+ fi
+ if test -z "$MKINSTALLDIRS"; then
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
+ fi
+ AC_SUBST(MKINSTALLDIRS)
+])
--- /dev/null
+# po.m4 serial 1 (gettext-0.12)
+dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
+dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
+
+dnl Checks for all prerequisites of the po subdirectory.
+AC_DEFUN([AM_PO_SUBDIRS],
+[
+ AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+ AC_REQUIRE([AC_PROG_INSTALL])dnl
+ AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+ AC_REQUIRE([AM_NLS])dnl
+
+ dnl Perform the following tests also if --disable-nls has been given,
+ dnl because they are needed for "make dist" to work.
+
+ dnl Search for GNU msgfmt in the PATH.
+ dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
+ dnl The second test excludes FreeBSD msgfmt.
+ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+ [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
+ (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
+ :)
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+
+ dnl Search for GNU xgettext 0.12 or newer in the PATH.
+ dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
+ dnl The second test excludes FreeBSD xgettext.
+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+ [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
+ (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
+ :)
+ dnl Remove leftover from FreeBSD xgettext call.
+ rm -f messages.po
+
+ dnl Search for GNU msgmerge 0.11 or newer in the PATH.
+ AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
+ [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
+
+ dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+ dnl Test whether we really found GNU msgfmt.
+ if test "$GMSGFMT" != ":"; then
+ dnl If it is no GNU msgfmt we define it as : so that the
+ dnl Makefiles still can work.
+ if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
+ (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
+ : ;
+ else
+ GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
+ AC_MSG_RESULT(
+ [found $GMSGFMT program is not GNU msgfmt; ignore it])
+ GMSGFMT=":"
+ fi
+ fi
+
+ dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+ dnl Test whether we really found GNU xgettext.
+ if test "$XGETTEXT" != ":"; then
+ dnl If it is no GNU xgettext we define it as : so that the
+ dnl Makefiles still can work.
+ if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
+ (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
+ : ;
+ else
+ AC_MSG_RESULT(
+ [found xgettext program is not GNU xgettext; ignore it])
+ XGETTEXT=":"
+ fi
+ dnl Remove leftover from FreeBSD xgettext call.
+ rm -f messages.po
+ fi
+
+ AC_OUTPUT_COMMANDS([
+ for ac_file in $CONFIG_FILES; do
+ # Support "outfile[:infile[:infile...]]"
+ case "$ac_file" in
+ *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ esac
+ # PO directories have a Makefile.in generated from Makefile.in.in.
+ case "$ac_file" in */Makefile.in)
+ # Adjust a relative srcdir.
+ ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
+ ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
+ ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
+ # In autoconf-2.13 it is called $ac_given_srcdir.
+ # In autoconf-2.50 it is called $srcdir.
+ test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
+ case "$ac_given_srcdir" in
+ .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+ /*) top_srcdir="$ac_given_srcdir" ;;
+ *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
+ esac
+ if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
+ rm -f "$ac_dir/POTFILES"
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
+ cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
+ POMAKEFILEDEPS="POTFILES.in"
+ # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
+ # on $ac_dir but don't depend on user-specified configuration
+ # parameters.
+ if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
+ # The LINGUAS file contains the set of available languages.
+ if test -n "$OBSOLETE_ALL_LINGUAS"; then
+ test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
+ fi
+ ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
+ # Hide the ALL_LINGUAS assigment from automake.
+ eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
+ POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
+ else
+ # The set of available languages was given in configure.in.
+ eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
+ fi
+ case "$ac_given_srcdir" in
+ .) srcdirpre= ;;
+ *) srcdirpre='$(srcdir)/' ;;
+ esac
+ POFILES=
+ GMOFILES=
+ UPDATEPOFILES=
+ DUMMYPOFILES=
+ for lang in $ALL_LINGUAS; do
+ POFILES="$POFILES $srcdirpre$lang.po"
+ GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
+ UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
+ DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
+ done
+ # CATALOGS depends on both $ac_dir and the user's LINGUAS
+ # environment variable.
+ INST_LINGUAS=
+ if test -n "$ALL_LINGUAS"; then
+ for presentlang in $ALL_LINGUAS; do
+ useit=no
+ if test "%UNSET%" != "$LINGUAS"; then
+ desiredlanguages="$LINGUAS"
+ else
+ desiredlanguages="$ALL_LINGUAS"
+ fi
+ for desiredlang in $desiredlanguages; do
+ # Use the presentlang catalog if desiredlang is
+ # a. equal to presentlang, or
+ # b. a variant of presentlang (because in this case,
+ # presentlang can be used as a fallback for messages
+ # which are not translated in the desiredlang catalog).
+ case "$desiredlang" in
+ "$presentlang"*) useit=yes;;
+ esac
+ done
+ if test $useit = yes; then
+ INST_LINGUAS="$INST_LINGUAS $presentlang"
+ fi
+ done
+ fi
+ CATALOGS=
+ if test -n "$INST_LINGUAS"; then
+ for lang in $INST_LINGUAS; do
+ CATALOGS="$CATALOGS $lang.gmo"
+ done
+ fi
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
+ sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
+ for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
+ if test -f "$f"; then
+ case "$f" in
+ *.orig | *.bak | *~) ;;
+ *) cat "$f" >> "$ac_dir/Makefile" ;;
+ esac
+ fi
+ done
+ fi
+ ;;
+ esac
+ done],
+ [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
+ # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
+ # from automake.
+ eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
+ # Capture the value of LINGUAS because we need it to compute CATALOGS.
+ LINGUAS="${LINGUAS-%UNSET%}"
+ ])
+])
--- /dev/null
+# progtest.m4 serial 3 (gettext-0.12)
+dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+dnl
+dnl This file can can be used in projects which are not available under
+dnl the GNU General Public License or the GNU Library General Public
+dnl License but which still want to provide support for the GNU gettext
+dnl functionality.
+dnl Please note that the actual code of the GNU gettext library is covered
+dnl by the GNU Library General Public License, and the rest of the GNU
+dnl gettext package package is covered by the GNU General Public License.
+dnl They are *not* in the public domain.
+
+dnl Authors:
+dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
+
+# Search path for a program which passes the given test.
+
+dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
+dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
+AC_DEFUN([AM_PATH_PROG_WITH_TEST],
+[
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ echo "#! /bin/sh" >conf$$.sh
+ echo "exit 0" >>conf$$.sh
+ chmod +x conf$$.sh
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+ rm -f conf$$.sh
+fi
+
+# Find out how to test for executable files. Don't use a zero-byte file,
+# as systems may use methods other than mode bits to determine executability.
+cat >conf$$.file <<_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file >/dev/null 2>&1; then
+ ac_executable_p="test -x"
+else
+ ac_executable_p="test -f"
+fi
+rm -f conf$$.file
+
+# Extract the first word of "$2", so it can be a program name with args.
+set dummy $2; ac_word=[$]2
+AC_MSG_CHECKING([for $ac_word])
+AC_CACHE_VAL(ac_cv_path_$1,
+[case "[$]$1" in
+ [[\\/]]* | ?:[[\\/]]*)
+ ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
+ ;;
+ *)
+ ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in ifelse([$5], , $PATH, [$5]); do
+ IFS="$ac_save_IFS"
+ test -z "$ac_dir" && ac_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
+ if [$3]; then
+ ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
+ break 2
+ fi
+ fi
+ done
+ done
+ IFS="$ac_save_IFS"
+dnl If no 4th arg is given, leave the cache variable unset,
+dnl so AC_PATH_PROGS will keep looking.
+ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
+])dnl
+ ;;
+esac])dnl
+$1="$ac_cv_path_$1"
+if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
+ AC_MSG_RESULT([$]$1)
+else
+ AC_MSG_RESULT(no)
+fi
+AC_SUBST($1)dnl
+])
--- /dev/null
+DESKTOPS_APP = e16.desktop
+DESKTOPS_SES = e16.desktop e16-gnome.desktop e16-kde.desktop
+DESKTOPS_IN = e16.desktop-app.in e16.desktop.in e16-gnome.desktop.in e16-kde.desktop.in
+XCLIENTS = Xclients.e16.sh Xclients.e16-gnome.sh Xclients.e16-kde.sh
+STARTUPS = starte16-gnome starte16-kde
+ICONS = e16.png
+
+DESKTOPS = $(DESKTOPS_APP:.desktop=.desktop-app) $(DESKTOPS_SES)
+
+miscdir = $(pkgdatadir)/misc
+misc_DATA = $(ICONS) $(DESKTOPS)
+misc_SCRIPTS = $(XCLIENTS) starte16 e16-dbus-cmd
+
+applicationdir = $(datadir)/applications
+xsessiondir = $(datadir)/xsessions
+
+# Is this Fedora only stuff?
+#xclientsdir = $(sysconfdir)/X11/xinit/Xclients.d
+#xclients_SCRIPTS = $(XCLIENTS)
+
+EXTRA_DIST = $(DESKTOPS_IN) $(XCLIENTS) $(SCRIPTS) $(ICONS)
+
+CLEANFILES = $(DESKTOPS)
+
+e16.desktop-app: $(srcdir)/e16.desktop-app.in Makefile
+e16.desktop: $(srcdir)/e16.desktop.in Makefile
+e16-gnome.desktop: $(srcdir)/e16-gnome.desktop.in Makefile
+e16-kde.desktop: $(srcdir)/e16-kde.desktop.in Makefile
+
+$(DESKTOPS):
+ sed -e "s=@pkgdatadir@=${pkgdatadir}=" $(srcdir)/$@.in > $@
+
+install-data-hook:
+ cd $(DESTDIR)$(bindir); rm -f starte16; $(LN_S) $(miscdir)/starte16 .
+ $(mkinstalldirs) $(DESTDIR)$(xsessiondir)
+ cd $(DESTDIR)$(xsessiondir); rm -f $(DESKTOPS_SES); \
+ for f in $(DESKTOPS_SES); do $(LN_S) $(miscdir)/$$f .; done
+ cd $(DESTDIR)$(miscdir); rm -f $(STARTUPS); \
+ for f in $(STARTUPS); do $(LN_S) starte16 $$f; done
+ $(mkinstalldirs) $(DESTDIR)$(applicationdir)
+ cd $(DESTDIR)$(applicationdir); rm -f $(DESKTOPS_APP); \
+ for f in $(DESKTOPS_APP); do $(LN_S) $(miscdir)/$$f-app $$f; done
+ cd $(DESTDIR)$(miscdir); rm -f $(STARTUPS); \
+ for f in $(STARTUPS); do $(LN_S) starte16 $$f; done
+
+uninstall-local:
+ rm -f $(DESKTOPS)
+ cd $(DESTDIR)$(bindir); rm -f starte16
+ cd $(DESTDIR)$(applicationdir); rm -f $(DESKTOPS_APP)
+ cd $(DESTDIR)$(xsessiondir); rm -f $(DESKTOPS_SES)
+ cd $(DESTDIR)$(miscdir); rm -f $(STARTUPS)
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = misc
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(miscdir)" "$(DESTDIR)$(miscdir)"
+miscSCRIPT_INSTALL = $(INSTALL_SCRIPT)
+SCRIPTS = $(misc_SCRIPTS)
+SOURCES =
+DIST_SOURCES =
+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 = `echo $$p | sed -e 's|^.*/||'`;
+miscDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(misc_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+DESKTOPS_APP = e16.desktop
+DESKTOPS_SES = e16.desktop e16-gnome.desktop e16-kde.desktop
+DESKTOPS_IN = e16.desktop-app.in e16.desktop.in e16-gnome.desktop.in e16-kde.desktop.in
+XCLIENTS = Xclients.e16.sh Xclients.e16-gnome.sh Xclients.e16-kde.sh
+STARTUPS = starte16-gnome starte16-kde
+ICONS = e16.png
+DESKTOPS = $(DESKTOPS_APP:.desktop=.desktop-app) $(DESKTOPS_SES)
+miscdir = $(pkgdatadir)/misc
+misc_DATA = $(ICONS) $(DESKTOPS)
+misc_SCRIPTS = $(XCLIENTS) starte16 e16-dbus-cmd
+applicationdir = $(datadir)/applications
+xsessiondir = $(datadir)/xsessions
+
+# Is this Fedora only stuff?
+#xclientsdir = $(sysconfdir)/X11/xinit/Xclients.d
+#xclients_SCRIPTS = $(XCLIENTS)
+EXTRA_DIST = $(DESKTOPS_IN) $(XCLIENTS) $(SCRIPTS) $(ICONS)
+CLEANFILES = $(DESKTOPS)
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign misc/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign misc/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
+install-miscSCRIPTS: $(misc_SCRIPTS)
+ @$(NORMAL_INSTALL)
+ test -z "$(miscdir)" || $(MKDIR_P) "$(DESTDIR)$(miscdir)"
+ @list='$(misc_SCRIPTS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f $$d$$p; then \
+ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
+ echo " $(miscSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(miscdir)/$$f'"; \
+ $(miscSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(miscdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-miscSCRIPTS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(misc_SCRIPTS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
+ echo " rm -f '$(DESTDIR)$(miscdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(miscdir)/$$f"; \
+ done
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-miscDATA: $(misc_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(miscdir)" || $(MKDIR_P) "$(DESTDIR)$(miscdir)"
+ @list='$(misc_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(miscDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(miscdir)/$$f'"; \
+ $(miscDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(miscdir)/$$f"; \
+ done
+
+uninstall-miscDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(misc_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(miscdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(miscdir)/$$f"; \
+ done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(SCRIPTS) $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(miscdir)" "$(DESTDIR)$(miscdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-miscDATA install-miscSCRIPTS
+ @$(NORMAL_INSTALL)
+ $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+
+install-dvi: install-dvi-am
+
+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
+
+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-local uninstall-miscDATA uninstall-miscSCRIPTS
+
+.MAKE: install-am install-data-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-hook install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-miscDATA install-miscSCRIPTS 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 uninstall uninstall-am \
+ uninstall-local uninstall-miscDATA uninstall-miscSCRIPTS
+
+
+e16.desktop-app: $(srcdir)/e16.desktop-app.in Makefile
+e16.desktop: $(srcdir)/e16.desktop.in Makefile
+e16-gnome.desktop: $(srcdir)/e16-gnome.desktop.in Makefile
+e16-kde.desktop: $(srcdir)/e16-kde.desktop.in Makefile
+
+$(DESKTOPS):
+ sed -e "s=@pkgdatadir@=${pkgdatadir}=" $(srcdir)/$@.in > $@
+
+install-data-hook:
+ cd $(DESTDIR)$(bindir); rm -f starte16; $(LN_S) $(miscdir)/starte16 .
+ $(mkinstalldirs) $(DESTDIR)$(xsessiondir)
+ cd $(DESTDIR)$(xsessiondir); rm -f $(DESKTOPS_SES); \
+ for f in $(DESKTOPS_SES); do $(LN_S) $(miscdir)/$$f .; done
+ cd $(DESTDIR)$(miscdir); rm -f $(STARTUPS); \
+ for f in $(STARTUPS); do $(LN_S) starte16 $$f; done
+ $(mkinstalldirs) $(DESTDIR)$(applicationdir)
+ cd $(DESTDIR)$(applicationdir); rm -f $(DESKTOPS_APP); \
+ for f in $(DESKTOPS_APP); do $(LN_S) $(miscdir)/$$f-app $$f; done
+ cd $(DESTDIR)$(miscdir); rm -f $(STARTUPS); \
+ for f in $(STARTUPS); do $(LN_S) starte16 $$f; done
+
+uninstall-local:
+ rm -f $(DESKTOPS)
+ cd $(DESTDIR)$(bindir); rm -f starte16
+ cd $(DESTDIR)$(applicationdir); rm -f $(DESKTOPS_APP)
+ cd $(DESTDIR)$(xsessiondir); rm -f $(DESKTOPS_SES)
+ cd $(DESTDIR)$(miscdir); rm -f $(STARTUPS)
+# 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:
--- /dev/null
+#!/bin/sh
+exec starte16 gnome
--- /dev/null
+#!/bin/sh
+exec starte16 kde
--- /dev/null
+#!/bin/sh
+exec e16
--- /dev/null
+#!/bin/sh
+dbus-send --session --type=method_call --print-reply --dest=$ENL_DBUS_NAME /org/e16/wm org.e16.Command string:"$*"
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Type=XSession
+Name=E16-GNOME
+Comment=This session starts GNOME using enlightenment (e16) as window manager
+Comment[it]=Questo avvia GNOME usando Enlightenment (e16) come window manager
+Exec=@pkgdatadir@/misc/starte16-gnome
+Icon=@pkgdatadir@/misc/e16.png
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Type=XSession
+Name=E16-KDE
+Comment=This session starts KDE using enlightenment (e16) as window manager
+Comment[it]=Questo avvia KDE usando Enlightenment (e16) come window manager
+Exec=@pkgdatadir@/misc/starte16-kde
+Icon=@pkgdatadir@/misc/e16.png
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=E16
+Comment=The Enlightenment (e16) window manager
+Comment[it]=Il window manager Enlightenment (e16)
+Exec=e16
+Icon=@pkgdatadir@/misc/e16.png
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Type=XSession
+Name=E16
+Comment=This session starts the Enlightenment (e16) window manager
+Comment[it]=Questo avvia il window manager Enlightenment (e16)
+Exec=@pkgdatadir@/misc/starte16
+Icon=@pkgdatadir@/misc/e16.png
--- /dev/null
+#!/bin/sh
+
+s=$1
+test -z "$s" && s=$0
+
+case "$s" in
+*gnome|GNOME)
+ test -x /usr/bin/gconftool-2 && gconftool-2 --set /desktop/gnome/session/required_components/windowmanager --type string e16
+ WINDOW_MANAGER=e16
+ export WINDOW_MANAGER
+ exec gnome-session
+ ;;
+*kde|KDE)
+ KDEWM=e16
+ export KDEWM
+ exec startkde
+ ;;
+*window)
+ exec e16 -w ${SIZE:-800x600}
+ ;;
+*)
+ exec e16
+ ;;
+esac
--- /dev/null
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2006-05-10.23
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# 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.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ tar try tar, gnutar, gtar, then tar without non-portable flags
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Send bug reports to <bug-automake@gnu.org>."
+ exit $?
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case $1 in
+ lex|yacc)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $1 in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case $f in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison|yacc)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex|flex)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit 1
+ fi
+ ;;
+
+ makeinfo)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ tar)
+ shift
+
+ # We have already tried tar in the generic part.
+ # Look for gnutar/gtar before invocation to avoid ugly error
+ # messages.
+ if (gnutar --version > /dev/null 2>&1); then
+ gnutar "$@" && exit 0
+ fi
+ if (gtar --version > /dev/null 2>&1); then
+ gtar "$@" && exit 0
+ fi
+ firstarg="$1"
+ if shift; then
+ case $firstarg in
+ *o*)
+ firstarg=`echo "$firstarg" | sed s/o//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ case $firstarg in
+ *h*)
+ firstarg=`echo "$firstarg" | sed s/h//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ fi
+
+ echo 1>&2 "\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+ You may want to install GNU tar or Free paxutils, or check the
+ command line arguments."
+ exit 1
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
--- /dev/null
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain
+
+errstatus=0
+dirmode=""
+
+usage="\
+Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
+
+# process command line arguments
+while test $# -gt 0 ; do
+ case $1 in
+ -h | --help | --h*) # -h for help
+ echo "$usage" 1>&2
+ exit 0
+ ;;
+ -m) # -m PERM arg
+ shift
+ test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
+ dirmode=$1
+ shift
+ ;;
+ --) # stop option processing
+ shift
+ break
+ ;;
+ -*) # unknown option
+ echo "$usage" 1>&2
+ exit 1
+ ;;
+ *) # first non-opt arg
+ break
+ ;;
+ esac
+done
+
+for file
+do
+ if test -d "$file"; then
+ shift
+ else
+ break
+ fi
+done
+
+case $# in
+ 0) exit 0 ;;
+esac
+
+case $dirmode in
+ '')
+ if mkdir -p -- . 2>/dev/null; then
+ echo "mkdir -p -- $*"
+ exec mkdir -p -- "$@"
+ fi
+ ;;
+ *)
+ if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
+ echo "mkdir -m $dirmode -p -- $*"
+ exec mkdir -m "$dirmode" -p -- "$@"
+ fi
+ ;;
+esac
+
+for file
+do
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+ shift
+
+ pathcomp=
+ for d
+ do
+ pathcomp="$pathcomp$d"
+ case $pathcomp in
+ -*) pathcomp=./$pathcomp ;;
+ esac
+
+ if test ! -d "$pathcomp"; then
+ echo "mkdir $pathcomp"
+
+ mkdir "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ else
+ if test ! -z "$dirmode"; then
+ echo "chmod $dirmode $pathcomp"
+ lasterr=""
+ chmod "$dirmode" "$pathcomp" || lasterr=$?
+
+ if test ! -z "$lasterr"; then
+ errstatus=$lasterr
+ fi
+ fi
+ fi
+ fi
+
+ pathcomp="$pathcomp/"
+ done
+done
+
+exit $errstatus
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# End:
+# mkinstalldirs ends here
--- /dev/null
+bg bs da de en_US eo es fr hu it ja ko nb nl pl pt pt_BR ru sv tr zh_CN
--- /dev/null
+# Makefile for PO directory in any package using GNU gettext.
+# Copyright (C) 1995-1997, 2000-2003 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+#
+# This file can be copied and used freely without restrictions. It can
+# be used in projects which are not available under the GNU General Public
+# License but which still want to provide support for the GNU gettext
+# functionality.
+# Please note that the actual code of GNU gettext is covered by the GNU
+# General Public License and is *not* in the public domain.
+
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+SHELL = /bin/sh
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+datadir = @datadir@
+localedir = $(datadir)/locale
+gettextsrcdir = $(datadir)/gettext/po
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+
+GMSGFMT = @GMSGFMT@
+MSGFMT = @MSGFMT@
+XGETTEXT = @XGETTEXT@
+MSGMERGE = msgmerge
+MSGMERGE_UPDATE = @MSGMERGE@ --update
+MSGINIT = msginit
+MSGCONV = msgconv
+MSGFILTER = msgfilter
+
+POFILES = @POFILES@
+GMOFILES = @GMOFILES@
+UPDATEPOFILES = @UPDATEPOFILES@
+DUMMYPOFILES = @DUMMYPOFILES@
+DISTFILES.common = Makefile.in.in remove-potcdate.sin \
+$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
+DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
+$(POFILES) $(GMOFILES) \
+$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
+
+POTFILES = \
+
+CATALOGS = @CATALOGS@
+
+# Makevars gets inserted here. (Don't remove this line!)
+
+.SUFFIXES:
+.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
+
+.po.mo:
+ @echo "$(MSGFMT) -c -o $@ $<"; \
+ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
+
+.po.gmo:
+ @lang=`echo $* | sed -e 's,.*/,,'`; \
+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
+ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
+
+.sin.sed:
+ sed -e '/^#/d' $< > t-$@
+ mv t-$@ $@
+
+
+all: all-@USE_NLS@
+
+all-yes: stamp-po
+all-no:
+
+# stamp-po is a timestamp denoting the last time at which the CATALOGS have
+# been loosely updated. Its purpose is that when a developer or translator
+# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
+# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
+# invocations of "make" will do nothing. This timestamp would not be necessary
+# if updating the $(CATALOGS) would always touch them; however, the rule for
+# $(POFILES) has been designed to not touch files that don't need to be
+# changed.
+stamp-po: $(srcdir)/$(DOMAIN).pot
+ test -z "$(CATALOGS)" || $(MAKE) $(CATALOGS)
+ @echo "touch stamp-po"
+ @echo timestamp > stamp-poT
+ @mv stamp-poT stamp-po
+
+# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
+# otherwise packages like GCC can not be built if only parts of the source
+# have been downloaded.
+
+# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
+# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
+$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
+ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
+ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
+ --files-from=$(srcdir)/POTFILES.in \
+ --copyright-holder='$(COPYRIGHT_HOLDER)' \
+ --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
+ test ! -f $(DOMAIN).po || { \
+ if test -f $(srcdir)/$(DOMAIN).pot; then \
+ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
+ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
+ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
+ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
+ else \
+ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
+ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
+ fi; \
+ else \
+ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
+ fi; \
+ }
+
+# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
+# every "make" invocation, only create it when it is missing.
+# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
+$(srcdir)/$(DOMAIN).pot:
+ $(MAKE) $(DOMAIN).pot-update
+
+# This target rebuilds a PO file if $(DOMAIN).pot has changed.
+# Note that a PO file is not touched if it doesn't need to be changed.
+$(POFILES): $(srcdir)/$(DOMAIN).pot
+ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
+ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
+
+
+install: install-exec install-data
+install-exec:
+install-data: install-data-@USE_NLS@
+ if test "$(PACKAGE)" = "gettext-tools"; then \
+ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
+ for file in $(DISTFILES.common) Makevars.template; do \
+ $(INSTALL_DATA) $(srcdir)/$$file \
+ $(DESTDIR)$(gettextsrcdir)/$$file; \
+ done; \
+ for file in Makevars; do \
+ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
+ done; \
+ else \
+ : ; \
+ fi
+install-data-no: all
+install-data-yes: all
+ $(mkinstalldirs) $(DESTDIR)$(datadir)
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(mkinstalldirs) $(DESTDIR)$$dir; \
+ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
+ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
+ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
+ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
+ if test -n "$$lc"; then \
+ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
+ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
+ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
+ for file in *; do \
+ if test -f $$file; then \
+ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
+ fi; \
+ done); \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ else \
+ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
+ :; \
+ else \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ fi; \
+ fi; \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
+ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
+ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
+ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
+ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
+ fi; \
+ done; \
+ done
+
+install-strip: install
+
+installdirs: installdirs-exec installdirs-data
+installdirs-exec:
+installdirs-data: installdirs-data-@USE_NLS@
+ if test "$(PACKAGE)" = "gettext-tools"; then \
+ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
+ else \
+ : ; \
+ fi
+installdirs-data-no:
+installdirs-data-yes:
+ $(mkinstalldirs) $(DESTDIR)$(datadir)
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(mkinstalldirs) $(DESTDIR)$$dir; \
+ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
+ if test -n "$$lc"; then \
+ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
+ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
+ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
+ for file in *; do \
+ if test -f $$file; then \
+ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
+ fi; \
+ done); \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ else \
+ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
+ :; \
+ else \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ fi; \
+ fi; \
+ fi; \
+ done; \
+ done
+
+# Define this as empty until I found a useful application.
+installcheck:
+
+uninstall: uninstall-exec uninstall-data
+uninstall-exec:
+uninstall-data: uninstall-data-@USE_NLS@
+ if test "$(PACKAGE)" = "gettext-tools"; then \
+ for file in $(DISTFILES.common) Makevars.template; do \
+ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
+ done; \
+ else \
+ : ; \
+ fi
+uninstall-data-no:
+uninstall-data-yes:
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
+ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
+ done; \
+ done
+
+check: all
+
+info dvi ps pdf html tags TAGS ctags CTAGS ID:
+
+mostlyclean:
+ rm -f remove-potcdate.sed
+ rm -f stamp-poT
+ rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
+ rm -fr *.o
+
+clean: mostlyclean
+
+distclean: clean
+ rm -f Makefile Makefile.in POTFILES *.mo
+
+maintainer-clean: distclean
+ @echo "This command is intended for maintainers to use;"
+ @echo "it deletes files that may require special tools to rebuild."
+ rm -f stamp-po $(GMOFILES)
+
+distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+dist distdir:
+ $(MAKE) update-po
+ @$(MAKE) dist2
+# This is a separate target because 'update-po' must be executed before.
+dist2: $(DISTFILES)
+ dists="$(DISTFILES)"; \
+ if test "$(PACKAGE)" = "gettext-tools"; then \
+ dists="$$dists Makevars.template"; \
+ fi; \
+ if test -f $(srcdir)/ChangeLog; then \
+ dists="$$dists ChangeLog"; \
+ fi; \
+ for i in 0 1 2 3 4 5 6 7 8 9; do \
+ if test -f $(srcdir)/ChangeLog.$$i; then \
+ dists="$$dists ChangeLog.$$i"; \
+ fi; \
+ done; \
+ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
+ for file in $$dists; do \
+ if test -f $$file; then \
+ cp -p $$file $(distdir); \
+ else \
+ cp -p $(srcdir)/$$file $(distdir); \
+ fi; \
+ done
+
+update-po: Makefile
+ $(MAKE) $(DOMAIN).pot-update
+ test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
+ $(MAKE) update-gmo
+
+# General rule for updating PO files.
+
+.nop.po-update:
+ @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
+ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
+ tmpdir=`pwd`; \
+ echo "$$lang:"; \
+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+ echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
+ cd $(srcdir); \
+ if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
+ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
+ rm -f $$tmpdir/$$lang.new.po; \
+ else \
+ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
+ :; \
+ else \
+ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
+ exit 1; \
+ fi; \
+ fi; \
+ else \
+ echo "msgmerge for $$lang.po failed!" 1>&2; \
+ rm -f $$tmpdir/$$lang.new.po; \
+ fi
+
+$(DUMMYPOFILES):
+
+update-gmo: Makefile $(GMOFILES)
+ @:
+
+Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
+ cd $(top_builddir) \
+ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
+ $(SHELL) ./config.status
+
+force:
+
+# Tell versions [3.59,3.63) of GNU make not to export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
--- /dev/null
+# Makefile variables for PO directory in any package using GNU gettext.
+
+# Usually the message domain is the same as the package name.
+DOMAIN = $(PACKAGE)
+
+# These two variables depend on the location of this directory.
+subdir = po
+top_builddir = ..
+
+# These options get passed to xgettext.
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+
+# This is the copyright holder that gets inserted into the header of the
+# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
+# package. (Note that the msgstr strings, extracted from the package's
+# sources, belong to the copyright holder of the package.) Translators are
+# expected to transfer the copyright for their translations to this person
+# or entity, or to disclaim their copyright. The empty string stands for
+# the public domain; in this case the translators are expected to disclaim
+# their copyright.
+COPYRIGHT_HOLDER = The Enlightenment Team
+
+# This is the email address or URL to which the translators shall report
+# bugs in the untranslated strings:
+# - Strings which are not entire sentences, see the maintainer guidelines
+# in the GNU gettext documentation, section 'Preparing Strings'.
+# - Strings which use unclear terms or require additional context to be
+# understood.
+# - Strings which make invalid assumptions about notation of date, time or
+# money.
+# - Pluralisation problems.
+# - Incorrect English spelling.
+# - Incorrect formatting.
+# It can be your email address, or a mailing list address where translators
+# can write to without being subscribed, or the URL of a web page through
+# which the translators can contact you.
+MSGID_BUGS_ADDRESS = enlightenment-intl@lists.sourceforge.net
+
+# This is the list of locale categories, beyond LC_MESSAGES, for which the
+# message catalogs shall be used. It is usually empty.
+EXTRA_LOCALE_CATEGORIES =
--- /dev/null
+# List of source files containing translatable strings.
+src/about.c
+src/aclass.c
+src/actions.c
+src/alert.c
+src/backgrounds.c
+src/borders.c
+src/buttons.c
+src/comms.c
+src/config.c
+src/container.c
+src/coords.c
+src/cursors.c
+src/desktops.c
+src/dialog.c
+src/ecompmgr.c
+src/events.c
+src/focus.c
+src/fx.c
+src/groups.c
+src/handlers.c
+src/hints.c
+src/iclass.c
+src/iconify.c
+src/ipc.c
+src/main.c
+src/magwin.c
+src/menus-misc.c
+src/menus.c
+src/mod-trans.c
+src/pager.c
+src/session.c
+src/settings.c
+src/setup.c
+src/slideout.c
+src/snaps.c
+src/sound.c
+src/systray.c
+src/tclass.c
+src/theme.c
+src/tooltips.c
+src/windowmatch.c
+
+# Strings in configuration files
+config/strings.c
--- /dev/null
+# Special Makefile rules for English message catalogs with quotation marks.
+
+DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
+
+.SUFFIXES: .insert-header .po-update-en
+
+en@quot.po-update: en@quot.po-update-en
+en@boldquot.po-update: en@boldquot.po-update-en
+
+.insert-header.po-update-en:
+ @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
+ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
+ tmpdir=`pwd`; \
+ echo "$$lang:"; \
+ ll=`echo $$lang | sed -e 's/@.*//'`; \
+ LC_ALL=C; export LC_ALL; \
+ cd $(srcdir); \
+ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
+ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
+ rm -f $$tmpdir/$$lang.new.po; \
+ else \
+ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
+ :; \
+ else \
+ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
+ exit 1; \
+ fi; \
+ fi; \
+ else \
+ echo "creation of $$lang.po failed!" 1>&2; \
+ rm -f $$tmpdir/$$lang.new.po; \
+ fi
+
+en@quot.insert-header: insert-header.sin
+ sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
+
+en@boldquot.insert-header: insert-header.sin
+ sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
+
+mostlyclean: mostlyclean-quot
+mostlyclean-quot:
+ rm -f *.insert-header
--- /dev/null
+# This is the Bulgarian locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Viktor Kojouharov (vkojouharov _ïðè_ gmail òî÷êà êîì), 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.7\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2004-09-14 20:43-0300\n"
+"Last-Translator: Viktor Kojouharov\n"
+"Language-Team: Bulgarian\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=cp1251\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Çà Enlightenment %s"
+
+#: src/about.c:46
+#, fuzzy, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Äîáðå äîøëè â %s âåðñèÿ\n"
+"íà àäìèíèñòðàòîðà íà ïðîçîðöè Enlighenment.\n"
+"Enlightenment å âñå îùå ïîä ñèëíî ðàçðàáîòâàíå, íî\n"
+"íèå ñìå ñå îïèòàëè çà ïðåìàõíåì âñè÷êè ãðåøêè êîèòî\n"
+"ñìå íàìåðèëè. Àêî íàìåðèòå ãðåøêà âúâ ïðîãðàìàòà,\n"
+"íå ñå êîëåáàéòå äà íè êàæåòå.\n"
+"Âèæòå \"Ïîìîù\" çà èíôîðìàöèÿ êàê\n"
+"äà ñå âêëþ÷èòå â ïîùåíñêèÿò ñïèñúê\n"
+"Òîçè êîä å àêòóàëèçèðàí çà ïîñëåäíî íà:\n"
+"%s\n"
+"\n"
+"Óñïåõ. Íàäÿâàìå ñå äà âè õàðåñà ïðîãðàìàòà.\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u îòïðàòêè îñòàâàò\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Èìà ãðåøêà ïðè èçïúëíåíèå íà ïðîãðàìàòà:\n"
+"%s\n"
+"Ïðîãðàìàòà íå ìîæå äà áúäå ïóñíàòà,\n"
+"çàùîòî ôàéëúò íå ñúùåñòâóâà.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Èìà ãðåøêà ïðè èçïúëíåíèå íà ïðîãðàìàòà:\n"
+"%s\n"
+"Ïðîãðàìàòà íå ìîæå äà áúäå ïóñíàòà.\n"
+"Íàé-âåðîÿòíî çàùîòî ïðîãðàìàòà íå ñå íàìèðà\n"
+"â ïúòåêàòà íà âàøàòà îáâèâêà (%s). Ïðåäëàãàìå âè äà ïðî÷åòåòå\n"
+"ïúêîâîäñòâîòî íà îáâèâêàòà çà äà ðàçáåðåòå êàê\n"
+"äà ïðîìåíèòå ïúòåêàòà çà ñòàðòèðàùèòå ôàéëîâå.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Èìà ãðåøêà ïðè èçïúëíåíèå íà ïðîãðàìàòà:\n"
+"%s\n"
+"Íå ñå çíàå çàùî ïðîãðàìàòà íå å ñòàðòèðàëà. Ôàéëúò ñúùåñòâóâà,\n"
+"è âèå èìàòå ïðàâà äà ãî ñòàðòèðàòå. \n"
+"Òðàáâà äà ðàçáåðåòå ñàìè çàùî ñòàâà òàêà.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Èìà ãðåøêà ïðè èçïúëíåíèå íà ïðîãðàìàòà:\n"
+"%s\n"
+"Ïðîãðàìàòà íå ìîæå äà áúäå ïóñíàòà.\n"
+"Ôàéë äåéñòâèòåëíî ñóùåñòâóâà, ôàéë å, íî âèå\n"
+"íå ìîæåòå äà ãî ñòàðòèðàòå, çàùîòî íÿìàòå òåçè ïðàâà.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Èìà ãðåøêà ïðè èçïúëíåíèå íà ïðîãðàìàòà:\n"
+"%s\n"
+"Ïðîãðàìàòà íå ìîæå äà áúäå ïóñíàòà,\n"
+"çàùîòî ôàéëúò âñúùíîñò å äèðåêòîðèÿ.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Èìà ãðåøêà ïðè èçïúëíåíèå íà ïðîãðàìàòà:\n"
+"%s\n"
+"Ïðîãðàìàòà íå ìîæå äà áúäå ïóñíàòà,\n"
+"çàùîòî ôàéëúò íå å îáè÷àåí.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Ãðåøêà íà Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Äèàëîã çà ñúîáùåíèÿ íà Enlightenment"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Èãíîðèðàéòå òîâà"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Ðåñòàðòèðàéòå Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Èçëåçòå îò Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Âíèìàíèå !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Äà"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Èíôîðìàöèÿ çà ôîíà:\n"
+"Èìå: %s\n"
+"Ôàéë: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-ÏÐÀÇÍÎ-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Áåç\n"
+"ôîí"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Íåèçïîëçâàíè ôîíîâå ñå îñâîáîæäàâàò ñëåä %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Èçïîëçâàé êàðòèíà çà ôîíà"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Ïîääúðæàé ìàùàáà"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Íàñòèëè êàðòèíàòà âúðõó ôîíà"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Ïðåìåñòè îòïðåä\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Óäâîè\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Ïðåìàõíè\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Èçòðèé ôàéëà\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Ïðîïîðöèè\n"
+"è\n"
+"ìàùàá\n"
+"íà\n"
+"êàðòèíàòà\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Öâÿò íà ôîíà\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "×åðâåíî:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Çåëåíî:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Ñèíüî:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Ïðåäâàðèòåëíî ñêàíèðàéòå"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Ñîðòèðàé ïî ôàéë"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "èëè ïî àòðèáóò"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "èëè ïî êàðòèíà"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Èçïîëçâàé dithering â Hi-Colour"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Ôîíúò íå ñå ñìåíÿ îò òåìàòà"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Ôîí"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Íàñòðîéêè íà ôîí"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Å: Ôîí\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Ãðåøêà íà Å IPC"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Ïîëó÷åíî å íåèçâåñòíî ñúîáùåíèå îò êëèåíòà.\n"
+"Èìå íà êëèåíòà: %s\n"
+"Âåðñèÿ íà êëèåíòà: %s\n"
+"Ñúîáùåíèå:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: èãíîðèðàìå åêñòðà äàííè â \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: â \"%s\" ëèïñâàò íóæíèòå äàííè\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Ïðåäóïðåæäåíèå: íåâúçìîæíî å äà ñå îïðåäåëè êàêâî äà ñå ïðàâè\n"
+"ñúñ ñëåäíèÿò òåêñò â òåêóùîòî îïðåäåëåíèå Extras:\n"
+"%s\n"
+"Ùå ñå èãíîðèðà è ïðîäúëæè...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Ïðåäóïðåæäåíèå: Êîíôèãóðàöèîííà ãðåøêà â %s áëîê.\n"
+"Ðåçóëòàòúò å ñúìíèòåëåí...\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "ÃÐÅØÊÀ âúâ âåðñèÿòà íà òåìàòà"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Ðåñòàðòèðàéòå \"ïî ïîäðàçáèðàíå\""
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Ïðåêúñíåòå è èçëåçòå"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ÃÐÅØÊÀ:\n"
+"\n"
+"Êîíôèãóðàöèÿòà íà òåìàòà êîÿòî ïóñêàòå å íåñúâìåñòèìà.\n"
+"Íåéíàòà êîíôèãóðàöèîííà ðåâèçèÿ å %i, à òðÿáâà\n"
+"äà áúäå ìàðêèðàíà êàòî ðåâèçèÿ %i\n"
+"\n"
+"Ìîëÿ, ñâúðæåòå ñå ñ àâòîðà èëè ðàçðàáîò÷èêà è ãè\n"
+"óâåäîìåòå, ÷å àêî èñêàò òåìèòå èì äà ôóíêöèîíèðàò\n"
+"ñ òàçè âåðñèÿ íà Enlightenment, òðÿáâà äà ÿ àêòóàëèçèðàò\n"
+"äî òåêóùèòå íàñòðîéêè, è ïîñëå äà ñúîòâåòñòâàò\n"
+"ðåâèçèîííèòå íîìåðà.\n"
+"\n"
+"Àêî ðåâèçèÿòà íà òåìàòà å ïî-ãîëÿìà îò òàçè íà Enlightenment,\n"
+"ñèãóðíî íå ñòå ïîäíîâÿâàëè Enlightenment íàñêîðî, à òàçè òåìà\n"
+"ñå âúçïîëçâà îò íîâè ñâîéñòâà â íîâàòà-âåðñèÿ.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment ñòàðòèðà..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Íàñòðîéêè çà ôîêóñà"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Çàòâîðè"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Ñúçäàé íîâ Iconbox"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Ðàçìåð íà èêîíàòà: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Ïðîçðà÷åí ôîí"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Ñêðèè âúòðåøíàòà ðàìêà"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Ðèñóâàé áàçîâàòà êàðòèíà çàä èêîíèòå"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Ñêðéé ïëúçãà÷èòå êîãàòî íå ñà íóæíè"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Àâòîìàòè÷íî ïðîìåíåòå ðàçìåðà çà äà ñå ñúáåðàò èêîíèòå"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Èçðàâíÿâàíå íà îïîðàòà ïðè àâòîìàòè÷íî ïðîìåíÿíå íà ðàçìåðà:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Îðèåíòàöèÿ:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Ñòðàíà íà ïëúçãà÷à:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Ñòðåëêè:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Õîðèçîíòàëíà"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Ëÿâà / îòãîðå"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr " íà÷àëîòî"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Âåðòèêàëíà"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Äÿñíà / äîëó"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Â 2-òà êðàÿ"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Â êðàÿ"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Íèêúäå"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Ïîêàçâàé èìåíà íà èêîíè"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Àíèìèðàé êîãàòî ñêðèâàòå êúì òîçè Iconbox"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Ïîâåäåíèå íà èìåíàòà íà èêîíè\n"
+"(àêî åäíàòà îïåðàöèÿ íå óñïåå, îïèòàé ñëåäâàùàòà):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Ñíèìàé ïðîçîðöè, Èçïîëçâàé èêîíè îò ïðîãðàìè, èçïîëçâàé Å èêîíè"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Èçïîëçâàé èêîíè îò ïðîãðàìè, Èçïîëçâàé Å èêîíè, Ñíèìàé ïðîçîðö"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Èçïîëçâàé Å èêîíè, Ñíèìàé ïðîçîðöè"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"E: Iconbox\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Çàäðúæòå áóòîíà íà ìèøêàòà è ìåñòåòå ìèøêàòà\n"
+"çà äà ìîæåòå äà ìåñòèòå îëåòî\n"
+"íàïðåä-íàçàä.\n"
+"Ùòðàêíåòå ñ äåñíèÿ áóòîí çà ñïèñúê ñ âñè÷êè\n"
+"ðàáîòíè ïîëåòà è òåõíèòå ïðèëîæåíèÿ.\n"
+"Ùòðàêíåòå ñúñ ñðåäíèÿ áóòîí çà ñïèñúê ñ âñè÷êè\n"
+"ðàáîòåùè â ìîìåíòà ïðèëîæåíèÿ.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Òîâà å ãëàâíîòî ïîëå.\n"
+"Íå ìîæåòå äà ãî ìúðäàòå.\n"
+"Ùòðàêíåòå ñ äåñåí áóòîí çà ñïèñúê ñ âñè÷êè\n"
+"ðàáîòíè ïîëåòà è òåõíèòå ïðèëîæåíèÿ.\n"
+"Ùòðàêíåòå ñúñ ñðåäíèÿ áóòîí çà ñïèñúê ñ âñè÷êè\n"
+"ðàáîòåùè â ìîìåíòà ïðèëîæåíèÿ.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Ùòðàêíåòå òóê çà äà âäèãíåòå òîâà\n"
+"ïîëå íàé-ãîðå.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Ùòðàêíåòå òóê çà äà ñâàëèòå òîâà\n"
+"ïîëå íàé-äîëó.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Áðîé íà âèðòóàëíè ðàáîòíè ïîëåòà:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Ïëúçãàé ïîëåòàòà êîãàòî ãè ñìåíÿòå"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Áúðçèíà íà ïëúçãàíå íà ïîëåòî: (áàâíî)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Çàñòúïåòå ïîëåòàòà"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Ïîêàçâàé Dragbar-úò"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Ïîçèöèÿ íà Dragbar-úò"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Îòãîðå"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Îòäîëó"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Ëåâèÿò"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Äåñíèÿò"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Ïîëå"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Íàñòðîéêè çà ìíîãî ðàáîòíè ïîëåòà"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ìíîãî ðàáîòíè ïîëåòà\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Ðàçìåð íà âèðòóàëíîòî ïîëå:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Çàñòúïâàé âèðòóàëíèòå ïîëåòà"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "\"Ñúïðîòèâëåíèå\" íà ðúáîâåòå íà åêðàíà:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Íàñòðîéêè íà âèðòóàëíè ïîëåòà"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr "Å: Âèðòóàëíè ïîëåòàÄèàëîã çà íàñòðîéêè\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Ïðèëîæè"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Ãðåøêà â íàñòðîéêèòå íà X-ñúðâúðà"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ÔÀÒÀËÍÀ ÃÐÅØÊÀ:\n"
+"\n"
+"Âàøèÿò X-ñúðâúð íå ïîääúðæà ðàñøèðåíèå Shape.\n"
+"Ðàçøèðåíèåòî å íóæíî íà Å äà ðàáîòè.\n"
+"\n"
+"Âúçìîæíî å âàøèÿò X-ñúðâúð äà å ïðåêàëåíî ñòàð èëè\n"
+"íåïðàâèëíî êîíôèãóðèðàí.\n"
+"\n"
+"Èçëèçà ñå.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Ôîêóñúò ñëåäè ïîêàçàëåöà"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Ôîêóñúò ñëåäè ïîêàçàëåöà íåáðåæíî"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Ôîêóñúò ñëåäè ùðàêâàíèÿ íà ìèøêàòà"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Ùðàêâàíå âúðõó ïðîçîðåö âèíàãè ãî âäèãà"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Âñè÷êè íîâè ïðîçîðöè ïúðâè âçèìàò ôîêóñà"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Ñàìî íîâè äèàëîãîâè ïðîçîðöè âçèìàò ôîêóñà"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Ñàìî íîâè äèàëîçè ÷èèòî ïðèòåæàòåëè ñà ôîêóñèðàíè ïîëó÷àâàò ôîêóñà"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Ôîêóñèðàé ïðîçîðåöà äîêàòî ñìåíÿòå"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Ïîêàçàëåöúò íà ìèøêàòà ñå ïðàùà ïðè ïðîçîðåöà êàòî ñå ñìåíè ôîêóñà"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Ïîêàçàëåöúò íà ìèøêàòà ñå ïðàùà ïðè ïðîçîðåöà êàòî ñå ñìåíè ôîêóñà"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Ïîêàçâàé è èçïîëçâàé ñïèñúêúò çà ôîêóñ"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Âêëþ÷âàé çàëåïåíè ïðîçîðöè â ñïèñúêúò çà ôîêóñ"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Âêëþ÷âàé íàâèòè ïðîçîðöè â ñïèñúêúò çà ôîêóñ"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Âêëþ÷âàé ñêðèòè ïðîçîðöè â ñïèñúêúò çà ôîêóñ"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Âêëþ÷âàé íàâèòè ïðîçîðöè â ñïèñúêúò çà ôîêóñ"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Ôîêóñèðàé ïðîçîðåöà äîêàòî ñìåíÿòå"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Âäèãàé ïðîçîðåöà ñëåä ñìÿíàòà íà ôîêóñ"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Ïîêàçàëåöúò íà ìèøêàòà ñå ïðàùà ïðè ïðîçîðåöà ñëåä ñìÿíà íà ôîêóñà"
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Ïîâåäåíèå íà êàðòèíèòå âúâ Ôîêóñíàòà ëèñòà\n"
+"(àêî åäíàòà îïåðàöèÿ ñå ïðîâàëè, äà ñå ïðîáâà ñúñ ñëåäâàùàòà):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "Ïúðâî Å èêîíè, ïîñëå èêîíè íà ïðîãðàìàòà"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Ïúðâî èêîíè íà ïðîãðàìàòà, ïîñëå Å èêîíè"
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Íèêîãà íå ôîêóñèðàé"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Íàñòðîéêè çà ôîêóñà"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ôîêóñ\n"
+"Äèàëîã çà íàñòðîéêèþ\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Åôåêòè"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Âêëþ÷è åôåêò: Äúæäîâíè êàïêè"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Âúëíåíèå"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Âúëíè"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Íàñòðîéêè íà ñïåöèàëíèòå åôåêòè"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ñïåöèàëíè åôåêòè\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Èçáîð íà ãðóïà çà ïðîçîðöè"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment Window Group\n"
+"Äèàëîã çà èçáèðàíå\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Ãðåøêà íà Window Group"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Â ìîìåíòà òîçè ïðîçîðåö íå ïðèíàäëåæè íà íèêîÿ ãðóïà. \n"
+" Ìîæåòå äà ðàçðóøàâàòå ãðóïè, èëè äà ìàõàòå ïðîçîðöè îò ãðóïè \n"
+" ïðåç ïðîçîðåö êîèòî ïðèíàäëåæè ïîíå íà åäíà ãðóïà.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Â ìîìåíòà íå ñúùåñòâóâàò ãðóïè èëè òîçè ïðîçîðåö \n"
+" âå÷å ïðèíàäëåæè íà âñè÷êè âúçìîæíè ãðóïè. \n"
+" Ïúðâî òðÿáâà äà ñúçäàäåòå íîâà ãðóïà. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Â ìîìåíòà íå ñúùåñòâóâàò ãðóïè.\n"
+" Ïúðâî òðÿáâà äà ñúçäàäåòå ãðóïà. \n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Èçáåðåòå ãðóïàòà çà íàñòðîéêè: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Ñëåäíèòå íàñòðîéêè ñà \n"
+" çà âñè÷êè ãðóïè: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Ñìÿíà íà ðàìêîâ ñòèë"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Ñêðèâàíå"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Óáèâàíå"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Ìúðäàíå"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Âäèãàíå/Ñìúêâàíå"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Çàëåïÿâàíå"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Íàâèâàíå"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Íàñòðîéêè íà ãðóïè"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ãðóïè îò ïðîçîðöè\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Â ìîìåíòà òîçè ïðîçîðåö íå ïðèíàäëåæè íà íèêîÿ ãðóïà. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr "Íàñòðîéêè çà îòäåëíà ãðóïà"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr "Ãëîáàëíè íàñòðîéêè"
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Ðàçìåíè ìÿñòîòî íà ïðîçîðöèòå"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Ãðóïà %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Íàñòðîéêè \"ïî ïîäðàçáèðàíå\" çà ãðóïîâ êîíòðîë"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Å: Ãðóïîâ êîíòðîë ïî ïîäðàçáèðàíå\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Èçáåðåòå ãðóïàòà â êîÿòî òîçè ïðîçîðåö äà ïðèíàäëåæè: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Èçáåðåòå ãðóïàòà, îò êîÿòî äà ìàõíåòå ïðîçîðåöà. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Èçáåðåòå ãðóïàòà, êîÿòî äà ðàçòðîãíåòå "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment å èçïúëíèë íåëåãàëíî óêàçàíèå.\n"
+"\n"
+"Íàé-âåðîÿòíî ñå ñëó÷âà çàùîòî èìàòå èíñòàëèðàí è ïóñíàò\n"
+"äâîè÷åí ôàéë íà Å êîéòî å êîìïèëèðàí çà ìîäåë ïðîöåñîð\n"
+"íåñúâìåñòèì 100%% ñ âàøèÿ. Ìîëÿ, èëè èíñòàëèðàéòå ïðàâèëíèÿò ïàêåò\n"
+"çà âàøàòà ñèñòåìà, èëè ïðåêîìïèëèðàéòå Å è ïî âúçìîæíîñò\n"
+"âñè÷êè ïîääúðæàùè áèáëèîòåêè êîèòî ñòå âçåëè âúâ äâîè÷åí ôîðìàò.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment å ïðè÷èíèë Floating Point èçêëþ÷åíèå.\n"
+"\n"
+"Òîâà îçíà÷àâà, ÷å Enlightenment èëè ïîääúðæàùèòå áèáëèîòå÷íè ïðîãðàìè "
+"êîèòî\n"
+"âèêà ñà íàïðàâèëè íåïðàâèëíà ìàòåìàòè÷åñêà îïåðàöèÿ (íàé-âåðîÿòíî ñà\n"
+"ðàçäåëèëè íà íóëà). Òîâà íàé-âåðîÿòíî å ãðåøêà â ïðîãðàìàòà. Ïðåïîðú÷èòåëíî\n"
+"å äà ðåñòàðòèðàòå ñåãà. Àêî èñêàòå äà ïîìîãíåòå â îòñòðàíÿâàíåòî íà òàçè "
+"ãðåøêà,\n"
+"ìîëÿ êîìïèëèðàéòå Å ñ debug ñèìâîëè è ïîñëå ãî ïóñíåòå ïðåç gdb çà äà "
+"ïðîñëåäèòå\n"
+"êîãà å óìðÿë è äà èçïðàòèòå ïîëåçíà èíôîðìàöèÿ ñ èíôîðìàöèÿ çà "
+"ïðîñëåäÿâàíåòî.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment å ïðè÷èíèë Segment Violation (Segfault)\n"
+"\n"
+"Òîâà îçíà÷àâà, ÷å Enlightenment èëè ïîääúðæàùèòå áèáëèîòå÷íè ïðîãðàìè "
+"êîèòî\n"
+"âèêà ñà îñúùåñòâèëè äîñòúï äî ÷àñò îò ñèñòåìíàòà ïàìåò çà êîÿòî\n"
+"íÿìàò ðàçðåøåíèå. Òîâà íàé-âåðîÿòíî å ãðåøêà â ïðîãðàìàòà. Ïðåïîðú÷èòåëíî\n"
+"å äà ðåñòàðòèðàòå ñåãà. Àêî èñêàòå äà ïîìîãíåòå â îòñòðàíÿâàíåòî íà òàçè "
+"ãðåøêà,\n"
+"ìîëÿ êîìïèëèðàéòå Å ñ debug ñèìâîëè è ïîñëå ãî ïóñíåòå ïðåç gdb çà äà "
+"ïðîñëåäèòå\n"
+"êîãà å óìðÿë è äà èçïðàòèòå ïîëåçíà èíôîðìàöèÿ ñ èíôîðìàöèÿ çà "
+"ïðîñëåäÿâàíåòî.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment å ïðè÷èíèë Bus ãðåøêà.\n"
+"\n"
+"Ïðåïîðú÷èòåëíî å äà ïðîâåðèòå îáîðóäâàíåòî è ÎÑ èíñòàëàöèÿòà.\n"
+"Ïðåêàëåíî ñòðàííî å Å äà ïðè÷èíè Bus ãðåøêà íà ðàáîòåùî\n"
+"îáîðóäâàíå.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "ActionClass Ãðåøêà!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Îïöèè çà Iconbox"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Íàñòðîéêè çà Iconbox"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Ñúîáùåíèå"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Âêëþ÷è Êîìïîçèòîðà"
+
+#: src/ipc.c:1480
+#, fuzzy
+msgid "sound"
+msgstr "Çâóê"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Ïîìîù çà êîìàíäèòå íà Enlightenment IPC\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"\"help all\": îïèñàíèå çà âñè÷êè êîìàíäè\n"
+"\"help <êîìàíäà>\": îïèñàíèå çà äàäåíà êîìàíäà\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Äîñòúïíè êîìàíäè:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr "\"help full\": ïúëíî îïèñàíèÿ çà âñÿêà êîìàíäà\n"
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "\"help <êîìàíäà>\": îïèñàíèå çà äàäåíà êîìàíäà\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr "<êîìàíäà> : <îïèñàíèå>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ***** ÃÐÅØÊÀ ***** !!!!!!!!\n"
+"\n"
+"Íåâúçìîæíî å äà ñå íàìåðè \"utility\" ïðîãðàìàòà íà Enlightenment â:\n"
+"\n"
+"%s\n"
+"Ãðåøêàòà å ôàòàëíà - Enlightenment íå ìîæå äà ïðîäúëæè äà ðàáîòè.\n"
+"Ìîëÿ, êîðèãèðàéòå òàçè ñèòóàöèÿ è ñå îñèãóðåòå ÷å å èíñòàëèðàíà\n"
+"ïðàâèëíî.\n"
+"\n"
+"Ïðè÷èíàòà ïîðàäè êîÿòî ïðîãðàìàòà ëèïñâà ìîæå äà áúäå â íåïðàâèëíî\n"
+"ñúçäàäåíè ïàêåòè, íÿêîé ðú÷íî å èçòðèë ïðîãðàìàòà èëè å èìàëî\n"
+"ãðåøêà ïðè èíñòàëèðàíåòî íà Enlightenment.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ***** ÃÐÅØÊÀ ***** !!!!!!!!\n"
+"\n"
+"Íåâúçìîæíî å äà ñå ïóñíå \"utility\" ïðîãðàìàòà íà Å:\n"
+"\n"
+"%s\n"
+"Ãðåøêàòà å ôàòàëíà - Enlightenment íå ìîæå äà ïðîäúëæè äà ðàáîòè.\n"
+"Ìîëÿ, êîðèãèðàéòå òàçè ñèòóàöèÿ è ñå îñèãóðåòå ÷å å èíñòàëèðàíà\n"
+"ïðàâèëíî.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Íåêîðåêòíà òåìà"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Ðàìêè:"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Ëèñò çà ïðîïóñêàíå íà ïðîçîðöè"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Îòèäè íà òîâà ïîëå"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Ïîëå %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Ïîêàæè/ñêðèé òàçè ãðóïà"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Èãíîðèðàé òàçè ãðóïà"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Ãðóïà %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Àíèìèðàé ìåíþòàòà"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Âèíàãè ïîêàçâàé ìåíþòàòà âúðõó åêðàíà"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Çàñòúïâàé ïîêàçàëåöà ñëåä äâèæåíèå íà ìåíþòàòà"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Ìåíþòà:"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Äðóãè íàñòðîéêè"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ôîêóñ\n"
+"Äèàëîã çà íàñòðîéêèþ\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Ïðîçðà÷íîñò íà òåìàòà: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Ïðîìåíèòå ìîæå äà èçèñêâàò ðåñòàðòèðàíå:"
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Ðàìêè:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Ìåíþòà:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Îòêðîÿâàíèÿ:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "Å Ïðèñïîñîáëåíèÿ:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E Äèàëîçè:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Ñúâåòè:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Ïëúòåí"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Ñòúêëî"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Ïðîçðà÷íîñò íà òåìàòà: %2d"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Íàñòðîéêè çà èçáèðàòåëíà ïðîçðà÷íîñò"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Èçáèðàòåëíà ïðîçðà÷íîñò\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Îïöèè çà ïðîçîðåöà"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Ñêðèé"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Óíèæòîæè"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Çàëåïè / Îòëåïè"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Îïöèè çà îëåòî"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Íàñòðîéêè çà Pager-à..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Èçêëþ÷âàíå íà ñíèìêè íà åêðàíà"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Íèñêî êà÷åñòâî"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Âèñîêî êà÷åñòâî"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Âêëþ÷âàíå íà ñíèìêè íà åêðàíà"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Ñêîðîñò íà ñêàíèðàíå íà Pager-a:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "ëèíèè â ñåêóíäà"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Âêëþ÷è Pager-à"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Âúëíåíèå"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Ïðàâè ìàëêè èçîáðàæåíèÿ íà åêðàíà"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Ïëàâíè âèñîêîêà÷åñòâåíè ñíèìêè â ñíèìêîâ ðåæèì"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Óâåëè÷àâàé ïðîçîðöèòå â Pager-à êîãàòî ìèøêàòà ïðåìèíàâà íàä òÿõ"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Ïîêàçâàé çàãëàâèåòî íà ïðîçîðåöà, êîãàòî ìèøêàòà ìèíå íàä íåãî"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Íåïðåêúñíàòî ñêàíèðàéòå åêðàíà çà ïðîìåíè"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Êîé áóòîí íà ìèøêàòà èçáèðà è âëå÷å ïðîçîðöè:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Ñðåäíèÿò"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Êîé áóòîí íà ìèøêàòà èçáèðà ðàáîòíè ïîëåòåà:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Êîé áóòîí íà ìèøêàòà äà ïîêàçâà ìåíþòî íà Pager-a:"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Íàñòðîéêè íà Pager-à"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Íàñòðîéêè íà Pager-à"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Å: Ïîëå è ìÿñòî\n"
+"Äèàëîã çà íàñòðîéêè íà Pager-à\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ÃÐÅØÊÀ!\n"
+"\n"
+"Ìàé ñå èçãóáè ñåñèéíèÿò àäìèíèñòðàòîð.\n"
+"Åëà òóêà àäìèíèñòðàòîðå ... åëà òóóóóêàààà ... èñêàø ëè áèñêâèòêà?\n"
+"ßâíî íÿìà äà äîéäå. Ùå ïðîäúëæèì áåç íåãî.\n"
+"\n"
+"Ùå îöåëåÿ íÿêàê.\n"
+"\n"
+"\n"
+"... Íàäÿâàì ñå.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Ñèãóðíè ëè ñòå?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Ñèãóðíè ëè ñòå ÷å èñêàòå äà èçëåçíåòå ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Äà, èçêëþ÷è êîìïþòúðà "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Äà, ðåñòàðòèðàé êîìïþòúðà "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Äà, èçëåç "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Íå "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Ðàçðåøàâàé Èçõîäåí Äèàëîã"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Ðàçðåøàâàé Ðåñòàðòèðàíå/Èçêëþ÷âàíå ïðè Èçõîä"
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Äðóãè íàñòðîéêè"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Äðóãè íàñòðîéêè"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ôîêóñ\n"
+"Äèàëîã çà íàñòðîéêèþ\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Ðåæèìè çà äâèæåíèå:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Ðåæèìè çà ïðîìÿíà íà ðàçìåðà:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Òåõíè÷åñêè"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Êóòèÿ"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Çàòúìíåí"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Ïîëó-ïëúòåí"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Ïîëóïðîçðà÷åí"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+"Äâèæåíèå/ïðîìÿíà íà ðàçìåðà:\n"
+"Ïîçèöèÿ íà ãåîìåòðè÷íàòà èíôîðìàöèÿ:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Öåíòúð íà ïðîçîðåöà (Ðåæèì O/T/B)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Â úãúëà íà åêðàíà"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Íå ïîêàçâàéòå"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Ïîäíîâè ïðîçîðåöà äîêàòî ñå äâèæè"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Ðàçìåð"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Íàñòðîéêè çà äâèæåíèå è ïðîìÿíà íà ðàçìåðà"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Å: äâèæåíèå è ïðîìÿíà íà ðàçìåðà\n"
+"Äèàëîã çà íàñòðîéêè íà ðåæèìèòå\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Äèàëîãîâè ïðîçîðöè ñå ïîÿâÿâàò çàåäíî ñ ïðèòåæàòåëèòå èì"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Ïðåìåñòâàé åêðàíà äî ïîëåòî â êîåòî ñå ïîêàçâà äèàëîãúò"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Ñëàãàéòå ïðîçîðöèòå ðú÷íî"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Ñëàãàé ïðîçîðöèòå ïîä ìèøêàòà"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Âêëþ÷âàé íàâèòè ïðîçîðöè â ñïèñúêúò çà ôîêóñ"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Ïëúçãàé ïðîçîðöèòå êîãàòî ñå ïîêàçâàò"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Ïëúçãàé ïðîçîðöèòå êîãàòî ÷èñòèòå"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Ðåæèì íà ïëúçãàíå"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Áúðçèíà íà ïëúçãàíå íà ïîÿâÿâàíå: (áàâíî)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Áúðçèíà íà ÷èñòåíå íà ïëúçãàíåòî: (áàâíî)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Àíèìèðàé çàâèâàíå è ðàçâèâàíå íà ïðîçîðöè"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Áúðçèíà íà íàâèâàíå íà ïðîçîðöè: (áàâíî)\n"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Èãíîðèðàé ñòðóêòóðèòå"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Âäèãíè ïðîçîðöè êîèòî ñà íà öÿë åêðàí"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Ñëàãàé ïðîçîðöèòå íà äðóãà ãëàâà ñëåä çàïúëâàíå"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Íàñòðîéêè çà ðàçïîëîæåíèå íà ïðîçîðöè"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ðàçïîëîæåíèå íà ïðîçîðöè\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Àâòîìàòè÷íî âäèãàéòå ïðîçîðöèòå"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Çàáàâÿíå ïðè àâòîìàòè÷íî âäèãàíå:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Çàáàâÿíå ïðè àâòîìàòè÷íî âäèãàíå:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Íàñòðîéêè çà àâòîìàòè÷íî âäèãàíå"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Å: Àâòîìàòè÷íî âäèãàíå\n"
+"íà ïðîçîðöè. Äèàëîã çà íàñòðîéêè\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Ðàçðåøàâàé header-è çà äèàëîçè"
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Ðàçðåøàâàé êàðòèíè íà áóòîíèòå"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Èçïîëçâàé saveunder-è çà íàìàëÿâàíå íà ãðåøêè"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Äðóãè íàñòðîéêè"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Äðóãè íàñòðîéêè"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Äðóãè\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Âêëþ÷è Êîìïîçèòîðà"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Ðàçðåøàâàé îáðúùàíåòî ïðåç ðúáîâåòå"
+
+#: src/settings.c:629
+#, fuzzy
+msgid "Fading Speed:"
+msgstr "Áúðçèíà íà èç÷åçâàíå\n"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Áåç ñåíêè"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Îñòðè ñåíêè"
+
+#: src/settings.c:654
+#, fuzzy
+msgid "Shadows Sharp2"
+msgstr "Îñòðè ñåíêè"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Ìåêè ñåíêè"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Âêëþ÷è Êîìïîçèòîðà"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Íàñòðîéêè çà êîìïîçèòîðà"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Êîìïîçèòîð\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Enlightenment ñòàðòèðà..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment íå ìîæå äà ñå ñâúðæå ñúñ Õ ñúðâúðà, íîìèíèðàí îò\n"
+"ïðîìåíëèâàòà íà âàøàòà îáâèâêà, DISPLAY, Âèå òðÿáâà äà íàãëàñèòå òàçè\n"
+"ïðîìåíëèâà çà äà ìîæå Å äà íàìåðè Õ ñúðâúð êúì êîéòî äà ñå ñâúðæå.\n"
+"Ìîæå áè âñå îùå íÿìàòå ðàáîòåù Õ ñúðâúð, èëè íÿìàòå ïðàâà äà ñå\n"
+"ñâúðæåòå ñúñ ñúðâúðà. Ìîëÿ óâåðåòå ñå, ÷å âñè÷êî å èçðÿäíî ïðåäè äà\n"
+"ïðîáâàòå ïàê. Ïóñíåòå Õ êàòî ïóñíåòå xdm èëè startx, èëè ñå ñâúðæåòå\n"
+"ñ âàøèÿò ñèñòåìåí àäìèíèñòðàòîð, èëè ïðî÷åòåòå ðúêîâîäñòâàòà íà Õ, xdm\n"
+"è startx ïðåäè äà ïðîäúëæèòåæèòå.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Äðóã Àäìèíèñòðàòîð íà Ïðîçîðöè âå÷å ðàáîòè"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Äðóã Àäìèíèñòðàòîð íà Ïðîçîðöè âå÷å ðàáîòè.\n"
+"\n"
+"Òðÿáâà äà ãî çàòâîðèòå çà äà ñòàðòèðàòå óñïåøíî Å.\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Ãðåøêà âåðñèÿ íà X-ñúðâúðà"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Èãíîðèðàé òàçè ãðåøêà"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"ÏÐÅÄÓÏÐÅÆÄÅÍÈÅ:\n"
+"Òîâà íå å Õ ñúðâúð. Âñúùíîñò ðàçáèðà Õ%i ïðîòîêîëà.\n"
+"Òîâà îçíà÷àâà, ÷å èëè Enlightenment íÿìà äà ôóíêöèîíèðà, èëè \n"
+"èëè íÿìà äà ãî ïðàâè ïðàâèëíî. Àêî ñúðâúðúò å ïî-íîâ îò Õ11, òî\n"
+"àâòîðúò íèòî èìà äîñòúï äî íåãî, íèòî å ÷óâàë çà íåãî.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Çàãëàâèå:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Èìå:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Êëàñ:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "×åðâåíî:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Êîìàíäà:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Ñëåäè ïðîìåíè"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Ìÿñòî"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Ñòèë íà ðàìêàòà"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Ðàçìåð"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Ïîëå"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Íàâèòî ïîëîæåíèå"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Çàëåïåíî ïîëîæåíèå"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Ñëîé íà íàòðóïâàíå"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Ëèñò çà ïðîïóñêàíå íà ïðîçîðöè"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Ïëúòíîñò"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Ñåíêè"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Ñòúêëî"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Ðåñòàðòèðàé ïðîãðàìàòà ïðè âëèçàíå"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Çàïîìíè ãðóïàòà íà òîçè ïðîçîðåö"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Çàïîìíåíè àòðèáóòè íà ïðîãðàìè"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Èçáåðåòå àòðèáóòèòå çà òîçè\n"
+"ïðîçîðåö çà êîéòî èñêàòå äà ñå\n"
+"ïîìíè îò ñåãà íàòàòúê\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Èçòðèé"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Çàïîìíåíè íàñòðîéêè..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Íåèçïîëçâàí(è)"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Íÿìà àêòèâíè ïðîçîðöè ñúñ çàïîìíåíè íàñòðîéêè."
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Íàñòðîéêè íà çàïîìíÿíå ..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Çàïîìíè íàñòðîéêèòå çà ïðîçîðöèòå"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Å: Çàïîìíåíè ïðîçîðöè\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Ãðåøêà ïðè çàïèñâàíå íà snap ôàéëà\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Ãðåøêà ïðè íàìèðàíå íà çâóêîâ ôàéë"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Ïðåäóïðåæäåíèå! Enlightenment íå å ìîãúë äà çàðåäè\n"
+"ñëåäíèÿ çâóêîâ ôàéë:\n"
+"%s\n"
+"Enlightenment ùå ïðîäúëæè äà ðàáîòè, íî ìîæå\n"
+"äà ïîãëåäíåòå âàøàòà êîíôèãóðàöèÿ.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Ãðåøêà ïðè ïóñêàíåòî íà çâóêà"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Çâóêúò å ïîçâîëåí â Enlightenment, íî å èìàëî ãðåøêà ïðè\n"
+"ñâúðçâàíåòî ñúñ çâóêîâèÿ ñúðâúð (Esound). Ïîääðúæêàòà íà çâóêúò\n"
+"ùå áúäå ñïðÿíà.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Âêëþ÷è çâóêîâå"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Çâóê"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Íàñòðîéêè íà çâóêà"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Çâóê\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "Ecursor Ãðåøêà!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Îïöèè çà ñèñòåìíàòà òàáëà"
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Íàñòðîéêè çà ñèñòåìíàòà òàáëà"
+
+#: src/theme.c:339
+#, fuzzy, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"Íÿìà íàìåðåíà òåìà â äèðåêòðîÿòà çà òåìè \"ïî ïîäðàçáèðàíå\":%s/themes/\n"
+"èëè â äèðåêòîðèÿòà íà ïîòðåáèòåëÿ:\n"
+"%s/themes/\n"
+"Áåçñìèñëåíî å äà ñå ïðîäúëæàâà.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Íåêîðåêòíà òåìà"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Äðóãè íàñòðîéêè"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ôîêóñ\n"
+"Äèàëîã çà íàñòðîéêèþ\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Ïîêàçâàé ñúâåòè"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Ïîêàçâàéòå ñúâåòè íà ãëàâíèÿò ïðîçîðåö"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Çàáàâÿíå íà ñúâåòèòå:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Ñúâåòè:"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Íàñòðîéêè çà ñúâåòâàíå"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Å: Ñúâåòâàíå\n"
+"Äèàëîã çà íàñòðîéêè\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i ðàáîòíè ïîëåòà"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Îòèäè íà òîâà ïîëå"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Îòèäè íà òîâà ïîëå"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Ìúðäàíå"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Îïöèè çà ïðîçîðåöà"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Ïîêàæè/ñêðèé òàçè ãðóïà"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Çàïîìíè ãðóïàòà íà òîçè ïðîçîðåö"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Çàòúìíåí"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Ðàçìåð"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Çàïîìíè ãðóïàòà íà òîçè ïðîçîðåö"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Õîðèçîíòàëíà"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Âåðòèêàëíà"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Îòèäè íà òîâà ïîëå"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Âêëþ÷âàíå íà ñíèìêè íà åêðàíà"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Íàâèòî ïîëîæåíèå"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Áóòîí"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Ùòðàêíåòå òóê çà äà âäèãíåòå òîâà\n"
+"ïîëå íàé-ãîðå.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Çàëåïè / Îòëåïè"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+"Ùðàêâàíå ñ ìèøêàòà âúðõó ïîëåòî ùå èçâúðøè\n"
+"ñëåäíèòå äåéñòâèÿ"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "ïîêàçâàíå íà ìåíþòî íà ïîòðåáèòåëÿ"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Ïîêàçâàíå íà Å ìåíþòî"
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Ïîêàçâàíå íà ìåíþòî çà íàñòðîéêè"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Ïîêàçâàíå íà ìåíþòî ñúñ ñïèñúê çàäà÷è"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Ïîêàçâàíå íà ìåíþòî íà ðàáîòíîòî ïîëå"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Ïîêàçâàíå íà ìåíþòî çà ãðóïè"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Îòèäè åäíî ïîëå íàçàä"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Îòèäè åäíî ïîëå íàïðåä"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr "Ôîí"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Îïöèè çà îëåòî"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i ïîëå"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Îòèäè íà òîâà ïîëå"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Îòèäè íà òîâà ïîëå"
+
+#: config/strings.c:86
+#, fuzzy
+msgid "Create Systray"
+msgstr "Çàòâîðè ñèñòåìíàòà òàáëà"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Èçëåçòå îò Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "ïîêàçâàíå íà ìåíþòî íà ïîòðåáèòåëÿ"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Íàñòðîéêè çà ôîêóñà"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Çà Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Ðåñòàðòèðàéòå"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Äà, èçëåç "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Èçïîëçâàé êàðòèíà çà ôîíà"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Íàñòðîéêè íà çàïîìíÿíå ..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Ëèñò çà ïðîïóñêàíå íà ïðîçîðöè"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Íàñòðîéêè çà ôîêóñà"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Ñòèë íà ðàìêàòà"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Ãðåøêà íà Window Group"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Çàïîìíè ãðóïàòà íà òîçè ïðîçîðåö"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Èçáåðåòå ãðóïàòà, îò êîÿòî äà ìàõíåòå ïðîçîðåöà. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Çàïîìíè ãðóïàòà íà òîçè ïðîçîðåö"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Èçáåðåòå ãðóïàòà â êîÿòî òîçè ïðîçîðåö äà ïðèíàäëåæè: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Çàëåïÿâàíå"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Îòãîðå"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Íèêîãà íå ôîêóñèðàé"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Íèêîãà íå ôîêóñèðàé"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Áóòîí"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Áóòîí"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Èçòðèé"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Ôîêóñúò ñëåäè ùðàêâàíèÿ íà ìèøêàòà"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Ðàçðåøàâàé îáðúùàíåòî ïðåç ðúáîâåòå"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Çàïîìíåíè àòðèáóòè íà ïðîãðàìè"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+#, fuzzy
+msgid "Epplets"
+msgstr "Âúëíåíèå"
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment ñòàðòèðà..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "Íàñòðîéêè çà ôîêóñà ..."
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Íàñòðîéêè çà äâèæåíèå è ïðîìÿíà íà ðàçìåðà ..."
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Íàñòðîéêè çà ðàçïîëîæåíèå íà ïðîçîðöè ..."
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Íàñòðîéêè çà ìíîãî ðàáîòíè ïîëåòà ..."
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Íàñòðîéêè íà âèðòóàëíè ïîëåòà ..."
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "Íàñòðîéêè íà Pager-à ..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Äðóãè íàñòðîéêè"
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Íàñòðîéêè çà àâòîìàòè÷íî âäèãàíå ..."
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Íàñòðîéêè çà ñúâåòâàíå ..."
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "Íàñòðîéêè íà çâóêà ..."
+
+#~ msgid "Group Settings ..."
+#~ msgstr "Íàñòðîéêè íà ãðóïèòå ..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "Íàñòðîéêè íà çàïîìíÿíå ..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Íàñòðîéêè çà ñïåöèàëíè åôåêòè ..."
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Íàñòðîéêè íà ôîí ..."
+
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Íàñòðîéêè çà òåìàòè÷íà ïðîçðà÷íîñò ..."
+
+#~ msgid "Composite Settings ..."
+#~ msgstr "Íàñòðîéêè çà êîìïîçèòîðà ..."
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Íàñòðîéêè íà çâóêà ..."
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Äðóãè íàñòðîéêè ..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Îáðàçåö íà íàâèâàíå/ñêðèâàíå/çàëåïâàíå"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i ðàáîòíè ïîëåòà"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i ïîëå"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "Åêðàíè ñ ðàçìåð"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Åêðàí ñ ðàçìåð"
--- /dev/null
+s/"\([^"]*\)"/“\1”/g
+s/`\([^`']*\)'/‘\1’/g
+s/ '\([^`']*\)' / ‘\1’ /g
+s/ '\([^`']*\)'$/ ‘\1’/g
+s/^'\([^`']*\)' /‘\1’ /g
+s/“”/""/g
+s/“/“\e[1m/g
+s/”/\e[0m”/g
+s/‘/‘\e[1m/g
+s/’/\e[0m’/g
--- /dev/null
+# translation of bosnian.po to Bosnian
+# translation of en_US.po to Bosnian
+# This is the American English locale definition for Enlightenment.
+# Copyright (C) 1999-2000, 2004 Free Software Foundation, Inc.
+# Kemal Šanjta <gomez@lugzdk.ba>, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: bosnian\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2004-08-26 00:52+0200\n"
+"Last-Translator: Kemal Šanjta <gomez@lugzdk.ba>\n"
+"Language-Team: Bosnian <lokal@linux.org.ba>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.3\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "O Enlightenment-u %s"
+
+#: src/about.c:46
+#, fuzzy, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Dobrodoŷli u %s verziju\n"
+"Enlightenment Upravitelja Prozora.\n"
+"Enlightenment je i dalje u fazi programiranja, ali\n"
+"mi smo probali oÄ«eliÄiti sve greÅ·ke koje\n"
+"smo mogli pronaÄi. Ako pronaÄete greÅ·ku u softveru,\n"
+"nemojte se ustruīavati poslati poruku o greŷci.\n"
+"Pogledajte \"Help\" za informacije o pristupanju mailing\n"
+"listama.\n"
+"\n"
+"Ovaj kod je zadnji put nadograÄen:\n"
+"%s\n"
+"\n"
+"Sretno. Nadamo se da Äe te uŵivati u softveru.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u referenca ostaje\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Postoji greŷka u pokretanju programa:\n"
+"%s\n"
+"Ovaj program ne moŵe biti izvrŷen.\n"
+"To je zato jer datoteka ne postoji.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Postoji greŷka u pokretanju programa:\n"
+"%s\n"
+"Ovaj program ne moŵe biti izvrŷen.\n"
+"To je tako najvjerovatnije jer program nije u\n"
+"putanji za svoj shell koji je %s. Predlaŵem da proīitate stranice priruīnika\n"
+"za taj shell i da proÄ«itate kako promjeniti ili dodati vaÅ·u izvrÅ·avajuÄu putanju.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Postoji greŷka u pokretanju programa:\n"
+"%s\n"
+"Ovaj program ne moŵe biti izvrŷen.\n"
+"Nisam siguran zaŷto ovo ne moŵete uraditi. Datoteka postoji,\n"
+"i Vi je moŵete izvrŷavati. Predlaŵem da bolje pogledate ovo.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Postoji greŷka u pokretanju programa:\n"
+"%s\n"
+"Ovaj program ne moŵe biti izvrŷen.\n"
+"To je zato ŷto datoteka postoji, ali Vi niste u moguīnosti da je\n"
+"izvrŷavate zato ŷto nemate psristup za izvrŷavanje te datoteke.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Postoji greŷka u pokretanju programa:\n"
+"%s\n"
+"Ovaj program ne moŵe biti izvrŷen.\n"
+"To je zato ŷto je u stvari datiteka direktorij.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Postoji greŷka u pokretanju programa:\n"
+"%s\n"
+"Ovaj program ne moŵe biti izvrŷen.\n"
+"To je zato ŷto datoteka nije ispravna.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment greŷka"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment dijalog poruka"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignoriŷi ovo"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Ponovo pokreni Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "IzaÄi iz Enlightenment-a"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Paŵnja !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Uredu"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Informacija definicije pozadine:\n"
+"Ime: %s\n"
+"Datoteka: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NIŠTA-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Bez\n"
+"Pozadine"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "NeiskoriÅ·tene pozadine se oslobaÄaju nakon %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Koristi sliku pozadine"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Zadrŵi izraz na skali"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Poploīaj sliku ŷirom pozadine"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Pomjeri naprijed\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Poduplaj\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Unlist\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Obriŷi datoteku\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Pozadina\n"
+"Slika\n"
+"Skaliranje\n"
+"i\n"
+"Poravnanje\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "BG Color\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Crveno:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Zeleno:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Plavo:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Pre-scan BG's"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Saprtiraj po Datoteci"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Sortiraj po Atributu"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Sortiraj po Slici"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Use dithering in Hi-Color"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Pozadina zanemaruje temu"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Pozadina"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Osobine pozadine Desktopa"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Enlightenment Desktop\n"
+"dijalog osobina pozadine\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC greŷka"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Primljena nepoznata klijent poruka.\n"
+"Ime klijenta: %s\n"
+"Verzija klijenta: %s\n"
+"Poruka klijenta:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: ignoriŷem dodatni sadrŵaj u \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: nedostaje potrebni sadrŵaj u \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Upozorenje: nemoguÄe odrediti Å·ta uraditi sa\n"
+"sljedeÄim tekstom u centru trenutne Dodaci definicije:\n"
+"%s\n"
+"Ignoriŷem i nastavljam...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Upozorenje: īini se da je konfiguracija zavrŷila prije nego ŷto smo\n"
+"zavrÅ·ili uÄ«itavanje Izbornik bloka. Rasplet najÄ«eÅ·Äe nije dobar.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Verzioniranje teme GREŠKA"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Ponovo pokreni sa Uobiīajnim postavkama"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Odustani i IzaÄi"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"GREŠKA:\n"
+"\n"
+"Konfiguracija za temu koju koristite nije kompitabilna\n"
+"Revizija konfiguracije je%i. Treba biti \n"
+"oznaÄeno kako revizija %i\n"
+"\n"
+"Molim Vas da kontaktirate autora ili upravljaÄa teme\n"
+"i onformiŷete ga da tema treba da radi sa ovom verzijom\n"
+"Enlightenment-a, i da treba da\n"
+"nadogradi trenutne postavke, i da onda uskladi\n"
+"broj revizije.\n"
+"\n"
+"Ako je revizija teme veÄa od Enlightenment-ove\n"
+"moglo bi biti da niste nadogradili Enlightenment dugo vremena\n"
+"dok ova tema koristi prednosti novih\n"
+"dodataka Enlightenment-a u novim verzijma.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment se pokreÄe..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Osobine usmjeravanja"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Zatvori"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Napravi novi Iconbox"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Veliīina ikone"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Providna pozadina"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Pokaŵi/Sakrij ovu grupu"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Nacrtaj osnovnu sliku ispod ikona"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Sakrij traku za listanje kada nije potrebna"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Automatski promjeni veliīini radi podeŷavanja ikona"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Poravnanje uÄ«vrÅ·Äivanja prilikom automatske promjene veliÄ«ine:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orjentacija:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Veliīine trake za listanje:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Strelice trake za listanje:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontalno"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Lijevo / Vrh"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Poīetak"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertikalno"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Desno / Dno"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Oba kraja"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Kraj"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Niŷta"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "PokaÄi imena ikona"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Pokreni prilikom ikonificiranja ovog Iconbox-a"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Pravila prikaza slike ikone (ako jedna ne uspije, probajte sljedeÄu):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Slikaj prozore, koristi ikonu apliacije, koristi Enlightenment ikonu"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Koristi ikonu aplikacije, koristi Enlightenment ikonu, Slikaj prozor"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Koristi Enlightenment ikonu, Slikaj prozor"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Iconbox\n"
+"dijalog osobina\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Drŵite pritisnuto dugme miŷa i vucite\n"
+"miÅ· da bi ste mogli vuÄi desktop\n"
+"nazad i naprijed.\n"
+"Kliknite desno dugme miŷa za listu svih\n"
+"Desktopa i njihov aplikacija.\n"
+"Drŵite srednje dugme na miŷu za listu svih trenutno\n"
+"pokrenutih aplikacija.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"This is the Root desktop.\n"
+"You can't drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Kliknite ovdje da podignete ovaj desktop\n"
+"na vrh.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Kliknite ovdje da spustite ovaj desktop\n"
+"na dno.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Broj virtualnih Desktopa:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Klizaj prozore okolo kada mijenjam"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Brzina klizanja Desktop-a: (sporo)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Uvij prozore okolo"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Prikaŵi dektop dragbar"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Dragbar pozicija:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Vrh"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Dno"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Lijevo"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Desno"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Desktop"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Osobine viŷestrukih desktopa"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Viŷestruki Dektop\n"
+"dijalog osobina\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Veliīina virtualnog Desktopa:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Uvij vitrualne desktope okolo"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Otpor precrtavanja ekrana:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Osobine virtualnih Desktopa"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Virtual Desktop\n"
+"Dijalog osobina\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Izvrŷi"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X server setup greŷka"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"FATALNA GREŠKA:\n"
+"\n"
+"Ova Xserver ne podrŵava Shape ekstenziju.\n"
+"Ona je potrebna da bi se Enlightenment pokrenuo.\n"
+"\n"
+"Vaŷ Xserver je vjerovatno prestar ili loŷe iskonfigurisan.\n"
+"\n"
+"Izlazim.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Usmjeravanje prati usmjeriva?"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Usmjerenje prati usmjerivaÄ"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Usmjeravanje prati klikanje miŷa"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Klikanje na prozor uvijek ga podstakinje"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Svi novi prozori prvo dobijaju usmjeravanje"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Sam novi dijalog prozori dobivaju usjeravanje"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Samo novi dijalozi īiji je vlasnik usmjeren dobivaju usmjeravanje"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Usmjeravanje prozora prilikom prebacivanja"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "PoÅ·alji miÅ· pokazivaÄ na prozor na prekidaÄu sumjerivanja"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "PoÅ·alji miÅ· pokazivaÄ na prozor na prekidaÄu sumjerivanja"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Prikaŵi i koristi listu usmjeravanja"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Ukljuīi listu ljepljivih prozora u listi usmjeravanja"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Ukljuīi osjenīene prozore u listi usmjeravanja"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Ukljuīi ikonificirane prozore u listi usmjeravanja"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Ukljuīi osjenīene prozore u listi usmjeravanja"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Usmjeravanje prozora prilikom prebacivanja"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "PoveÄan je prozora nakon paljenja/gaÅ·enja usjerivaÄa"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "PoÅ·alji miÅ· pokazivaÄ na prozor nakon Å·to se usjerivaÄ ugasi/upali"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Pravila prikaza slike ikone (ako jedna ne uspije, probajte sljedeÄu):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Nikad ne usmjeravaj"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Osobine usmjeravanja"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment usmjeravanje\n"
+"Dijalog osobina\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Efekti"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Ukljuīi efekt: Raindrops"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Talasi"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Valovi"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Specijalne FX osobine"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Specijalni efekti\n"
+"dijalog osobina\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Izbor grupisanja prozora"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment Drupisanje Prozora\n"
+"dijalog izbora\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Grupisanje prozora greŷka"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Ovaj prozor trenutno ne pripada nijednoj grupi.. \n"
+" Vi samo moŵete uniŷtiti grupe ili obrisati prozore iz grupa \n"
+" kroz prozor koji pripada najmanje jednoj grupi.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Trenutno ne postoji grupa ili ovaj prozor \n"
+" veÄ pripada svim postojeÄim grupama. \n"
+" Morate pokrenuti ostale grupe prvo. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Trenutno ne postoji nijedna grupa. Morate pokrenuti grupu prvo.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Izaberi grupu za konfigurisanje: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" SljedeÄe akcije su \n"
+" primjenjene za sve īlanove grupe: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Mijenjanje stila ruba"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Ikonificiranje"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Ubijanje"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Premjeŷtanje"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "PoveÄavanje/Smanjivanje"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Lijepljenje"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Sijenīenje"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Osobine grupiranja prozora"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment grupiranje prozora\n"
+"dijalog osobina\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Ovaj prozor trenutno ne pripada nijednoj grupi. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Osobine po grupi: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Globalne osobine: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Swap prozor lokacije"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Grupa %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Uobiīajne kontrolne osobine grupe"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Enlightenment Uobiīajne\n"
+"kontrole grupa dijalog osobina\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Izaberite grupu kojoj Äe prozor pripadati: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Oznaīite grupu iz koje ŵelite pomjeriti prozor. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Oznaīite grupu za slamanje "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment je izazvao Bus greŷku.\n"
+"\n"
+"Predlaŵem da provjerite vaŷ hardver ili OS instalaciju.\n"
+"Nije uopÄe uobiÄ«ajno da se Bus greÅ·ke javljaju na upotrebljivom\n"
+"hardveru.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "TextClass greŷka!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Iconbox opcije"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Iconbox Osobine"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Poruka"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "OmoguÄi zvukove"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC Comande Pomo?"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"koristite \"help all\" za opis svake komande\n"
+"koristite \"help <command>\" za pojedinaīni opis\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"trenutno dostupne komande:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "koristi \"help <command>\" za individualni opis\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr " <command> : <description>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable can't be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! GREŠKA GREŠKA GREŠKA GREŠKA !!!!!!!!\n"
+"\n"
+"Enlightenmentov alat za izvrŷavanje se ne moŵe izvrŷiti:\n"
+"\n"
+"%s\n"
+"Ovo je fatalna greÅ·ka i Enlightenment Äe se prestati pokretati.\n"
+"Molim popravite ovu situaciju i budite sigurni da je instaliran\n"
+"ispravno.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Loŷa tema"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Rubovi:"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Izbjegni listu prozora"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Idi na ovaj Desktop"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Desktop %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Pokaŵi/Sakrij ovu grupu"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Ikonificiraj ovu grupu"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Grupa %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Animirani prikazi menija"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Uvijek pop up meniji na ekranu"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Uvi pokazivaÄ nakon premjeÅ·tanja izbornika"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Izbornici:"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Razne osobine"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment usmjeravanje\n"
+"Dijalog osobina\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Prozirnost teme %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Promjene koje moŵda zahtjevaju novo pokretanje:"
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Rubovi:"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Izbornici:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Posvjetljenja:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E grafiīki objekti:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E dijalozi:"
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Savjeti:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Mutan"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Staklo"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Prozirnost teme %2d"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Osobine izabrane prozirnosti "
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Izabrana providnost\n"
+"dijalog osobina\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Opcije prozora"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Ikonificiraj"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Uniŷtiti"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Zalijepi / Odlijepi"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Opcije Desktopa"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Osobine Pejdŵera..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Slikanje Iskluīeno"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Visoki kvalitet Iskljuīen"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Visoki kvalitet Ukljuīen"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Slikanje Ukljuīeno"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Brzina skeniranja pejdŵera:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linija po sekundi"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "OmoguÄi prikaz pejdŵera"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Talasi"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Napravi male slike ekrana"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Visoko kvalitetne glatke slike u modu za slikanje"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "UveÄaj prozore pejdŵera kada je miÅ· iznad njih"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Pop up naslov prozora kada je miŷ iznad prozora"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Neprestalno sekinraj ekran radi nadogradnje pejdŵera"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Dugme miÅ·a za izbor i povlaÄenje prozora:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Sredina"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Dugme miŷa za izbor desktopa:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Dugme miŷa za prikaz izbornika pejdŵera:"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Osobine pejdŵera..."
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Osobine pejdŵera..."
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Enlightenment Desktop & Area\n"
+"Dijalog osobina pejdŵera\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"GREŠKA!\n"
+"\n"
+"Izgubljen upravitelj sesija koji je bio tamo?\n"
+"Ovdje ovdje upravitelj sesijama... doÄi ovdje... ŵeliÅ· kost?\n"
+"Ma hajde! Prestani biti zle volje! Bugger. Oh dobro. Nastavit Äu bez\n"
+"upravitelja sesijama.\n"
+"\n"
+"Preŵivjet Äu nekako.\n"
+"\n"
+"\n"
+"... Nadam se.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Da li ste sigurni?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Da li ste sigurni da se ŵelite odjaviti ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Da, Odjavi se "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Da, Odjavi se "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Da, Odjavi se "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Ne "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "OmoguÄi zaglavlje dijaloga"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Razne osobine"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Razne osobine"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment usmjeravanje\n"
+"Dijalog osobina\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Metoda pomakinjanja:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Metode mijenjanja veliīine:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Tehniīki"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Kutija"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "OsjenÄeno"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Semi-Solid"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Proziran"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Premjesti / Promjeni veliīinu Info pozicija:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Centar prozora (O/T/B Methode)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Always Screen corner"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Nemoj prikazati"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "Usmjeravanje prozora prilikom prebacivanja"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Veliīina"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Premjesti & Promjeni veliīinu osobine"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment Premjesti & Promjeni veliīinu\n"
+"Metod dijalog osobina\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Dijalog prozora se pojavljuje zajedno sa njihovim vlasnikom"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Prebaci se na desktop na kojem se dijalg pokazuje"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Smjesti prozore ruīno"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Pozicioniraj prozore ispod miŷa"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Ukljuīi osjenīene prozore u listi usmjeravanja"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Klizaj prozore kada se pojave"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Klizaj prozore okolo kada īistim"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Metpda klizanja:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Brzina pojavljivanja klizanja: (sporo)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Brzina Ä«iÅ·Äenja klizanja: (sporo)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Pokreni sijenÄenje i sklanjanje sijenki prozora"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Brzina sjenīenja prozora: (sporo)\n"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Ignoriŷi dijagonale"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Smjesti prozore na druge poīetke kada je puno"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Osobine smjeŷtanja prozora"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Smjeŷtanje prozora\n"
+"dijalog osobina\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "PoveÄaj prozore automatski"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "KaÅ·njenje automatskog poveÄanja:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "KaÅ·njenje automatskog poveÄanja:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Osobine automatskog poveÄavanja"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment Automatsko poveÄavanje\n"
+"prozora dijalog osobina\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "OmoguÄi zaglavlje dijaloga"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "OmoguÄi zvukove"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Koristi saveunders da bi regulisali izlaganje prozora"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Razne osobine"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Razne osobine"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Razno\n"
+"dijalog osobina\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "OmoguÄi zvukove"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Ukljuīi precrtavanje ivice"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "OmoguÄi zvukove"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Osobine savjeta"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Savjeti\n"
+"dijalog osobina\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Enlightenment se pokreÄe..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment can't connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Neki drugi upravitelj prozora je veÄ pokrenut"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X server greŷka verzije"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignoriŷi ovu greŷku"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Naslov:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Ime:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klasa:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Crveno:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Komanda:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Lokacija:"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Stil ruba"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Veliīina"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Desktop"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Stanje osjenÄenosti"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Stanje prijanjanja"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Nivo slaganja"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Izbjegni listu prozora"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Sijenīenje"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Staklo"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Ponovo pokreni aplikaciju nakon prijave"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Zapamti ove grupe prozora"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "ZapamÄeni atributi aplikacija"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Oznaīite atribute ovog\n"
+"prozora koje ŵelite zapamtiti\n"
+"za ubuduÄe\n"
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Obriŷi datoteku\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "ZapamÄene osobine..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Trenutno nema aktivnih prozora sa zapamÄenim atributima."
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Osobine pamÄenja ..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Osobine zapamÄenih prozora"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment ZapamÄeni\n"
+"prozori dijalog osobina\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Greŷka prilikom snimanja slike\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Greŷka u traŵenju zvuīne datoteke"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Upozorenje! Enlightenment nije u moguÄnosti da uÄ«ita\n"
+"sljedeÄu zvuÄ«nu datoteku:\n"
+"%s\n"
+"Enlightenment Äe nastaviti sa radom, ali Vi bi\n"
+"moŵda trebali provjeriti vaŷe konfiguracijske osobine.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Greŷka u inicijalizaciji zvuka"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Zvuk je ukljuīen za Enlightenment ali postoji greŷka\n"
+"u komuniciranju sa serverom za zvuk (Esound). Zvuk Äe sada biti\n"
+"iskljuīen.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "OmoguÄi zvukove"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Audio osobine"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Audio\n"
+"dijalog osobina\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "ECursor greŷka!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Opcije Desktopa"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Osobine automatskog poveÄavanja"
+
+#: src/theme.c:339
+#, fuzzy, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"Nijedna tema nije pronaÄena u uobiÄ«ajnom direktoriju sa temama:\n"
+" %s/themes/\n"
+"ili u korisniīkom direktoriju tema:\n"
+" %s/themes/\n"
+"Nastavljanje ovuda je najÄ«eÅ·Äi pogodak.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Loŷa tema"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Razne osobine"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment usmjeravanje\n"
+"Dijalog osobina\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Prikaŵi savjete"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Prikaŵi Root Prozor savjete"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Odgoda savjeta:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Savjeti:"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Osobine savjeta"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Savjeti\n"
+"dijalog osobina\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i Desktopi"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Premjeŷtanje"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Opcije prozora"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Pokaŵi/Sakrij ovu grupu"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Zapamti ove grupe prozora"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "OsjenÄeno"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Veliīina"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Zapamti ove grupe prozora"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horizontalno"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertikalno"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Slikanje Ukljuīeno"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Stanje osjenÄenosti"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Dno"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Kliknite ovdje da podignete ovaj desktop\n"
+"na vrh.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Zalijepi / Odlijepi"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "IzaÄi iz Enlightenment-a"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "Razne osobine"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Prikaŵi dektop dragbar"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr "Pozadina"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Opcije Desktopa"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i Desktop"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Idi na ovaj Desktop"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "IzaÄi iz Enlightenment-a"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Izbornici:"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Osobine usmjeravanja"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "O Enlightenment-u %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Ponovo pokreni"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Da, Odjavi se "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Koristi sliku pozadine"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Osobine pamÄenja ..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Izbjegni listu prozora"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Osobine usmjeravanja"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Stil ruba"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Grupisanje prozora greŷka"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Zapamti ove grupe prozora"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Oznaīite grupu iz koje ŵelite pomjeriti prozor. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Zapamti ove grupe prozora"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Izaberite grupu kojoj Äe prozor pripadati: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Lijepljenje"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Vrh"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Nikad ne usmjeravaj"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Nikad ne usmjeravaj"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Dno"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Dno"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Obriŷi datoteku\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Usmjeravanje prati klikanje miŷa"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Ukljuīi precrtavanje ivice"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "ZapamÄeni atributi aplikacija"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+#, fuzzy
+msgid "Epplets"
+msgstr "Talasi"
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment se pokreÄe..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "Usmjeravanje osobina ..."
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Premjeŷtanje & Promjena veliīine osobine ..."
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Osobine smjeŷtanja prozora ..."
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Osobine viŷestrukih Desktop-a ..."
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Osobine virtualnih desktopa ..."
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "Osobine pejdŵera..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Razne osobine"
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Osobine automatskog poveÄavanja ..."
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Osobine savjeta ..."
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "Osobine zvuka ..."
+
+#~ msgid "Group Settings ..."
+#~ msgstr "Osobine grupa ..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "Osobine pamÄenja ..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Osobine specijalnih efekata ..."
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Osobine pozadine Desktopa ..."
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Osobine izabrane prozirnosti "
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Osobine savjeta"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Osobine zvuka ..."
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Razne osobine ..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "PomoÄno sijenÄenje/Ikonificiranje/Prijanjanje"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Desktopi"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i Desktop"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "Ekrana u veliīini"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Ekran u veliīini"
--- /dev/null
+# This is the Danish locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Kenneth Christiansen <kenneth@ripen.dk>, 1999.
+# Birger Langkjer <birger.langkjer@image.dk>, 2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-05-14 19:11+0100\n"
+"Last-Translator: Kim Woelders <kim@woelders.dk>\n"
+"Language-Team: Danish\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Om Enlightenment e16 version %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Velkommen til Enlightenment e16\n"
+"version %s.\n"
+"God fornøjelse. Vi håber du får glæde af programmet.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u referencer endnu\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Der opstod en fejl under kørsel af programmet:\n"
+"%s\n"
+"Dette program kunne ikke køres.\n"
+"Det er fordi filen ikke eksisterer.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Der opstod en fejl under kørsel af programmet:\n"
+"%s\n"
+"Dette program kunne ikke køres.\n"
+"Det er sikkert fordi programmet ikke er i din skals søgesti,\n"
+"som er %s. Jeg foreslår at du læser manualsiden (man) for\n"
+"din skal, og finder ud af hvordan du ændrer eller udvider den\n"
+"søgesti som skallen leder efter programmer i.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Der opstod en fejl under kørsel af programmet:\n"
+"%s\n"
+"Dette program kunne ikke køres.\n"
+"Jeg ved ikke hvorfor du ikke kunne gøre dette. Filen eksisterer,\n"
+"er en fil, og du har tilladelse til at køre den. Jeg foreslår\n"
+"at du ser nærmere på dette.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Der opstod en fejl under kørsel af programmet:\n"
+"%s\n"
+"Dette program kunne ikke udføres.\n"
+"Det er fordi filen eksisterer, er en fil, men du kan ikke køre\n"
+"den fordi du ikke har kørerettigheder til denne fil.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Der opstod en fejl under kørsel af programmet:\n"
+"%s\n"
+"Dette program kunne ikke køres.\n"
+"Det er fordi filen er en mappe.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Der opstod en fejl under kørsel af programmet:\n"
+"%s\n"
+"Dette program kunne ikke køres.\n"
+"Dette er fordi filen ikke er en normal fil.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Der skete en fejl ved start af programmet:\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment fejl"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment meddelelsesdialog"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignorér dette"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Genstart Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Afslut Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Vigtigt !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Ok"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Baggrundsdefinitionsinformation:\n"
+"Navn: %s\n"
+"Fil : %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-INGEN-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Ingen\n"
+"baggrund"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Ubrugte baggrunde frigjorte efter %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Brug baggrundsbillede"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Bevar dimensioner ved skalering"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "'Tile' billede på baggrund"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Flyt til front\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplikér\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Aflist\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Slet fil\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Baggrund\n"
+"Billede\n"
+"Skalering\n"
+"og\n"
+"Justering\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Bagg-farve\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rød:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Grøn:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blå:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Forskan baggrunde"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Sortér efter fil"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Sortér efter egensk."
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Sortér efter billede"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Brug dithering i Hi-Colour"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Baggrund tilsidesætter tema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "Aktivér baggrundskompatibilitetsmode"
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Baggrund"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Skrivebordsbaggrundsindstillinger"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"skrivebordsbaggrunde\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E ipc-fejl"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Modtog ukendt klientmeddelelse.\n"
+"Klientnavn: %s\n"
+"Klientversion: %s\n"
+"Meddelelsesindhold:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "KONFIG: ignorerer ekstra data i \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "KONFIG: manglende påkrævet data i \"%s\"\n"
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Temaversionsfejl"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Genstart med standard værdier"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Afbryd og afslut"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"FEJL:\n"
+"\n"
+"Konfigurationen for temaet du har valgt er invalid.\n"
+"Dets revision er %i, men skal være <= %i.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment starter..."
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Indstillinger..."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Luk"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Opret ny ikonboks"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Ikonstørrelse: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Gennemsigtig baggrund"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Skjul indre ramme"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Placer ikoner på sokkel"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Skjul overflødig rullebjælke"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Variér størrelsen efter ikonerne"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Forankring ved automatisk størrelsestilpasning:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientation:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Rullebjælkeside:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Rullebjælkepile:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Vandret"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Venstre / Top"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Start"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Lodret"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Højre / Bund"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Begge ender"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Ende"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Ingen"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Vis ikonnavne"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animering ved minimering til denne ikonboks"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Præferencer for ikoner:"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Skærmdumpsvindue, brug applikationsikon, brug Enlightenment ikon"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Brug applikationsikon, brug Enlightenment ikon, skærmdumpsvindue"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Brug Enlightenment ikon, skærmdumpsvindue"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr "Indstillinger for ikonbox\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "Fokuseret/ufokuseret uigennemsigtighed %d/%d %%"
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Hold venstre museknap nede og træk for at flytte\n"
+"skrivebordet frem og tilbage.\n"
+"Højreklik for at få en liste over alle skriveborde\n"
+"og deres vinduer.\n"
+"Midterklik for at få en liste over alle vinduer.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Dette er 'root'-skrivebordet.\n"
+"Denne kan ikke flyttes.\n"
+"Højreklik for at få en liste over alle skriveborde\n"
+"og deres vinduer.\n"
+"Midterklik for at få en liste over alle vinduer.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Klik her for at bringe dette\n"
+"skrivebord i front.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Klik her for at placere dette\n"
+"skrivebord i baggrunden.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Antal virtuelle skriveborde:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Glidende skrivebordsskift"
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "Skrivebordsglidehastighed:\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Skriveborde wrapper rundt"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Vis skrivebordstræklinie"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Træklinieplacering:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Top"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Bund"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Venstre"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Højre"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Skriveborde"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Indstillinger for multiple skriveborde"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"multiple skriveborde\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Virtuel skrivebordsstørrelse:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Virtuelle skriveborde wrapper rundt"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "Kantflipmodus"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "Deaktiveret"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "Aktiveret"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "Kun når et vindue flyttes"
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Modstand ved kanten af skærmen:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "Virtuelle skriveborde"
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Indstillinger for virtuelle skriveborde"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"virtuelle skriveborde\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Anvend"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+"Kan ikke aktivere Composite håndtering.\n"
+"Brug xdpyinfo til at se om\n"
+"Composite, Damage, Fixes, og Render\n"
+"extensions er til rådighed."
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X-server opsætningsfejl"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"FATAL FEJL:\n"
+"\n"
+"Din X-server understøtter ikke Shape extension.\n"
+"\n"
+"Din X-server er sikkert for gammel eller fejlkonfigureret.\n"
+"\n"
+"Afslutter.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Fokus følger markør"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Fokus følger markør 'sjusket'"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Fokus følger museklik"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Klik på et vindue bringer det i front"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Alle nye vinduer får fokus"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Kun nye dialogvinduer får fokus"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Kun nye dialogvinduer hvis ejer er i fokus, får fokus"
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr "Løft vinduer ved fokusskift"
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Send markør til vindue ved fokusskift"
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Send altid markør til vindue ved fokusskift"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Vis og brug fokusliste"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Inkluder klæbende vinduer in fokuslisten"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Inkluder oprullede vinduer i fokuslisten"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Inkluder minimerede vinduer i fokuslisten"
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr "Inkluder vinduer på andre skriveborde i fokuslisten"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Fokuser vinduer under fokusskift"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Løft vinduer efter fokusskift"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Send musemarkør til vindue efter fokusskift"
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Præferencer for fokusliste ikoner:"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "E ikon, applikationsikon"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Applikationsikon, E ikon"
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Fokus"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Fokusindstillinger"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr "Fokusindstillinger\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Effekter"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Aktivér effekt: Regndråber"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Krusninger"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Bølger"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "FX"
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Specialeffektindstillinger"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"specielle effekter\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Vinduesgruppevalg"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment vinduesgruppe\n"
+"vælger dialog\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Vinduesgruppefejl"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+"Dette vindue er ikke med i nogen grupper.\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+"Dette vindue tilhører allerede alle\n"
+"eksisterende grupper\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Ingen grupper eksisterer for tiden. Du skal starte en gruppe først.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Vælg gruppe at indstille: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" De følgende handlinger vil \n"
+" gælde for alle gruppemedlemmer: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Ændrer kantstil"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Ikonificerer"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Dræber"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Flytter"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Løfter/Sænker"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Klæber"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Oprulning"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Vinduegruppeindstillinger"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"Grupper\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Dette vindue hører ikke til i nogen grupper. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr "Gruppeindstillinger"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr "Globale indstillinger:"
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Ombyt vinduesplacering"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Grupper"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Standardgruppeindstillinger"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"standardgrupper\n"
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr "Vælg gruppen som vinduet skal tilhøre:"
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr "Vælg gruppen som vinduet skal fjernes fra:"
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr "Vælg gruppen som skal brydes:"
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "Fejl i 'Selection'!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr "Kunne ikke få fat i Selection: %s"
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Ikonboks..."
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Ikonboksindstillinger"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Meddelelse"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "e16 er bygget uden understøttelse for %s"
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "composite"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "lyd"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC kommandohjælp\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"Brug \"help all\" for en beskrivelse af hver kommando\n"
+"Brug \"help <kommando>\" for en individuel beskrivelse\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Kommandoer tilgængelige lige nu:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr "Brug \"help full\" for den fulde beskrivelse af alle kommandoer\n"
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "Brug \"help <kommando>\" for individuel beskrivelse\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <kommando> : <beskrivelse>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+"%s skal være et katalog hvor du har\n"
+"læse, skrive og eksekveringsret.\n"
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "Forstørrelsesglas"
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Tema"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Ramme"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Vinduesliste"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Gå til dette skrivebord"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Skrivebord %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Vis/skjul denne gruppe"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Ikonificér denne gruppe"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Gruppe %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Animeret visning af menuer"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Hold menuer inden for skærmen"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Flyt markør efter flytning af menuer"
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Menuer"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Menuindstillinger"
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"menuer\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Gennemsigtighed af tema: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Ændringer kræver muligvis genstart."
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Rammer:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menuer:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Fremhævet:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E elementer:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E dialoger:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Værktøjstips:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Ugennemsigtig"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Glas"
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Gennemsigtighed"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Temagennemsigtighedsindstillinger"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"temagennemsigtighed\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Vinduesindstillinger"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Ikonificér"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Dræb"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Klæb / klæb ikke"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Skrivebordsindstillinger"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Skærmoversigtsindstillinger..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Billedtagning fra"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Høj kvalitet fra"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Høj kvalitet på"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Billedtagning på"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "Aktivér zoom"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "Deaktiver zoom"
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Skærmoversigts-skanningshastighed:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linier pr sekund"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Brug Skærmoversigt"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "Skærmoversigtsmodus"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Simpel"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Lav miniaturebilleder af skærmen"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "Opdater ved ændringer"
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Høj kvalitet af baggrunde i 'snapshot' modus"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zoom ind på skærmoversigtsvinduer når musen er over"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Vis vinduets navn når markøren er over vinduet"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Skan skærmen kontinuerligt for at opdatere oversigt"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Museknap til at vælge og trække vinduer:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Midt"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Museknap til at vælge skriveborde:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Museknap til at vise oversigtsmenu:"
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "Skærmoversigter"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Indstillinger for skærmoversigter"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"skærmoversigter\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Er du sikker?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Er du sikker på at du ønsker at logge ud ? \n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Ja, luk ned"
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Ja, genstart"
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Ja, log ud "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Nej "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "Aktivér sessionsscripts"
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Aktivér Logout dialog"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Aktivér Genstart/Luk ned ved Logout"
+
+#: src/session.c:814
+msgid "Session"
+msgstr "Session"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "Sessionsindstillinger"
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"sessioner\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Flyttemetoder:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Størrelsesændrings metoder:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Teknisk"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Boks"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Oprullet"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Semi-solid"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Gennemsigtig"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr "Undgå X-server lås"
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Geometriinformationsposition:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Centrum af vindue"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Hjørne af skærmen"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Vis ikke"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "Standard modus for ændring af position/størrelse:"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "Konservativ"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "Til rådighed"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Absolut"
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Opdater vindue mens det flyttes"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "Synkroniser flytning/størrelsesændring med applikationen"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr "Dæk ikke skrivebordstræklinien"
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "Flytning/Størrelse"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Indstillinger for flytning og størrelsesændring"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"flytning og størrelsesændring\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Dialogvinduer kommer frem ved siden af deres ejer"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Skift til skrivebord hvor dialog dukker op"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Placér vinduer manuelt"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Placér vinduer under markør"
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "Centrér vinduer når skrivebordet er fuldt"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Vinduer glider ind på skærmen når de oprettes"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Vinduer glider rundt når der ryddes op på skrivebordet"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Glidningsmetode:"
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr "Glidehastighed ved oprettelse:"
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr "Glidehastighed ved oprydning:"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animeret op/nedrulning af vinduer"
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr "Op/nedrulninghastighed:"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Ignorér 'struts'"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Løft fuldskærmsvinduer"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Placér vinduer på anden skærm hvis fuld"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Placering"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Indstillinger for vinduesplacering"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"vinduesplacering\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Løft vinduer automatisk"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Forsinkelse:"
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "Autoløft"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Autoløftindstillinger"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"automatisk løft af vinduer\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Aktivér dialoghoveder"
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Aktivér billeder i knapper"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr "Aktivér glidende vinduer under start"
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Brug saveunders til at reducere vindueseksponeringer"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Diverse"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Diverse indstillinger"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"diverse funktioner\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Aktivér composite"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "Aktivér fading"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "Fadinghastighed:"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Ingen skygger"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Skarpe skygger"
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr "Skarpe skygger(2)"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Uskarpe skygger"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "Standard uigennemsigtighed for aktivt vindue:"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "Standard uigennemsigtighed for inaktivt vindue:"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "Standard uigennemsigtighed for pop-op vinduer:"
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr "Composite"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Compositeindstillinger"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"composite\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Enlightenment indstillinger"
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "En anden vindueshåndtering kører allerede"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"En anden vinduesmanager er aktiv.\n"
+"\n"
+"Du er nødt til at lukke den ned før du kan bruge Enlightenment.\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X-server versionsfejl"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignorér denne fejl"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titel:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Navn:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klasse:"
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Role:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Kommando:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Opdater ved ændring"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Placering"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Rammestil"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Størrelse"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Skrivebord"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Skyggestadie"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Klæbestadie"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Stablingslag"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Vindues 'skiplister'"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Gennemsigtighed"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Skygger"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Diverse (låse mm.)"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Genstart applikation ved logind"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Husk dette vindues gruppe(r)"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Huskede applikationsattributter"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Vælg de attributter for dette vindue\n"
+"du ønsker at huske\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Slet"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Huskede indstillinger..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Ubrugt"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Der er ingen vinduer med huskede attributter"
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Husk"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Huskede vinduesattributter"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"vinduer med huskede attributter\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Fejl ved gemning af skærmdumpsfil\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Kunne ikke finde lydfil"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Advarsel! e16 kunne ikke læse denne lydfil:\n"
+"%s\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Fejl under opstart af lyd"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Der var et problem med at kommunikere med lydserveren (%s).\n"
+"Lyd vil nu blive deaktiveret.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Brug lyde"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Lyd"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Lydindstillinger"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr "Indstillinger for lyd\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "Systray fejl!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "Systray'en forsvandt?!?"
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "Der kan kun være en Systray"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "Kunne ikke aktivere Systray"
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Systray..."
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Systray indstillinger"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr "Ændringer træder i kraft efter genstart"
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr "Brug tema fontkonfiguration"
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr "Brug alternativ fontkonfiguration (%s)"
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "Ikke sat"
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr "Tema"
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "Temaindstillinger"
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"tema\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Vis værktøjstips"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Vis 'root'-vindue tips"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Forsinkelse:\n"
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Værktøjstips"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Værktøjstipsindstillinger"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Indstillinger for\n"
+"værktøjstips\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+"Klik og træk for at flytte skrivebordet\n"
+"(undtagen skrivebord 0)"
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "Skift skrivebord"
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "Gå til næste skrivebord"
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Gå til foregående skrivebord"
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "Flyt"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "Flyt dette vindue"
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "Rul dette vindue op/ned."
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "Vis vinduesindstillinger"
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "Vis/skjul rammer for denne gruppe"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "Start en gruppe"
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "Tilføj til aktiv gruppe"
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "Slet denne vinduesgruppe"
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr "Rul op"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "Rul ned"
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Størrelse"
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "Størrelse"
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "Horisontal størrelse"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "Ændr vinduets bredde"
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "Lodret størrelse"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "Ændr vinduets højde"
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Luk vinduet"
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr "Ødelæg vinduet"
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "Maksimer højde"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr "Skift mellem maksimal højde og normal højde"
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "Maksimer bredde"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr "Skift mellem maksimal bredde og normal bredde"
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Maksimer"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr "Skift mellem maksimal størrelse og normal størrelse"
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "Send til et andet skrivebord"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr "Send vindue til næste skrivebord"
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr "Send vindue til foregående skrivebord"
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "Husk tilstand"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr "Denne knap gør ikke noget interessant."
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "Rul op/ned"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr "Minimer dette vindue."
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "Flere knapper"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "Vis flere knapper"
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Løft"
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr "Bring dette vindue i front"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Sænk"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "Sænk dette vindue"
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr "Klæb/klæb ikke"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr "Aktivér/deaktivér klæbende tilstand."
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr "Ved at klikke på skrivebordet kan du gøre følgende"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Vis brugermenu"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Vis Enlightenment menu"
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Vis indstillingsmenu"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Vis vinduesliste menu"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Vis skrivebordsmenu"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Vis gruppemenu"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Gå til forrige skrivebord"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Gå til næste skrivebord"
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Baggrunde"
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "Skrivebordsopsætning"
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "Ryd op på skrivebordet"
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "Gå til næste skrivebord"
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "Gå til foregående skrivebord"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "Opret 'systray'"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "Vis Forstørrelsesglas"
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "Brugermenu"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Indstillinger"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "Vedligeholdelse"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Hjælp"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "Om Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "Om dette tema"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Genstart"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Log ud"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "Slet konfigurationscache"
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "Slet pager'ens baggrundscache"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "Slet baggrundsvælgercache"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "Slet alle caches"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "Vis configurationcacheforbrug"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "Vis baggrundscacheforbrug"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "Vis baggrundsvælgercacheforbrug"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "Vis cacheforbrug"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "Regenerer menu'er"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "Ikonificer de andre vinduer"
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "Husk..."
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "Vinduesstørrelse"
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "Sæt stabling"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "Sæt rammestil"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "Vinduesgrupper"
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "Konfigurer dette vindues gruppe(r)"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Start en ny gruppe"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "Tilføj dette vindue til den aktive gruppe"
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "Vælg gruppen som vinduet skal tilføjes til"
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "Fjern dette vindue fra en gruppe"
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "Nedlæg en gruppe som dette vindue tilhører"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "Stabling"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Under"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Normal"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Over"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "Øverst"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "Aktivér/deaktivér skip vindueslister"
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "Aktivér/deaktivér låst position"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "Aktivér/deaktivér låst størrelse"
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "Aktivér/deaktivér fokuser aldrig"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "Aktivér/deaktivér klik for at fokusere"
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "Aktivér/deaktivér brug aldrig område"
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "Aktivér/deaktivér museknap 'grabs'"
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "Aktivér/deaktivér automatisk oprulning"
+
+#: config/strings.c:165
+msgid "Default"
+msgstr "Standard"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "30%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "Fokuseret uigennemsigtighed 100%"
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr "Fokuseret uigennemsigtighed følger ufokuseret"
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "Aktivér/deaktivér fading"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "Aktivér/deaktivér skygger"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "Aktivér/deaktivér max størrelse"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "Aktivér/deaktivér til rådighed værende størrelse"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "Aktivér/deaktivér max størrelse"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr "Spænd over Xinerama skærmene"
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "Aktivér/deaktivér max højde"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "Aktivér/deaktivér til rådighed værende højde"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "Aktivér/deaktivér maksimal højde"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "Aktivér/deaktivér max bredde"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "Aktivér/deaktivér til rådighed værende bredde"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "Aktivér/deaktivér max bredde"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Fuldskærm/Normal"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "Zoom ind/ud"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "Brugerapplikationsliste"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Andet"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "Epplets"
--- /dev/null
+# This is the German locale definition for Enlightenment.
+# Copyright (C) 2000 Carsten Haitzler, Geoff Harrison and various contributors
+# Christian Kreibich, <kreibich@in.tum.de>, 1999, 2000.
+# Matthias Warkus <mawa@iname.com>, 2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 16\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-05-31 15:13+0100\n"
+"Last-Translator: Peter Wehrfritz <peter.wehrfritz@web.de>\n"
+"Language-Team: Enlightenment l10n <enlightenment-intl@lists.sourceforge."
+"net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: German\n"
+
+# src/actions.c:3282
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Über Enlightenment e16 Version %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Herzlich Willkommen! Dies ist die\n"
+"Version %s des Fenstermanagers\n"
+"Enlightenment e16.\n"
+"\n"
+"Falls Sie einen Fehler finden sollten,\n"
+"zögern Sie nicht einen Fehlerbericht\n"
+"zu schicken.\n"
+"\n"
+"Wir hoffen Sie genießen unsere Arbeit.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u Referenzen verbleiben\n"
+
+# src/actions.c:664
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Ein Fehler trat beim Ausführen des Programms\n"
+"%s\n"
+"auf. Es konnte nicht ausgeführt werden,\n"
+"da die Datei nicht existiert.\n"
+
+# src/actions.c:672
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Ein Fehler trat beim Ausführen des Programms\n"
+"%s\n"
+"auf. Es konnte nicht ausgeführt werden,\n"
+"da es wahrscheinlich nicht im Pfad Ihrer\n"
+"Shell liegt, der den Wert %s hat. Bitte lesen Sie\n"
+"die Handbuchseite für Ihre Shell, um zu erfahren, wie\n"
+"Sie Ihren Ausführungspfad ändern oder was Sie hinzufügen\n"
+"müssen.\n"
+
+# src/actions.c:692
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Ein Fehler trat beim Ausführen des Programms\n"
+"%s\n"
+"auf. Es konnte nicht ausgeführt werden.\n"
+"Es ist nicht klar, warum Sie dies nicht tun konnten.\n"
+"Die Datei existiert, ist eine normale Datei, und Sie dürfen\n"
+"Sie ausführen. Sie sollten sich die Angelegenheit näher ansehen.\n"
+
+# src/actions.c:703
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Ein Fehler trat beim Ausführen des Programms\n"
+"%s\n"
+"auf. Es konnte nicht ausgeführt werden.\n"
+"Die Datei existiert zwar und ist eine Datei, aber Sie dürfen\n"
+"sie nicht ausführen, da Sie keine Ausführungsberechtigung\n"
+"für diese Datei haben.\n"
+
+# src/actions.c:719
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Ein Fehler trat beim Ausführen des Programms\n"
+"%s\n"
+"auf. Es konnte nicht ausgeführt werden,\n"
+"da die Datei in Wirklichkeit ein Verzeichnis ist.\n"
+
+# src/actions.c:727
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Ein Fehler trat beim Ausführen des Programms\n"
+"%s\n"
+"auf. Es konnte nicht ausgeführt werden,\n"
+"da die Datei keine normale Datei ist.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Es kam zu einem Fehler während der Ausführung des Programms:\n"
+"%s\n"
+
+# src/alert.c:178
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment-Fehler"
+
+# src/main.c:89
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment-Meldungsfenster"
+
+# src/main.c:90 src/memory.c:196 src/memory.c:277 src/memory.c:297
+# src/memory.c:378
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Dies ignorieren"
+
+# src/main.c:91 src/memory.c:197 src/memory.c:277 src/memory.c:298
+# src/memory.c:378 src/memory.c:396
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Enlightenment neu starten"
+
+# src/main.c:92 src/memory.c:197 src/memory.c:278 src/memory.c:298
+# src/memory.c:379 src/memory.c:396 src/setup.c:295 src/setup.c:329
+# src/setup.c:341 src/setup.c:403
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Enlightenment verlassen"
+
+# src/dialog.c:304
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Achtung!"
+
+# src/actions.c:3320 src/dialog.c:304 src/groups.c:694 src/settings.c:309
+# src/settings.c:575 src/settings.c:740 src/settings.c:917
+# src/settings.c:1151 src/settings.c:1254 src/settings.c:1355
+# src/settings.c:1460 src/settings.c:1522 src/settings.c:1610
+# src/settings.c:2012 src/settings.c:3405 src/settings.c:3750
+# src/settings.c:4048 src/settings.c:4186 src/snaps.c:547 src/sound.c:262
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+# src/settings.c:2273 src/settings.c:2395 src/settings.c:2651
+# src/settings.c:2774 src/settings.c:3393
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Information zum Hintergrundbild:\n"
+"Name: %s\n"
+"Datei %s\n"
+
+# src/settings.c:2270 src/settings.c:2392 src/settings.c:2648
+# src/settings.c:2771 src/settings.c:3390
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-/-"
+
+# src/settings.c:2526 src/settings.c:2528
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Kein\n"
+"Hintergrund"
+
+# src/settings.c:2713 src/settings.c:3281
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Unbenutzte Hintergründe freigeben nach %2i:%02i:%02i"
+
+# src/settings.c:3123
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Hintergrundbild verwenden"
+
+# src/settings.c:3145
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Proportionen beim Skalieren beibehalten"
+
+# src/settings.c:3167
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Hintergrund damit kacheln"
+
+# src/settings.c:3081
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "An Anfang stellen\n"
+
+# src/settings.c:3088
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplizieren\n"
+
+# src/settings.c:3094
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Aus Liste entfernen\n"
+
+# src/settings.c:3100
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Datei löschen\n"
+
+# src/settings.c:3183
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Hintergrund-\n"
+"skalierung\n"
+"und\n"
+"-ausrichtung\n"
+
+# src/settings.c:3070
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Hintergrundfarbe\n"
+
+# src/settings.c:3109
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rot:\n"
+
+# src/settings.c:3131
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Grün:\n"
+
+# src/settings.c:3153
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blau:\n"
+
+# src/settings.c:3328
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Hintergründe überfliegen"
+
+# src/settings.c:3338
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Nach Datei sortieren"
+
+# src/settings.c:3344
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Nach Attr. sortieren"
+
+# src/settings.c:3350
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Nach Bild sortieren"
+
+# src/settings.c:3264
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "In High Color rastern"
+
+# src/settings.c:3271
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Hintergrund hat Vorrang vor Thema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "Verwende Kompatibilitätsmodus für Pseudodurchsichtigkeit"
+
+# src/settings.c:2526 src/settings.c:2528
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Hintergrund"
+
+# src/settings.c:3044
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Hintergrundeinstellungen"
+
+# src/settings.c:3044
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Enlightenment Hintergrund-\n"
+"Einstellungsdialog\n"
+
+# src/comms.c:2214
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E-IPC-Fehler"
+
+# src/comms.c:2211
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Habe unbekannte Client-Mitteilung empfangen.\n"
+"Name des Clients: %s\n"
+"Version des Clients: %s\n"
+"Nachrichteninhalt:\n"
+"\n"
+"%s\n"
+
+# src/config.c:242 src/config.c:475 src/config.c:553 src/config.c:843
+# src/config.c:960 src/config.c:1201 src/config.c:1329 src/config.c:1434
+# src/config.c:1649 src/config.c:1896 src/config.c:1965 src/config.c:2060
+# src/config.c:2316 src/config.c:2532 src/config.c:2795 src/config.c:2887
+# src/config.c:2964 src/config.c:3065 src/config.c:3387
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "KONFIG: ignoriere überflüssige Daten in \"%s\"\n"
+
+# src/config.c:248 src/config.c:481 src/config.c:561 src/config.c:849
+# src/config.c:966 src/config.c:1207 src/config.c:1335 src/config.c:1442
+# src/config.c:1657 src/config.c:1902 src/config.c:1971 src/config.c:2068
+# src/config.c:2322 src/config.c:2540 src/config.c:2801 src/config.c:3071
+# src/config.c:3395
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "KONFIG: vermisse benötigte Daten in \"%s\"\n"
+
+# src/config.c:2929
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Warnung: Kann nicht feststellen, was mit folgendem Text in der Mitte\n"
+"der aktuellen %s-Definition zu tun ist:\n"
+"%s\n"
+"Werde dies ignorieren und fortfahren...\n"
+
+# src/config.c:927 src/config.c:1160
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Warnung: Konfigurationsfehler im \"%s\"-Block.\n"
+"Das Ergebnis ist vermutlich nicht gut.\n"
+
+# src/config.c:3404
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "FEHLER in der Themen-Versionsnummerierung"
+
+# src/config.c:3405 src/config.c:3439
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Mit Voreinstellung neu starten"
+
+# src/config.c:3406 src/config.c:3440
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Abbrechen und verlassen"
+
+# src/config.c:3407
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"FEHLER.\n"
+"\n"
+"Die Konfiguration für das Thema, das Sie benutzen, ist\n"
+"inkompatibel. ihre Versionsnummer ist %i. Sie müsste als\n"
+"Version %i gekennzeichnet sein.\n"
+"\n"
+"Bitte nehmen Sie Verbindung mit dem Autor oder dem\n"
+"Betreuer des Themas auf und informieren Sie ihn, dass\n"
+"sein Thema, um mit dieser Version von Enlightenment zu\n"
+"arbeiten, auf den neuesten Stand gebracht und mit der\n"
+"passenden Versionsnummer versehen werden muss.\n"
+"\n"
+"Wenn die Themenversionsnummer höher als die von\n"
+"Enlightenment ist, dann kann es sein, dass Sie Enlightenment\n"
+"lange nicht mehr aktualisiert haben und das Thema Gebrauch\n"
+"von neuen Leistungsmerkmalen Enlightenments macht, die sich\n"
+"in neueren Versionen finden.\n"
+
+# src/config.c:3743
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment startet..."
+
+# src/settings.c:393
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Einstellungen ..."
+
+# src/groups.c:695 src/pager.c:1277 src/settings.c:311 src/settings.c:577
+# src/settings.c:742 src/settings.c:919 src/settings.c:1153
+# src/settings.c:1256 src/settings.c:1357 src/settings.c:1462
+# src/settings.c:1524 src/settings.c:1612 src/settings.c:2014
+# src/settings.c:3407 src/settings.c:3752 src/settings.c:4050
+# src/settings.c:4188
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Schließen"
+
+# src/iconify.c:2432
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Neue Iconbox erzeugen"
+
+# src/settings.c:3643
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Icongröße: %2d"
+
+# src/settings.c:3530
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Transparenter Hintergrund"
+
+# src/menus.c:2027
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Inneren Rahmen verbergen"
+
+# src/settings.c:3551
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Hintergrundfliese hinter Icons zeichnen"
+
+# src/settings.c:3558
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Rollbalken verbergen, wenn nicht benötigt"
+
+# src/settings.c:3565
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Größe automatisch auf Icons anpassen"
+
+# src/settings.c:3583
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Ausrichtung der Verankerung bei automatischer Größenänderung:"
+
+# src/settings.c:3666
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Ausrichtung:"
+
+# src/settings.c:3672
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Seite des Rollbalkens:"
+
+# src/settings.c:3678
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Pfeile des Rollbalkens:"
+
+# src/settings.c:3683
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Waagerecht"
+
+# src/settings.c:3690
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Links / Oben"
+
+# src/settings.c:3697
+#: src/container.c:1627
+msgid "Start"
+msgstr "Anfang"
+
+# src/settings.c:3704
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertikal"
+
+# src/settings.c:3712
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Rechts / Unten"
+
+# src/settings.c:3720
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Beide Enden"
+
+# src/settings.c:3730
+#: src/container.c:1652
+msgid "End"
+msgstr "Ende"
+
+# src/settings.c:3740
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "-/-"
+
+# src/settings.c:3544
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Iconnamen anzeigen"
+
+# src/settings.c:3573
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Beim Verkleinern in diese Iconbox animieren"
+
+# src/settings.c:3605
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Anzeigemethode für Icons (wenn eine Aktion fehlschlägt, die nächste):"
+
+# src/settings.c:3612
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Fensterschnappschüsse, Anwendungsicon, Enlightenments eigenes Icon"
+
+# src/settings.c:3621
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Anwendungsicon, Enlightenments eigenes Icon, Fensterschnappschuss"
+
+# src/settings.c:3629
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Enlightenments eigenes Icon, Fensterschnappschuss"
+
+# src/main.c:89
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Iconbox-\n"
+"Einstellungsdialog\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "Deckkraft: fokussiert %d%% / nicht fokussiert %d %%"
+
+# src/desktops.c:1110
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Halten Sie den Mausknopf und ziehen Sie\n"
+"die Maus, um den Desktop hin- und herzuziehen.\n"
+"Klicken Sie den rechten Mausknopf für eine\n"
+"Liste aller Desktops und der Anwendungen darauf.\n"
+"Klicken Sie den mittleren Mausknopf für eine\n"
+"Liste aller laufenden Anwendungen.\n"
+
+# src/desktops.c:1122
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Dies ist der Root-Desktop.\n"
+"Sie können ihn nicht herumschieben.\n"
+"Klicken Sie den rechten Mausknopf für eine\n"
+"Liste aller Desktops und der Anwendungen darauf.\n"
+"Klicken Sie den mittleren Mausknopf für eine Liste\n"
+"aller laufenden Anwendungen.\n"
+
+# src/desktops.c:1144
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Klicken Sie hier, um diesen Desktop\n"
+"ganz nach oben zu heben.\n"
+
+# src/desktops.c:1160
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Klicken Sie hier, um diesen Desktop\n"
+"ganz nach unten zu heben.\n"
+
+# src/settings.c:882
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Anzahl virtueller Desktops:\n"
+
+# src/settings.c:1750
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Desktops gleiten beim Wechseln herum"
+
+# src/settings.c:1922
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "Desktop-Gleitgeschwindigkeit:\n"
+
+# src/settings.c:1120
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Virtuelle Desktops zyklisch durchlaufen"
+
+# src/settings.c:1858
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Desktop-Ziehbalken anzeigen"
+
+# src/settings.c:1867
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Position des Ziehbalkens:"
+
+# src/settings.c:1878
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Oben"
+
+# src/settings.c:1885
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Unten"
+
+# src/settings.c:218 src/settings.c:250 src/settings.c:282
+# src/settings.c:1896
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Links"
+
+# src/settings.c:234 src/settings.c:266 src/settings.c:298
+# src/settings.c:1903
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Rechts"
+
+# src/snaps.c:453
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Desktops"
+
+# src/settings.c:856
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Mehrfach-Desktop-Einstellungen"
+
+# src/main.c:89
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Mehrfachdesktop-\n"
+"Einstellungsdialog\n"
+
+# src/settings.c:1066
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Virtuelle Desktopgröße:\n"
+
+# src/settings.c:1120
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Virtuelle Desktops zyklisch durchlaufen"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "Magische Kanten Modus"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "An"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "Aus"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "Nur beim Verschieben von Fenstern"
+
+# src/settings.c:1134
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Widerstand der Bildschirmkante:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "Bereiche"
+
+# src/settings.c:1040
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Einstellungen zu virtuellen Desktops"
+
+# src/settings.c:1040
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Einstellungsdialog\n"
+"für virtuelle Desktops\n"
+
+# src/settings.c:310 src/settings.c:576 src/settings.c:741 src/settings.c:918
+# src/settings.c:1152 src/settings.c:1255 src/settings.c:1356
+# src/settings.c:1461 src/settings.c:1523 src/settings.c:1611
+# src/settings.c:2013 src/settings.c:3406 src/settings.c:3751
+# src/settings.c:4049 src/settings.c:4187 src/snaps.c:548
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Übernehmen"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+"Kann Composite-Manager nicht aktivieren:\n"
+"Überprüfen Sie mit xdpyinfo, ob die\n"
+"Composite-, Damage-, Fixes- und\n"
+"Render-Erweiterungen geladen sind."
+
+# src/setup.c:294 src/setup.c:340
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Einstellungsfehler im X-Server"
+
+# src/setup.c:296
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"FATALER FEHLER:\n"
+"\n"
+"Dieser X-Server unterstützt die SHAPE-Erweiterung nicht.\n"
+"Dies ist nötig, um Enlightenment auszuführen.\n"
+"\n"
+"Ihr X-Server ist wahrscheinlich zu alt oder falsch konfiguriert.\n"
+"\n"
+"Breche ab.\n"
+
+# src/settings.c:417
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Fokus folgt Zeiger"
+
+# src/settings.c:425
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Fokus folgt Zeiger in Fenster"
+
+# src/settings.c:433
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Fokus folgt Mausklicks"
+
+# src/settings.c:448
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Klicken in ein Fenster hebt es immer an"
+
+# src/settings.c:462
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Alle neuen Fenster erhalten sofort den Fokus"
+
+# src/settings.c:470
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Nur neue Dialogfenster erhalten den Fokus"
+
+# src/settings.c:480
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Nur neue Dialogfenster mit fokussiertem Eigner erhalten den Fokus"
+
+# src/settings.c:546
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr "Fenster beim Durchblättern anheben"
+
+# src/settings.c:498
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Mauszeiger bei Fokuserhalt ins Fenster schicken"
+
+# src/settings.c:498
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Immer Mauszeiger bei Fokuserhalt ins Fenster schicken"
+
+# src/settings.c:513
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Fokusliste anzeigen und benutzen"
+
+# src/settings.c:521
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Klebrige Fenster in Fokusliste erwähnen"
+
+# src/settings.c:529
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Aufgerollte Fenster in Fokusliste erwähnen"
+
+# src/settings.c:538
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Minimierte Fenster in Fokusliste erwähnen"
+
+# src/settings.c:529
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr "Fenster auf anderen Desktops in Fokusliste erwähnen"
+
+# src/settings.c:546
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Fenster beim Umschalten fokussieren"
+
+# src/settings.c:554
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Fenster nach Fokuserhalt anheben"
+
+# src/settings.c:564
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Mauszeiger nach Fokuserhalt in Fenster schicken"
+
+# src/settings.c:3605
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Anzeigemethode für Icons (wenn eine Aktion fehlschlägt, die nächste):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "Zuerst das E-Icon, dann das Anwendungsicon"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Zuerst das Anwendungsicon, dann das E-Icon"
+
+# src/snaps.c:494
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Fokus"
+
+# src/settings.c:393
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Fokus-Einstellungen"
+
+# src/main.c:89
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Fokus-\n"
+"Einstellungsdialog\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Effekte"
+
+# src/fx.c:387 src/fx.c:405
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Aktiviere Regentropfeneffekt"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Plätschern"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Wellen"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "Effekte"
+
+# src/settings.c:1710
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Spezialeffekt-Einstellungen"
+
+# src/main.c:89
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Spezialeffekte-\n"
+"Einstellungsdialog\n"
+
+# src/groups.c:637
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Fenstergruppen-Auswahl"
+
+# src/main.c:89
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment Fenstergruppen-\n"
+"Auswahldialog\n"
+
+# src/groups.c:603 src/groups.c:612 src/groups.c:620 src/settings.c:3872
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Fenstergruppen-Fehler"
+
+# src/groups.c:605
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Dieses Fenster gehört momentan zu keiner Gruppe. \n"
+" Gruppen zerstören oder Fenster aus Gruppen entfernen können \n"
+" Sie nur über ein Fenster, das zu mindestens einer Gruppe\n"
+" gehört.\n"
+"\n"
+
+# src/groups.c:613
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Entweder existieren momentan keine Gruppen \n"
+" oder dieses Fenster gehört schon zu allen \n"
+" existierenden Gruppen. Sie müssen andere\n"
+" Gruppen erzeugen. \n"
+"\n"
+
+# src/groups.c:622
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Momentan existieren keine Gruppen. Sie müssen zunächst eine erzeugen.\n"
+"\n"
+
+# src/settings.c:3923
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Zu konfigurierende Gruppe: "
+
+# src/settings.c:3959
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Die folgenden Aktionen betreffen\n"
+" alle Gruppenmitglieder:"
+
+# src/settings.c:3968 src/settings.c:4120
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Änderung des Rahmenstils"
+
+# src/settings.c:3978 src/settings.c:4128
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Minimierung"
+
+# src/settings.c:3988 src/settings.c:4136
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Zerstören"
+
+# src/settings.c:3998 src/settings.c:4144
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Verschieben"
+
+# src/settings.c:4008 src/settings.c:4152
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Anheben/Absenken"
+
+# src/settings.c:4018 src/settings.c:4160
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Ankleben"
+
+# src/settings.c:4028 src/settings.c:4168
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Aufrollen"
+
+# src/settings.c:3897
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Einstellungen zur Fenstergruppe"
+
+# src/main.c:89
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Fenstergruppen-\n"
+"Einstellungsdialog\n"
+
+# src/settings.c:3874
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Dieses Fenster gehört momentan zu keiner Gruppe. \n"
+"\n"
+
+# src/settings.c:126
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Gruppenspezifische Einstellungen: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Globale Einstellungen: "
+
+# src/pager.c:1268
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Fensterpositionen vertauschen"
+
+# src/menus.c:2044
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Gruppen"
+
+# src/settings.c:4094
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Voreinstellungen zur Gruppenkontrolle"
+
+# src/settings.c:4094
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Enlightenment Standard-\n"
+"Gruppeneinstellungs-Dialog\n"
+
+# src/actions.c:3474
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr "Wählen Sie die Gruppe aus, zu der das Fenster gehören wird:"
+
+# src/actions.c:3858
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr "Wählen Sie die Gruppe, aus der Sie das Fenster entfernen wollen:"
+
+# src/actions.c:3883
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr "Wählen Sie die aufzulösende Gruppe:"
+
+# src/handlers.c:59
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment hat einen unerlaubten Maschinenbefehl ausgeführt.\n"
+"\n"
+"Dies liegt wahrscheinlich daran, dass Sie eine Binärversion von\n"
+"Enlightenment installiert und ausgeführt haben, die für einen\n"
+"Prozessor kompiliert wurde, der nicht völlig identisch oder\n"
+"kompatibel mit Ihrem ist. Bitte besorgen Sie sich entweder das\n"
+"korrekte Paket für Ihr System oder kompilieren Sie Enlightenment\n"
+"neu, sowie eventuell unterstützende Bibliotheken für Enlightenment,\n"
+"die Sie im Binärformat erhalten haben.\n"
+
+# src/handlers.c:87
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment hat eine Gleitkommaausnahme ausgelöst.\n"
+"\n"
+"Dies bedeutet, dass Enlightenment oder eine unterstützende\n"
+"Bibliotheksroutine, die von ihm aufgerufen wurde, eine unerlaubte\n"
+"mathematische Operation durchgeführt hat (wahrscheinlich eine Zahl\n"
+"durch Null dividiert). Dies ist höchstwahrscheinlich ein Fehler.\n"
+"Es empfiehlt sich, einen Neustart von Enlightenment. Wenn Sie\n"
+"möchten, dass dieser Programmfehler behoben wird, bitte kompilieren\n"
+"Sie Enlightenment mit Debugging-Symbolen und führen Sie ihn unter\n"
+"gdb aus, so dass Sie einen Backtrace dort ausführen können, wo der\n"
+"Prozess gestorben ist; senden Sie dann einen nützlichen Fehlerbericht\n"
+"ein, der die Backtrace-Information, Variableninhalte etc. enthält.\n"
+
+# src/handlers.c:112
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment hat eine Segmentübertretung (Segfault) verursacht.\n"
+"\n"
+"Dies bedeutet, dass Enlightenment oder eine unterstützende\n"
+"Bibliotheksroutine, auf einen Speicherbereich Ihres Systems\n"
+"zugegriffen hat, auf den ihm der Zugriff verwehrt ist. Dies ist\n"
+"höchstwahrscheinlich ein Fehler. Es empfiehlt sich einen Neustart\n"
+"von Enlightenment. Wenn Sie möchten, dass dieser Programmfehler\n"
+"behoben wird, bitte kompilieren Sie Enlightenment mit Debugging-\n"
+"Symbolen und führen Sie ihn unter gdb aus, so dass Sie einen\n"
+"Backtrace dort ausführen können, wo der Prozess gestorben ist; senden\n"
+"Sie dann einen nützlichen Fehlerbericht ein, der die Backtrace-\n"
+"Information, Variableninhalte etc. enthält.\n"
+
+# src/handlers.c:198
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment verursachte einen Busfehler.\n"
+"\n"
+"Wir empfehlen, dass Sie Ihre Hardware und Ihre Betriebssystem-\n"
+"Installation überprüfen. Busfehler auf funktionierender Hardware\n"
+"sind extrem selten.\n"
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "Auswahlfehler!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr "Konnte Auswahl nicht erhalten: %s"
+
+# src/iconify.c:2420
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Iconbox-Optionen"
+
+# src/settings.c:3506
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Iconbox-Einstellungen"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Mitteilung"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "e16 wurde ohne %s Unterstützung gebaut"
+
+# src/settings.c:1591
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "Composite"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "Klänge"
+
+# src/ipc.c:4737
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Hilfe zu Enlightenment-IPC-Befehlen\n"
+
+# src/ipc.c:4743
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"Verwende \"help all\" für die Beschreibungen aller Befehle\n"
+"Verwende \"help <befehl>\" für eine detailliertere Beschreibung\n"
+"\n"
+
+# src/ipc.c:4741 src/ipc.c:4780
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Momentan verfügbare Befehle:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+"Verwenden Sie \"help full\" für die ausführliche Beschreibung der Befehl\n"
+
+# src/ipc.c:4781
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "Verwende \"help <befehl>\" für eine detailliertere Beschreibung\n"
+
+# src/ipc.c:4783
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <Befehl> : <Beschreibung>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+"%s muss ein Verzeichnis sein, in welchem Sie\n"
+"Lese-, Schreib-, und Ausführberechtigung haben.\n"
+
+# src/misc.c:61
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! FEHLER FEHLER FEHLER FEHLER !!!!!!!!\n"
+"\n"
+"Enlightenments Hilfsprogramm kann nicht gefunden werden bei:\n"
+"\n"
+"%s\n"
+"Dies ist ein fataler Fehler und Enlightenment wird nun beendet.\n"
+"Bitte beheben Sie dieses Problem und stellen Sie sicher, dass\n"
+"das Programm korrekt installiert ist.\n"
+"\n"
+"Der Grund für sein Fehlen könnten schlecht gebaute Pakete sein,\n"
+"aber auch versehentliche Löschung des Programms oder ein Fehler\n"
+"beim Installieren von Enlightenment.\n"
+
+# src/misc.c:77
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! FEHLER FEHLER FEHLER FEHLER !!!!!!!!\n"
+"\n"
+"Enlightenments Hilfsprogramm kann nicht ausgeführt werden:\n"
+"\n"
+"%s\n"
+"Dies ist ein fataler Fehler und Enlightenment wird nun beendet.\n"
+"Bitte beheben Sie dieses Problem und sorgen Sie dafür, dass es\n"
+"korrekt installiert ist.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "Lupe"
+
+# src/theme.c:354
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Themen"
+
+# src/snaps.c:437
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Rahmen"
+
+# src/snaps.c:485
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Fensterliste"
+
+# src/menus.c:1947
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Zu diesem Desktop gehen"
+
+# src/menus.c:1964
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Desktop %i"
+
+# src/menus.c:2027
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Diese Gruppe zeigen/verbergen"
+
+# src/menus.c:2031
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Diese Gruppe minimieren"
+
+# src/menus.c:2044
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Gruppe %i"
+
+# src/settings.c:1795
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Animierte Menüdarstellung"
+
+# src/settings.c:1810
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Menüs immer auf dem Bildschirm erscheinen lassen"
+
+# src/settings.c:1826
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Zeiger verschieben, wenn Menüs bewegt werden"
+
+# src/snaps.c:437
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Menüs"
+
+# src/settings.c:393
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Menü-Einstellungen"
+
+# src/main.c:89
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Menü\n"
+"Einstellungsdialog\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Themadurchsichtigkeit: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Änderung können eines Neustart benötigen:"
+
+# src/snaps.c:437
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Rahmenstil:"
+
+# src/snaps.c:437
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menüs:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Hilights:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E Widgets:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E Dialoge:"
+
+# src/settings.c:1443
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Minihilfen:"
+
+# src/settings.c:656 src/settings.c:663 src/settings.c:1757
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Opak"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Glas"
+
+# src/settings.c:3530
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Durchsichtigkeit"
+
+# src/main.c:89
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Geziehlte Durchsichtigkeits-Einstellungen"
+
+# src/main.c:89
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment geziehlte Durchsichtigkeits-\n"
+"Einstellungsdialog\n"
+
+# src/pager.c:1268
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Fensteroptionen"
+
+# src/pager.c:1274
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Minimieren"
+
+# src/pager.c:1280
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Zerstören"
+
+# src/pager.c:1283
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Ankleben / Ablösen"
+
+# src/pager.c:1295
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Desktopoptionen"
+
+# src/pager.c:1301
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Pager-Einstellungen..."
+
+# src/pager.c:1311
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Schnappschüsse aus"
+
+# src/pager.c:1323
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Hohe Qualität aus"
+
+# src/pager.c:1318
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Hohe Qualität ein"
+
+# src/pager.c:1306
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Schnappschüsse ein"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "Zoom aus"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "Zoom an"
+
+# src/settings.c:87 src/settings.c:192
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Pager-Abtastgeschwindigkeit:"
+
+# src/settings.c:88 src/settings.c:193
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "Zeilen pro Sekunde"
+
+# src/settings.c:135
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Pager anzeigen"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "Pager Modus:"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Schlicht"
+
+# src/settings.c:144
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Mini-Schnappschüsse des Bildschirms"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "Mini-Ansicht des Bildschirms"
+
+# src/settings.c:154
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Weiche, hochwertige Schnappschüsse im Schnappschussmodus"
+
+# src/settings.c:164
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Auf Pager-Fenster einzoomen, wenn Maus darüber ist"
+
+# src/settings.c:174
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Fenstertitel anzeigen, wenn Maus über Fenster ist"
+
+# src/settings.c:183
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Ständig den Bildschirm abtasten, um Pager zu aktualisieren"
+
+# src/settings.c:212
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Mausknopf zum Auswählen und Ziehen von Fenstern:"
+
+# src/settings.c:226 src/settings.c:258 src/settings.c:290
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Mitte"
+
+# src/settings.c:244
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Mausknopf zum Auswählen von Desktops:"
+
+# src/settings.c:276
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Mausknopf zum Anzeigen des Pager-Menüs:"
+
+# src/settings.c:126
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "Pagers"
+
+# src/settings.c:126
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Pager-Einstellungen"
+
+# src/main.c:89
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Enlightenment Einstellungsdialog\n"
+"für den Pager\n"
+
+# src/session.c:1039
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"FEHLER!\n"
+"\n"
+"Habe den Sitzungsmanager verloren, der mal da war?\n"
+"Komm Sitzungsmanager, komm... komm her... willst du einen Knochen?\n"
+"Komm her! Hör auf zu jammern! Mist. Na dann. Ich werde ohne einen\n"
+"Sitzungsmanager weitermachen.\n"
+"\n"
+"Irgendwie werde ich schon überleben.\n"
+"\n"
+"\n"
+"... hoffentlich.\n"
+
+# src/handlers.c:235 src/session.c:1178
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Sind Sie sicher?"
+
+# src/session.c:1180
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Sind Sie sicher, dass Sie sich abmelden wollen? \n"
+"\n"
+"\n"
+
+# src/session.c:1184
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Ja, herunterfahren"
+
+# src/session.c:1184
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Ja, neu starten"
+
+# src/session.c:1184
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Ja, abmelden "
+
+# src/session.c:1185
+#: src/session.c:663
+msgid " No "
+msgstr " Nein "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "Verwende Sitzungsskript"
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Abmeldedialog aktivieren"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Aktiviere Neustart/Ausschalten beim Abmelden"
+
+# src/settings.c:393
+#: src/session.c:814
+msgid "Session"
+msgstr "Sitzung"
+
+# src/settings.c:393
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "Sitzungs-Einstellungen"
+
+# src/main.c:89
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Sitzung\n"
+"Einstellungsdialog\n"
+
+# src/settings.c:645
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Verschiebemethoden:"
+
+# src/settings.c:651
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Größenänderungsmethoden:"
+
+# src/settings.c:670 src/settings.c:677 src/settings.c:1772
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Bemaßung"
+
+# src/settings.c:684 src/settings.c:691 src/settings.c:1787
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Kasten"
+
+# src/settings.c:698 src/settings.c:705 src/settings.c:1802
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Schattiert"
+
+# src/settings.c:712 src/settings.c:719 src/settings.c:1817
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Halbfest"
+
+# src/settings.c:727
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Durchscheinend"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr "Vermeide Kommunikation mit dem Server"
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Position der Verschiebe/Größenänderungs-Information"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Fensterzentrum"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Immer Bildschirmecke"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Nicht anzeigen"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "Standardstrategie für Größenänderung"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "Konservative"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "Verfügbar"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Absolut"
+
+# src/settings.c:546
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Fenster beim verschieben aktualisieren"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "Größen- und Positionsänderungen mit der Anwendung synchronisieren"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr "Ziehbalken nicht bedecken"
+
+# src/snaps.c:445
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "Position/Größe"
+
+# src/settings.c:619
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Einstellungen zu Verschieben und Größenänderung"
+
+# src/main.c:89
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment Verschiebe- & Größenänderungs-\n"
+"Einstellungsdialog\n"
+
+# src/settings.c:1227
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Dialogfenster erscheinen zusammen mit ihrem Eigner"
+
+# src/settings.c:1236
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Auf Desktop umschalten, auf dem ein Dialog erscheint"
+
+# src/settings.c:1244
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Fenster von Hand platzieren"
+
+# src/settings.c:1244
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Fenster unter der Maus platzieren"
+
+# src/settings.c:529
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "Bei vollem Desktop Fenster zentrieren"
+
+# src/settings.c:1780
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Fenster gleiten beim Erscheinen herein"
+
+# src/settings.c:1765
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Fenster gleiten beim Aufräumen herum"
+
+# src/settings.c:1744
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Gleitmethode:"
+
+# src/settings.c:1966
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr "Gleitgeschwindigkeit beim Erscheinen:"
+
+# src/settings.c:1944
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr "Gleitgeschwindigkeit beim Aufräumen:"
+
+# src/settings.c:1844
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Einrollen und Ausrollen von Fenstern animieren"
+
+# src/settings.c:1988
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr "Gleitgeschwindigkeit beim Einrollen:"
+
+# src/main.c:90 src/memory.c:196 src/memory.c:277 src/memory.c:297
+# src/memory.c:378
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Ignoriere Desktopelemente (Pager, Startleiste u.a.)"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Hebe Vollbildfenster"
+
+# src/settings.c:1244
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Bei vollem Desktop auf einem anderem platzieren"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Platzierung"
+
+# src/settings.c:1199
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Fensterplatzierungs-Einstellungen"
+
+# src/settings.c:1199
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Fensterplatzierungs-\n"
+"Einstellungsdialog\n"
+
+# src/settings.c:1330
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Fenster automatisch anheben"
+
+# src/settings.c:1338
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Verzögerung vor Anheben:"
+
+# src/settings.c:1338
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "Automatisches Anheben"
+
+# src/settings.c:1304
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Einstellungen zum automatischen Anheben"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment Einstellungsdialog\n"
+"für Fensteranhebungs-Einstellungen\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Titel in Dialogfenstern aktivieren"
+
+# src/settings.c:1591
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Buttonbilder aktivieren"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr "Verwende gleitendes Startfenster"
+
+# src/settings.c:1835
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "SaveUnders benutzen, um Fensterexposures zu reduzieren"
+
+# src/settings.c:393
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Verschiedenes"
+
+# src/settings.c:393
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Verschiedene Einstellungen"
+
+# src/main.c:89
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Einstellungsdialog\n"
+"für Verschiedenes\n"
+
+# src/settings.c:1591
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Composite aktivieren"
+
+# src/settings.c:1127
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "Ausblenden aktivieren"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "Ausblendgeschwindigkeit:"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "keine Schatten"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "scharfe Schatten"
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr "scharfe Schatten 2"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "unscharfe Schatten"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "Standard-Deckkraft von fokussierten Fenstern"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "Standard-Deckkraft von nicht fokussierten Fenstern"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "Standard-Deckkraft von Aufklappfenstern"
+
+# src/settings.c:1591
+#: src/settings.c:704
+msgid "Composite"
+msgstr "Composite"
+
+# src/settings.c:1403
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Composite-Einstellungen"
+
+# src/main.c:89
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Composite-\n"
+"Einstellungsdialog\n"
+
+# src/config.c:3743
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Enlightenment Einstellungen"
+
+# src/setup.c:222
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment kann keinen Kontakt zu dem in Ihrer\n"
+"DISPLAY-Umgebungsvariable erwähnten Display aufnehmen. Sie können\n"
+"diese Variable setzen, um Enlightenment anzuzeigen, mit welchem\n"
+"Displaynamen er Verbindung aufnehmen soll. Es kann sein, dass kein\n"
+"X-Server läuft, der diese Display-Verbindung bedient, oder dass Sie\n"
+"keine Erlaubnis haben, sich mit diesem Display zu verbinden. Bitte\n"
+"stellen Sie sicher, dass alles korrekt ist, bevor Sie es noch einmal\n"
+"versuchen. Starten Sie einen X-Server durch Ausführen von xdm oder\n"
+"startx, oder fragen Sie Ihren lokalen Administrator, oder Ihren\n"
+"X-Server-Lieferanten, oder lesen Sie die Handbuchseiten für X, xdm\n"
+"oder startx, bevor Sie weitermachen.\n"
+
+# src/handlers.c:217
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Ein anderer Fenstermanager läuft bereits"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Ein anderer Fenstermanager läuft bereits.\n"
+"\n"
+"Sie müssen diesen erst beenden, bevor Sie\n"
+"Enlightenment starten können.\n"
+
+# src/setup.c:402
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X-Server-Versionsfehler"
+
+# src/setup.c:403
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignoriere diesen Fehler"
+
+# src/setup.c:404
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"WARNUNG:\n"
+"Dies ist kein X11-Server. Er spricht nämlich das X%i-Protokoll. Dies\n"
+"kann heißen, dass Enlightenment nicht oder falsch funktionieren\n"
+"wird. Wenn das Protokoll ein neueres ist als X11, dann ist Ihr Server\n"
+"einer, zu dem der Autor von Enlightenment noch nie gehört hat und zu\n"
+"dem er auch nie Zugriff hatte.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titel:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Name:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klasse:"
+
+# src/settings.c:3109
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Rolle:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Befehl:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Übernehme Veränderungen"
+
+# src/snaps.c:429
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Ort"
+
+# src/snaps.c:437
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Rahmenstil"
+
+# src/snaps.c:445
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Größe"
+
+# src/snaps.c:453
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Desktop"
+
+# src/snaps.c:461
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Rolladenposition"
+
+# src/snaps.c:469
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Klebrigkeit"
+
+# src/snaps.c:477
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Stapelschicht"
+
+# src/snaps.c:485
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "In Fensterliste überspringen"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Deckkraft"
+
+# src/settings.c:4028 src/settings.c:4168
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Schattieren"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Flags"
+
+# src/snaps.c:514
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Anwendung bei Anmeldung wieder starten"
+
+# src/snaps.c:536
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "An Gruppe(n) dieses Fensters erinnern"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Gespeicherte Anwendungsattribute"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Wählen Sie die Attribute dieses\n"
+"Fensters die von nun an\n"
+"gespeichert werden sollen\n"
+
+# src/settings.c:3100
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Löschen"
+
+# src/pager.c:1301
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Gespeicherte Einstellungen..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Unbenutzt"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Es existieren keine Fenster mit gespeicherten Attributen."
+
+# src/pager.c:1301
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Gespeicherte Einstellungen"
+
+# src/settings.c:3897
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Einstellungen gespeicherter Fenster"
+
+# src/main.c:89
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment Einstellungsdialog\n"
+"für gespeicherte Fenster\n"
+
+# src/snaps.c:914
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Fehler beim Speichern der snaps-Datei\n"
+
+# src/sound.c:53
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Fehler beim Suchen nach Audiodatei"
+
+# src/sound.c:55
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Warnung! Enlightenment konnte die folgende Audiodatei\n"
+"nicht laden:\n"
+"%s\n"
+"Enlightenment wird weiterarbeiten, aber Sie sollten\n"
+"vielleicht Ihre Konfiguration überprüfen.\n"
+
+# src/sound.c:262
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Fehler beim Initialisieren des Sounds"
+
+# src/sound.c:264
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Der Ton wurde in Enlightenment eingeschaltet, aber es gab einen\n"
+"Fehler beim Kontakt mit dem Audioserver (%s).\n"
+"Der Ton wird darum wieder ausgeschaltet.\n"
+
+# src/settings.c:1591
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Klänge verwenden"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Klänge"
+
+# src/settings.c:1566
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Klang-Einstellungen"
+
+# src/main.c:89
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Klänge\n"
+"Einstellungsdialog\n"
+
+# src/comms.c:2214
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "Systray-Fehler!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "Systray verloren?!?"
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "Nur eine Systray ist erlaubt"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "Systray konnte nicht aktiviert werden"
+
+# src/pager.c:1295
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Systrayoptionen"
+
+# src/settings.c:1304
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Systrayeinstellungen"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"Es wurde kein Thema in den Standardverzeichnissen gefunden:\n"
+" %s\n"
+"Weiter fortzufahren ist zwecklos.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr "Veränderungen werden erst nach einem Neustart vollzogen"
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr "Schrifteinstellung des Thema verwenden"
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr "Andere (%s) Schrifteinstellung verwenden"
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "Nicht gesetzt"
+
+# src/theme.c:354
+#: src/theme.c:402
+msgid "Theme"
+msgstr "Thema"
+
+# src/settings.c:393
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "Thema-Einstellungen"
+
+# src/main.c:89
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Thema\n"
+"Einstellungsdialog\n"
+
+# src/settings.c:1427
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Minihilfen anzeigen"
+
+# src/settings.c:1435
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Minihilfen zum Hintergrundfenster anzeigen"
+
+# src/settings.c:1443
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Minihilfen-Verzögerung:\n"
+
+# src/settings.c:1443
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Minihilfen"
+
+# src/settings.c:1403
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Minihilfen-Einstellungen"
+
+# src/main.c:89
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Minihilfen-\n"
+"Einstellungsdialog\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+"Bewege den Desktop durch gedrückte Maustaste\n"
+"(auf jedem Desktop außer Desktop 0)"
+
+# src/settings.c:830 src/settings.c:889
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "Desktop wechseln"
+
+# src/menus.c:1947
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "Zum nächsten Desktop gehen."
+
+# src/menus.c:1947
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Zum vorherigen Desktop gehen."
+
+# src/settings.c:3998 src/settings.c:4144
+#: config/strings.c:10
+msgid "Move"
+msgstr "Verschieben"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "Verschiebe dieses Fenster."
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "Dieses Fenster ein-/ausrollen."
+
+# src/pager.c:1268
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "Fensteroptionen zeigen."
+
+# src/menus.c:2027
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "Zeige/Verberge Gruppen-Fensterrahmen."
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "Eine Gruppe eröffnen."
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "Zur aktuellen Gruppe hinzufügen."
+
+# src/snaps.c:536
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "Löse die Gruppe dieses Fensters auf."
+
+# src/settings.c:698 src/settings.c:705 src/settings.c:1802
+#: config/strings.c:19
+msgid "Shade."
+msgstr "Einrollen."
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "Ausrollen."
+
+# src/snaps.c:445
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Größe ändern"
+
+# src/snaps.c:536
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "Die Größe des Fensters ändern."
+
+# src/settings.c:3683
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "Die Größe vertikal verändern"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "Die Größe des Fensters horizontal ändern."
+
+# src/settings.c:3704
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "Die Größe vertikal verändern"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "Die Größe des Fensters vertikal ändern."
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Dieses Fenster schließen."
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr "Dieses Fenster zerstören."
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "Vertikal maximieren"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr "Vertikal maximieren/Normale Fensterhöhe"
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "Horizontal maximieren"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr "Horizontal maximieren/Normale Fensterbreite"
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Maximieren"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr "Maximieren/Normale Fenstergröße"
+
+# src/menus.c:1947
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "Zu einem anderen Desktop schicken"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr "Dieses Fenster zum nächsten Desktop schicken."
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr "Dieses Fenster zum vorherigen Desktop schicken."
+
+# src/pager.c:1306
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "Schnappschuss"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr "Dieser Button macht nichts besonderes."
+
+# src/snaps.c:461
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "Ein-/Ausrollen"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr "Dieses Fenster minimieren."
+
+# src/settings.c:1885
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "Mehr Buttons"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "Zeige weitere Buttons."
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Anheben"
+
+# src/desktops.c:1144
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr "Dieses Fenster in den Vordergrund heben."
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Senken"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "Dieses Fenster senken"
+
+# src/pager.c:1283
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr "Ankleben/Ablösen"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr "Zeige das Fenster auf jedem/nur auf diesem Desktop"
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+"Klicken Sie auf die Arbeitsfläche um folgende\n"
+"Aktionen auszuführen"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Benutzer-Menü anzeigen"
+
+# src/main.c:92 src/memory.c:197 src/memory.c:278 src/memory.c:298
+# src/memory.c:379 src/memory.c:396 src/setup.c:295 src/setup.c:329
+# src/setup.c:341 src/setup.c:403
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Enlightenment-Menü anzeigen"
+
+# src/settings.c:1503
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Einstellungsmenü anzeigen"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Taskliste anzeigen"
+
+# src/settings.c:1858
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Desktop-Menü anzeigen"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Gruppen-Menü anzeigen"
+
+# src/menus.c:1947
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Einen Desktop zurück gehen"
+
+# src/menus.c:1947
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Eine Desktop vorwärts gehen"
+
+# src/settings.c:2526 src/settings.c:2528
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Hintergründe"
+
+# src/pager.c:1295
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "Desktopfunktionen"
+
+# src/settings.c:832 src/settings.c:891
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "Desktop aufräumen"
+
+# src/menus.c:1947
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "Zum nächsten Desktop gehen"
+
+# src/menus.c:1947
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "Zum vorherigen Desktop gehen"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "Systray erzeugen"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "Zeige Lupe"
+
+# src/main.c:92 src/memory.c:197 src/memory.c:278 src/memory.c:298
+# src/memory.c:379 src/memory.c:396 src/setup.c:295 src/setup.c:329
+# src/setup.c:341 src/setup.c:403
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+# src/snaps.c:437
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "Benutzer-Menüs"
+
+# src/settings.c:393
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Einstellungen"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "Instandhaltung"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Hilfe"
+
+# src/actions.c:3282
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "Über Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "Über dieses Thema"
+
+# src/alert.c:182
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Neu starten"
+
+# src/session.c:1184
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Abmelden "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "Konfigurationsdatei-Cache bereinigen"
+
+# src/settings.c:3123
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "Pager-Cache bereinigen"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "Hintergrundbilder-Cache bereinigen"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "Alle Caches bereinigen"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "Cache-Nutzung der Konfigurationsdatei abfragen"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "Cache-Nutzung des Pagers abfragen"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "Cache-Nutzung der Hindergrundwahl abfragen"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "Gesamte Cache-Nutzung abfragen"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "Menü neu erstellen"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "Freistellen"
+
+# src/pager.c:1301
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "Gespeicherte Einstellungen ..."
+
+# src/snaps.c:485
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "Fenstergröße"
+
+# src/settings.c:393
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "Stapelung"
+
+# src/snaps.c:437
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "Rahmenstil"
+
+# src/groups.c:603 src/groups.c:612 src/groups.c:620 src/settings.c:3872
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "Fenstergruppen"
+
+# src/snaps.c:536
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "Gruppe(n) dieses Fensters einstellen"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Eine neue Gruppe eröffnen"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "Dieses Fenster zu der aktuellen Gruppe hinzufügen"
+
+# src/actions.c:3858
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "Wählen Sie eine Gruppe für dieses Fenster"
+
+# src/snaps.c:536
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "Dieses Fensters aus einer Gruppe entfernen"
+
+# src/actions.c:3474
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "Eine Gruppe des Fensters löschen"
+
+# src/settings.c:4018 src/settings.c:4160
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "Stapelung"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Im Hintergrund"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Normal"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Im Vordergrund"
+
+# src/settings.c:1878
+#: config/strings.c:152
+msgid "On Top"
+msgstr "In den Vordergrund"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "In der Fensterliste berücksichtigen/auslassen"
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "Position fest/variable"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "Größe fest/variable"
+
+# src/snaps.c:494
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "Nie Fokussieren An/Aus"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "Fokussieren durch Klick An/Aus"
+
+# src/snaps.c:494
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "Erlaube/Verbiete das Bedecken dieses Fenster"
+
+# src/settings.c:1885
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "Fange alle Mausklicks An/Aus"
+
+# src/settings.c:1885
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "Automatisches Aufrollen Ein/Aus"
+
+# src/settings.c:3100
+#: config/strings.c:165
+msgid "Default"
+msgstr "Standardwert"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "Fokussiert 100%"
+
+# src/settings.c:433
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr "Fokussiert wie unfokussiert"
+
+# src/settings.c:1127
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "Ein-/Ausblenden"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "Schatten An/Aus"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "Maximale Größe An/Aus"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "Verfügbare maximale Größe An/Aus"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "Volle maximale Größe An/Aus"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr "Spanne den Xineramaschirm"
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "Maximale Höhe An/Aus"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "Verfügbare maximale Höhe An/Aus"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "Volle maximale Höhe An/Aus"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "Maximale Breite An/Aus"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "Verfügbar maximale Breite An/Aus"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "Volle maximale Breite An/Aus"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Vollbild/Normal"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "Hinein-/Herauszoomen"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "Benutzeranwendungsliste"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Andere"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "Epplets"
--- /dev/null
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR The Enlightenment Team
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr ""
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr ""
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr ""
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr ""
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr ""
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr ""
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr ""
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr ""
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr ""
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr ""
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr ""
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr ""
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr ""
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr ""
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr ""
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr ""
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr ""
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr ""
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr ""
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr ""
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr ""
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr ""
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr ""
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr ""
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr ""
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr ""
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr ""
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr ""
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr ""
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr ""
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr ""
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr ""
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr ""
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr ""
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr ""
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr ""
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr ""
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr ""
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr ""
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr ""
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr ""
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr ""
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr ""
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr ""
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr ""
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr ""
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr ""
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr ""
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr ""
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr ""
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr ""
+
+#: src/container.c:1627
+msgid "Start"
+msgstr ""
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr ""
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr ""
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr ""
+
+#: src/container.c:1652
+msgid "End"
+msgstr ""
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr ""
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr ""
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr ""
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr ""
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr ""
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr ""
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr ""
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr ""
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr ""
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr ""
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr ""
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr ""
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr ""
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr ""
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr ""
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr ""
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr ""
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr ""
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr ""
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr ""
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr ""
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr ""
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr ""
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr ""
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr ""
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr ""
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr ""
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr ""
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr ""
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr ""
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr ""
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr ""
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr ""
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr ""
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr ""
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr ""
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr ""
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr ""
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr ""
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr ""
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr ""
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr ""
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr ""
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr ""
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr ""
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr ""
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr ""
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr ""
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr ""
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr ""
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr ""
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr ""
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr ""
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr ""
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr ""
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr ""
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr ""
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr ""
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr ""
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr ""
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr ""
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr ""
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr ""
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr ""
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr ""
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr ""
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr ""
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr ""
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr ""
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr ""
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr ""
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr ""
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr ""
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr ""
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr ""
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr ""
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr ""
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr ""
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr ""
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr ""
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr ""
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr ""
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr ""
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr ""
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr ""
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr ""
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr ""
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr ""
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr ""
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr ""
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr ""
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr ""
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr ""
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr ""
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr ""
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr ""
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr ""
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr ""
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr ""
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr ""
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr ""
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr ""
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr ""
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr ""
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr ""
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr ""
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr ""
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr ""
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr ""
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr ""
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr ""
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr ""
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr ""
+
+#: src/session.c:663
+msgid " No "
+msgstr ""
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr ""
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+msgid "Session"
+msgstr ""
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr ""
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr ""
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr ""
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr ""
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr ""
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr ""
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr ""
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr ""
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr ""
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr ""
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr ""
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr ""
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr ""
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr ""
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr ""
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr ""
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr ""
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr ""
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr ""
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr ""
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr ""
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr ""
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr ""
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr ""
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr ""
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr ""
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr ""
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr ""
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr ""
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr ""
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr ""
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr ""
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr ""
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr ""
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr ""
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr ""
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr ""
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr ""
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr ""
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr ""
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr ""
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr ""
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr ""
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr ""
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr ""
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr ""
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr ""
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr ""
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr ""
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr ""
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr ""
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr ""
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr ""
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr ""
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr ""
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr ""
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr ""
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr ""
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr ""
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr ""
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr ""
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr ""
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr ""
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr ""
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr ""
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr ""
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr ""
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr ""
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr ""
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr ""
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr ""
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr ""
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr ""
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr ""
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr ""
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr ""
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr ""
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr ""
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr ""
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr ""
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr ""
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr ""
+
+#: config/strings.c:10
+msgid "Move"
+msgstr ""
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr ""
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr ""
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr ""
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr ""
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr ""
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr ""
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr ""
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr ""
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr ""
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr ""
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr ""
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr ""
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr ""
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr ""
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr ""
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr ""
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr ""
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr ""
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr ""
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr ""
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr ""
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr ""
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr ""
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr ""
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr ""
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr ""
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr ""
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr ""
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr ""
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr ""
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr ""
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr ""
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr ""
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr ""
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr ""
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr ""
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr ""
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr ""
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr ""
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr ""
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr ""
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr ""
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr ""
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr ""
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr ""
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr ""
+
+#: config/strings.c:165
+msgid "Default"
+msgstr ""
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr ""
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr ""
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr ""
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
--- /dev/null
+# All this catalog "translates" are quotation characters.
+# The msgids must be ASCII and therefore cannot contain real quotation
+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
+# and double quote (0x22). These substitutes look strange; see
+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
+#
+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
+# It also translates pairs of apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
+# and pairs of quotation mark (0x22) to
+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
+#
+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
+# When output to an ISO-8859-1 terminal, the single quotation marks are
+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
+# grave/acute accent (by libiconv), and the double quotation marks are
+# transliterated to 0x22.
+# When output to an ASCII terminal, the single quotation marks are
+# transliterated to apostrophes, and the double quotation marks are
+# transliterated to 0x22.
+#
+# This catalog furthermore displays the text between the quotation marks in
+# bold face, assuming the VT100/XTerm escape sequences.
+#
--- /dev/null
+# All this catalog "translates" are quotation characters.
+# The msgids must be ASCII and therefore cannot contain real quotation
+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
+# and double quote (0x22). These substitutes look strange; see
+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
+#
+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
+# It also translates pairs of apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
+# and pairs of quotation mark (0x22) to
+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
+#
+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
+# When output to an ISO-8859-1 terminal, the single quotation marks are
+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
+# grave/acute accent (by libiconv), and the double quotation marks are
+# transliterated to 0x22.
+# When output to an ASCII terminal, the single quotation marks are
+# transliterated to apostrophes, and the double quotation marks are
+# transliterated to 0x22.
+#
--- /dev/null
+# This is the American English locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Peter Kjellerstedt <pkj@axis.com>, 1999-2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-01-04 23:15+0100\n"
+"Last-Translator: Peter Kjellerstedt <pkj@axis.com>\n"
+"Language-Team: American English <en@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr ""
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr ""
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr ""
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr ""
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr ""
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr ""
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr ""
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr ""
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr ""
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr ""
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr ""
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr ""
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr ""
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr ""
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr ""
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr ""
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr ""
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "BG Color\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr ""
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr ""
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr ""
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr ""
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr ""
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr ""
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr ""
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Use dithering in Hi-Color"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr ""
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr ""
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr ""
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr ""
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr ""
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr ""
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr ""
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr ""
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr ""
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr ""
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr ""
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr ""
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr ""
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr ""
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr ""
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr ""
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr ""
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr ""
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr ""
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr ""
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr ""
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr ""
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr ""
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr ""
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr ""
+
+#: src/container.c:1627
+msgid "Start"
+msgstr ""
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr ""
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr ""
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr ""
+
+#: src/container.c:1652
+msgid "End"
+msgstr ""
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr ""
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr ""
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr ""
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr ""
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr ""
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr ""
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr ""
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr ""
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr ""
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr ""
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr ""
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr ""
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr ""
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr ""
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr ""
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr ""
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr ""
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr ""
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr ""
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr ""
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr ""
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr ""
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr ""
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr ""
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr ""
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr ""
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr ""
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr ""
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr ""
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr ""
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr ""
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr ""
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr ""
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr ""
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr ""
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr ""
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr ""
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr ""
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr ""
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr ""
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr ""
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr ""
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr ""
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr ""
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr ""
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr ""
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr ""
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr ""
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr ""
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr ""
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr ""
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr ""
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr ""
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr ""
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr ""
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr ""
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr ""
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr ""
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr ""
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr ""
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr ""
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr ""
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr ""
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr ""
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr ""
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr ""
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr ""
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr ""
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr ""
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr ""
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr ""
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr ""
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr ""
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr ""
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr ""
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr ""
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr ""
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr ""
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr ""
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr ""
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr ""
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr ""
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr ""
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr ""
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr ""
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr ""
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr ""
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr ""
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr ""
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr ""
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr ""
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr ""
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr ""
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr ""
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr ""
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr ""
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr ""
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr ""
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr ""
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr ""
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr ""
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr ""
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr ""
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr ""
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr ""
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr ""
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr ""
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr ""
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr ""
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr ""
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr ""
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr ""
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr ""
+
+#: src/session.c:663
+msgid " No "
+msgstr ""
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr ""
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+msgid "Session"
+msgstr ""
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr ""
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr ""
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr ""
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr ""
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr ""
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr ""
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr ""
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr ""
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr ""
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr ""
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr ""
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr ""
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr ""
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr ""
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr ""
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr ""
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr ""
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr ""
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr ""
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr ""
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr ""
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr ""
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr ""
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr ""
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr ""
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr ""
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr ""
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr ""
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr ""
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr ""
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr ""
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr ""
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr ""
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr ""
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr ""
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr ""
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr ""
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr ""
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr ""
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr ""
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr ""
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr ""
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr ""
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr ""
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr ""
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr ""
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr ""
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr ""
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr ""
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr ""
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr ""
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr ""
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr ""
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr ""
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr ""
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr ""
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr ""
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr ""
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr ""
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr ""
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr ""
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr ""
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr ""
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr ""
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr ""
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr ""
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Error initializing sound"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr ""
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr ""
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr ""
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr ""
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr ""
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr ""
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr ""
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr ""
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr ""
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr ""
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr ""
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr ""
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr ""
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr ""
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr ""
+
+#: config/strings.c:10
+msgid "Move"
+msgstr ""
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr ""
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr ""
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr ""
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr ""
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr ""
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr ""
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr ""
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr ""
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr ""
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr ""
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr ""
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr ""
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr ""
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr ""
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr ""
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr ""
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr ""
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr ""
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr ""
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr ""
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr ""
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr ""
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr ""
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr ""
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr ""
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr ""
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr ""
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr ""
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr ""
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr ""
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr ""
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr ""
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr ""
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr ""
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr ""
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr ""
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr ""
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr ""
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr ""
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr ""
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr ""
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr ""
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr ""
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr ""
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr ""
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr ""
+
+#: config/strings.c:165
+msgid "Default"
+msgstr ""
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr ""
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr ""
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr ""
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
--- /dev/null
+# Esperanto translations for e16 package.
+# Copyright (C) 2009 The Enlightenment Team
+# This file is distributed under the same license as the e16 package.
+#
+# <eliovir@gmail.com>, 2009.
+# Olivier <eliovir@nospam.gmail.com>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: e16 0.99.99.003\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-05-16 20:50+0000\n"
+"Last-Translator: Olivier <eliovir@nospam.gmail.com>\n"
+"Language-Team: Esperanto <translation-team-eo@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Lokalize 0.3\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Pri Enlightenment e16, versio %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Bonvenon en Enlightenment e16,\n"
+"versio %s.\n"
+"Si vi trovas cimon, bonvolu ne\n"
+"hesiti sendi cimo-raporton.\n"
+"Ni esperas ke la programo\n"
+"plaĉos al vi.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Okazis eraro dum plenumado de la programo:\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Eraro de Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr ""
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Malatenti tiun ĉi"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Restartigi Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Eliri el Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Atentu!!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Bone"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NENIU-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Neniu\n"
+"tapeto"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr ""
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Uzi ekranfonan bildon"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr ""
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr ""
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr ""
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr ""
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr ""
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Forigi dosieron\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr ""
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Ruĝa:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Verda:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blua:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr ""
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Ordigi laŭ dosiernomo"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Ordigi laŭ ecoj:"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Ordigi laŭ bildo"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr ""
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr ""
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "Ebligi la reĝimon de kongrueco por travidebla ekranfono"
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Fono"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr ""
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Eraro de IPC de E"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr ""
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr ""
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr ""
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr ""
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr ""
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr ""
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Agordoj.."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Fermi"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr ""
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Piktograma grandeco: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Travidebla fono"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr ""
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr ""
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr ""
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr ""
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr ""
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientiĝo:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr ""
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr ""
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontala"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Maldestre / Supre"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Startigi"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertikala"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Dekstre / sube"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr ""
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Fino"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Neniu"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr ""
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr ""
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr ""
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr ""
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr ""
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr ""
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr ""
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Supre"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Malsupre"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Maldekstre"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Dekstre"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Labortabloj"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Agordoj de pluropa labortablo"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Pluropa labortablo de Enlightenment\n"
+"Dialogo de agordoj\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Grando de virtuala labortablo:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "Elŝaltita"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "Ŝaltita"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr ""
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Agordoj de virtuala labortablo"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Virtuala labortablo de Enlightenment\n"
+"Dialogo de agordoj\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Apliki"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr ""
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr ""
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr ""
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr ""
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr ""
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr ""
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr ""
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr ""
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr ""
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr ""
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr ""
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr ""
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr ""
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr ""
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr ""
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr ""
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Fokuso"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Agordoj de fokuso"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Efektoj"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr ""
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr ""
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr ""
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr ""
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr ""
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr ""
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr ""
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr ""
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Ŝovante"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr ""
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr ""
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr ""
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr ""
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr ""
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr ""
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Grupoj"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr ""
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr ""
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr ""
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr ""
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr ""
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr ""
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr ""
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Mesaĝo"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr ""
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "sono"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr ""
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr ""
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr ""
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <command> : <description>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Etosoj"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Rando"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Fenestrolisto"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr ""
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr ""
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr ""
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr ""
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr ""
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr ""
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr ""
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr ""
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Menuoj"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Agordoj de menuo"
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Menuo de Enlightenment\n"
+"Dialogo de agordoj\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Travidebleco de etoso: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Randoj:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menuoj:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Ŝpruc-helpiloj:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Maldiafana"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Travidebleco"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr ""
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr ""
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Bildsimboligi"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr ""
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr ""
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr ""
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Paĝilaj Agordoj..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr ""
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr ""
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr ""
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr ""
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr ""
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr ""
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr ""
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Simpla"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr ""
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr ""
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zomi en la tabulpaĝilo kiam la muso ĉeestas supre de ili"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Ŝpruci fenestan titolon kiam la muso estas supre de la fenestro"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr ""
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr ""
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Meza"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr ""
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr ""
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "Paĝiloj"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Paĝilaj Agordoj"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Ĉu vi certas?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Ĉu vi certas ke vi volas elsaluti? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr "Jes, estingi"
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr "Jes, restartigi"
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr "Jes, elsaluti"
+
+#: src/session.c:663
+msgid " No "
+msgstr "Ne"
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr ""
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+msgid "Session"
+msgstr "Seanco"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr ""
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr ""
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr ""
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Teknike"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Skatolo"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Volvita"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr ""
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr ""
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "Disponebla"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Absoluta"
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr ""
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr ""
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr ""
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr ""
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr ""
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr ""
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr ""
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr ""
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr ""
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr ""
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr ""
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr ""
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr ""
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr ""
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr ""
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr ""
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr ""
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Posicio"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr ""
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr ""
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr ""
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "Aŭtomata malfonigo"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr ""
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr ""
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr ""
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Diversaj"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Diversaj agordoj"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Ebligi Composite-on"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr ""
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr ""
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr ""
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr ""
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr ""
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr ""
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr ""
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titolo:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Nomo:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klaso:"
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Rolo;"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Komando:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Situo"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Randa stilo"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Grando"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Labortablo"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Volva stato"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr ""
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr ""
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr ""
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Opakeco"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr ""
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Etikedoj"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr ""
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr ""
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr ""
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Forigi"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr ""
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Neuzata"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Memori"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr ""
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr ""
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr ""
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr ""
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Ebligi sonojn"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Sono"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr ""
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr ""
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr ""
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr ""
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "Nedifinita"
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr "Etoso"
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "Agordoj de etoso"
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr ""
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr ""
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr ""
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Ŝpruc-helpilo"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr ""
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr ""
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr ""
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr ""
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "Movi"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr ""
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr ""
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr ""
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr "Ombri."
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "Malombri."
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Regrandigi"
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "Regrandigi tiun fenestron."
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "Regrandigi horizontale"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "Regrandigi tiun fenestron horizontale."
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "Regrandigi vertikale"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "Regrandigi tiun fenestron vertikale."
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Fermi tiun ĉi fenestron."
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Maksimumigi"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr ""
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "Ekranfoto"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr ""
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr ""
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Plialtigi"
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr ""
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Pli malsupra"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr ""
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr ""
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr ""
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr ""
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr ""
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr ""
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Tapetoj"
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr ""
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr ""
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr ""
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr ""
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr ""
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Agordoj"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Helpo"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "Pri Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "Pri tiu etoso"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Rekomenci"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Elsaluti"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr ""
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "Rekrei menuojn"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "Lasi sole"
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "Memori..."
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "Grando de fenestro"
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "Difini la stakon"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "Agordi la randan stilon"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "Grupoj da fenestroj"
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "Agordi tiun grupon da fenestroj"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Krei novan grupon"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "Aldoni tiun fenestron en la nunan grupon"
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "Elekti grupon kien aldoni tiun fenestron"
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "Forigi tiun fenestron el grupo"
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "Forigi grupon de la fenestro"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "Stako"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Malsupre"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Normala"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Supre"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "Antaŭe"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "Inversigi \"Forviŝi fenestroliston\""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "Inversigi \"Fiksa pozicio\""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "Inversigi \"Fiksa grando\""
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "Inversigi \"Neniam fokusigi\""
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "Inversigi \"Klaki por fokusigi\""
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "Inversigi \"Zono neniam uzita\""
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "Inversigi \"Kapto de butono\""
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "Inversigi \"Aŭto-ombri\""
+
+#: config/strings.c:165
+msgid "Default"
+msgstr "Defaŭlta"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr ""
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr ""
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Plenekrana/Normala"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "Zomi/Malzomi"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "Listo de uzantaj aplikaĵoj"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Alio"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "E-akcesoraĵoj"
--- /dev/null
+# This is the Spanish locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Antonio Ognio Cesti <ognio@altavista.net>, 1999-2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2005-06-14 23:39+0100\n"
+"Last-Translator: jacinto calvo sintes <netman2@seriousman.org>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Acerca de Enlightenment %s"
+
+#: src/about.c:46
+#, fuzzy, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Bienvenidos a la %s versión\n"
+"del gestor de ventanas Enlightenment.\n"
+"Enlightenment está aun bajo desarrollo, pero\n"
+"hemos intentado corregir todos los errores que\n"
+"hemos podido encontrar. Si encuentras un error en\n"
+"el software, por favor no dudes en enviar un aviso.\n"
+"Vea la \"Ayuda\" para información sobre como acceder\n"
+"a la lista de correo.\n"
+"\n"
+"Este código fue actualizado por última vez el:\n"
+"%s\n"
+"\n"
+"Buena suerte. Esperamos que disfrute de la aplicación.\n"
+"\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u referencias restantes\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Ha ocurrido un error durante la ejecución del programa:\n"
+"%s\n"
+"Este programa no ha podido ser ejecutado.\n"
+"Esto se debe a que el archivo no existe.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Ha ocurrido un error durante la ejecución del programa:\n"
+"%s\n"
+"Este programa no ha podido ser ejecutado.\n"
+"Lo más probable es que se deba ha que este programa no está en la\n"
+"ruta de su intérprete de comandos, cuyo valor es %s. Le sugiero que consulte "
+"con la página\n"
+"del manual para dicho intérprete de comandos y lea como modificar y agregar "
+"directorios a su\n"
+"ruta de ejecución.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Ha ocurrido un error durante la ejecución del programa:\n"
+"%s\n"
+"Este programa no ha podido ser ejecutado.\n"
+"No estoy seguro del motivo por el cual no se ha podido hacer esto. El "
+"archivo existe,\n"
+"es un archivo, y tiene permisos para ejecutarlo. Le sugiero que le de\n"
+"una mirada.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Ha ocurrido un error durante la ejecución del programa:\n"
+"%s\n"
+"Este programa no ha podido ser ejecutado.\n"
+"Esto se debe a que el archivo existe, es un archivo, pero no sé le ha "
+"permitido\n"
+"ejecutarlo debido a que Ud. no tiene permisos de ejecución sobre el "
+"archivo.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Ha ocurrido un error durante la ejecución del programa:\n"
+"%s\n"
+"Este programa no ha podido ser ejecutado.\n"
+"Esto se debe a que el archivo es en realidad un directorio.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Ha ocurrido un error durante la ejecución del programa:\n"
+"%s\n"
+"Este programa no ha podido ser ejecutado.\n"
+"Esto se debe a que el archivo no es un archivo regular.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Hubo un error durante la ejecución del programa:\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Error de Enlightenment "
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Mensaje de Diálogo de Enlightenment "
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignorar esto "
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Reiniciar Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Salir de Enlightenment "
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Atención !!! "
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Información de Imagen de Fondo:\n"
+"Nombre: %s\n"
+"Archivo: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NINGUNA-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"No usar\n"
+"Fondo"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Fondos no utilizados son liberados después de %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Usar imagen de fondo"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Mantener el aspecto al escalar"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Aplicar imagen como losetas sobre el fondo"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Mover al Inicio\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplicar\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Retirar de lista\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Eliminar Archivo\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Escalamiento\n"
+"y Alineación\n"
+"de la\n"
+"imagen\n"
+"de Fondo\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Color del Fondo\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rojo:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Verde:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Azul:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Pre-barrido de Fondos"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Ordenar por Nombre"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Ordenar por Atrib."
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Ordenar por Imagen"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Usar dithering en Hi-Color"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "El Fondo reemplaza al del tema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Fondo de pantalla"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Configurar Fondo de Escritorio"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Escritorio Enlightenment\n"
+"Dialogo Configuracion del Fondo\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Error de IPC en E "
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Mensaje de Cliente desconocido recibido.\n"
+"Nombre del Cliente: %s\n"
+"Versión del Cliente: %s\n"
+"Contenido del Mensaje:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: ignorando datos extras en \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: datos requeridos no disponibles en \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Advertencia: No se ha logrado determinar que hacer\n"
+"con el siguiente texto en medio de una definición de Texto activa:\n"
+"%s\n"
+"Esta situación será ignorada y se continuará con la ejecución...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Advertencia: Error de configuración en bloque %s.\n"
+"Probablemente la salida será incorrecta.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "ERROR en la versión del tema "
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Reiniciar con los valores por omisión "
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Abortar y Salir "
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ERROR:\n"
+"\n"
+"La configuración del tema que está utilizando no es\n"
+"compatible. Su versión de config es %i. Necesita que\n"
+"sea marcada como la revisión <= %i\n"
+"\n"
+"Por favor comuníquese con el autor ó mantenedor del tema\n"
+"e infórmele que para que su tema funcione\n"
+"con esta versión de Enlightenment, debe\n"
+"actualizarlo a la configuración actual, y luego igualar\n"
+"la número de revisión.\n"
+"\n"
+"Si la revisión del tema es superior a Enlightenment\n"
+"podría deberse a que Ud. no ha actualizado Enlightenment por\n"
+"algún tiempo y que este tema utilize características solo\n"
+"presentes en una versión más avanzada.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Iniciando Enlightenment... "
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Configurar enfoque"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Cerrar"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Crear un nuevo Portaíconos"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Tamaño del Icono: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Fondo Transparente"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Ocultar borde interior"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Dibujar imagen base debajo de iconos"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Ocultar barras de desplazamiento si no se necesitan"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Reajustar tamaño automáticamente"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Alineamiento de anclaje cuando se redimensiona automáticamente:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientación:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Lado de Barra de Desplazamiento:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Flechas de Barra de Desplazamiento:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontal"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Izquierda / Arriba"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Inicio"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertical"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Derecha / Abajo"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Ambos extremos"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Extremo"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Ninguna"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Mostrar nombre de iconos"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animación al momento de iconizar Portaíconos"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Política al mostrar iconos (si una operación falla intentar siguiente):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Miniatura, icono de la aplicación, icono de Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Icono de la aplicación, icono de Enlightenment, Miniatura"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Icono de Enlightenment, Miniatura"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"IcoCaja de Enlightenment\n"
+"Dialogo de Configuracion\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Presione el botón del ratón y arrastre\n"
+"su ratón para poder arrastrar los escritorios\n"
+"hacia adelante y atrás.\n"
+"Pulse el botón derecho del ratón para obtener una lista\n"
+"de todos los escritorios y sus aplicaciones.\n"
+"Pulse el botón medio del ratón para obtener una lista\n"
+"de todas las aplicaciones que se están ejecutando.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Este es el Escritorio Raíz.\n"
+"Ud. no puede arrastrar el Escritorio Raíz.\n"
+"Pulse el botón derecho del ratón para obtener una lista\n"
+"de todos los escritorios y sus aplicaciones.\n"
+"Pulse el botón medio del ratón para obtener una lista\n"
+"de todas las aplicaciones que se están ejecutando.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Pulse aquí para llevar este Escritorio\n"
+"a la cima.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Pulse aquí para llevar este Escritorio\n"
+"hacia el fondo.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Número de Escritorios Virtuales:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Desplazar escritorios al conmutar entre ellos"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Velocidad de Desplazamiento de Escritorios: (lenta)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Enganchar los escritorios entre ellos"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Mostrar Barra de Arrastre de Escritorios"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Ubicación de la Barra de Arrastre:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Arriba"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Abajo"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Izquierdo"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Derecho"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Escritorio"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Configurar Escritorios Múltiples"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Multiples Escritorios Enlightenment\n"
+"Dálogo de Configuracion\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Tamaño de Escritorio Virtual:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Enganchar escritorios virtuales entre ellos"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Resistencia al borde de la pantalla:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Configurar Escritorios Virtuales"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Escritorios Virtuales Enlightenment\n"
+"Diálogo de Configuracion\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Aplicar"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Error en la configuración del Servidor X "
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ERROR FATAL:\n"
+"\n"
+"Este Servidor X no soporta la extensión Shape.\n"
+"Enlightenment requiere de esto para ejecutarse.\n"
+"\n"
+"Probablemente su Servidor X sea muy antiguo ó esté mal configurado.\n"
+"\n"
+"Saliendo...\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "El enfoque sigue al puntero del ratón"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "El enfoque sigue al puntero del ratón lentamente"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "El enfoque sigue los clicks del ratón"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Pulsar en una ventana siempre la eleva"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Todas las ventanas nuevas reciben el enfoque primero"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Solo nuevas ventanas de diálogo reciben enfoque"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+"Solo nuevas ventanas de diálogo cuyo padre tiene el enfoque reciben enfoque"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Enfocar ventana mientras cambiamos"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Enviar el puntero del ratón a la ventana en el cambio de enfoque"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Enviar el puntero del ratón a la ventana en el cambio de enfoque"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Mostrar y usar Lista de Enfoque"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Incluir ventanas pegajosas en la lista de enfoques"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Incluir ventanas sombreadas en la lista de enfoque"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Incluir ventanas iconificadas en la lista de enfoque"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Incluir ventanas sombreadas en la lista de enfoque"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Enfocar ventana mientras cambiamos"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Elevar ventana DESPUÉS de cambio de enfoque"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Enviar el puntero del ratón a la ventana DESPUÉS del cambio de enfoque"
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Política al mostrar la Focuslist de la imagen (si una operación falla "
+"intentar siguiente):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "Primero Icono E, luego Icono App"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Primero Icono App, luego Icono E"
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "No enfocar Nunca"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Configurar enfoque"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enfoque Enlightenment\n"
+"Diálogo de Secciones\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Efectos"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Habilitar Efecto: Gotas de Lluvia"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Ondas"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Olas"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Configurar Efectos Especiales"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Efectos especiales\n"
+"Dialogo de Configuracion\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Selección de Grupo de Ventanas"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Grupo de Ventanas de Enlightenment\n"
+"Diálogo de Selección\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Error de Grupo de Ventanas"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Esta ventana no pertenece a ningún grupo actualmente. \n"
+" Solo podrá destruir grupos ó eliminar ventanas de un grupo \n"
+" a través de una ventana que pertenezca al menos a un grupo.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" En este momento, no existen grupos ó esta ventana \n"
+" ya pertenece a todos los grupos existentes. \n"
+" Primero tiene que crear otros grupos. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" En este momento no existe ningún grupo. Primero tiene que crear un grupo.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Escoja el Grupo a Configurar: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Las siguientes acciones son aplicadas \n"
+" a todos los miembros del grupo: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Cambiando Estilo de Borde"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Iconizando"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Matando"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Moviendo"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Elevando / ocultando"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Pegando"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Enrollando"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Configurar Grupos de Ventanas"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Grupos de Ventanas de Enlightenment\n"
+"Dialogo de Configuracion\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Esta ventana no pertenece a ningún grupo. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Configuracion por Grupos:"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr "Configuraciones Globales: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Solapar posiciones de Ventanas"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Grupo %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Control de Grupo por Omisión"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Dialogo de configuracion principal de\n"
+"Grupos de Enlightenment\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Seleccione el grupo al que la ventana pertenecerá: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Seleccione el grupo del que la ventana será retirada."
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Seleccione el grupo que desea dividir"
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment efectuó una operación ilegal.\n"
+"\n"
+"Lo más probable es que Ud. tenga instalado ó esté ejecutando un\n"
+"archivo binario de Enlightenment que fue compilado para una marca ó modelo\n"
+"de CPU que no es 100%% idéntico ó compatible con el suyo.\n"
+"Por favor obtenga la copia correcta para su sistema, ó de lo\n"
+"contrario vuelva a compilar Enlightenment y posiblemente aquellas librerías "
+"de\n"
+"soporte que tiene en formato binario para ejecutar Enlightenment.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment causó una Excepción de Coma Flotante.\n"
+"\n"
+"Esto quiere decir que Enlightenment ó las librerías de soporte a las que "
+"llama\n"
+"han realizado una operación matemática no permitida (muy probablemente\n"
+"dividir un número entre cero). Lo más seguro es que se trata de un bug.\n"
+"Se recomienda reiniciar ahora. Si desea ayudar a solucionar este problema\n"
+"compile Enlightenment con soporte para símbolos de depuración y ejecute\n"
+"Enlightenment bajo gdb de manera que pueda hacer un seguimiento al punto\n"
+"donde falló y enviar un reporte de bugs útil, con información sobre\n"
+"elseguimiento, y demás detalles útiles, etc.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment ha causado una Violación de Segmentos (Segfault)\n"
+"\n"
+"Esto quiere decir que Enlightenment ó las librerías de soporte a las que "
+"llama\n"
+"han accedido a áreas de la memoria a la que no tiene permiso para\n"
+"acceder. Lo más probable es que se trate de un bug. Se recomienda\n"
+"reiniciar ahora. Si desea ayudar a solucionar este problema compile\n"
+"Enlightenment con soporte para símbolos de depuración y ejecute\n"
+"Enlightenment bajo gdb de manera que pueda hacer un seguimiento al punto\n"
+"donde falló y enviar un reporte de bugs útil, con información sobre\n"
+"elseguimiento, y demás detalles útiles, etc.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment ha causado un Error en el Bus.\n"
+"\n"
+"Se le sugiere que revise su hardware y el Sistema Operativo.\n"
+"Es muy poco usual causar errores en el Bus en equipos que\n"
+"están en estado operacional.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "Error en Actionclass!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Opciones del Portaíconos"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Configurar Portaíconos"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Mensaje"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Habilitar Composite"
+
+#: src/ipc.c:1480
+#, fuzzy
+msgid "sound"
+msgstr "Sonido"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Ayuda de los Comandos IPC de Enlightenment\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"Use \"Ayuda total\" para obtener descripciones de cada comando\n"
+"Use \"Ayuda <comando>\" para obtener descripciones individuales\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Comandos disponibles:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr "Use \"help full\" para descripciones totales de cada comando\n"
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "Use \"Ayuda <comando>\" para obtener una descripción individual\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <comando> : <descripción>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"El archivo ejecutable de una utilidad de Enlightenment no ha sido encontrado "
+"en:\n"
+"\n"
+"%s\n"
+"Este es un error fatal y Enlightenment dejará de ejecutarse.\n"
+"Por favor rectifique esta situación y asegúrese de que Enlightenment\n"
+"haya sido instalado correctamente.\n"
+"\n"
+"La razón por la que este archivo no se encuentra puede estar en\n"
+"paquetes mal construidos, la eliminación manual de dicho programa\n"
+"ó un error en la instalación de Enlightenment.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"El ejecutable DOX de Enlightenment no puede ser ejecutado:\n"
+"\n"
+"%s\n"
+"Este es un error fatal y Enlightenment dejará de ejecutarse.\n"
+"Por favor, rectifique esta situación y asegúrese de que DOX\n"
+"se haya instalado correctamente.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Tema defectuoso"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Borde"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Saltar Lista de Ventanas"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Ir a este Escritorio"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Escritorio %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Mostrar/Ocultar este grupo"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Iconizar este grupo"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Grupo %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Mostrar animación de menús"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Siempre hacer aparecer menús en la pantalla"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Torcer el puntero tras mover los Menus"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Menus:"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Miscelanea Configuraciones"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enfoque Enlightenment\n"
+"Diálogo de Secciones\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Transparencia del Tema: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Los Cambios pueden requerir el Reiniciar:"
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Estilo de Borde:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menus:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Destacados:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E Widgets:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E Dialogos:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Herramienta de Ayuda:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Opaco"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Cristal"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Transparencia del Tema: %2d"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Configuracion de Transparencia selectiva"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Transparencia Selectiva de Enlightenment\n"
+"Dialogo de Configuracion\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Opciones de Ventanas"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Iconizar"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Aniquilar"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Pegar / Despegar"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Opciones de Escritorio"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Configurar Conmutador..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Miniaturas Inhabilitadas"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Calidad Alta Inhabilitada"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Calidad Alta Habilitada"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Miniaturas Habilitadas"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Velocidad de barrido del Conmutador:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "líneas por segundo"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Habilitar el uso del Conmutador"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Ondas"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Hacer Miniaturas de la pantalla"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Suavizar miniaturas de alta calidad en modo Miniaturas"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Realizar acercamiento cuando el ratón está sobre ventanas"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Mostrar título cuando el ratón está sobre ventanas"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Barrer continuamente la pantalla para actualizar el Conmutador"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Botón del ratón para seleccionar y arrastrar ventanas:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Medio"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Botón del ratón para seleccionar escritorios:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Botón del ratón para Mostrar menú del Conmutador:"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Configurar Conmutador"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Configurar Conmutador"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Escritorio y Area de Enlightenment\n"
+"Diálogo de Configuración del Paginador\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ERROR!\n"
+"\n"
+"¿Se perdió el Administrador de Sesiones que esta aquí?\n"
+"Aquí aquí administrador de sesiones... ¿quieres un hueso?\n"
+"Oh! Ven aquí. Deja de esconderte! Bueno, continuaremos sin\n"
+"un administrador de sesiones.\n"
+"\n"
+"Sobreviviré del alguna manera.\n"
+"\n"
+"\n"
+"... eso espero.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "¿Está seguro?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" ¿Está seguro de abandonar la sesión? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " SI, Apagar "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " SI, Reiniciar"
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " SI, Salir "
+
+#: src/session.c:663
+msgid " No "
+msgstr " No "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Habilitar Dialogo Logout"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Hbilitar Reinicio/Apagar al Salir"
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Miscelanea Configuraciones"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Miscelanea Configuraciones"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enfoque Enlightenment\n"
+"Diálogo de Secciones\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Movimiento:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Redimensionamiento:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Técnico"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Caja"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Enrollado"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Semi-Sólido"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Translúcido"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Mover/Redimensionar Posicion Geometrica de Info"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Centrar Ventana (Metodos O/T/B)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Siempre Esquina de Pantalla"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "No Mostrar"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Actualizar ventana al desplazarla"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Tamaño"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Configurar Tamaño y Movimiento"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment, Mover y Redimensionar\n"
+"Diálogo de metodos de configuracion\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Ventanas de Diálogo aparecen junto a sus padres"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Conmutar al escritorio donde aparezca el diálogo"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Ubicar ventanas manualmente"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Ubicar ventanas bajo el puntero"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Incluir ventanas sombreadas en la lista de enfoque"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Deslizar ventanas mientras aparecen"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Desplazar ventanas a la hora de limpiar"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Desplazamiento:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Velocidad de Desplazamiento de Aparición: (lenta)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Velocidad de Desplazamiento de Limpieza: (lenta)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animar al enrrollar y desenrrollar ventanas"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Velocidad al Enrrollar Ventanas: (lenta)\n"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Ignorar struts"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Recoger ventanas fullscreen"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Ubicar ventanas en otro area cuando este llena"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Configurar Ubicación de Ventanas"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment emplazamiento de Ventanas\n"
+"Dialog de Configuración\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Elevar Ventanas Automáticamente"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Retardo al elevar ventanas:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Retardo al elevar ventanas:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Configurar Auto elevación"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment Aparicion Automatica\n"
+"de ventanas. Dialogo de Configuracion\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Habilitar cabeceras de Dialogo"
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Habilitar Imagenes en botones"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Usar saveunders para reducir la exposición de ventanas"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Miscelanea Configuraciones"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Miscelanea Configuraciones"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Miscelanea\n"
+"Dialogo de Configuracion\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Habilitar Composite"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Habilitar cambio de bordes"
+
+#: src/settings.c:629
+#, fuzzy
+msgid "Fading Speed:"
+msgstr "Fading Speed:\n"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Quitar Sombras"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Shadows Sharp"
+
+#: src/settings.c:654
+#, fuzzy
+msgid "Shadows Sharp2"
+msgstr "Shadows Sharp"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Sombras borrosas"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Habilitar Composite"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Opciones de Composite"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Composite\n"
+"Dialogo de configuracion\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Iniciando Enlightenment... "
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment no se puede conectar a la pantalla nombrada en\n"
+"la variable de entorno DISPLAY de su shell. Ud. podría asignar\n"
+"a esta variable un valor para indicar el nombre de la pantalla a la\n"
+"que E debe conectarse. Puede ser que Ud. no tenga un Servidor X\n"
+"en ejecución para atender la conexión, ó que Ud. no tenga permiso\n"
+"para conectarse a esa pantalla. Por favor asegúrese de que\n"
+"todo esto sea correcto antes de reintentar conectarse.\n"
+"Ejecute xdm ó startx primero, ó contacte al administrador de\n"
+"su sistema, ó al vendedor del Servidor X, ó lea las páginas del\n"
+"manual de X, xmd y startx antes de proseguir.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Otro Administrador de Ventanas se está ejecutando."
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Otro Gestor de Ventanas está ya funcionando.\n"
+"\n"
+"Deberás cerrar tu Gestor de Ventanas primero, para poder\n"
+"arrancar satisfactoriamente Enlightenment.\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Error en la versión del Servidor X"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignorar este error"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"Advertencia\n"
+"Este no es un Servidor X11. En realidad habla el protocolo X%i.\n"
+"Esto significa que Enlightenment no funcionará, ó\n"
+"funcionará de forma incorrecta. Si es posterior a X11, entonces\n"
+"los autores de Enlightenment nunca han tenido acceso ni han escuchado\n"
+"hablar de dicho servidor.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titulo:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Nombre:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Clase:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Rojo:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Comando:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Track Changes"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Ubicación"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Estilo de Borde"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Tamaño"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Escritorio"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Estado Enrollar"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Estado Pegar"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Capa de apilar"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Saltar Lista de Ventanas"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Opacidad"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Sombreando"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Cristal"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Reiniciar aplicación al iniciar sesión"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Recordar los grupos de esta(s) ventana(s)"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Atributos recordados de la Aplicacion"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Seleccione los atributos de esta\n"
+"ventana que quiera recordar\n"
+"desde este momento\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Eliminar"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Configuraciones Recordadas..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Sin usar"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "No hay ventanas activas con atributos de recuerdo"
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Configurar Recordatorios ..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Recordar las opciones de Ventana"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Dialogo de Configuracion de ventanas\n"
+"recordadas de Enlightenment\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Error al guardar el archivo de snaps\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Error encontrando archivo de sonido"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"ADVERTENCIA! Enlightenment no ha podido cargar\n"
+"el siguiente archivo de sonido:\n"
+"%s\n"
+"Enlightenment continuará operando, pero Ud.\n"
+"quizás deba revisar su configurar audio.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Error iniciando el sonido"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"El Audio ha sido habilitado en Enlightenemnt pero ha ocurrido\n"
+"un error de comunicación con el Servidor de Audio (Esound). El audio\n"
+"será deshabilitado.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Habilitar Sonidos"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Sonido"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Configurar Audio"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Audio\n"
+"Dialogo de configuracion\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "Error del Bandeja de Sistema!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "Solo una Bandeja de Sistema permitida"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "No se pudo activar la Bandeja de Sistema"
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Opciones de Bandeja de Sistema"
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Configurar Bandeja de Sistema"
+
+#: src/theme.c:339
+#, fuzzy, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"No se encontraron temas en el directorio por defecto:\n"
+" %s/themes/\n"
+"o en el directorio themes dentro del directorio de usuario:\n"
+" %s/themes/\n"
+"Procediendo desde donde es más puntual.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Tema defectuoso"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Miscelanea Configuraciones"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enfoque Enlightenment\n"
+"Diálogo de Secciones\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Mostrar Etiquetas de Ayuda"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Mostrar etiquetas en la Ventana Raíz"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Retardo al mostrar etiquetas:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Herramienta de Ayuda:"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Etiquetas de Ayuda"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Ayuditas\n"
+"Dialogo de configuracion\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i Escritorios"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Ir a este Escritorio"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Ir a este Escritorio"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Moviendo"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Opciones de Ventanas"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Mostrar/Ocultar este grupo"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Recordar los grupos de esta(s) ventana(s)"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Enrollado"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Tamaño"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Recordar los grupos de esta(s) ventana(s)"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horizontal"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertical"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Ir a este Escritorio"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Miniaturas Habilitadas"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Estado Enrollar"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Botón"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Pulse aquí para llevar este Escritorio\n"
+"a la cima.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Pegar / Despegar"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+"Clicando el ratón en su escritorio provocará\n"
+"las siguientes acciones "
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Mostrar Menú de Usuarios"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Mostrar Menú de Enlightenment "
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Mostrar Opciones de Menú"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Mostrar Menú de Lista de Tareas"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Mostrar Menú de Escritorio"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Mostrar Menú de Grupos"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Ir Atras un Escritorio"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Ir adelante un Escritorio"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr "Fondo de pantalla"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Opciones de Escritorio"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i Escritorio"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Ir a este Escritorio"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Ir a este Escritorio"
+
+#: config/strings.c:86
+#, fuzzy
+msgid "Create Systray"
+msgstr "Cerrar Bandeja de Sistema"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Salir de Enlightenment "
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Mostrar Menú de Usuarios"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Configurar enfoque"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Acerca de Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Reiniciar "
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " SI, Salir "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Usar imagen de fondo"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Configurar Recordatorios ..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Saltar Lista de Ventanas"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Configurar enfoque"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Estilo de Borde"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Error de Grupo de Ventanas"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Recordar los grupos de esta(s) ventana(s)"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Seleccione el grupo del que la ventana será retirada."
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Recordar los grupos de esta(s) ventana(s)"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Seleccione el grupo al que la ventana pertenecerá: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Pegando"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Arriba"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "No enfocar Nunca"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "No enfocar Nunca"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Botón"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Botón"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Eliminar"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "El enfoque sigue los clicks del ratón"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Habilitar cambio de bordes"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Atributos recordados de la Aplicacion"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+#, fuzzy
+msgid "Epplets"
+msgstr "Ondas"
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Iniciando Enlightenment... "
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "Configurar enfoque ..."
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Configurar Tamaño y Movimiento ..."
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Configurar Ubicación de Ventanas ..."
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Configurar Escritorios Múltiples ..."
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Configurar Escritorios Virtuales ..."
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "Configurar Paginador ..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Miscelanea Configuraciones"
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Configurar Autoelevación ..."
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Configurar Ayuda ..."
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "Configurar Sonido ..."
+
+#~ msgid "Group Settings ..."
+#~ msgstr "Configurar Grupo ..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "Configurar Recordatorios ..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Configurar Efectos Especiales ..."
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Configurar Fondo de Escritorio ..."
+
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Configuracion de Transparencia ... "
+
+#~ msgid "Composite Settings ..."
+#~ msgstr "Opciones Composite ..."
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Configurar Sonido ..."
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Configurar Miscelanea ..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Espejo Enrollar/Iconizar/Pegar"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Escritorios"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i Escritorio"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "pantallas de tamaño"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Pantalla de tamaño"
--- /dev/null
+# translation of fr.po to français
+# This is the French locale definition for Enlightenment.
+# Copyright (C) 1999-2000, 2004, 2005 Free Software Foundation, Inc.
+# Sylvain GIL <tootella@tootella.com>, 1999-2000.
+# Ludwig Noujarret <ludwig@noujarret.com>, 2004, 2005.
+# Tristan D. <trinine@free.fr>, 2007-2009
+msgid ""
+msgstr ""
+"Project-Id-Version: e16-0.16-0.99.99.901\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-05-15 16:33+0200\n"
+"Last-Translator: Tristan D. <trinine@free.fr>\n"
+"Language-Team: French <http://www.linuxmao.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "À propos d'Enlightenment e16 version %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Bienvenue dans Enlightenment e16\n"
+"version %s.\n"
+"Si vous constatez un bogue,\n"
+"n'hésitez pas à nous en envoyer un rapport détaillé.\n"
+"Nous espérons que vous apprécierez ce logiciel.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "Il reste %u références\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+"Ce programme ne peut être exécuté.\n"
+"Le fichier n'existe pas.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+"Ce programme ne peut être exécuté.\n"
+"Le programme n'est probablement pas dans le chemin d'exécution\n"
+"(Path) de votre shell qui est %s. Je vous suggère de lire le manuel\n"
+"de votre shell afin de trouver comment modifier votre chemin\n"
+"d'exécution.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+"Ce programme ne peut être exécuté.\n"
+"Je ne suis pas sûr de la raison. Le fichier existe, est bien de type\n"
+"\"fichier\", et vous en avez les droits d'exécution. Je vous suggère\n"
+"de le regarder plus en détail.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+"Ce programme ne peut être exécuté.\n"
+"Le fichier existe, est bien de type \"fichier\", mais vous ne pouvez pas\n"
+"l'exécuter car vous n'avez pas les droits suffisants.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+"Ce programme ne peut être exécuté.\n"
+"Le fichier est en fait un répertoire.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+"Ce programme ne peut être exécuté.\n"
+"Le fichier n'est pas un fichier régulier.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Il y a eu une erreur durant l'exécution du programme:\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Erreur d'Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Dialogue Enlightenment"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignorer"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Redémarrer Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Quitter Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Attention !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Définition du fond d'écran:\n"
+"Nom: %s\n"
+"Fichier: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-AUCUN-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Aucun\n"
+"fond d'écran"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Purger les fonds d'écran non utilisés après %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Utiliser l'image en fond d'écran"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Garder l'aspect lors du dimensionnement"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Créer une mosaïque avec l'image"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Placer en 1er\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Dupliquer\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Retirer de la liste\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Effacer le fichier\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Dimensions\n"
+"et\n"
+"alignement\n"
+"du fond\n"
+"d'écran\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Couleur du fond\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rouge:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Vert:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Bleu:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Scanner les fonds d'écran"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Trier par Fichier"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Trier par Attribut"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Trier par Image"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Utiliser le tramage (dithering) en mode Couleur (16 bits)"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Le fond d'écran remplace celui du thème"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "Activer le mode de compatibilité pour la pseudo-transparence"
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Arrière-plan"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Paramètres d'arrière-plan du bureau"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Bureau Enlightenment\n"
+"Dialogue de paramétrage d'arrière-plan\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Erreur \"E IPC\""
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Un message client inconnu a été reçu.\n"
+"Nom du client: %s\n"
+"Version du client: %s\n"
+"Contenu du message:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: Omission de donnée superflue dans \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: Absence de donnée requise dans \"%s\"\n"
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Attention: Impossible de déterminer l'utilité du texte\n"
+"suivant au sein de la définition courante %s :\n"
+"%s\n"
+"Ignoré, on continue...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Attention: Erreur de configuration dans le bloc %s.\n"
+"Ce n'est pas bon signe.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "ERREUR de version de thème"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Redémarrer avec les réglages par défaut"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Interrompre et Sortir"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ERREUR:\n"
+"\n"
+"La configuration du thème que vous utilisez est\n"
+"incompatible. Son numéro de révision est %i.\n"
+"Il devrait être <= %i\n"
+"\n"
+"Veuillez contacter l'auteur ou le responsable de ce\n"
+"thème et l'informer que pour que son thème fonctionne\n"
+"avec cette version d'Enlightenment, il devra le mettre\n"
+"à jour en respectant le nouveau format et ensuite en\n"
+"changer le numéro de version.\n"
+"\n"
+"Si la révision du thème est supérieure à celle\n"
+"d'Enlightenment, cela voudrait dire que vous ne l'avez\n"
+"pas mis à jour depuis quelques temps et que ce thème\n"
+"prend avantage de nouvelles fonctionnalités\n"
+"d'Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Démarrage d'Enlightenment..."
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Paramètres..."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Fermer"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Créer une nouvelle Boîte à icônes"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Taille des icônes: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Fond transparent"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Masquer la bordure intérieure"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Dessiner un fond derrière les icônes"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Cacher la barre de défilement si possible"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Redimensionner automatiquement"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Alignement des icônes lors du redimensionnement automatique:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientation:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Position de la barre:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Flèches de la barre de défilement:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontale"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Gauche/Haut"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Début"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Verticale"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Droit/Bas"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "2 cotés"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Fin"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Aucune"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Afficher les noms des icônes"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animer les icônifications vers cette Boîte à icônes"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Afficher les icônes dans cet ordre (en cas d'erreur, la suivante est "
+"utilisée):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Capture de la fenêtre, Icône de l'application, Icône d'Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Icône de l'application, Icône d'Enlightenment, Capture de la fenêtre"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Icône d'Enlightenment, Capture de la fenêtre"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de la\n"
+"Boîte à icônes\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "Opacité avec/sans focus : %d/%d %%"
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Cliquez et bougez la souris afin de déplacer\n"
+"le bureau dans les deux sens.\n"
+"Cliquez avec le bouton droit pour obtenir la liste\n"
+"de tous les bureaux et leurs applications.\n"
+"Cliquez avec le bouton du milieu pour obtenir la liste\n"
+"de toutes les applications actuellement lancées.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Ceci est le bureau maître.\n"
+"Vous ne pouvez pas faire glisser ce bureau.\n"
+"Cliquez avec le bouton droit pour obtenir la liste\n"
+"de tous les bureaux et leurs applications.\n"
+"Cliquez avec le bouton du milieu pour obtenir la liste\n"
+"de toutes les applications actuellement lancées.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr "Cliquez ici pour élever ce bureau.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr "Cliquez ici pour abaisser ce bureau.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Nombre de bureaux :\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Faire glisser les bureaux lors des déplacements"
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "Vitesse de glissement des bureaux:\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Placer les bureaux en boucle"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Afficher la barre de bureau"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Position de la barre de bureau:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Haut"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Bas"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Gauche"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Droit"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Bureaux multiples"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Paramètres des Bureaux multiples"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage des\n"
+"Bureaux multiples\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Nombre de bureaux virtuels:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Placer les bureaux virtuels en boucle"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "Bords sensitifs et mode de glissement:"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "Glissement désactivé"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "Glissement activé"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "Seulement lors des déplacements de fenêtre"
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Sensibilité des bords:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "Bureaux virtuels"
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Paramètres des Bureaux virtuels"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage des\n"
+"Bureaux virtuels\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Appliquer"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+"Impossible d'activer le gestionnaire Composite.\n"
+"Utilisez xdpyinfo pour vérifier que\n"
+"les extensions Composite, Damage,\n"
+"Fixes, et Render sont bien chargées."
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Erreur de configuration du serveur X"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ERREUR FATALE:\n"
+"\n"
+"Ce serveur X ne supporte pas l'extension Shape.\n"
+"Celle-ci est requise pour le bon fonctionnement d'Enlightenment.\n"
+"\n"
+"Votre serveur X est probablement trop ancien ou mal configuré.\n"
+"\n"
+"Sortie.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Le focus suit la souris"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Le focus suit la souris (sauf sur une zone vide du bureau)"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Le focus suit les clics de souris"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Toujours élever une fenêtre qui reçoit un clic"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Toutes les nouvelles fenêtres obtiennent le focus"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Seules les nouvelles fenêtres de dialogue obtiennent le focus"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+"Seules les nouvelles fenêtres de dialogue dont le parent a le\n"
+"focus obtiennent le focus."
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr "Élever les fenêtres pendant le changement de focus"
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Envoyer la souris sur la fenêtre pendant le changement de focus"
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Toujours placer la souris sur la fenêtre qui obtient le focus"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Afficher et utiliser la liste de fenêtres"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Inclure les fenêtres collées dans la liste de fenêtres"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Inclure les fenêtres enroulées dans la liste de fenêtres"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Inclure les fenêtres icônifiées dans la liste de fenêtres"
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr "Inclure les fenêtres des autres bureaux dans la liste de fenêtres"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Mettre le focus sur la fenêtre en cours de sélection"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Élever les fenêtres après l'obtention du focus"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Placer la souris sur la fenêtre après obtention du focus"
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Afficher les icônes dans la liste de fenêtres dans l'ordre suivant:"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "Icône E en premier, puis Icône de l'Application"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Icône de l'Application en premier, puis Icône E"
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Focus"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Paramètres du Focus"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage du\n"
+"Focus\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Effets"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Activer l'effet: Gouttes de pluie"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Ondes"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Vagues"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "Effets spéciaux"
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Paramètres des Effets spéciaux"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage des\n"
+"Effets spéciaux\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Sélection de Groupe de fenêtres"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Dialogue de sélection de\n"
+"Groupe de fenêtres\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Erreur Groupe de fenêtres"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Cette fenêtre n'appartient actuellement à aucun groupe. \n"
+" Vous ne pouvez détruire un groupe ou retirer une fenêtre d'un groupe \n"
+" seulement si la fenêtre courante appartient au moins à un groupe. \n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Il n'y a aucun groupe ou cette fenêtre \n"
+" appartient déjà à tous les groupes existants. \n"
+" Vous devez d'abord créer un nouveau groupe. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Il n'y a aucun groupe existant. Vous devez en créer un.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Choisissez le groupe à configurer: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Les actions suivantes sont appliquées \n"
+" à tous les membres du groupe: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Changement du style de bordure"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Icônification"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Destruction"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Déplacement"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Élévation/Abaissement"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Collage"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Enroulement"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Paramètres des Groupes de fenêtres"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage des\n"
+"Groupes de fenêtres\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Cette fenêtre n'appartient à aucun groupe. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Réglages communs aux fenêtres d'un groupe: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Réglages généraux: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Mettre en cache la position des fenêtres"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Groupes"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Paramètres par défaut des Groupes"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage\n"
+"par défaut des Groupes\n"
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr "Choisissez le groupe auquel cette fenêtre appartiendra:"
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr "Choisissez le groupe duquel la fenêtre sera retirée:"
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr "Choisissez le groupe à supprimer:"
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment a effectué une instruction illégale.\n"
+"\n"
+"Cela peut être dû au fait que vous utilisez un binaire\n"
+"d'Enlightenment compilé pour une autre architecture\n"
+"(AMD, Pentium II, Cyrix, 486) que votre machine.\n"
+"Veuillez obtenir le paquet correct ou bien recompiler\n"
+"Enlightenment, et éventuellement les bibliothèques qu'il utilise.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment a causé une exception de virgule flottante.\n"
+"\n"
+"Cela signifie qu'Enlightenment (ou une des bibliothèques associées) a\n"
+"effectué une opération mathématique illégale (ex : division par zéro).\n"
+"Il s'agit sûrement d'un bogue, il est recommandé de redémarrer\n"
+"Enlightenment maintenant. Si vous souhaitez aider à corriger ce bogue,\n"
+"compilez E16 avec les symboles de débogage (-g) et démarrez le à\n"
+"partir de gdb afin de fournir une pile d'appel ainsi que le contenu\n"
+"des variables dans un rapport de bogue.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment a causé une erreur de segmentation (Segfault)\n"
+"\n"
+"Cela signifie qu'Enlightenment (ou une des bibliothèques associées) a\n"
+"accédé à une zone de mémoire système qui ne lui était pas autorisée.\n"
+"Il s'agit sûrement d'un bogue, il est recommandé de redémarrer\n"
+"Enlightenment maintenant. Si vous souhaitez aider à corriger ce bogue,\n"
+"compilez E16 avec les symboles de débogage (-g) et démarrez le à\n"
+"partir de gdb afin de fournir une pile d'appel ainsi que le contenu\n"
+"des variables dans un rapport de bogue.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment a causé une erreur de bus.\n"
+"\n"
+"Il est suggéré de vérifier votre matériel et l'installation de votre\n"
+"système d'exploitation. Ce type d'erreur est très rare sur du matériel\n"
+"fonctionnant correctement.\n"
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "Erreur de sélection !"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr "Impossible de faire la sélection : %s"
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Options de la Boîte à icônes"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Paramètres de la Boîte à icônes"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Message"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "Enlightenment a été compilé sans prise en charge de : %s"
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "Extension Composite"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "Système Son"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Aide des commandes IPC\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"Tapez \"help all\" pour une description de toutes les commandes\n"
+"Tapez \"help <commande>\" pour une description individuelle\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Commandes disponibles actuellement:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr "Tapez \"help full\" pour une description de toutes les commandes\n"
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "Tapez \"help <commande>\" pour une description individuelle\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <commande> : <description>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+"%s doit être un répertoire pour lequel vous avez\n"
+"les droits de lecture, d'écriture et d'exécution.\n"
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!!!!!!! ERREUR ERREUR ERREUR ERREUR !!!!!!!!!!!!!\n"
+"\n"
+"L'utilitaire exécutable d'Enlightenment n'a pu être trouvé dans:\n"
+"\n"
+"%s\n"
+"C'est une erreur FATALE, Enlightement va maintenant s'arrêter.\n"
+"Veuillez rectifier cette situation et vous assurer qu'il est\n"
+"correctement installé.\n"
+"\n"
+"Les causes peuvent être: une mauvaise construction du paquet,\n"
+"un effacement manuel de ce programme, ou une erreur lors de\n"
+"l'installation d'Enlightenment.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!!!!!!! ERREUR ERREUR ERREUR ERREUR !!!!!!!!!!!!!\n"
+"\n"
+"L'utilitaire exécutable d'Enlightenment n'a pu être exécuté:\n"
+"\n"
+"%s\n"
+"C'est une erreur FATALE, Enlightement va maintenant s'arrêter.\n"
+"Veuillez rectifier cette erreur et vous assurer qu'il est\n"
+"correctement installé.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "Loupe"
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Thèmes"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Bordures"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Liste des fenêtres"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Aller vers ce Bureau"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Bureau %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Afficher/Masquer ce groupe"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Icônifier ce groupe"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Groupe %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Animer l'affichage des menus"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Toujours afficher les menus sur l'écran"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Distorsion du curseur après déplacement des menus"
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Menus"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Paramètres des Menus"
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage\n"
+"des Menus\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Transparence du thème: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Tout changement peut nécessiter un redémarrage:"
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Bordures:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menus:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Surbrillance:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "Widgets:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "Dialogues:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Bulles d'aide:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Opaque"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Verre"
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Transparence"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Paramètres de Transparence"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de\n"
+"Transparence\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Options de Fenêtre"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Icônifier"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Tuer"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Coller/Décoller"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Options de Bureau"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Paramètres du Pager..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Désactiver Capture d'écran"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Désactiver Haute Qualité"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Activer Haute Qualité"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Activer Capture d'écran"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "Désactiver le Zoom"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "Activer le Zoom"
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Vitesse de balayage du pager:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "lignes par seconde"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Activer l'affichage du Pager"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "Mode du Pager:"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Simple"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Faire des mini-captures d'écran"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "Mise à jour en temps réel"
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Faire des captures de haute qualité"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zoomer sur les fenêtres lorsque la souris passe dessus"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Afficher le titre de la fenêtre lorsque la souris passe dessus"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Balayer continuellement l'écran pour mettre le Pager à jour"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Bouton de la souris pour sélectionner et déplacer les fenêtres:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Milieu"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Bouton de la souris pour sélectionner les bureaux:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Bouton de la souris pour afficher le menu du pager:"
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "Pager"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Paramètres du Pager"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage\n"
+"du Pager\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ERREUR !\n"
+"\n"
+"Le gestionnaire de session qui était ici est perdu ?\n"
+"Au pied gestionnaire de session, au pied ! Tu veux un os ?\n"
+"Bon viens maintenant, ça suffit ! Tant pis, on continue sans\n"
+"gestionnaire de session.\n"
+"\n"
+"Je survivrai quand même.\n"
+"\n"
+"\n"
+"... Enfin j'espère. (Les traducteurs ne sont pas responsables de de délire)\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Êtes-vous sûr ?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Êtes-vous sûr de vouloir quitter la session ?\n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Oui, Éteindre "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Oui, Redémarrer "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Oui, Quitter "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Non "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "Activer le script de session"
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Activer le dialogue de fermeture de session"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Activer Rebooter/Arrêter à la fermeture de session"
+
+#: src/session.c:814
+msgid "Session"
+msgstr "Session"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "Paramètres de Session"
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage\n"
+"de Session\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr ""
+"Méthodes de\n"
+"déplacement:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr ""
+"Méthodes de\n"
+"Redimensionnement:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Technique"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Bordures"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Fenêtre ombrée"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Fenêtre semi-solide"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Fenêtre transparente"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr "Éviter de figer l'affichage pendant les changements de taille/position"
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Coordonnées géométriques de la fenêtre :"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Centre de la fenêtre"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Toujours dans le coin de l'écran"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Ne pas afficher"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "Règle de redimensionnement par défaut :"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "Conservatrice (maximisation sans aucune superposition)"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "Disponible (maximisation sur les fenêtres de niveau inférieur)"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Absolue (maximisation sur tout l'écran)"
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Rafraîchir la fenêtre en cours de déplacement"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "Synchroniser déplacement/redimensionnement avec l'application"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr "Ne pas recouvrir la barre de bureau"
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "Déplacement/Taille"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Paramètres de Déplacement et de Taille"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de\n"
+"Déplacement et de Taille de Fenêtre\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Les fenêtres de dialogue apparaissent en même temps que leur parent"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Aller au bureau où une fenêtre apparaît"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Placer les fenêtres manuellement"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Placer les fenêtres sous la souris"
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "Placer les fenêtres au centre quand le bureau est plein"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Faire glisser les fenêtres lorsqu'elles apparaissent"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Faire glisser les fenêtres lorsqu'elles disparaissent"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Méthode de glissement:"
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr "Vitesse d'apparition des fenêtres:"
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr "Vitesse de disparition des fenêtres:"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animer l'enroulement des fenêtres"
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr "Vitesse d'enroulement des fenêtres:"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Ignorer les enjambements"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Élever les fenêtres en plein écran"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Placer les fenêtres manuellement quand tout est plein"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Placement "
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Paramètres de Placement des fenêtres"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de\n"
+"Placement des fenêtres\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Élever les fenêtres automatiquement"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Délai d'Auto-élévation:"
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "Auto-élévation"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Paramètres d'Auto-élévation"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de\n"
+"l'Auto-élévation\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Activer les en-têtes sur les dialogues"
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Images de Bouton (fonction désormais désactivée)"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr "Activer les rideaux glissants au démarrage"
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Utiliser le SaveUnder pour réduire le nombre de rafraîchissements"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Divers"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Paramètres Divers"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage\n"
+"Divers\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Activer l'extension Composite"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "Activer le fondu"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "Vitesse de fondu:"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Ombres Désactivées"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Ombres Nettes"
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr "Ombres Nettes2"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Ombres Brouillées"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "Opacité par défaut des fenêtres avec le focus :"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "Opacité par défaut des fenêtres sans le focus :"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "Opacité par défaut des fenêtres nouvellement ouvertes :"
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr "Extension Composite"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Paramètres de l'extension Composite"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de\n"
+"l'extension Composite\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Paramètres d'Enlightenment..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment ne peut se connecter à l'affichage fourni par\n"
+"la variable d'environnement DISPLAY de votre shell. Vous pouvez\n"
+"changer cette variable pour indiquer sur quel affichage Enlightenment\n"
+"doit se connecter. Il est possible que vous n'ayez aucun serveur X\n"
+"démarré (et donc en mesure de répondre à la demande de connexion), ou\n"
+"encore que vous ne soyez pas autorisé à vous connecter à l'affichage\n"
+"défini dans la variable. Vous pouvez démarrer un serveur X en tapant\n"
+"xdm, startx, ou vous pouvez contacter votre administrateur, ou encore\n"
+"lire la documentation (man startx, man xdm, man X).\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Un autre gestionnaire de fenêtres est déjà lancé"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Un autre gestionnaire de fenêtres est déjà lancé.\n"
+"\n"
+"Vous devrez quitter votre gestionnaire de fenêtres actuel avant\n"
+"de pouvoir lancer Enlightenment.\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Erreur de version du serveur X"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignorer cette erreur"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"ATTENTION:\n"
+"Il n'y a pas de serveur X11. Le serveur utilise le protocole X%i.\n"
+"Enlightenment pourrait ne pas fonctionner, ou fonctionner incorrectement.\n"
+"Si votre serveur est plus récent que X11, il s'agit d'un serveur dont\n"
+"les auteurs d'Enlightenment n'ont jamais entendu parlé, ou auquel ils\n"
+"n'ont jamais eu accès.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titre:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Nom:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Classe:"
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Rôle:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Commande:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Traquer les changements"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Emplacement"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Style de bordure"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Taille"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Bureau"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "État d'enroulement"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "État de collage"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Niveau"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Ignoré de la liste des fenêtres"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Opacité"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Ombrage"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Drapeaux"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Lancer l'application au démarrage"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Se souvenir des groupes de cette fenêtre"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Attributs d'application mémorisés"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Sélectionnez les attributs de cette\n"
+"fenêtre que vous désirez mémoriser\n"
+"à partir de maintenant\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Effacer"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Paramètres de Mémorisation..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Inutilisé"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Il n'y a aucune fenêtre active avec des attributs mémorisés."
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Mémorisation"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Paramètres de Mémorisation des fenêtres"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage de la\n"
+"Mémorisation des fenêtres\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Erreur lors de l'écriture du fichier de session\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Erreur lors de la recherche du fichier son"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Attention! Enlightenment n'a pas réussi à\n"
+"charger le fichier son suivant:\n"
+"%s\n"
+"Enlightenment va continuer à fonctionner mais\n"
+"vous devriez vérifier votre configuration.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Erreur lors de l'initialisation du son"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Les sons sont activés dans Enlightenment, mais il y a eu\n"
+"une erreur de communication avec le serveur audio (%s).\n"
+"Les sons seront donc désormais désactivés.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Activer les sons"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Son"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Paramètres Audio"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage du\n"
+"Son\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "Erreur de la Zone de notification !"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "La Zone de notification est partie ailleurs ?!?"
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "Vous ne pouvez utiliser qu'une seule Zone de notification"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "Impossible d'activer la Zone de notification"
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Options de la Zone de notification"
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Paramètres de la Zone de notification"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"Aucun thème n'a été trouvé dans les répertoires par défaut:\n"
+" %s\n"
+"Abandon, car poursuivre ne servirait à rien.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr "Les modifications prendront effet au redémarrage d'e16"
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr "Utiliser les réglages de police du thème"
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr "Utiliser d'autres réglages de police (%s)"
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "Non défini"
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr "Thème"
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "Paramètres du theme"
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage\n"
+"du thème d'Enlightenment\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Afficher les Bulles d'aide"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Afficher les Bulles d'aide du Bureau maître"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Délai d'affichage des Bulles d'aide:\n"
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Bulles d'aide"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Paramètres des Bulles d'aide"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialogue de paramétrage des\n"
+"Bulles d'aide\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+"Cliquer et faire glisser pour déplacer le bureau\n"
+"(sur n'importe quel bureau excepté le bureau 0)"
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "Basculer Bureaux"
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "Aller vers le Bureau suivant"
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Aller vers le Bureau précédent"
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "Déplacement"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "Déplacer cette fenêtre."
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "Enrouler/Dérouler cette fenêtre"
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "Afficher le menu Options de Fenêtre"
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "Afficher/Masquer les bordures du groupe"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "Créer un groupe."
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "Ajouter au groupe courant."
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "Casser le groupe de cette fenêtre"
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr "Enrouler."
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "Dérouler."
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Redimensionner"
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "Redimensionner cette fenêtre"
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "Redimensionner horizontalement"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "Redimensionner cette fenêtre horizontalement."
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "Redimensionner verticalement"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "Redimensionner cette fenêtre verticalement."
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Fermer cette fenêtre."
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr "Forcer cette fenêtre à se fermer."
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "Hauteur maximum"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr "Basculer la hauteur d'écran maximum/normale."
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "Largeur maximum"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr "Basculer la largeur d'écran maximum/normale."
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Maximiser"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr "Basculer la taille d'écran maximum/normale."
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "Envoyer vers un autre Bureau"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr "Envoyer cette fenêtre sur le bureau suivant."
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr "Envoyer cette fenêtre sur le bureau précédent."
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "Capture d'écran"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr "Ce boutton ne fait rien d'intéressant."
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "Enrouler/Dérouler"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr "Icônifier (minimiser) cette fenêtre"
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "Plus de Bouton"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "Afficher plus de boutons"
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Élever d'un niveau"
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr "Élever ce bureau au premier plan."
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Descendre d'un niveau"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "Descendre cette fenêtre d'un niveau."
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr "Coller/Décoller"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+"Basculer l'état d'omniprésence (visibilité sur tous les bureaux) de cette "
+"fenêtre."
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+"Cliquer sur le bureau occasionnera les actions\n"
+"suivantes"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Afficher les Menus Utilisateur"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Afficher le Menu Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Afficher le Menu Paramètres"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Afficher le Menu Liste des Tâches"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Afficher le Menu Bureau"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Afficher le Menu Groupes"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Retourner à un Bureau"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Aller vers un Bureau"
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Fond d'écran"
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "Options de Bureau"
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "Nettoyer Bureau"
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "Aller vers le Bureau suivant"
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "Aller vers le Bureau précédent"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "Créer une Zone de notification"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "Afficher Loupe"
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "Menus Utilisateur"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Paramètres"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "Maintenance"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Aide"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "À propos d'Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "À propos de ce thème"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Redémarrer E16"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Déconnexion"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "Vider le cache des fichiers de configuration"
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "Vider le cache d'arrière-plan du Pager"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "Vider le cache du sélectionneur de fond d'écran"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "Vider tous les caches"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "Vérifier la taille du cache des fichiers de configuration"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "Vérifier la taille du cache d'arrière-plan du Pager"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "Vérifier la taille du cache du sélecteur d'arrière-plan"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "Vérifier la taille globale de tous les caches"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "Régénérer les menus"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "Laisser cette fenêtre seule"
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "Mémorisation ..."
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "Taille de fenêtre"
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "Définir le niveau"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "Définir le style de bordure"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "Groupes de fenêtre"
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "Configurer le(s) groupe(s) de cette fenêtre"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Créer un nouveau groupe"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "Ajouter cette fenêtre au groupe courant"
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "Choisissez le groupe auquel la fenêtre sera ajoutée"
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "Retirer cette fenêtre d'un groupe"
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "Supprimer un groupe auquel cette fenêtre appartient"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "Empilement"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Dessous"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Normal"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Dessus"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "Tout en haut"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "Retirer de la liste des fenêtres (On/Off)"
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "Position fixe (On/Off)"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "Taille fixe (On/Off)"
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "Ne jamais donner le focus (On/Off)"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "Cliquer pour avoir le focus (On/Off)"
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "Ne jamais utiliser de zones (On/Off)"
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "Déplacement de fenêtre par Alt+clic gauche (On/Off)"
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "Enroulement Automatique (On/Off)"
+
+#: config/strings.c:165
+msgid "Default"
+msgstr "Par défaut"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "Opacité de 100% lors du focus"
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr "Même opacité avec ou sans focus"
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "Fondu (On/Off)"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "Ombres (On/Off)"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "Basculer en taille maximum"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "Basculer en taille maximum disponible"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "Basculer en taille maximum absolue"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr "Étaler sur les écrans Xinerama"
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "Basculer en hauteur maximum"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "Basculer en hauteur maximum disponible"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "Basculer en hauteur maximum absolue"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "Basculer en largeur maximum"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "Basculer en largeur maximum disponible"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "Basculer en largeur maximum absolue"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Plein écran/Normal"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "Zoom Avant/Arrière"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "Liste d'applications de l'utilisateur"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Autres"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "Epplets"
+
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Paramètres d'Enlightenment..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "Paramètres du Focus..."
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Paramètres de Déplacement et de Taille..."
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Paramètres de Placement des Fenêtres..."
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Paramètres des Bureaux multiples..."
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Paramètres des Bureaux virtuels..."
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "Paramètres du Pager..."
+
+#~ msgid "Menu Settings ..."
+#~ msgstr "Paramètres des Menus..."
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Paramètres d'Auto-élévation..."
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Paramètres des Bulles d'aide..."
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "Paramètres Audio..."
+
+#~ msgid "Group Settings ..."
+#~ msgstr "Paramètres des Groupes..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "Paramètres de Mémorisation..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Paramètres des Effets spéciaux..."
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Paramètres de Fond d'écran..."
+
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Paramètres de Transparence..."
+
+#~ msgid "Composite Settings ..."
+#~ msgstr "Paramètres de Transparence Composite..."
+
+#~ msgid "Session Settings ..."
+#~ msgstr "Paramètres de Session..."
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Paramètres Divers..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Répercuter Enroulement/Icônification/Collage"
--- /dev/null
+# This is the Hungarian locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Gergely Egerváry <mauzi@poli.hu>, 1999-2000.
+# György Horák <dyuri@horak.hu>, 2005
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-01-04 23:15+0100\n"
+"Last-Translator: György Horák <dyuri@horak.hu>\n"
+"Language-Team: Hungarian <hu@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Az Enlightenment %s névjegye"
+
+#: src/about.c:46
+#, fuzzy, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Üdvözli az Enlightenment ablakkezelõ %s verziója.\n"
+"Az Enlightenment folyamatosan fejlesztés alatt áll,\n"
+"minden hibát megpróbálunk kijavítani benne, amit találunk.\n"
+"Ha egy hibát talál a szoftverben, kérjük jelezze felénk!\n"
+"A \"Segítség\" menüpontban további információkat talál\n"
+"a levelezési listáinkhoz való csatlakozásról.\n"
+"\n"
+"A kód utoljára frissült:\n"
+"%s\n"
+"\n"
+"Bízunk benne, hogy örömét leli majd a szoftverben.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u referencia maradt\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Hiba történt a program futtatásakor:\n"
+"%s\n"
+"A programot nem lehet futtatni.\n"
+"A megadott fájl nem létezik.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Hiba történt a program futtatásakor:\n"
+"%s\n"
+"A programot nem lehet futtatni.\n"
+"A program valószínûleg nincs a %s shell elérési útvonalában.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Hiba történt a program futtatásakor:\n"
+"%s\n"
+"A programot nem lehet futtatni.\n"
+"A hiba okát nem lehet megállapítani. A fájl létezik,\n"
+"és van futtatási joga rá. Javasolt, hogy nézzen\n"
+"utána a problémának.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Hiba történt a program futtatásakor:\n"
+"%s\n"
+"A programot nem lehet futtatni.\n"
+"A fájl létezik, de nem futtatható, mert nincs rá futtatási joga.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Hiba történt a program futtatásakor:\n"
+"%s\n"
+"A programot nem lehet futtatni.\n"
+"A megadott fájl valójában egy könyvtár.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Hiba történt a program futtatásakor:\n"
+"%s\n"
+"A programot nem lehet futtatni.\n"
+"A megadott fájl nem hagyományos fájl.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment hiba"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment üzenetablak"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Hiba átlépése"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Enlightenment újraindítása"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Kilépés"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Figyelem !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Háttérkép információ:\n"
+"Név: %s\n"
+"Fájl: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NINCS-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Nincs\n"
+"Háttér"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "A használaton kívüli hátterek felszabadítása %2i:%02i:%02i után"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Háttérkép használata"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Arányok megtartása átméretezésnél"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Mozaikszerû elrendezés"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Elõre mozgatás\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Másolás\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Elrejtés\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Fájl törlése\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Háttérkép\n"
+"mérete\n"
+"és\n"
+"elhelyezkedése\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Háttérszín\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Piros:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Zöld:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Kék:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Frissítés"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Fájlnév szerint rendez"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Attribútum szerint rendez"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Kép szerint rendez"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Színek elmosása Hi-Color módban"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "A háttér felülírja a téma beállításait"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr "Háttér"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Asztalháttér beállításai"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Enlightenment Desktop\n"
+"Háttér beállítás\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC hiba"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Ismeretlen üzenet érkezett.\n"
+"Kliens neve: %s\n"
+"Kliens verziója: %s\n"
+"Üzenet tartalma:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: felesleges adatok átlépése: \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: hiányzó adatok: \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Figyelem: nem tudom eldönteni, mit tegyek\n"
+"az aktuális ActionClass definíció közepén található szöveggel:\n"
+"%s\n"
+"Figyelmen kívül hagyom...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Figyelem: Konfigurációs hiba az alábbi blokkban: %s\n"
+"Az eredmény valószínûleg nem jó.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Téma verzió HIBA"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Újraindítás alapértékekkel"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Megszakít és kilép"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"HIBA:\n"
+"\n"
+"Az Ön által használt téma konfigurációja nem\n"
+"kompatibilis a jelenlegivel. A verzió %i helyett\n"
+"%i kellene, hogy legyen.\n"
+"\n"
+"Vegye fel a kapcsolatot a téma karbantartójával,\n"
+"és tudassa vele, hogy ahhoz hogy a témája mûködjön\n"
+"az Enlightenment jelen verziójával, frissítenie\n"
+"kell a konfiguráción.\n"
+"\n"
+"Ha a téma verziója nagyobb, mint az Enlightenmenté,\n"
+"lehet, hogy egy ideje nem frissítette, a téma pedig\n"
+"kihasználná az új verzió adta lehetõségeke.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Az Enlightenment indítása..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Fókusz beállításai"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Bezár"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Új ikondoboz létrehozása"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Ikonok mérete"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Átlátszó háttér"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Csoport mutatása/elrejtése"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Háttér kirajzolása az ikonok mögé"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Gördítõsáv elrejtése, amikor nem szükséges"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Automatikus átméretezés, hogy az ikonok elférjenek"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Újrarendezõdés automatikus átméretezésnél:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Irány:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Gördítõsáv helye:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Nyíl a gördítõsávon:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Vízszintes"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Bal / Fent"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Elején"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Függõleges"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Jobb / Lent"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Mindkét végén"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Végén"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Nincs"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Ikonnevek megjelenítése"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animálás kicsinyítésnél"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Ikonmegjelenítés rendje (ha az egyik nem sikerül, megpróbálja a következõt):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Miniatúra, Program ikon, Enlightenment ikon"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Program ikon, Enlightenment ikon, Miniatúra"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Enlightenment ikon, Miniatúra"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ikondoboz\n"
+"beállításai\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Az egérgombot lenyomva, az egeret mozgatva\n"
+"az asztalt elõrébb, illetve hátrébb mozgathatja.\n"
+"A jobb egérgomb lenyomásával megjelenítheti az\n"
+"összes asztalt és a rajtuk futó alkalmazásokat.\n"
+"A középsõ gomb lenyomásával egy listát kaphat\n"
+"az összes futó alkalmazásról.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Ez itt az asztal.\n"
+"A jobb egérgomb lenyomásával megjelenítheti az\n"
+"összes asztalt és a rajtuk futó alkalmazásokat.\n"
+"A középsõ gomb lenyomásával egy listát kaphat\n"
+"az összes futó alkalmazásról.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Klikkeljen ide, hogy ez az asztal\n"
+"legfelülre kerüljön.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Klikkeljen ide, hogy ez az asztal\n"
+"legalulra kerüljön.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Virtuális asztalok száma:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Animáció az asztalok váltásánál"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Asztal animáció sebessége: (lassú)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Asztalok \"körbecsúszása\""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Dragbar megjelenítése"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Dragbar elhelyezkedése:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Fent"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Lent"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Bal"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Jobb"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Asztal"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Többasztalos üzemmód beállításai"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment többasztalos üzemmód\n"
+"beállításai\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Virtuális asztal mérete:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Virtuális asztalok \"körbecsúszása\""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Érzékenység a kép szélén:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Virtuális asztalok beállításai"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment virtuális asztalok\n"
+"beállításai\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Alkalmaz"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X-szerver beállítási hiba"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"FATÁLIS HIBA:\n"
+"\n"
+"Az X-szerver nem támogatja a Shape kiterjesztést.\n"
+"Az Enlightenmentnek szüksége van erre.\n"
+"\n"
+"Az Ön X-szervere túl öreg, vagy rosszul van konfigurálva.\n"
+"\n"
+"Kilépek.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "A fókusz követi az egérmutatót"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "A fókusz lazán követi az egérmutatót"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "A fókusz követi az egérkattintást"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Az ablakok mindig felülre kerülnek egérkattintásnál"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Az új ablakok fókuszt kapnak"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Csak az új ablakok kapnak fókuszt"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Ablakváltás közben fókusz"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Az egérmutató az ablak fölé kerül fókuszváltásnál"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Az egérmutató az ablak fölé kerül fókuszváltásnál"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Fókuszlista megjelenítése és használata"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Ragadós ablakok bevétele a fókusz listába"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Árnyékolt ablakok bevétele a fókusz listába"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Ikonizált ablakok bevétele a fókusz listába"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Árnyékolt ablakok bevétele a fókusz listába"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Ablakváltás közben fókusz"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Az ablak felülre kerül fókuszváltás után"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Az egérmutató az ablak fölé kerül fókuszváltás után"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Ikonmegjelenítés rendje (ha az egyik nem sikerül, megpróbálja a következõt):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Nem kap fókuszt"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Fókusz beállításai"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment fókusz\n"
+"beállításai\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Effektek"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Effekt bekapcsolása: Esõcseppek"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Körhullámok"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Hullámok"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Speciális effektek beállításai"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment speciális effektek\n"
+"beállításai\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Ablakcsoport kiválasztása"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment Ablakcsoport\n"
+"kiválasztása\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Ablakcsoport hiba"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Ez az ablak jelenleg egy csoporthoz sem tartozik.\n"
+" Csak egy olyan ablakkal lehet csoportokat megsemmisíteni vagy\n"
+" ablakot egy csoportból kivenni, ami maga is egy csoport tagja.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Nincs létrehozva egy csoport sem, vagy ez az\n"
+" ablak már minden létezõ csoportnak a tagja.\n"
+" Hozzon létre egy új csoportot elõször.\n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Jelenleg nincsenek csoportok. Elõször létre kell hoznia egy csoportot.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Válasszon ki egy csoportot a beállításhoz: "
+
+#: src/groups.c:867
+#, fuzzy
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Az alábbi tevékenység a csoport \n"
+" minden tagján végrehajtódik: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Kerettípus váltás"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Kicsinyítés"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Megsemmisítés"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Mozgatás"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Följebb/Lejjebb"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Rögzítés"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Árnyékolás"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Ablakcsoportok beállításai"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Ablakcsoportok\n"
+"beállításai\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Ez az ablak nem tartozik egy csoporthoz sem. \n"
+"\n"
+
+#: src/groups.c:962
+#, fuzzy
+msgid " Per-group settings: "
+msgstr " Lapozó beállításai: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Globális beállítások: "
+
+#: src/groups.c:1012
+#, fuzzy
+msgid "Swap Window Locations"
+msgstr "Ablak helyének cseréje"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "%i. csoport"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Csoportok alapbeállításai"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Enlightenment Csoportok\n"
+"alapbeállításai\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Válassza ki a csoportot ahova az ablak tartozni fog: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Válassza ki a csoportot ahonnan az ablak el lesz távolítva. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Válassza ki a csoportot a megszakításhoz "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "ActionClass hiba!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Ikondoboz beállításai"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Ikondoboz beállításai"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Üzenet"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Composite engedélyezése"
+
+#: src/ipc.c:1480
+#, fuzzy
+msgid "sound"
+msgstr "Hang"
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC parancsok súgója"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"írja be: \"help all\" az összes parancs leírásának megjelenítéséhez\n"
+"írja be: \"help <parancs>\" az egyes parancsok leírásának megjelenítéséhez\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"elérhetõ parancsok:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr ""
+"Írja be: \"help <parancs>\" az egyes parancsok leírásának megjelenítéséhez\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr " <parancs> : <leírás>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Rossz téma"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Kerettípus"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Ablaklista-kihagyás"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Ugrás erre az asztalra"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "%i. asztal"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Csoport mutatása/elrejtése"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Csoport kicsinyítése"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "%i. csoport"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Menük animálása"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "A menük mindig a képben jelennek meg"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Menük mozgásával együtt az egérmutató is mozog"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Menük:"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Vegyes beállítások"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment fókusz\n"
+"beállításai\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Téma átlátszóság: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "A változások életbelépéséhez újraindítás kellhet"
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Kerettípus:"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Menük:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Kiemelések:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E widgetek:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E párbeszédablakok:"
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Tippek:\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Átlátszatlan"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Üveg"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Téma átlátszóság: %2d"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Részletes átlátszóság beállítások"
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment részletes átlátszóság\n"
+"beállítások\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Ablak beállításai"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Kicsinyít"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Megsemmisít"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Rögzít"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Asztal beállításai"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Pager beállításai..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Miniatúra ki"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Jó minõség ki"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Jó minõség be"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Miniatúra be"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Pager frissítési sebessége:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "sor másodpercenként"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Lapozó megjelenítése"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Körhullámok"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Miniatúrák használata"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Jó minõségû miniatúrák használata"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Ablak kinagyítása, amikor az egérmutató fölötte van"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Ablak nevének megjelenítése, amikor az egérmutató fölötte van"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Pager állandó frissítése"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Egérgomb az ablakok kiválasztásához:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Középsõ"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Egérgomb az asztalok kiválasztásához:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Egérgomb a pager menü megjelenítéséhez"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Lapozó beállításai"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Lapozó beállításai"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Enlightenment Asztal\n"
+"Lapozó beállításai\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Biztos benne?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Biztos benne, hogy ki akar lépni ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Igen, kilépek "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Igen, kilépek "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Igen, kilépek "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Nem "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "Fejléc párbeszédablakoknak"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Vegyes beállítások"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Vegyes beállítások"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment fókusz\n"
+"beállításai\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Mozgatás módja:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Átméretezés módja:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Mûszaki"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Keretes"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Árnyékolt"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Félig-teli"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Áttetszõ"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Mozgatás/átméretezés infó helyzete:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Ablak közepe"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Mindig a képernyõ sarkában"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Nem látszik"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "Ablakváltás közben fókusz"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Méret"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Mozgatás és átméretezés beállításai"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment mozgatás és\n"
+"átméretezés beállításai\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Párbeszédablak a tulajdonosával együtt jelenik meg"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Átváltás arra az asztalra, ahol az ablak megjelenik"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Ablakok kézi elhelyezése"
+
+#: src/settings.c:331
+#, fuzzy
+msgid "Place windows under mouse"
+msgstr "Ablakok kézi elhelyezése"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Árnyékolt ablakok bevétele a fókusz listába"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Animáció az ablakok megjelenésénél"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr ""
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Csúsztatás módja:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Megjelenítési animáció sebessége: (lassú)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Cleanup animáció sebessége: (lassú)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Ablakok árnyékolásának animálása"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Ablakok árnyékolásának sebessége: (lassú)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Hiba átlépése"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Teljes képernyõs ablakok felemelése"
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Ablakok kézi elhelyezése"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Ablakelhelyezés beállításai"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ablakelhelyezés\n"
+"beállításai\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Ablakok automatikus felemelkedése"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Felemelkedéssel vár:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Felemelkedéssel vár:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Auto-felemelkedési beállítások"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment Automatikus ablak\n"
+"felemelkedési beállítások\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Fejléc párbeszédablakoknak"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Hangok engedélyezése"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Alámentések használata ablak felfedés gyorsításához"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Vegyes beállítások"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Vegyes beállítások"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment vegyes\n"
+"beállítások\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Composite engedélyezése"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Asztal él-érzékenység"
+
+#: src/settings.c:629
+#, fuzzy
+msgid "Fading Speed:"
+msgstr "Halványodási sebesség\n"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Árnyékok ki"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Éles árnyékok"
+
+#: src/settings.c:654
+#, fuzzy
+msgid "Shadows Sharp2"
+msgstr "Éles árnyékok"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Elmosott árnyékok"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Composite engedélyezése"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Composite beállításai"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment üzenetablak\n"
+"beállításai\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Az Enlightenment indítása..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Az Enlightenment nem tud csatlakozni a DISPLAY változóban\n"
+"megadott szerverhez.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Már fut egy ablakkezelõ"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Már fut egy ablakkezelõ\n"
+"\n"
+"Ki kell lépnie a jelenlegi ablakkezelõbõl, majd azután\n"
+"indíthatja az Enlightenmentet.\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X-szerver verzió hiba"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Hiba átlépése"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"FIGYELEM:\n"
+"Ez nem egy X11 X-szerver, habár az X%i protokollt ismeri.\n"
+"Ez azt jelenti, hogy az Enlightenment fog mûködni,\n"
+"de legalábbis nem lesz teljes értékû.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Cím:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Név:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Osztály:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Piros:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Parancs:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Hely"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Kerettípus"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Méret"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Asztal"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Árnyékolás"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Rögzítés"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Ragadási szint"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Ablaklista-kihagyás"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Árnyékolás"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Üveg"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Alkalmazás újraindítása belépésnél"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Emlékezzen az ablak csoportjaira"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Alkalmazás maradandó paraméterei"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Válassza ki a paramétereket,\n"
+"amelyek megmaradjanak ezen ablak\n"
+"következõ indításainál is\n"
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Fájl törlése\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Maradandó beállítások..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Nincs aktív ablak maradandó beállításokkal."
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Maradandó beállítások..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Maradandó ablak beállítások"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr "Enlightenment maradandó ablakbeállítások\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Hiba a snap fájl mentésekor\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Hiba a hangfájl keresésekor"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Vigyázat! Az Enlightenment nem tudta betölteni\n"
+"az alábbi hangfájlt:\n"
+"%s\n"
+"Az Enlightenment folytatja mûködését, de ajánlott\n"
+"ellenõrizni a konfigurációs beállításokat.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Hiba a hang inicializálásakor"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"A hang be van kapcsolva az Enlightenment konfigurációjában,\n"
+"de nem sikerült kommunikálni a hangszerverrel (Esound).\n"
+"Nem lesznek hangok.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Hangok engedélyezése"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Hang"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Hang beállításai"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment hangok\n"
+"beállításai\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "ECursor hiba!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Asztal beállításai"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Auto-felemelkedési beállítások"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Rossz téma"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Vegyes beállítások"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment fókusz\n"
+"beállításai\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Tippek megjelenítése"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Tippek megjelenítése az asztalon"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Tippek késleltetése:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Tippek:\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Tippek beállításai"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment tooltip\n"
+"beállítások\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i asztal"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Ugrás erre az asztalra"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Ugrás erre az asztalra"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Mozgatás"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Ablak beállításai"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Csoport mutatása/elrejtése"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Emlékezzen az ablak csoportjaira"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Árnyékolt"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Méret"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Emlékezzen az ablak csoportjaira"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Vízszintes"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Függõleges"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Ugrás erre az asztalra"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Miniatúra be"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Árnyékolás"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Gomb"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Klikkeljen ide, hogy ez az asztal\n"
+"legfelülre kerüljön.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Rögzít"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr "Az asztalra klikkelve az alábbi esemény történik"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Felhasználói menü megjelenítése"
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Enlightenment menü megjelenítése"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "Beállítások menü megjelenítése"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Futó alkalmazások menü megjelenítése"
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Asztal menü megjelenítése"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Csoportok menü megjelenítése"
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Ugrás vissza egy asztallal"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Ugrás elõre egy asztallal"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr "Háttér"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Asztal beállításai"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i asztal"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Ugrás erre az asztalra"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Ugrás erre az asztalra"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Kilépés"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Felhasználói menü megjelenítése"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Fókusz beállításai"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Az Enlightenment %s névjegye"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Újraindítás"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Igen, kilépek "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Háttérkép használata"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Maradandó beállítások..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Ablaklista-kihagyás"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Fókusz beállításai"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Kerettípus"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Ablakcsoport hiba"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Emlékezzen az ablak csoportjaira"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Válassza ki a csoportot ahonnan az ablak el lesz távolítva. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Emlékezzen az ablak csoportjaira"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Válassza ki a csoportot ahova az ablak tartozni fog: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Rögzítés"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Fent"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Nem kap fókuszt"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Nem kap fókuszt"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Gomb"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Gomb"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Fájl törlése\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "A fókusz követi az egérkattintást"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Asztal él-érzékenység"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Alkalmazás maradandó paraméterei"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+#, fuzzy
+msgid "Epplets"
+msgstr "Körhullámok"
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Az Enlightenment indítása..."
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Fókusz beállításai"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Mozgatás és átméretezés beállításai"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Ablakelhelyezés beállításai"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Többasztalos üzemmód beállításai"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Virtuális asztalok beállításai"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Lapozó beállításai..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Vegyes beállítások"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Auto-felemelkedés beállításai..."
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Tippek beállításai"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Hang beállításai"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Csoport beállítások..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Maradandó beállítások..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Speciális effektek beállításai"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Asztalháttér beállításai"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Részletes átlátszóság beállítások"
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Composite beállításai"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Hang beállításai"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Ikondoboz beállításai..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Fordított Árnyék/Kicsi/Rögzít"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i asztal"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i asztal"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "képernyõméret"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "képernyõméret"
--- /dev/null
+# Sed script that inserts the file called HEADER before the header entry.
+#
+# At each occurrence of a line starting with "msgid ", we execute the following
+# commands. At the first occurrence, insert the file. At the following
+# occurrences, do nothing. The distinction between the first and the following
+# occurrences is achieved by looking at the hold space.
+/^msgid /{
+x
+# Test if the hold space is empty.
+s/m/m/
+ta
+# Yes it was empty. First occurrence. Read the file.
+r HEADER
+# Output the file's contents by reading the next line. But don't lose the
+# current line while doing this.
+g
+N
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}
--- /dev/null
+# This is the Italian locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Massimo Maiurana <maiurana@gmail.com>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-05-16 22:36+0200\n"
+"Last-Translator: Massimo Maiurana <maiurana@gmail.com>\n"
+"Language-Team: none\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Informazioni su Enlightenment e16 versione %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Benvenuti in Enlightenment e16\n"
+"versione %s.\n"
+"Se trovate un difetto non esitate a\n"
+"inviare un bug report.\n"
+"Noi speriamo che vi godiate il software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u riferimenti rimasti\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione\n"
+"del programma:\n"
+"%s\n"
+"Non é stato possibile eseguire questo programma\n"
+"perché il file non esiste.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione del programma:\n"
+"%s\n"
+"Non é stato possibile eseguire questo programma. Molto\n"
+"probabilmente il motivo é che il programma non é tra i\n"
+"percorsi predefiniti della shell che sono:\n"
+"%s\n"
+"Suggeriamo la lettura del manuale di questa shell riguardo\n"
+"la possibilitá di cambiare i percorsi per gli eseguibili.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione del programma:\n"
+"%s\n"
+"Non é stato possibile eseguire questo programma. Non sono certo\n"
+"del motivo per cui non é stato possibile. Il file esiste, é un\n"
+"file regolare, e avete il permesso di eseguirlo. Vi suggerisco\n"
+"di darci un'occhiata.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione del programma:\n"
+"%s\n"
+"Non é stato possibile eseguire questo programma. Il file esiste,\n"
+"é un file regolare, ma non potete eseguirlo perché non avete i\n"
+"permessi di esecuzione per questo file.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione del programma:\n"
+"%s\n"
+"Non é stato possibile eseguire questo programma perché\n"
+"in realtá non é un file ma una directory.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione del programma:\n"
+"%s\n"
+"Non é stato possibile eseguire questo programma perché\n"
+"il file non é un file regolare.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Si é verificato un'errore nell'esecuzione del programma:\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Errore di Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Finestra di dialogo di Enlightenment"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignora questo"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Riavvia Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Arresta Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Attenzione !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Informazioni sullo sfondo:\n"
+"Nome: %s\n"
+"File: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NESSUNO-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Nessuno\n"
+"sfondo"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Liberamento sfondi inutilizzati dopo %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Usa immagine di sfondo"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Mantieni aspetto dopo la scalatura"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Affianca immagine sullo sfondo"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Sposta all'inizio\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplica\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Rimuovi dalla lista\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Elimina file\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Scalatura e\n"
+"allineamento\n"
+"immagine di\n"
+"sfondo\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Colore dello sfondo\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rosso:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Verde:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blu:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Pre-analisi degli sfondi"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Ordina per nome file"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Ordina per attributi"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Ordina per immagine"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Usa dithering in Hi-Color"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Lo sfondo sostituisce quello del tema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "Abilita modo compatibilitá trasparenza sfondo"
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Sfondo"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Impostazione sfondo del desktop"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Finestra impostazione sfondo\n"
+"del desktop di Enlightenment\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Errorr IPC di E "
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Ricevuto messaggio sconosciuto dal client.\n"
+"Nome del client: %s\n"
+"Versione del client: %s\n"
+"Contenuto del messaggio:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: ignoro dati extra in \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: dati richiesti mancanti in \"%s\"\n"
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Attenzione: non riesco a capire cosa fare con il testo seguente\n"
+"in mezzo all'attuale definizione di %s:\n"
+"%s\n"
+"Ignoro e vado avanti...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Attenzione: errore di configurazione nel blocco %s.\n"
+"Probabilmente l'esito non sará buono.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "ERRORE nella versione del tema"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Riavvia con valori predefiniti"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Abortisci ed esci"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ERRORE:\n"
+"\n"
+"La configurazione del tema in esecuzione é incompatibile.\n"
+"La versione della sua configurazione é %i.\n"
+"Ha bisogno di essere marcata come versione <= %i.\n"
+"\n"
+"Vi preghiamo di contattare l'autore o il maintainer del\n"
+"tema e informarlo che perché il suo tema funzioni con\n"
+"questa versione di Enlightenment occorre che lo\n"
+"aggiornino alle attuali impostazioni e ne rendano\n"
+"compatibile il numero di versione.\n"
+"\n"
+"Se la versione del tema é maggiore di quella di\n"
+"Enlightenment puó essere che non avete aggiornato\n"
+"Enlightenment da un po' e questo tema trae beneficio da\n"
+"nuove funzionalitá presenti nelle ultime versioni di\n"
+"Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Avvio di Enlightenment... "
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Impostazioni..."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Chiudi"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Crea nuovo Iconbox"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Dimensione icone: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Sfondo trasparente"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Nascondi bordi interni"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Disegna immagine base dietro le icone"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Nascondi cursori scorrimento se non necessari"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Ridimensiona automaticamente per contenere icone"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Allineamento ancoraggio in ridimensionamento automatico:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientamento:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Lato cursore di scorrimento:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Freccie di scorrimento:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Orizzontale"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Sinistra / Alto"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Inizio"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Verticale"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Destra / Basso"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Entrambe estremitá"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Fine"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Nessuno"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Mostra nome icone"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Anima iconificazione verso Iconbox"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Regole visualizzazione immagine icone (se una fallisce passa alla seguente):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Miniatura, icona applicazione, icona di Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Icona applicazione, icona di Enlightenment, miniatura"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Icona di Enlightenment, miniatura"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra impostazione\n"
+"Iconbox di Enlightenment\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "Opacitá a/fuori fuoco: %d/%d %%"
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Tenete premuto il tasto del mouse e trascinate il\n"
+"mouse per trascinare i desktop avanti e indietro.\n"
+"Cliccate con il tasto destro del mouse per avere\n"
+"una lista di tutti i desktop e le loro applicazioni.\n"
+"Cliccate con il tasto centrale del mouse per avere\n"
+"una lista di tutte le applicazioni in esecuzione.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Questo é il desktop principale.\n"
+"Non si puó trascinare il desktop principale.\n"
+"Cliccate con il tasto destro del mouse per avere\n"
+"una lista di tutti i desktop e le loro applicazioni.\n"
+"Cliccate con il tasto centrale del mouse per avere\n"
+"una lista di tutte le applicazioni in esecuzione.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Cliccare quí per alzare questo desktop\n"
+"in cima.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Cliccare quí per abbassare questo desktop\n"
+"in fondo.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Numero di desktop virtuali:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Scorri desktop al cambio"
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "Velocitá scorrimento desktop:\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Concatena desktop estremi"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Mostra barra trascinamento desktop"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Posizione barra trascinamento:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Alto"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Basso"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Sinistra"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Destra"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Desktop"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Impostazioni desktop multipli"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione desktop\n"
+"multipli di Enlightenment\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Dimensione desktop virtuale:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Concatena desktop virtuali estremi"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "Cambio desktop con puntatore al confine:"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "Disattivato"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "Attivato"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "Solo trascinando finestre"
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Resistenza al confine dello schermo:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "Aree"
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Impostazione desktop virtuali"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione desktop\n"
+"virtuali di Enlightenment\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Applica"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+"Impossibile abilitare il Composite Manager.\n"
+"Usate xdpyinfo per controllare che le\n"
+"estensioni Composite, Damage, Fixes, e\n"
+"Render siano caricate."
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Errore configurazione del server X"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ERRORE FATALE:\n"
+"\n"
+"Questo server X non supporta l'estensione Shape.\n"
+"Questa é richiesta per l'esecuzione di Enlightenment.\n"
+"\n"
+"Probabilmente il vostro server X é troppo vecchio o\n"
+"configurato male.\n"
+"\n"
+"In uscita...\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Il fuoco segue il puntatore"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Il fuoco segue le finestre sotto il puntatore"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Il fuoco segue i clic del mouse"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Un clic sulla finestra la eleva sempre"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Tutte le finestre nuove prendono il fuoco"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Solo le finestre di dialogo prendono il fuoco"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Solo le finestre di dialogo prendono il fuoco se il genitore lo ha"
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr "Eleva finestre mentre cambia il fuoco"
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Invia puntatore alla finestra mentre cambia il fuoco"
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Invia sempre puntatore alla finestra al cambio di fuoco"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Mostra e usa la lista del fuoco"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Includi finestre appiccicate nella lista del fuoco"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Includi finestre contratte nella lista del fuoco"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Includi finestre iconificate nella lista del fuoco"
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr "Includi finestre di altri desktop nella lista del fuoco"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Dai fuoco alle finestre mentre cambi"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Eleva finestre dopo il cambio del fuoco"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Invia puntatore alla finestra dopo il cambio del fuoco"
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Regole visualizzazione immagine lista fuoco (se una fallisce passa alla "
+"seguente):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "Prima icona di E, poi icona della app."
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Prima icona della app., poi icona di E"
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Fuoco"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Impostazioni del fuoco"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione del\n"
+"fuoco di Enlightenment\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Effetti"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Abilita effetto: Pioggia"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Increspature"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Onde"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "Effetti"
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Impostazione effetti speciali"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione effetti\n"
+"speciali di Enlightenment\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Selezione gruppo finestre"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Finestra selezione gruppo\n"
+"finestre di Enlightenment\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Errore gruppo finestre"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Questa finestra non appartiene attualmente a nessun gruppo.\n"
+" Si possono distruggere gruppi, o rimuovere finestre dai gruppi,\n"
+" solo tramite una finestra appartenenete ad almeno un gruppo\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Attualmente non esistono gruppi o questa finestra\n"
+" appartiene giá a tutti i gruppi esistenti.\n"
+" Dovrete prima iniziare altri gruppi.\n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Attualmente non esistono gruppi. Dovrete prima iniziare un gruppo\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Seleziona gruppo da configurare: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Le azioni seguenti vengono applicate \n"
+" a tutti i membri del gruppo: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Cambio stile del bordo"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Iconificazione"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Uccisione"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Spostamento"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Elevazione/abbassamento"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Attaccamento"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Contrazione"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Impostazione gruppi di finestre"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione gruppi\n"
+"di finestre di Enlightenment\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Questa finestra non appartiene attualmente a nessun gruppo.\n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Impostazioni per gruppo: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr "Impostazioni globali: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Scambia posizione finestra"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Gruppi"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Impostazione controllo gruppo predefinita"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Finestra configurazione controllo gruppo\n"
+"predefinito di Enlightenment\n"
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr "Selezionare gruppo a cui apparterrá la finestra:"
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr "Selezionare gruppo da cui rimuovere la finestra:"
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr "Selezionare gruppo da spezzare:"
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment ha eseguito un'istruzione illegale.\n"
+"\n"
+"Questo é dovuto probabilmente all'aver installato ed\n"
+"eseguito un binario di Enlightenment compilato per una\n"
+"CPU non identica o compatibile al 100%% con la vostra.\n"
+"Vi preghiamo di installare il pacchetto giusto per il\n"
+"vostro sistema, o di ricompilare Enlightenment e\n"
+"possibilmente ogni libreria di supporto che si é avuta\n"
+"in formato binario per eseguire Enlightenment.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment ha causato una eccezione in virgola mobile.\n"
+"\n"
+"Questo significa che Enlightenment, o routine di librerie di supporto\n"
+"chiamate da lui, hanno eseguito un'operazione matematica illegale\n"
+"(molto probabilmente dividendo un numero per zero). Questo é molto\n"
+"probabilmente un baco. Si consiglia di riavviare. Se desiderate\n"
+"aiutare nella correzione del baco compilate Enlightenment con i\n"
+"simboli di debugging ed eseguitelo sotto gdb in modo da tracciare il\n"
+"punto in cui é andato in crash, e inviate un rapporto completo di\n"
+"backtrace, stampe di variabili, ecc.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment ha causato una violazione di segmento (Segfault).\n"
+"\n"
+"Questo significa che Enlightenment, o routine di librerie di supporto\n"
+"chiamate da lui, hanno tentato di accedere ad aree di memoria del\n"
+"sistema per cui non avevano permesso di accesso. Questo é molto\n"
+"probabilmente un baco. Si consiglia di riavviare. Se desiderate\n"
+"aiutare nella correzione del baco compilate Enlightenment con i\n"
+"simboli di debugging ed eseguitelo sotto gdb in modo da tracciare il\n"
+"punto in cui é andato in crash, e inviate un rapporto completo di\n"
+"backtrace, stampe di variabili, ecc.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment ha causato un errore del bus.\n"
+"\n"
+"Si suggerisce di controllare il proprio hardware e la\n"
+"installazione del sistema operativo. E' molto insolito\n"
+"causare errori del bus su hardware operativo.\n"
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "Errore di selezione!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr "Impossibile acquisire la selezione: %s"
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Opzioni dell'Iconbox"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Impostazioni dell'Iconbox"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Messaggio"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "e16 é compilato senza supporto per %s"
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "composite"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "suono"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Aiuto comandi IPC di Enlightenment\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"Usare \"help all\" per la descrizione di ogni comando\n"
+"Usare \"help <comando>\" per una descrizione individuale\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Comandi attualmente disponibili:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr "Usare \"help full\" per la descrizione completa di ogni comando\n"
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "Usare \"help <comando>\" per una descrizione individuale\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <comando> : <descrizione>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+"%s deve essere una directory in cui si hanno\n"
+"permessi di lettura, scrittura e esecuzione.\n"
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ERRORE ERRORE ERRORE ERRORE !!!!!!!!\n"
+"\n"
+"L'eseguibile dell'utilitá di Enlightenment non trovato in:\n"
+"\n"
+"%s\n"
+"Questo é un errore fatale e Enlightenment cesserá l'esecuzione.\n"
+"Si prega di rettificare questa situazione ed assicurarsi che\n"
+"sia installato correttamente.\n"
+"\n"
+"La ragione per cui non si trova potrebbe essere un pacchetto\n"
+"creato male, qualcuno che ha cancellato manualmente quel\n"
+"programma, o forse un errore nell'installazione di Enlightenment.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ERRORE ERRORE ERRORE ERRORE !!!!!!!!\n"
+"\n"
+"L'eseguibile dell'utilitá di Enlightenment non puó essere eseguito:\n"
+"\n"
+"%s\n"
+"Questo é un errore fatale e Enlightenment cesserá l'esecuzione.\n"
+"Si prega di rettificare questa situazione ed assicurarsi che\n"
+"sia installato correttamente.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "Ingranditore"
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Tema"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Bordo"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Lista finestre"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Vai a questo desktop"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Desktop %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Mostra/nascondi questo gruppo"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Iconifica questo gruppo"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Gruppo %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Visualizzazione menú animata"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Mostra sempre menú popup sullo schermo"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Invia puntatore dopo spostamento menú"
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Menú:"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Impostazioni menú"
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione\n"
+"menú di Enlightenment\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "Transparenza del tema: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "I cambiamenti possono richiedere il riavvio:"
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Bordi:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menú:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Enfatizzazioni:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "Oggetti:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "Finestre di dialogo:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Popup suggerimenti:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Opaco"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Trasparente"
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Transparenza"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Impostazione transparenze selettiva"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione trasparenze\n"
+"selettiva di Enlightenment\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Opzioni delle finestre"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Iconifica"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Uccidi"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Appiccica/stacca"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Opzioni dei desktop"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Impostazioni del Pager..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Miniature disabilitate"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Alta qualitá disabilitata"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Alta qualitá abilitata"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Miniature abilitate"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "Zoom disabilitato"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "Zoom abilitato"
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Velocitá aggiornamento Pager:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linee al secondo"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Abilita visualizzazione Pager"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "Modalitá Pager:"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Semplice"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Crea miniature dello schermo"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "Aggiornamento in tempo reale"
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Crea miniature ad alta qualitá"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zoom delle finestre nel Pager al passaggio del mouse"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Mostra titolo finestra al passaggio del mouse"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Scansione continua dello schermo per aggiornamento Pager"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Tasto del mouse per selezione e trascinamento finestre:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Centrale"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Tasto del mouse per selezione desktop:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Tasto del mouse per menú del Pager:"
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "Pager"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Impostazioni del Pager"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Finestra configurazione\n"
+"Pager di Enlightenment\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ERRORE!\n"
+"\n"
+"Hai perso il Session Manager che era qui?\n"
+"Su su Session Manager... vieni qui... vuoi un osso?\n"
+"Dai, vieni! Non essere scontroso! Guastafeste. Vabbé.\n"
+"Continueró senza un Session Manager.\n"
+"\n"
+"Sopravviveró in qualche modo.\n"
+"\n"
+"\n"
+"... almeno spero.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Siete sicuri?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Siete sicuri di voler uscire? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Sí, spegni "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Sí, riavvia "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Sí, esci "
+
+#: src/session.c:663
+msgid " No "
+msgstr " No "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "Abilita script di sessione"
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Abilita finestra di uscita"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Abilita riavvio/arresto all'uscita"
+
+#: src/session.c:814
+msgid "Session"
+msgstr "Sessione"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "Impostazioni sessione"
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione\n"
+"sessione di Enlightenment\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Metodi di spostamento:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Metodi di ridimensionamento:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Tecnico"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Box"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Contratto"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Semi-pieno"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Translucido"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr "Evita coinvolgimento server"
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Posizione informazioni spostamento/ridimensionamento:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Centro finestra (Metodi O/T/B)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Sempre angolo dello schermo"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Non mostrare"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "Regola predefinita ridimensionamento:"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "Conservativa"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "Disponibile"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Assoluta"
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Aggiorna finestra durante spostamento"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "Sincronizza spostamento/ridimensionamento con applicazione"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr "Non coprire barra trascinamento"
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "Spostamento/ridimensionamento"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Impostazioni spostamento e ridimensionamento"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Finestra configurazione spostamento\n"
+"e ridimensionamento di Enlightenment\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Posiziona finestre di dialogo insieme a proprietario"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Vai al desktop dove appare la finestra di dialogo"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Posiziona finestre manualmente"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Posiziona finestre sotto il puntatore"
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "Centra finestre quando lo schermo é pieno"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Animazione apparizione finestre"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Animazione riordinamento finestre"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Metodi di animazione:"
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr "Velocitá animazione apparizione:"
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr "Velocitá animazione riordinamento:"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animazione contrazione/decontrazione finestre"
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr "Velocitá contrazione finestre:"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Ignora strutture"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Eleva finestre a tutto schermo"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Posiziona finestre su altro schermo se pieno"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Posizionamento"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Impostazioni posizionamento finestre"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione posizionamento\n"
+"finestre di Enlightenment\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Eleva finestre automaticamente"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Ritardo elevazione automatica:"
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "Elevazione automatica"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Impostazioni elevazione automatica"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Finestra configurazione elevazione\n"
+"automatica finestre di Enlightenment\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Abilita intestazioni di dialogo"
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Abilita immagini dei bottoni"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr "Abilita animazione finestre di avvio"
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Usa saveunder per ridurre esposizione finestre"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Varie"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Impostazioni varie"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazioni\n"
+"varie di Enlightenment\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Abilita estensioni composite"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "Abilita dissolvenza"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "Velocitá dissolvenza:"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Ombre disattivate"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Ombre contrastate"
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr "Ombre contrastate 2"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Ombre sfuocate"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "Opacitá predefinita finestra con fuoco:"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "Opacitá predefinita finestra senza fuoco:"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "Opacitá predefinita finestra popup:"
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr "Estensioni composite"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Impostazione estensioni composite"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione estensioni\n"
+"composite di Enlightenment\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Impostazioni di Enlightenment"
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment non puó connettersi al display definito nella\n"
+"variabile d'ambiente DISPLAY della vostra shell. Potete impostare\n"
+"questa variabile per indicare il display a cui Enlightenment deve\n"
+"connettersi. E' possibile che non avete un server X giá in\n"
+"esecuzione per servire una connessione a quel display, o che non\n"
+"avete il permesso di connettervi a quel display. Vi preghiamo di\n"
+"assicurarvi che tutto sia a posto prima di riprovare. Eseguite un\n"
+"server X prima tramite xdm o startx, o contattate l'amministratore\n"
+"del vostro sistema locale, o il fornitore del server X, o leggete\n"
+"le pagine di manuale di X, xdm e startx prima di procedere.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Un altro Window Manager é giá in esecuzione"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Un altro Window Manager é giá in esecuzione.\n"
+"\n"
+"Dovrete chiudere l'attuale Window Manager prima\n"
+"di riuscire a eseguire Enlightenment con successo.\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Errore di versione del server X"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignora questo errore"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"ATTENZIONE:\n"
+"Questo non é un server X11, infatti usa il protocollo X%i.\n"
+"Questo puó significare che Enlightenment non funzioni o che\n"
+"funzioni in modo non corretto. Se é piú recente di X11, allora\n"
+"il vostro server é uno a cui l'autore di Enlightenment non\n"
+"puó accedere o di cui non ha mai sentito parlare.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titolo:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Nome:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Classe:"
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Ruolo:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Comando:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Traccia cambiamenti"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Ubicazione"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Stile di bordo"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Dimensione"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Desktop"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Stato contratto"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Stato appiccicato"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Livello"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Salta lista finestre"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Opacitá"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Ombreggiatura"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Flag"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Riavvia applicazione all'avvio"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Ricorda i gruppi di questa finestra"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Attributi applicazione da ricordare"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Selezionate gli attributi di\n"
+"questa finestra che volete\n"
+"vengano ricordati d'ora in poi\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Elimina"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Impostazioni memorizzate..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Non utilizzato"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Non ci sono finestre attive con attributi memorizzati"
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Ricorda"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Impostazioni finestre memorizzate"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Finestra configurazione proprietá\n"
+"finestra memorizzate di Enlightenment\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Errore salvataggio file istantanee\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Errore ricerca file audio"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Attenzione! Enlightenment non ha potuto\n"
+"caricare il seguente file audio:\n"
+"%s\n"
+"Enlightenment continuerá a funzionare, ma vorrete\n"
+"controllare le vostre impostazioni di configurazione.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Error inizializzazione audio"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"L'audio é stato abilitato per Enlightenment ma c'é stato un\n"
+"errore di comunicazione con il server audio (%s). L'audio\n"
+"verrá adesso disabilitato.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Abilita suoni"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Suono"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Impostazioni audio"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione\n"
+"audio di Enlightenment\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "Errore vassoio di sistema!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "Il vassoio di sistema é andato altrove?!?"
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "E' consentito un solo vassoio di sistema"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "Impossibile attivare vassoio di sistema"
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Opzioni vassoio di sistema"
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Impostazioni vassoio di sistema"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"Non sono stati trovati temi nelle directory predefinite:\n"
+" %s\n"
+"Procedere da questo punto non ha senso.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr "I cambiamenti avranno effetto al riavvio"
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr "Usa configurazione font del tema"
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr "Usa configurazione font alternativa (%s)"
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "Non impostato"
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr "Tema"
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "Impostazioni tema"
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione\n"
+"tema di Enlightenment\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Mostra popup suggerimenti"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Mostra suggerimenti finestra principale"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Ritardo popup suggerimenti:\n"
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Popup suggerimenti"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Impostazioni popup suggerimenti"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Finestra configurazione popup\n"
+"suggerimenti di Enlightenment\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+"Clicca e trascina per spostare il desktop\n"
+"(su qualunque desktop tranne il numero 0)"
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "Cambia desktop"
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "Vai al desktop successivo"
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Vai al desktop precedente"
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "Sposta"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "Sposta questa finestra."
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "Contrai/decontrai questa finestra."
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "Mostra menú opzioni finestra."
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "Mostra/nascondi bordi gruppo."
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "Inizia un gruppo."
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "Aggiungi al gruppo attuale."
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "Spezza il gruppo di questa finestra."
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr "Contrai."
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "Decontrai."
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Ridimensiona"
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "Ridimensiona questa finestra."
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "Ridimensiona orizzontalmente"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "Ridimensiona questa finestra orizzontalmente."
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "Ridimensiona verticalmente"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "Ridimensiona questa finestra verticalmente."
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Chiudi questa finestra."
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr "Uccidi questa finestra."
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "Massimizza in altezza"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr "Commuta tra altezza massima e altezza normale."
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "Massimizza in larghezza"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr "Commuta tra larghezza massima e larghezza normale."
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Massimizza"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr "Commuta tra dimensione massima e dimensione normale."
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "Invia a un altro desktop"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr "Invia questa finestra al desktop successivo."
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr "Invia questa finestra al desktop precedente."
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "Istantanea"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr "Questo bottone non fa nulla di interessante."
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "Contrai/decontrai"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr "Iconifica (minimizza) questa finestra."
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "Ulteriori bottoni"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "Mostra altri bottoni."
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Eleva"
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr "Eleva questa finestra in cima."
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Abbassa"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "Abbassa questa finestra."
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr "Appiccica/stacca"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+"Commuta lo stato onnipresente (visibile su tutti i desktop) di questa "
+"finestra."
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+"Un clic del mouse sul desktop eseguirá\n"
+"le seguenti azioni"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Mostra menú utente"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Mostra menú di Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Mostra menú impostazioni"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Mostra menú lista applicazioni"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Mostra menú del desktop"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Mostra menú dei gruppi"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Va indietro di un desktop"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Va avanti di un desktop"
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Sfondi"
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "Operazioni sul desktop"
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "Pulisci desktop"
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "Vai al desktop successivo"
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "Vai al desktop precedente"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "Crea vassoio di sistema"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "Mostra ingranditore"
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "Menú utente"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Impostazioni"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "Manutenzione"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Aiuto"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "A proposito di Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "A proposito di questo tema"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Riavvia"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Esci"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "Svuota cache dei file di configurazione"
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "Svuota cache dello sfondo del Pager"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "Svuota cache del selettore dello sfondo"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "Svuota tutte le cache"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "Utilizzo cache dei file di configurazione"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "Utilizzo cache dello sfondo del Pager"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "Utilizzo cache del selettore dello sfondo"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "Utilizzo di tutte le cache"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "Rigenera menú"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "Lascia solitaria"
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "Ricorda..."
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "Dimensione finestra"
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "Imposta livello"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "Imposta stile del bordo"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "Gruppi di finestre"
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "Configura i gruppi di questa finestra"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Inizia un nuovo gruppo"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "Aggiungi questa finestra al gruppo attuale"
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "Seleziona il gruppo a cui aggiungere questa finestra"
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "Rimuovi questa finestra da un gruppo"
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "Spezza un gruppo a cui appartiene questa finestra"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "Livello"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Inferiore"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Normale"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Superiore"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "In cima"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "Attiva/disattiva \"Salta lista finestre\""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "Attiva/disattiva posizione fissa"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "Attiva/disattiva dimensione fissa"
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "Attiva/disattiva \"Non dare mai fuoco\""
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "Attiva/disattiva \"Clicca per dare fuoco\""
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "Attiva/disattiva \"Non usare mai area\""
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "Attiva/disattiva \"Prese bottoni\""
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "Attiva/disattiva contrazione automatica"
+
+#: config/strings.c:165
+msgid "Default"
+msgstr "Predefinito"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "Opacitá \"a fuoco\" 100%"
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr "Opacitá \"a fuoco\" segue \"fuori fuoco\""
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "Attiva/disattiva dissolvenza"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "Attiva/disattiva ombreggiatura"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "Attiva/disattiva dimensione massima"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "Attiva/disattiva dimensione massima disponibile"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "Attiva/disattiva dimensione massima assoluta"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr "Estendi schermi Xinerama"
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "Attiva/disattiva altezza massima"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "Attiva/disattiva altezza massima disponibile"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "Attiva/disattiva altezza massima assoluta"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "Attiva/disattiva larghezza massima"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "Attiva/disattiva larghezza massima disponibile"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "Attiva/disattiva larghezza massima assoluta"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Tutto schermo/Normale"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "Ingrandisci/Rimpicciolisci"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "Lista applicazioni utente"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Altro"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "Epplet"
--- /dev/null
+# This is the Japanese locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Enlightenment-jp Mailing List <enlightenment-jp@UaUa.ORG>, 1999-2001.
+#
+# Japanese locale translated by Enlightenment-jp Mailing List members
+# (Motonobu Ichimura <famao@kondara.org> and
+# TAKEI Nobumitsu <takei@webmasters.gr.jp>), 1999-2001
+# reviewed by Enlightenment-jp Mailing List members(thanks lot!).
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.8.15-0.01\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-05-13 19:45+0900\n"
+"Last-Translator: Yasufumi Haga <yasufumi.haga@nifty.com>\n"
+"Language-Team: Japanese <ja@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=EUC-JP\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Enlightenment e16 ¥Ð¡¼¥¸¥ç¥ó %s ¤Ë¤Ä¤¤¤Æ"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Enlightenment e16 ¤Ø¤è¤¦¤³¤½.\n"
+"¥Ð¡¼¥¸¥ç¥ó %s\n"
+"¥Ð¥°¤ò¸«¤Ä¤±¤¿¤é, ¤¼¤Ò¥Ð¥°¥ì¥Ý¡¼¥È¤ò\n"
+"Á÷¤Ã¤Æ¤¯¤À¤µ¤¤.\n"
+"¤Ç¤Ï e16 ¤ò¤ª³Ú¤·¤ß¤¯¤À¤µ¤¤.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u »²¾È»Ä¤Ã¤Æ¤¤¤Þ¤¹¡£\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿¡£\n"
+"%s\n"
+"¤³¤Î¥×¥í¥°¥é¥à¤Ï¼Â¹Ô¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"¤³¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿:\n"
+"%s\n"
+"¤³¤Î¥×¥í¥°¥é¥à¤Ï¼Â¹Ô¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"¤ª¤½¤é¤¯¤³¤Î¥×¥í¥°¥é¥à¤¬¥·¥§¥ë¤Î¼Â¹Ô¥Ñ¥¹ %s ¤Ë¤Ê¤¤¤«¤é¤Ç¤¹¡£\n"
+"¥·¥§¥ë¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤òÆÉ¤ó¤Ç¡¢¥·¥§¥ë¤Î¼Â¹Ô¥Ñ¥¹¤ÎÊѹ¹ÊýË¡\n"
+"¤äÄɲÃÊýË¡¤òÍý²ò¤·¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿:\n"
+"%s\n"
+"¤³¤Î¥×¥í¥°¥é¥à¤Ï¼Â¹Ô¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"Íýͳ¤ÏÉÔÌÀ¤Ç¤¹¡£¥Õ¥¡¥¤¥ë¤Ï¸ºß¤·¤Æ¤¤¤Þ¤¹¤·¡¢¤Á¤ã¤ó¤È¤·¤¿¥Õ¥¡¥¤¥ë¤Ç¤¹¡£\n"
+"¤½¤ì¤Ë¤³¤Î¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤¹¤ë¸¢¸Â¤â¤¢¤ê¤Þ¤¹¡£¤³¤Î·ï¤ÏÄ´¤Ù¤¿Êý¤¬¤¤¤¤¤È\n"
+"»×¤¤¤Þ¤¹¡£\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿:\n"
+"%s\n"
+"¤³¤Î¥×¥í¥°¥é¥à¤Ï¼Â¹Ô¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"¥Õ¥¡¥¤¥ë¤Ï¸ºß¤·¤Æ¤¤¤Þ¤¹¤·¡¢¤Á¤ã¤ó¤È¤·¤¿¥Õ¥¡¥¤¥ë¤Ç¤¹¤¬¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤ËÂФ¹"
+"¤ë\n"
+"¼Â¹Ô¸¢¸Â¤¬¤Ê¤¤¤Î¤Ç¼Â¹Ô¤Ç¤¤Þ¤»¤ó¡£\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿:\n"
+"%s\n"
+"¤³¤Î¥×¥í¥°¥é¥à¤Ï¼Â¹Ô¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"¥Õ¥¡¥¤¥ë¤Ç¤Ï¤Ê¤¯¥Ç¥£¥ì¥¯¥È¥ê¤¬»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿:\n"
+"%s\n"
+"¤³¤Î¥×¥í¥°¥é¥à¤Ï¼Â¹Ô¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"¤³¤Î¥Õ¥¡¥¤¥ë¤ÏÄ̾ï¤Î¥Õ¥¡¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"°Ê²¼¤Î¥×¥í¥°¥é¥à¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬À¸¤¸¤Þ¤·¤¿¡£\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment ¥¨¥é¡¼"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment ¥á¥Ã¥»¡¼¥¸¥À¥¤¥¢¥í¥°"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "̵»ë¤¹¤ë"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Enlightenment ºÆµ¯Æ°"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Enlightenment ½ªÎ»"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Ãí°Õ !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "λ²ò"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"ÇØ·Ê¤Î¾ðÊó:\n"
+"̾Á°: %s\n"
+"¥Õ¥¡¥¤¥ë: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "¤Ê¤·"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"ÇØ·Ê\n"
+"¤Ê¤·"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "%2i:%02i:%02i ¸å¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤Çطʤò²òÊü¤¹¤ë"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "ÇØ·Ê¤Ë²èÁü¤ò»ÈÍѤ¹¤ë"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "½Ä²£¤Î¥µ¥¤¥ºÈæ¤òÊݤÄ"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "ÇØ·Ê²èÁü¤ò¥¿¥¤¥ë¾õ¤ËÇÛÃÖ"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "ÀèÆ¬¤Ø°Üư\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "¥³¥Ô¡¼\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "ÇØ·Ê¥ê¥¹¥È¤«¤é¾Ãµî\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "ÇØ·Ê¥Õ¥¡¥¤¥ë¤òºï½ü\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"ÇØ·Ê²èÁü¤Î\n"
+"\n"
+"¥µ¥¤¥ºÈæÎ¨¤È\n"
+"\n"
+"Êý¸þ\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "ÇØ·Ê¤Î¿§\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "ÀÖ:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "ÎÐ:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "ÀÄ:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "ÇØ·Ê¤ò¥¹¥¥ã¥ó"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "¥Õ¥¡¥¤¥ë̾¤Ç¥½¡¼¥È"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "°À¤Ç¥½¡¼¥È"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "²èÁü̾¤Ç¥½¡¼¥È"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "¥Ï¥¤¥«¥é¡¼»þ¤Ë¥Ç¥£¥¶¥ê¥ó¥°¤¹¤ë"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "ÇØ·Ê¤Ï¥Æ¡¼¥Þ¤ò¾å½ñ¤¤¹¤ë"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+"°ìÈ̤ÎÇØ·ÊÆ©²á¼êË¡¤Ë¹ç¤ï¤»¤ÆE16¤ÎÇØ·ÊÆ©²áµ¡Ç½¤òÊäÀµ¤¹¤ë (®ÅÙÄã²¼¤Î²ÄǽÀ¤¢"
+"¤ê)"
+
+#
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "ÇØ·Ê"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×ÇØ·Ê¤ÎÀßÄê"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥Ç¥¹¥¯¥È¥Ã¥×\n"
+"ÇØ·ÊÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC ¥¨¥é¡¼"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"ÉÔÌÀ¤Ê¥¯¥é¥¤¥¢¥ó¥È¥á¥Ã¥»¡¼¥¸¤ò¤¦¤±¤È¤ê¤Þ¤·¤¿.\n"
+"¥¯¥é¥¤¥¢¥ó¥È¥Í¡¼¥à: %s\n"
+"¥¯¥é¥¤¥¢¥ó¥È¥Ð¡¼¥¸¥ç¥ó: %s\n"
+"¥á¥Ã¥»¡¼¥¸¥³¥ó¥Æ¥ó¥Ä:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: \"%s\" ¤Ë¤¢¤ë;ʬ¤Ê¥Ç¡¼¥¿¤Ï̵»ë¤·¤Þ¤¹¡£\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: \"%s\" ¤ËɬÍפʥǡ¼¥¿¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤»¤ó¡£\n"
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Warning: ¸½ºß¤Î %s ¤ÎÄêµÁ¤Ë¤¢¤ë°Ê²¼¤Î¥Æ¥¥¹¥È¤Î½èÍýÊýË¡¤¬Ê¬¤«¤ê¤Þ¤»¤ó:\n"
+"%s\n"
+"̵»ë¤·¤Æ¼¡¤Ë¹Ô¤¤Þ¤¹...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"·Ù¹ð¡£%s ¥Ö¥í¥Ã¥¯¤ËÀßÄꥨ¥é¡¼¤¬¤¢¤ê¤Þ¤¹¡£\n"
+"½ÐÎϤϤª¤½¤é¤¯¤ª¤«¤·¤¯¤Ê¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "¥Æ¡¼¥Þ¤Î¥Ð¡¼¥¸¥ç¥ó¥¨¥é¡¼"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ÇºÆµ¯Æ°"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "̵»ë¤·¤Æ½ªÎ»"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"¥¨¥é¡¼ :\n"
+"\n"
+"»ÈÍѤ·¤Æ¤¤¤ë¥Æ¡¼¥Þ¤ÎÀßÄ꤬¹ç¤Ã¤Æ¤¤¤Þ¤»¤ó¡£\n"
+"ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥ê¥Ó¥¸¥ç¥ó¤Ï %i ¤Ç¤¹¤¬¡¢\n"
+"¥ê¥Ó¥¸¥ç¥ó¤Ï %i °Ê²¼¤Ë¤Ê¤Ã¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£\n"
+"\n"
+"¥Æ¡¼¥Þ¤Îºî¼Ô¤«¥á¥ó¥Æ¥Ê¤ÈÏ¢Íí¤ò¼è¤ê¡¢¤³¤Î¥Æ¡¼¥Þ¤ò¸½¹Ô¥Ð¡¼¥¸¥ç¥ó¤Î\n"
+"Enlightenment ¤Çư¤«¤¹¤Ë¤Ï¡¢¸½ºß¤ÎÀßÄê¤Ë¹ç¤¦¤è¤¦¥Æ¡¼¥Þ¤ò¹¹¿·¤·¡¢\n"
+"¤µ¤é¤Ë¥ê¥Ó¥¸¥ç¥óÈÖ¹æ¤ò¹ç¤ï¤»¤ëɬÍפ¬¤¢¤ë¤ÈÅÁ¤¨¤Æ²¼¤µ¤¤¡£\n"
+"\n"
+"¥Æ¡¼¥Þ¤Î¥ê¥Ó¥¸¥ç¥ó¤¬ Enlightenment ¤Î¥ê¥Ó¥¸¥ç¥ó¤è¤ê¤â¿·¤·¤¤¾ì¹ç¤Ï¡¢\n"
+"¤³¤Î¥Æ¡¼¥Þ¤ÇÍøÍѤ·¤Æ¤¤¤ëµ¡Ç½¤¬¿·¤·¤¤ Enlightenment ¤Îµ¡Ç½¤Ê¤Î¤Ë¡¢\n"
+"Enlightenment ¤¬¤·¤Ð¤é¤¯¹¹¿·¤µ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¤«¤â¤·¤ì¤Þ¤»¤ó¡£\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment µ¯Æ°Ãæ..."
+
+#
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "ÀßÄê"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "ÊĤ¸¤ë"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "¿·¤·¤¤¥¢¥¤¥³¥ó¥Ü¥Ã¥¯¥¹¤òºî¤ë"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "¥¢¥¤¥³¥ó¥µ¥¤¥º: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "ÇØ·Ê¤òÆ©ÌÀ¤Ë¤¹¤ë"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Æâ¦¤Î¥Ü¡¼¥À¡¼¤ò±£¤¹"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "¥¢¥¤¥³¥ó¤Î¸å¤í¤Ë²¼ÃϤβèÁü¤òÉÁ¤¯"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "ÉÔÍפʤ饹¥¯¥í¡¼¥ë¥Ð¡¼¤ò±£¤¹"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "¥¢¥¤¥³¥ó¤Ë¹ç¤ï¤»¤ÆÂ礤µ¤ò¼«Æ°Ä´À°¤¹¤ë"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Â礤µ¤ò¼«Æ°Ä´À°¤¹¤ë»þ¤Ë´ð½à¤È¤Ê¤ë¸ÇÄê°ÌÃÖ"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Êý¸þ"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î°ÌÃÖ"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤ÎÌð°õ¤Î°ÌÃÖ"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "¿åÊ¿"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "º¸ / ¾å"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "³«»Ï"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "¿âľ"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "±¦ / ²¼"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "ξü"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "½ªÎ»"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "¤Ê¤·"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "¥¢¥¤¥³¥ó¤Î̾Á°¤òɽ¼¨¤¹¤ë"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "¥¢¥Ë¥á¡¼¥·¥ç¥óɽ¼¨¤·¤Ê¤¬¤é¥¢¥¤¥³¥ó²½¤¹¤ë"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "¥¢¥¤¥³¥ó²èÁüɽ¼¨¥Ý¥ê¥·¡¼ (¼ºÇÔ¤·¤¿¤é¼¡¤ò»î¤¹)"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+"¥¦¥£¥ó¥É¥¦¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥¢¥¤¥³¥ó¡¢Enlightenment ¥¢¥¤¥³"
+"¥ó¤Î½ç"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+"¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥¢¥¤¥³¥ó¡¢Enlightenment ¥¢¥¤¥³¥ó¡¢¥¦¥£¥ó¥É¥¦¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã"
+"¥È¤Î½ç"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Enlightenment ¥¢¥¤¥³¥ó¡¢¥¦¥£¥ó¥É¥¦¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Î½ç"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥¢¥¤¥³¥ó¥Ü¥Ã¥¯¥¹\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "¥Õ¥©¡¼¥«¥¹Í/¥Õ¥©¡¼¥«¥¹Ìµ ¤ÎÉÔÆ©ÌÀΨ: %d/%d %%"
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò²¡¤·¤¿¤Þ¤Þ¥Þ¥¦¥¹¤ò¥É¥é¥Ã¥°¤¹¤ì¤Ð¡¢\n"
+"¥Ç¥¹¥¯¥È¥Ã¥×¤¬Á°¸å¤Ëư¤«¤»¤Þ¤¹¡£\n"
+"¥Þ¥¦¥¹¤Î±¦¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ì¤Ð¡¢¥Ç¥¹¥¯¥È¥Ã¥×¤È\n"
+"¤½¤³¤Ë¤¢¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¡¢¤¹¤Ù¤Æ°ìÍ÷¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£\n"
+"¥Þ¥¦¥¹¤ÎÃæ¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ì¤Ð¡¢¼Â¹ÔÃæ¤Î¥¢¥×¥ê\n"
+"¥±¡¼¥·¥ç¥ó¤¬¤¹¤Ù¤Æ°ìÍ÷¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"¤³¤³¤Ï¥ë¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¤Ç¤¹¡£\n"
+"¥ë¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¤Ï¥É¥é¥Ã¥°¤Ç¤¤Þ¤»¤ó¡£\n"
+"¥Þ¥¦¥¹¤Î±¦¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ì¤Ð¡¢¥Ç¥¹¥¯¥È¥Ã¥×¤È\n"
+"¤½¤³¤Ë¤¢¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¡¢¤¹¤Ù¤Æ°ìÍ÷¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£\n"
+"¥Þ¥¦¥¹¤ÎÃæ¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ì¤Ð¡¢¼Â¹ÔÃæ¤Î¥¢¥×¥ê\n"
+"¥±¡¼¥·¥ç¥ó¤¬¤¹¤Ù¤Æ°ìÍ÷¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"¤³¤³¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¤³¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤¬\n"
+"¾å¤Ë½Ð¤Þ¤¹¡£\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"¤³¤³¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¤³¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤¬\n"
+"²¼¤Ë°Ü¤ê¤Þ¤¹¡£\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "²¾Áۥǥ¹¥¯¥È¥Ã¥×¤ÎËç¿ô:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×´Ö¤ò°Üư¤¹¤ë»þ¤Ë¥¹¥é¥¤¥É¤¹¤ë"
+
+#
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤Î¥¹¥é¥¤¥É®ÅÙ\n"
+
+#
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "²¾Áۥǥ¹¥¯¥È¥Ã¥×¤Î¾å²¼º¸±¦¤ò¤Ä¤Ê¤²¤ë"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤Ë¥É¥é¥Ã¥°¥Ð¡¼¤òɽ¼¨¤¹¤ë"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "¥É¥é¥Ã¥°¥Ð¡¼¤Î°ÌÃÖ"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "¾å"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "²¼"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "º¸"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "±¦"
+
+#
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "¥Þ¥ë¥Á¥Ç¥¹¥¯¥È¥Ã¥×"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "¥Þ¥ë¥Á¥Ç¥¹¥¯¥È¥Ã¥×¤ÎÀßÄê"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥Þ¥ë¥Á¥Ç¥¹¥¯¥È¥Ã¥×\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "²¾Áۥǥ¹¥¯¥È¥Ã¥×¤ÎÂ礤µ\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "²¾Áۥǥ¹¥¯¥È¥Ã¥×¤Î¾å²¼º¸±¦¤ò¤Ä¤Ê¤²¤ë"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "¥Þ¥¦¥¹¥«¡¼¥½¥ë¤Ë¤è¤ë¥Ç¥¹¥¯¥È¥Ã¥×¤ÎÀÚ¤êÂØ¤¨"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "̵¸ú"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "͸ú"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "¥¦¥£¥ó¥É¥¦°Üư»þ¤Î¤ßÀÚ¤êÂØ¤¨¤ë"
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "²èÌ̤Îü¤Ë㤷¤¿»þ¤Î°ÜưÄñ¹³ÃÍ\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¥µ¥¤¥º"
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "²¾Áۥǥ¹¥¯¥È¥Ã¥×ÀßÄê"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ²¾Áۥǥ¹¥¯¥È¥Ã¥×\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "ŬÍÑ"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+"¥³¥ó¥Ý¥¸¥Ã¥È¥Þ¥Í¡¼¥¸¥ã¤ò͸ú¤Ë¤Ç¤¤Þ¤»¤ó.\n"
+"Composite, Damage, Fixes, Render ¤Î³Æ³ÈÄ¥µ¡Ç½¤¬\n"
+"¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò xdpyinfo ¤ò»È¤Ã¤Æ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤."
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X ¥µ¡¼¥Ð¡¼¤ÎÀßÄꥨ¥é¡¼"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"Ã×̿Ū¤Ê¥¨¥é¡¼¤Ç¤¹ :\n"
+"\n"
+"¤³¤Î X ¥µ¡¼¥Ð¡¼¤Ç¤Ï·Á¾õ³ÈÄ¥µ¡Ç½¤¬»È¤¨¤Þ¤»¤ó¡£\n"
+"Enlightenment ¤Î¼Â¹Ô¤Ë¤Ï¤³¤Îµ¡Ç½¤¬É¬ÍפǤ¹¡£\n"
+"\n"
+"¤ª¤½¤é¤¯»È¤ï¤ì¤Æ¤¤¤ë X ¥µ¡¼¥Ð¡¼¤¬¸Å¤¹¤®¤ë¤«¡¢ÀßÄê¤Ë¸í¤ê¤¬¤¢¤ê¤Þ¤¹\n"
+"\n"
+"½ªÎ»¤·¤Þ¤¹¡£\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "¥Þ¥¦¥¹¤Î¤¢¤ë¥¦¥£¥ó¥É¥¦¤¬¥Õ¥©¡¼¥«¥¹¤òÆÀ¤ë"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr ""
+"¥Þ¥¦¥¹¤Î¤¢¤ë¥¦¥£¥ó¥É¥¦¤¬¥Õ¥©¡¼¥«¥¹¤òÆÀ¤ë(¥¦¥£¥ó¥É¥¦¤òÎ¥¤ì¤Æ¤â¥Õ¥©¡¼¥«¥¹¤ÏÊÝ"
+"»ý)"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "¥¯¥ê¥Ã¥¯¤·¤¿¥¦¥£¥ó¥É¥¦¤¬¥Õ¥©¡¼¥«¥¹¤òÆÀ¤ë"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "¥¯¥ê¥Ã¥¯¤·¤¿¥¦¥£¥ó¥É¥¦¤ò¾ï¤Ë¾å¤Ø½Ð¤¹"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "¿·¤·¤¤¥¦¥£¥ó¥É¥¦¤Ï¤¹¤Ù¤Æ½Ð¸½»þ¤Ë¥Õ¥©¡¼¥«¥¹¤òÆÀ¤ë"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "¿·¤·¤¤¥À¥¤¥¢¥í¥°¥¦¥£¥ó¥É¥¦¤À¤±¤¬¥Õ¥©¡¼¥«¥¹¤òÆÀ¤ë"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "¥Õ¥©¡¼¥«¥¹¤¬¤¢¤ë¿Æ¤«¤éÀ¸¤Þ¤ì¤¿¥À¥¤¥¢¥í¥°¤À¤±¤¬¥Õ¥©¡¼¥«¥¹¤òÆÀ¤ë"
+
+#
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr "¥Õ¥©¡¼¥«¥¹¤ÎÀÚÂØÃæ¥Õ¥©¡¼¥«¥¹¤òÆÀ¤¿¥¦¥£¥ó¥É¥¦¤ò¾å¤Ë½Ð¤¹"
+
+#
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr "¥Õ¥©¡¼¥«¥¹¤ÎÀÚÂØÃæ¥Õ¥©¡¼¥«¥¹¤òÆÀ¤¿¥¦¥£¥ó¥É¥¦¤Ë¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤ò°Ü¤¹"
+
+#
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "¥Õ¥©¡¼¥«¥¹¤¬°Ü¤ë¤Èɬ¤º¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤â°Ü¤¹"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "¥Õ¥©¡¼¥«¥¹¥ê¥¹¥È¤òɽ¼¨¤·¡¢»ÈÍѤ¹¤ë"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "¾ï»þɽ¼¨¥¦¥£¥ó¥É¥¦¤ò¥Õ¥©¡¼¥«¥¹¥ê¥¹¥È¤Ë´Þ¤á¤ë"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "¥·¥§¡¼¥É¤µ¤ì¤Æ¤¤¤ë¥¦¥£¥ó¥É¥¦¤ò¥Õ¥©¡¼¥«¥¹¥ê¥¹¥È¤Ë´Þ¤á¤ë"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "¥¢¥¤¥³¥ó²½¤µ¤ì¤Æ¤¤¤ë¥¦¥£¥ó¥É¥¦¤ò¥Õ¥©¡¼¥«¥¹¥ê¥¹¥È¤Ë´Þ¤á¤ë"
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr "¾¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Î¥¦¥£¥ó¥É¥¦¤â¥Õ¥©¡¼¥«¥¹¥ê¥¹¥È¤Ë´Þ¤á¤ë"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "ÀÚ¤êÂØ¤ï¤Ã¤¿¤é¥¦¥£¥ó¥É¥¦¤Ë¥Õ¥©¡¼¥«¥¹¤ò°Ü¤¹"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "¥Õ¥©¡¼¥«¥¹¤òÀÚ¤êÂØ¤¨¤¿¤é¥¦¥£¥ó¥É¥¦¤ò¾å¤Ë½Ð¤¹"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "¥Õ¥©¡¼¥«¥¹¤òÀÚ¤êÂØ¤¨¤¿¤é¥¦¥£¥ó¥É¥¦¤Ë¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤ò°Ü¤¹"
+
+#
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "¥¢¥¤¥³¥ó²èÁüɽ¼¨¥Ý¥ê¥·¡¼ (¼ºÇÔ¤·¤¿¤é¼¡¤ò»î¤¹)"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "¤Þ¤º E ¥¢¥¤¥³¥ó¡¢¤½¤ì¤«¤é¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥¢¥¤¥³¥ó"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "¤Þ¤º¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥¢¥¤¥³¥ó¡¢¤½¤ì¤«¤é E ¥¢¥¤¥³¥ó"
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "¥Õ¥©¡¼¥«¥¹"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "¥Õ¥©¡¼¥«¥¹¤ÎÀßÄê"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥Õ¥©¡¼¥«¥¹\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "¸ú²Ì"
+
+#
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "͸ú¤Ë¤¹¤ë¸ú²Ì: ±«Å©"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "¤µ¤¶¤Ê¤ß"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "¥¦¥§¡¼¥Ö"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "ÆÃ¼ì¸ú²Ì¤ÎÀßÄê"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ÆÃ¼ì¸ú²Ì\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "¥¦¥£¥ó¥É¥¦¥°¥ë¡¼¥×¤òÁª¤Ö"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment ¥¦¥£¥ó¥É¥¦¥°¥ë¡¼¥×\n"
+"ÁªÂò¥À¥¤¥¢¥í¥°\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "¥¦¥£¥ó¥É¥¦¥°¥ë¡¼¥×¥¨¥é¡¼"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" ¤³¤Î¥¦¥£¥ó¥É¥¦¤Ï¸½ºß¤É¤Î¥°¥ë¡¼¥×¤Ë¤â°¤·¤Æ¤¤¤Þ¤»¤ó¡£\n"
+" º£¤Ç¤¤ë¤Î¤Ï¥°¥ë¡¼¥×¤òÇË´þ¤¹¤ë¤«¡¢¼ÂºÝ¤Ë¾¯¤Ê¤¯¤È¤â°ì¤Ä¤Î¥°¥ë¡¼¥×¤Ë°¤·\n"
+" ¤Æ¤¤¤ë¥¦¥£¥ó¥É¥¦¤ò»È¤Ã¤Æ¡¢¥°¥ë¡¼¥×¤«¤é¥¦¥£¥ó¥É¥¦¤òºï½ü¤¹¤ë¤³¤È¤À¤±¤Ç¤¹¡£\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" ¸½ºß¡¢¥°¥ë¡¼¥×¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢¤³¤Î¥¦¥£¥ó¥É¥¦¤Ï\n"
+" ¤¹¤Ç¤Ë´û¸¤Î¤¹¤Ù¤Æ¤Î¥°¥ë¡¼¥×¤Ë°¤·¤Æ¤¤¤Þ¤¹¡£\n"
+" ¤Þ¤ºÂ¾¤Î¥°¥ë¡¼¥×¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£\n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" ¸½ºß¡¢¥°¥ë¡¼¥×¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤Þ¤º¥°¥ë¡¼¥×¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " ÀßÄꤹ¤ë¥°¥ë¡¼¥×¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" ¥°¥ë¡¼¥×Æâ¤ÎÁ´¥¦¥£¥ó¥É¥¦¤Ë \n"
+" È¿±Ç¤µ¤ì¤ëÁàºî: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "¥Ü¡¼¥À¡¼¥¹¥¿¥¤¥ë¤ÎÊѹ¹"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "¥¢¥¤¥³¥ó²½"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "¶¯À©½ªÎ»"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "°Üư"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "¾å¤Ë½Ð¤¹/²¼¤Ë°Ü¤¹"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "¾ï»þɽ¼¨"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "¥·¥§¡¼¥É"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "¥¦¥£¥ó¥É¥¦¥°¥ë¡¼¥×¤ÎÀßÄê"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥¦¥£¥ó¥É¥¦¥°¥ë¡¼¥×\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" ¤³¤Î¥¦¥£¥ó¥É¥¦¤Ï¸½ºß¤É¤Î¥°¥ë¡¼¥×¤Ë¤â°¤·¤Æ¤¤¤Þ¤»¤ó¡£\n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " ¥°¥ë¡¼¥×¤´¤È¤ÎÀßÄê: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Á´È̤ÎÀßÄê: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "¥¦¥£¥ó¥É¥¦°ÌÃÖ¤ò¸ò´¹¤¹¤ë"
+
+#
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "¥°¥ë¡¼¥×"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "¥°¥ë¡¼¥×´ÉÍý¤Î¥Ç¥Õ¥©¥ë¥ÈÀßÄê"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥°¥ë¡¼¥×´ÉÍý¤Î\n"
+"¥Ç¥Õ¥©¥ë¥ÈÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤¬»²²Ã¤¹¤ë¥°¥ë¡¼¥×¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤:"
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr "ºï½ü¤¹¤ë¥¦¥£¥ó¥É¥¦¤¬Â°¤·¤Æ¤¤¤ë¥°¥ë¡¼¥×¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£"
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr "ÇË´þ¤¹¤ë¥°¥ë¡¼¥×¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£ "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment ¤ÇÉÔÀµ¤Ê½èÍý¤¬¼Â¹Ô¤µ¤ì¤Þ¤·¤¿¡£\n"
+"\n"
+"¤³¤ì¤Ï¤ª¤½¤é¤¯¡¢¥¤¥ó¥¹¥È¡¼¥ë¤·¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë Enlightenment ¤Î¥Ð¥¤¥Ê¥ê¤¬¡¢\n"
+"¸½ºß»ÈÍÑÃæ¤Î CPU ¤È¤Ï·¿¼°¤ä¥â¥Ç¥ë¤¬°ã¤Ã¤Æ¤¤¤ë¤·¸ß´¹À¤â¤Ê¤¤ CPU ¸þ¤±¤Ë\n"
+"¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ë¤¿¤á¤Ç¤¹¡£¼«Ê¬¤Î¥·¥¹¥Æ¥à¤Ë¹ç¤Ã¤¿¥Ñ¥Ã¥±¡¼¥¸¤òÆþ¼ê¤¹¤ë¤«\n"
+"Enlightenment ¤òºÆ¥³¥ó¥Ñ¥¤¥ë¤·¤Æ²¼¤µ¤¤¡£¤½¤ÎºÝ¡¢Enlightenment ¤ò¼Â¹Ô¤¹¤ë\n"
+"¤¿¤á¤Ë¥Ð¥¤¥Ê¥ê¥Õ¥©¡¼¥Þ¥Ã¥È¤ÇÆþ¼ê¤·¤¿¥µ¥Ý¡¼¥È¥é¥¤¥Ö¥é¥ê¤âºÆ¥³¥ó¥Ñ¥¤¥ë¤¬É¬Í×\n"
+"¤Ë¤Ê¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment ¤ÇÉâÆ°¾®¿ôÅÀÎã³°¤¬µ¯¤¤Þ¤·¤¿¡£\n"
+"\n"
+"¤Ä¤Þ¤ê¡¢Enlightenment¡¢¤Þ¤¿¤Ï¤½¤³¤«¤é¸Æ¤Ð¤ì¤ë¥µ¥Ý¡¼¥È¥ë¡¼¥Á¥ó¤Ç\n"
+"ÉÔÀµ¤Ê¿ôÃͱ黻(¤ª¤½¤é¤¯¥¼¥í½ü»»¤Ç¤·¤ç¤¦)¤¬¼Â¹Ô¤µ¤ì¤¿¤È¤¤¤¦¤³¤È¤Ç¤¹¡£\n"
+"¤³¤ì¤Ï¥Ð¥°¤Ç¤·¤ç¤¦¤«¤é¡¢¤¹¤°¤ËºÆµ¯Æ°¤·¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£¤³¤Î·ï\n"
+"¤Î½¤Àµ¤ò¼êÅÁ¤Ã¤Æ¤¤¤¿¤À¤±¤ë¤Ê¤é¡¢Enlightenment ¤ò¥Ç¥Ð¥Ã¥°¥·¥ó¥Ü¥ë\n"
+"ÉÕ¤¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¡¢¤½¤Î Enlightenment ¤ò gdb ¤Ç¼Â¹Ô¤·¤Æ²¼¤µ¤¤¡£\n"
+"¤½¤¦¤¹¤ì¤ÐÎã³°¤¬È¯À¸¤·¤¿¾ì½ê¤Ë´Ø¤¹¤ë¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¤¬¼èÆÀ¤Ç¤¤Þ¤¹¡£\n"
+"¤½¤ì¤«¤é¡¢¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¾ðÊó¤äÊÑ¿ô¥À¥ó¥×¤Ê¤É¤òźÉÕ¤·¤¿¾ÜºÙ¤Ê¥Ð¥°Êó¹ð\n"
+"¤Ë¤·¤ÆÁ÷ÉÕ¤·¤Æ²¼¤µ¤¤¡£\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment ¤Ç¥»¥°¥á¥ó¥Æ¡¼¥·¥ç¥ó°ãÈ¿ (Segfault) ¤¬µ¯¤¤Þ¤·¤¿¡£\n"
+"\n"
+"¤³¤ì¤Ï Enlightenment¡¢¤Þ¤¿¤Ï¤½¤³¤«¤é¸Æ¤Ð¤ì¤ë¥µ¥Ý¡¼¥È¥ë¡¼¥Á¥ó¤«¤é¡¢\n"
+"¥¢¥¯¥»¥¹¤¬¶Ø»ß¤µ¤ì¤Æ¤¤¤ë¥·¥¹¥Æ¥à¥á¥â¥êÎÎ°è¤Ø¥¢¥¯¥»¥¹¤·¤¿¤È¤¤¤¦¤³¤È\n"
+"¤Ç¤¹¡£¤³¤ì¤Ï¥Ð¥°¤Ç¤·¤ç¤¦¤«¤é¡¢¤¹¤°¤ËºÆµ¯Æ°¤·¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£\n"
+"¤³¤Î·ï¤Î½¤Àµ¤ò¼êÅÁ¤Ã¤Æ¤¤¤¿¤À¤±¤ë¤Ê¤é¡¢Enlightenment ¤ò¥Ç¥Ð¥Ã¥°\n"
+"¥·¥ó¥Ü¥ëÉÕ¤¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¡¢¤½¤Î Enlightenment ¤ò gdb ¤Ç¼Â¹Ô¤·¤Æ\n"
+"²¼¤µ¤¤¡£¤½¤¦¤¹¤ì¤ÐÎã³°¤¬È¯À¸¤·¤¿¾ì½ê¤Ë´Ø¤¹¤ë¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¤¬¼èÆÀ¤Ç¤\n"
+"¤Þ¤¹¡£¤½¤ì¤«¤é¡¢¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¾ðÊó¤äÊÑ¿ô¥À¥ó¥×¤Ê¤É¤òźÉÕ¤·¤¿¾ÜºÙ¤Ê\n"
+"¥Ð¥°Êó¹ð¤Ë¤·¤ÆÁ÷ÉÕ¤·¤Æ²¼¤µ¤¤¡£\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment ¤Ç¥Ð¥¹¥¨¥é¡¼¤¬µ¯¤¤Þ¤·¤¿¡£\n"
+"\n"
+"¤ª»È¤¤¤Î¥Ï¡¼¥É¥¦¥§¥¢¤È OS ¤Î¥¤¥ó¥¹¥È¡¼¥ë¾õ¶·¤ò³Îǧ¤·¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£\n"
+"Àµ¾ï¤Ê¥Ï¡¼¥É¥¦¥§¥¢¤Ç¥Ð¥¹¥¨¥é¡¼¤¬µ¯¤¤ë¤³¤È¤Ï¤á¤Ã¤¿¤Ë¤¢¤ê¤Þ¤»¤ó¡£\n"
+
+#
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "¥»¥ì¥¯¥·¥ç¥ó¥¨¥é¡¼"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr "¥»¥ì¥¯¥·¥ç¥ó %s ¤ò³ÍÆÀ¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿"
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "¥¢¥¤¥³¥ó¥Ü¥Ã¥¯¥¹¥ª¥×¥·¥ç¥ó"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "¥¢¥¤¥³¥ó¥Ü¥Ã¥¯¥¹¤ÎÀßÄê"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "¥á¥Ã¥»¡¼¥¸"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "¤³¤Îe16¤Ï %s ¤ËÂбþ¤·¤Æ¤¤¤Þ¤»¤ó"
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "¥³¥ó¥Ý¥¸¥Ã¥È"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "¥µ¥¦¥ó¥É"
+
+#
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC ¥³¥Þ¥ó¥É ¥Ø¥ë¥×\n"
+
+#
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"\"help all\" ¤Ç¤¹¤Ù¤Æ¤Î¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ³Æ¡¹´Êñ¤ÊÀâÌÀ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£\n"
+"\"help <¥³¥Þ¥ó¥É>\" ¤Ç»ØÄꤵ¤ì¤¿¥³¥Þ¥ó¥É¤ÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£\n"
+"\n"
+
+#
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "¸½ºßÍøÍѲÄǽ¤Ê¥³¥Þ¥ó¥É:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+"\"help full\" ¤Ç¤¹¤Ù¤Æ¤Î¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ³Æ¡¹¾Ü¤·¤¤ÀâÌÀ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£\n"
+
+#
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "\"help <¥³¥Þ¥ó¥É>\" ¤Ç»ØÄꤵ¤ì¤¿¥³¥Þ¥ó¥É¤ÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£\n"
+
+#
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr "<¥³¥Þ¥ó¥É> : <ÀâÌÀ>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr "%s ¤ÏÆÉ¤ß½ñ¤¤È¼Â¹Ô¤Î¸¢¸Â¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤·¤Æ¤¯¤À¤µ¤¤.\n"
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"°Ê²¼¤Î¾ì½ê¤Ë¤Ï Enlightenment ¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î¼Â¹Ô²Äǽ¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤»"
+"¤ó :\n"
+"\n"
+"%s\n"
+"Ã×̿Ū¤Ê¥¨¥é¡¼¤Ç¤¹¡£Enlightenment ¤Î¼Â¹Ô¤òÃæ»ß¤·¤Þ¤¹¡£\n"
+"¤³¤Î¾õ¶·¤ò½¤Àµ¤·¡¢Àµ¤·¤¯¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ²¼¤µ¤¤¡£\n"
+"\n"
+"¤³¤Î¸¶°ø¤È¤·¤Æ¤Ï¡¢¥Ñ¥Ã¥±¡¼¥¸¤Îºî¤êÊý¤¬¤Þ¤º¤¤¤«¡¢Ã¯¤«¤¬¼ê¤Ç¤³¤Î¥Õ¥¡¥¤¥ë¤ò\n"
+"ºï½ü¤·¤¿¤«¡¢¤¢¤ë¤¤¤Ï Enlightenment ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¸í¤ê¤¬¤¢¤Ã¤¿¤³¤È¤¬\n"
+"¹Í¤¨¤é¤ì¤Þ¤¹¡£\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î¼Â¹Ô²Äǽ¥Õ¥¡¥¤¥ë¤Ç¤Ï°Ê²¼¤Î¤â¤Î¤¬¼Â¹Ô¤Ç¤¤Þ¤»"
+"¤ó¡£\n"
+"%s\n"
+"\n"
+"Ã×̿Ū¤Ê¥¨¥é¡¼¤Ç¤¹¡£Enlightenment ¤Î¼Â¹Ô¤òÃæ»ß¤·¤Þ¤¹¡£\n"
+"¤³¤Î¾õ¶·¤ò½¤Àµ¤·¡¢Àµ¤·¤¯¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ²¼¤µ¤¤¡£\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "³ÈÂçÃæ"
+
+#
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "¥Æ¡¼¥Þ"
+
+#
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "¥Ü¡¼¥À¡¼"
+
+#
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "¥¦¥£¥ó¥É¥¦¥ê¥¹¥È"
+
+#
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "¤³¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Üư"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥× %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "¤³¤Î¥°¥ë¡¼¥×¤òɽ¼¨¤¹¤ë¡¿±£¤¹"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "¤³¤Î¥°¥ë¡¼¥×¤ò¥¢¥¤¥³¥ó²½¤¹¤ë"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "¥°¥ë¡¼¥× %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "¥á¥Ë¥å¡¼¤ò¥¢¥Ë¥á¡¼¥·¥ç¥óɽ¼¨¤¹¤ë"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "¥á¥Ë¥å¡¼¤¬²èÌ̤«¤é¤Ï¤ß½Ð¤ë¾ì¹ç¤Ïɬ¤º¼ý¤Þ¤ë¤è¤¦¤Ë¥á¥Ë¥å¡¼¤òư¤«¤¹"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤Ï¥á¥Ë¥å¡¼¤Î°Üư¤ËÄɿ魯¤ë"
+
+#
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "¥á¥Ë¥å¡¼"
+
+#
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "¥á¥Ë¥å¡¼¤ÎÀßÄê"
+
+#
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥á¥Ë¥å¡¼\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "¥Æ¡¼¥Þ¤ÎÆ©ÌÀÅÙ: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "ºÆµ¯Æ°¤òÍפ¹¤ëÊѹ¹¹àÌܤ¬¤¢¤ê¤Þ¤¹"
+
+#
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "¥Ü¡¼¥À¡¼"
+
+#
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "¥á¥Ë¥å¡¼"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "¥Ï¥¤¥é¥¤¥È"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E ¥¦¥£¥¸¥§¥Ã¥È"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E ¥À¥¤¥¢¥í¥°"
+
+#
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "¥Ä¡¼¥ë¥Á¥Ã¥×"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "ÉÔÆ©ÌÀ"
+
+#
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "¥¬¥é¥¹"
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Æ©ÌÀ²½"
+
+#
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "Æ©ÌÀ²½¤ÎÂоÝÁªÂò"
+
+#
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment Æ©ÌÀ²½ÂоÝ\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "¥¦¥£¥ó¥É¥¦¥ª¥×¥·¥ç¥ó"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "¥¢¥¤¥³¥ó²½"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "¶¯À©½ªÎ»"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "¾ï»þɽ¼¨¡¿²ò½ü"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¥ª¥×¥·¥ç¥ó"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "¥Ú¡¼¥¸¥ã¤ÎÀßÄê..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È Off"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "¹â²òÁüÅÙ Off"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "¹â²òÁüÅÙ On"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È On"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "¥º¡¼¥à Off"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "¥º¡¼¥à On"
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "¥Ú¡¼¥¸¥ã¤Î¥¹¥¥ã¥ó®ÅÙ: "
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "(¹Ô¡¿ÉÃ)"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "¥Ú¡¼¥¸¥ã¤òɽ¼¨¤¹¤ë"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "¥Ú¡¼¥¸¥ã¡¼¥â¡¼¥É"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "¥·¥ó¥×¥ë"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "²èÌ̤Υ¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤òɽ¼¨¤¹¤ë"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "¨»þ¹¹¿·"
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¥â¡¼¥É¤Ç¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò³ê¤é¤«¤Ê¹â²è¼Á¤Ë¤¹¤ë"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤¬¾è¤Ã¤Æ¤¤¤ë¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò³ÈÂ礹¤ë"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr ""
+"¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤¬¾è¤Ã¤Æ¤¤¤ë¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Î¥¦¥£¥ó¥É¥¦¥¿¥¤¥È¥ë¤òɽ¼¨¤¹¤ë"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "¥Ú¡¼¥¸¥ã¤Îɽ¼¨¤ò¹¹¿·¤¹¤ë¤¿¤á²èÌ̤òÀ䤨´Ö¤Ê¤¯¥¹¥¥ã¥ó¤¹¤ë"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "¥¦¥£¥ó¥É¥¦¤ÎÁªÂò¤È¥É¥é¥Ã¥°¤Ë»È¤¦¥Þ¥¦¥¹¥Ü¥¿¥ó"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Ãæ±û"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤òÁªÂò¤¹¤ë¥Þ¥¦¥¹¥Ü¥¿¥ó"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "¥Ú¡¼¥¸¥ã¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë¥Þ¥¦¥¹¥Ü¥¿¥ó"
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "¥Ú¡¼¥¸¥ã"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "¥Ú¡¼¥¸¥ã¤ÎÀßÄê"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥Ç¥¹¥¯¥È¥Ã¥×¤Î\n"
+"¥Ú¡¼¥¸¥ãÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"¤Ê¤ó¤«¤ª¤«¤·¤¤!\n"
+"\n"
+"¥»¥Ã¥·¥ç¥ó¥Þ¥Í¡¼¥¸¥ã¤Ï¤É¤³¹Ô¤Ã¤¿¤Î?\n"
+"¤ª¡¼¤¤¡¢¥»¥Ã¥·¥ç¥ó¥Þ¥Í¡¼¥¸¥ã¤ä¡¼¤¤¡¢¥¨¥µ¤¬Íߤ·¤¤¤Î?\n"
+"Í褤¤è¡¢¥¹¥Í¤Æ¤Ê¤¤¤Ç¡£¡Ä¡Äʬ¤«¤Ã¤¿¡¢¤â¤¦¤¤¤¤¡£¥»¥Ã¥·¥ç¥ó¥Þ¥Í¡¼¥¸¥ã¤Ê¤·¤Ç\n"
+"¤ä¤ë¤Ã¤Æ¤Ð¡£\n"
+"\n"
+"¤Ê¤ó¤È¤«¤·¤Æ»à¤Ê¤Ê¤¤¤Ç¤¤¤Æ¤ä¤ë¤¾¡£\n"
+"\n"
+"\n"
+"...¤¿¤Ö¤ó¡£\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "¤¤¤¤¤Ç¤¹¤«?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" ËÜÅö¤Ë¥í¥°¥¢¥¦¥È¤·¤Þ¤¹¤« ? \n"
+"\n"
+"\n"
+
+#
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " ¥·¥ã¥Ã¥È¥À¥¦¥ó¤·¤Þ¤¹"
+
+#
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " ºÆµ¯Æ°¤·¤Þ¤¹"
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " ¥í¥°¥¢¥¦¥È¤·¤Þ¤¹"
+
+#: src/session.c:663
+msgid " No "
+msgstr " ¤¤¤¤¤¨¡¢¥í¥°¥¢¥¦¥È¤·¤Þ¤»¤ó "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "¥»¥Ã¥·¥ç¥ó¥¹¥¯¥ê¥×¥È¤ò͸ú¤Ë¤¹¤ë"
+
+#
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "¥í¥°¥¢¥¦¥È¥À¥¤¥¢¥í¥°¤ò͸ú¤Ë¤¹¤ë"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "¥í¥°¥¢¥¦¥È»þ¤ËºÆµ¯Æ°¤Þ¤¿¤ÏÄä»ß¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë"
+
+#
+#: src/session.c:814
+msgid "Session"
+msgstr "¥»¥Ã¥·¥ç¥ó"
+
+#
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "¥»¥Ã¥·¥ç¥ó¤ÎÀßÄê"
+
+#
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥»¥Ã¥·¥ç¥ó\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "°ÜưÊý¼°:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "¥µ¥¤¥ºÊѹ¹Êý¼°:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "¥Æ¥¯¥Ë¥«¥ë"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "ÏÈÀþ"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "±Æ"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "¤Ì¤ê¤Ä¤Ö¤·"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "ȾƩÌÀ"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr "¥µ¡¼¥Ð¡¼¤òÆÈÀꤷ¤Ê¤¤"
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "°Üư¡¿¥µ¥¤¥ºÊѹ¹¤Çɽ¼¨¤µ¤ì¤ëºÂɸ¾ðÊó¤Î°ÌÃÖ:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "¥¦¥£¥ó¥É¥¦¤ÎÃæ¿´ (ɽ¼¨¤·¤¿¤Þ¤Þ/¥Æ¥¯¥Ë¥«¥ë/ÏÈÀþ)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "¾ï¤Ë²èÌ̤Τ¹¤ß"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "ɽ¼¨¤·¤Ê¤¤"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "¥Ç¥Õ¥©¥ë¥È¤ÎºÇÂç²½Êý¼°"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "²¿¤â±£¤µ¤Ê¤¤"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "epplet¤Ï±£¤µ¤Ê¤¤"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "²èḬ̀ìÇÕ"
+
+#
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "°ÜÆ°Ãæ¤â¥¦¥£¥ó¥É¥¦¤ò¹¹¿·¤¹¤ë"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "°Üư¤ä¥µ¥¤¥ºÊѹ¹¤ò¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ËƱ´ü¤µ¤»¤ë"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr "¥É¥é¥Ã¥°¥Ð¡¼¤ò±£¤µ¤Ê¤¤"
+
+#
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "°Üư/¥µ¥¤¥ºÊѹ¹"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "°Üư¤È¥µ¥¤¥ºÊѹ¹Êý¼°¤ÎÀßÄê"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment °Üư & ¥µ¥¤¥ºÊѹ¹\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "¥À¥¤¥¢¥í¥°¥¦¥£¥ó¥É¥¦¤Ï¤½¤ì¤ò½Ð¤·¤¿¥¦¥£¥ó¥É¥¦¤È°ì½ï¤Ëɽ¼¨¤¹¤ë"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "¥À¥¤¥¢¥í¥°¤¬É½¼¨¤µ¤ì¤¿¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Üư¤¹¤ë"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "¼êư¤Ç¥¦¥£¥ó¥É¥¦¤òÇÛÃÖ¤¹¤ë"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "¥Þ¥¦¥¹¤Î¤¢¤ë°ÌÃ֤˥¦¥£¥ó¥É¥¦¤òÇÛÃÖ¤¹¤ë"
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤¬°ìÇդʤ饦¥£¥ó¥É¥¦¤òÃæ±û¤ËÇÛÃÖ¤¹¤ë"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "¥¦¥£¥ó¥É¥¦¤ò¥¹¥é¥¤¥É¤µ¤»¤Ê¤¬¤éɽ¼¨¤¹¤ë"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "¥¦¥£¥ó¥É¥¦¤ò¥¹¥é¥¤¥É¤µ¤»¤Ê¤¬¤éÀ°ÆÜ¤¹¤ë"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "¥¹¥é¥¤¥ÉÊý¼°:"
+
+#
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr "¥¦¥£¥ó¥É¥¦½Ð¸½»þ¤Î¥¹¥é¥¤¥É®ÅÙ"
+
+#
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×À°ÆÜ»þ¤Î¥¹¥é¥¤¥É®ÅÙ"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "¥¦¥£¥ó¥É¥¦¤Î¥·¥§¡¼¥Ç¥£¥ó¥°Æ°ºî¤ò¥¢¥Ë¥á¡¼¥·¥ç¥óɽ¼¨¤Ë¤¹¤ë"
+
+#
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr "¥¦¥£¥ó¥É¥¦¤Î¥·¥§¡¼¥Ç¥£¥ó¥°Â®ÅÙ"
+
+#
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "¥ê¥¶¡¼¥ÖÎΰè(¥¹¥È¥é¥Ã¥È)¤ò̵»ë¤¹¤ë"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Á´²èÌ̥⡼¥É¤Î¥¦¥£¥ó¥É¥¦¤ò¾å¤Ë½Ð¤¹"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "²èÌ̤¬°ìÇդʤéÊ̤Υǥ£¥¹¥×¥ì¥¤¤Ë¥¦¥£¥ó¥É¥¦¤òÇÛÃÖ¤¹¤ë"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "¥¦¥£¥ó¥É¥¦ÇÛÃÖ"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "¥¦¥£¥ó¥É¥¦ÇÛÃÖÀßÄê"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥¦¥£¥ó¥É¥¦ÇÛÃÖ\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "¥¦¥£¥ó¥É¥¦¤ò¼«Æ°Åª¤Ë¾å¤Ë½Ð¤¹(¥ª¡¼¥È¥ì¥¤¥º)"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "¥ª¡¼¥È¥ì¥¤¥º¤¹¤ë¤Þ¤Ç¤ÎÃÙ±ä»þ´Ö"
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "¥ª¡¼¥È¥ì¥¤¥º"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "¥ª¡¼¥È¥ì¥¤¥ºÀßÄê"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥ª¡¼¥È¥ì¥¤¥º\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "¥À¥¤¥¢¥í¥°¥Ø¥Ã¥À¤ò͸ú¤Ë¤¹¤ë"
+
+#
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "¥Ü¥¿¥ó²èÁü¤ò͸ú¤Ë¤¹¤ë"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr "¥í¥°¥¤¥ó¸å¡¢¾å²¼¤Ë¥¹¥é¥¤¥É¤¹¤ë½é´ü²èÌ̤ò½Ð¤¹"
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "¥»¡¼¥Ö¥¢¥ó¥À¡¼µ¡Ç½¤ò»È¤¤¥¦¥£¥ó¥É¥¦ºÆÉÁ²è»þ¤Î½èÍý¤ò¸º¤é¤¹"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "¤½¤Î¾"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "¤½¤Î¾¤ÎÀßÄê"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¤½¤Î¾¤Î\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "¥³¥ó¥Ý¥¸¥Ã¥È¤ò͸ú¤Ë¤¹¤ë"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "¥Õ¥§¡¼¥Ç¥£¥ó¥°¤ò͸ú¤Ë¤¹¤ë"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "¥Õ¥§¡¼¥Ç¥£¥ó¥°Â®ÅÙ"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "±Æ¤òÉÕ¤±¤Ê¤¤"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "±Æ¤òÌÀÎÆ¤Ë¤¹¤ë"
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr "±Æ¤òÌÀÎÆ¤Ë¤¹¤ë2"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "±Æ¤ò¤Ü¤«¤¹"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "¥Õ¥©¡¼¥«¥¹¤¬¤¢¤ë¥¦¥£¥ó¥É¥¦¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÔÆ©ÌÀÅÙ"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "¥Õ¥©¡¼¥«¥¹¤¬¤Ê¤¤¥¦¥£¥ó¥É¥¦¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÔÆ©ÌÀÅÙ"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "¥Ý¥Ã¥×¥¢¥Ã¥×¥¦¥£¥ó¥É¥¦¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÔÆ©ÌÀÅÙ"
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr "¥³¥ó¥Ý¥¸¥Ã¥È"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "¥³¥ó¥Ý¥¸¥Ã¥È¤ÎÀßÄê"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥³¥ó¥Ý¥¸¥Ã¥È¤Î\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Enlightenment ¤ÎÀßÄê"
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"¥·¥§¥ë¤Î´Ä¶ÊÑ¿ô DISPLAY ¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥¹¥×¥ì¥¤¤Ë Enlightenment ¤«¤é\n"
+"Àܳ¤Ç¤¤Þ¤»¤ó¡£¤³¤ÎÊÑ¿ô¤ò»È¤Ã¤Æ Enlightenment ¤«¤éÀܳ¤µ¤ì¤ë¤Ï¤º¤Î¥Ç¥£¥¹¥×¥ì"
+"¥¤\n"
+"¤ò»ØÄꤷ¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢¤½¤Î¥Ç¥£¥¹¥×¥ì¥¤Àܳ¤ò¹Ô¤Ê¤¦ X ¥µ¡¼¥Ð¡¼¤¬¤Þ¤Àư¤¤"
+"¤Æ\n"
+"¤¤¤Ê¤¤¤«¡¢¤½¤Î¥Ç¥£¥¹¥×¥ì¥¤¤ËÀܳ¤¹¤ë¸¢¸Â¤¬¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ºÆ»î¹Ô¤¹¤ëÁ°"
+"¤Ë¡¢\n"
+"¤¹¤Ù¤Æ¤¬Àµ¤·¤¤¤³¤È¤ò³Îǧ¤·¤Æ²¼¤µ¤¤¡£¤Þ¤º¡¢xdm ¤« startx ¤òµ¯Æ°¤·¤Æ X ¥µ¡¼"
+"¥Ð¡¼\n"
+"¤òư¤«¤¹¤«¡¢¤Þ¤¿¤Ï¥·¥¹¥Æ¥à´ÉÍý¼Ô¤ä X ¥µ¡¼¥Ð¡¼¤Î¥Ù¥ó¥À¡¼¤ËÌ䤤¹ç¤ï¤»¤Æ²¼¤µ"
+"¤¤¡£\n"
+"¤¢¤ë¤¤¤Ï X¡¢xdm¡¢¤ª¤è¤Ó startx ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤òÆÉ¤ó¤Ç¤«¤éºî¶È¤ò³¤±¤Æ²¼¤µ"
+"¤¤¡£\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "¾¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤¬¤¹¤Ç¤Ë²ÔÆ¯Ãæ¤Ç¤¹"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"¾¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤¬¤¹¤Ç¤Ë²ÔÆ¯Ãæ¤Ç¤¹¡£\n"
+"\n"
+"¤Þ¤º²ÔÆ¯Ãæ¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤ò½ªÎ»¤·¤Æ¤¯¤À¤µ¤¤¡£\n"
+"¤½¤¦¤¹¤ì¤Ð Enlightenment ¤¬Àµ¾ï¤Ëµ¯Æ°¤Ç¤¤Þ¤¹¡£\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X ¥µ¡¼¥Ð¥Ð¡¼¥¸¥ç¥ó¥¨¥é¡¼"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "¤³¤Î¥¨¥é¡¼¤ò̵»ë¤¹¤ë"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"·Ù¹ð¡£\n"
+"¤³¤ì¤Ï X11 ¤Î X ¥µ¡¼¥Ð¡¼¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¼ÂºÝ¤Ï X%i ¥×¥í¥È¥³¥ë¤¬»È¤ï¤ì¤Æ\n"
+"¤¤¤Þ¤¹¡£¤³¤ì¤Ç¤Ï Enlightenment ¤¬µ¡Ç½¤·¤Ê¤¤¤«¡¢Æ°ºî¤¬¤ª¤«¤·¤¯¤Ê¤ë¾ì¹ç¤¬\n"
+"¤¢¤ê¤Þ¤¹¡£X11 °Ê¹ß¤Î¥µ¡¼¥Ð¡¼¤À¤È¤¹¤ë¤È¡¢¤½¤Î¥µ¡¼¥Ð¡¼¤Ï Enlightenment ¤Î\n"
+"ºî¼Ô¤¬ÍøÍѤ·¤Æ¤â¤¤¤Ê¤¤¤·¡¢º£¤Þ¤Çʹ¤¤¤¿¤³¤È¤â¤Ê¤¤¥µ¡¼¥Ð¡¼¤Ç¤¹¡£\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "¥¿¥¤¥È¥ë"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "̾Á°"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "¥¯¥é¥¹"
+
+#
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Ìò³ä:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "¥³¥Þ¥ó¥É̾"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Êѹ¹¤òµÏ¿¤¹¤ë"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "°ÌÃÖ"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "¥Ü¡¼¥À¡¼¥¹¥¿¥¤¥ë"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "¥µ¥¤¥º"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "¥·¥§¡¼¥É¾õÂÖ"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "¾ï»þɽ¼¨¾õÂÖ"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "¥¦¥£¥ó¥É¥¦¤Î¾å²¼´Ø·¸"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "¥¦¥£¥ó¥É¥¦¥ê¥¹¥È¤Î¥¹¥¥Ã¥×"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "ÉÔÆ©ÌÀÅÙ"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "±Æ¤òÉÕ¤±¤ë"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "¤½¤Î¾¤Î¥¦¥£¥ó¥É¥¦Â°À"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "¥í¥°¥¤¥ó»þ¤Ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òºÆµ¯Æ°¤¹¤ë"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤Î¥°¥ë¡¼¥×¤òµ²±¤¹¤ë"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "µ²±¤µ¤ì¤Æ¤¤¤ë¥¢¥×¥ê¥±¥·¥ç¡¼¥ó°À"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"¤³¤Î¥¦¥£¥ó¥É¥¦¤Î°À¤Ç¤³¤ÎÀèµ²±\n"
+"¤·¤Æ¤ª¤¤¿¤¤¤â¤Î¤òÁªÂò¤·¤Æ²¼¤µ¤¤¡£\n"
+
+#
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "ºï½ü"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "ÀßÄê¤òµ²±¤¹¤ë..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "̤»ÈÍÑ"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "¸½ºß¤Î¥¦¥£¥ó¥É¥¦¤ÇÀßÄê¤òµ²±¤·¤Æ¤¢¤ë¤â¤Î¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+
+#
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "µ²±"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "¥¦¥£¥ó¥É¥¦¤Îµ²±ÆâÍÆ¤ÎÀßÄê"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥¦¥£¥ó¥É¥¦¤Î\n"
+"µ²±ÆâÍÆÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "¥¹¥Ê¥Ã¥×¥Õ¥¡¥¤¥ë¤ÎÊݸ»þ¤Ë¥¨¥é¡¼¤¬µ¯¤¤Þ¤·¤¿¡£\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤¬¤ß¤Ä¤«¤ê¤Þ¤»¤ó¡£"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"·Ù¹ð¡£Enlightenment ¤Ç°Ê²¼¤Î¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤¬¥í¡¼¥É\n"
+"¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£\n"
+"%s\n"
+"½èÍý¤Ï·Ñ³¤µ¤ì¤Þ¤¹¤¬¡¢ÀßÄê¤ò³Îǧ¤·¤¿Êý¤¬¤¤¤¤¤È»×¤¤¤Þ¤¹¡£\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "¥µ¥¦¥ó¥É¤Î½é´ü²½Ãæ¤Ë¥¨¥é¡¼¤¬µ¯¤¤Þ¤·¤¿¡£"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Enlightenment ¤Ç¤Ï¥ª¡¼¥Ç¥£¥ª¤Ï͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¤¬¡¢\n"
+"¥ª¡¼¥Ç¥£¥ª¥µ¡¼¥Ð¡¼ (%s) ¤È¤ÎÄÌ¿®Ãæ¤Ë¥¨¥é¡¼¤¬µ¯¤¤Þ¤·¤¿¡£\n"
+"¥ª¡¼¥Ç¥£¥ª¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "²»¶Áµ¡Ç½¤ò͸ú¤Ë¤¹¤ë"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "¥µ¥¦¥ó¥É"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "¥ª¡¼¥Ç¥£¥ªÀßÄê"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥ª¡¼¥Ç¥£¥ª\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "¥·¥¹¥Æ¥à¥È¥ì¥¤¥¨¥é¡¼"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "systray ¤¬¤É¤³¤«¤Ë¹Ô¤Ã¤Á¤Þ¤Ã¤¿¡©¡ª"
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "¥·¥¹¥Æ¥à¥È¥ì¥¤¤Ï°ì¤Ä¤Î¤ß²Ä"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "¥·¥¹¥Æ¥à¥È¥ì¥¤¤¬½àÈ÷¤Ç¤¤Þ¤»¤ó"
+
+#
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "¥·¥¹¥Æ¥à¥È¥ì¥¤¥ª¥×¥·¥ç¥ó"
+
+#
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "¥·¥¹¥Æ¥à¥È¥ì¥¤¤ÎÀßÄê"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥£¥ì¥¯¥È¥ê\n"
+"%s\n"
+"¤Ë¥Æ¡¼¥Þ¤¬¤¢¤ê¤Þ¤»¤ó¡£¤³¤Î¤Þ¤Þ¿Ê¤á¤Æ¤â¤Û¤È¤ó¤É̵°ÕÌ£¤Ç¤¹¡£\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr "Êѹ¹¤ÏºÆµ¯Æ°¸å¤Ë͸ú¤Ë¤Ê¤ê¤Þ¤¹."
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr "¥Æ¡¼¥Þ¤Î¥Õ¥©¥ó¥ÈÀßÄê¤ò»È¤¦"
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr "Ê̤Υե©¥ó¥ÈÀßÄê¤ò»È¤¦ (%s)"
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "ÀßÄꤷ¤Ê¤¤"
+
+#
+#: src/theme.c:402
+msgid "Theme"
+msgstr "¥Æ¡¼¥Þ"
+
+#
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "¥Æ¡¼¥Þ¤ÎÀßÄê"
+
+#
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥Æ¡¼¥Þ\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "¥Ä¡¼¥ë¥Á¥Ã¥×¤òɽ¼¨¤¹¤ë"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "¥ë¡¼¥È¥¦¥£¥ó¥É¥¦¤Î¥Ä¡¼¥ë¥Á¥Ã¥×¤òɽ¼¨¤¹¤ë"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "¥Ä¡¼¥ë¥Á¥Ã¥×¤¬É½¼¨¤µ¤ì¤ë¤Þ¤Ç¤Î»þ´Ö\n"
+
+#
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "¥Ä¡¼¥ë¥Á¥Ã¥×"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "¥Ä¡¼¥ë¥Á¥Ã¥×¤ÎÀßÄê"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ¥Ä¡¼¥ë¥Á¥Ã¥×\n"
+"ÀßÄê¥À¥¤¥¢¥í¥°\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+"¥¯¥ê¥Ã¥¯¤·¤Æ¥É¥é¥Ã¥°¤¹¤ì¤Ð¥Ç¥¹¥¯¥È¥Ã¥×¤¬°Üư¤¹¤ë\n"
+"(¤¿¤À¤·¥Ç¥¹¥¯¥È¥Ã¥× 0 ¤À¤±¤ÏÉÔ²Ä)"
+
+#
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤òÀÚÂØ¤¨¤ë"
+
+#
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "¼¡¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Ü¤ë"
+
+#
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Á°¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤ËÌá¤ë"
+
+#
+#: config/strings.c:10
+msgid "Move"
+msgstr "°Üư¤¹¤ë"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤òư¤«¤¹"
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¥·¥§¡¼¥É¤Þ¤¿¤Ï¥¢¥ó¥·¥§¡¼¥É¤¹¤ë"
+
+#
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "¥¦¥£¥ó¥É¥¦¥ª¥×¥·¥ç¥ó¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "¥°¥ë¡¼¥×¥Ü¡¼¥À¡¼¤òɽ¼¨¤¹¤ë¡¿±£¤¹"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "¥°¥ë¡¼¥×¤ò³«»Ï¤¹¤ë"
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "¸½ºß¤Î¥°¥ë¡¼¥×¤ËÄɲ乤ë"
+
+#
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤Î¥°¥ë¡¼¥×¤òÇË´þ¤¹¤ë"
+
+#
+#: config/strings.c:19
+msgid "Shade."
+msgstr "¥·¥§¡¼¥É"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "¥¢¥ó¥·¥§¡¼¥É"
+
+#
+#: config/strings.c:21
+msgid "Resize"
+msgstr "¥µ¥¤¥ºÊѹ¹"
+
+#
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ÎÂ礤µ¤òÊѤ¨¤ë"
+
+#
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "²£¤ËÂ礤µ¤òÊѤ¨¤ë"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ÎÂ礤µ¤ò¿åÊ¿Êý¸þ¤ËÊѹ¹¤¹¤ë"
+
+#
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "½Ä¤ËÂ礤µ¤òÊѤ¨¤ë"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ÎÂ礤µ¤ò¿âľÊý¸þ¤ËÊѹ¹¤¹¤ë"
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤ë"
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¶¯À©½ªÎ»¤¹¤ë"
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "¿âľÊý¸þ¤ËºÇÂç²½¤¹¤ë"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr "ºÇÂç¤Î¹â¤µ¤ÈÄ̾ï¤Î¹â¤µ¤òÀÚÂØ¤¨¤ë"
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "Éý¤òºÇÂç²½¤¹¤ë"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr "ºÇÂç¤ÎÉý¤ÈÄ̾ï¤ÎÉý¤òÀÚÂØ¤¨¤ë"
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "ºÇÂç²½¤¹¤ë"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr "ºÇÂ祵¥¤¥º¤ÈÄ̾掠¥¤¥º¤òÀÚÂØ¤¨¤ë"
+
+#
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "¾¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Ü¤¹"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¼¡¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Ü¤¹"
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤òÁ°¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤ËÌ᤹"
+
+#
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr "¤³¤Î¥Ü¥¿¥ó¤Ï²¿¤â¤·¤Þ¤»¤ó"
+
+#
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "¥·¥§¡¼¥É¡¿¥¢¥ó¥·¥§¡¼¥É"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¥¢¥¤¥³¥ó²½(ºÇ¾®²½)¤¹¤ë"
+
+#
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "¤µ¤é¤Ë¥Ü¥¿¥ó¤ò"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "¤µ¤é¤Ë¥Ü¥¿¥ó¤òɽ¼¨¤¹¤ë"
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "¾å¤Ø½Ð¤¹"
+
+#
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¾å¤Ø½Ð¤¹"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "²¼¤Ë°Ü¤¹"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò²¼¤Ë°Ü¤¹"
+
+#
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr "¾ï»þɽ¼¨¡¿²ò½ü"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤Î¾ï»þɽ¼¨¾õÂÖ¤òÀÚÂØ¤¨¤ë"
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤Ç¥Þ¥¦¥¹¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¼¡¤Îưºî¤ò¼Â¹Ô¤·¤Þ¤¹"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "¥æ¡¼¥¶¡¼¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Enlightenment ¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "ÀßÄê¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "¥¿¥¹¥¯¥ê¥¹¥È¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "¥°¥ë¡¼¥×¥á¥Ë¥å¡¼¤òɽ¼¨¤¹¤ë"
+
+#
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Á°¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤ËÌá¤ë"
+
+#
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Àè¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë¿Ê¤à"
+
+#
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "ÇØ·Ê"
+
+#
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×Áàºî"
+
+#
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "¥Ç¥¹¥¯¥È¥Ã¥×¤òÀ°ÆÜ¤¹¤ë"
+
+#
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "¼¡¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Üư"
+
+#
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "Á°¤Î¥Ç¥¹¥¯¥È¥Ã¥×¤Ë°Üư"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "¥·¥¹¥Æ¥à¥È¥ì¥¤¤òºîÀ®¤¹¤ë"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "³ÈÂç¥Ä¡¼¥ë¤òɽ¼¨¤¹¤ë"
+
+#
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "¥æ¡¼¥¶¡¼¥á¥Ë¥å¡¼"
+
+#
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "ÀßÄê"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "¥á¥ó¥Æ¥Ê¥ó¥¹"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "¥Ø¥ë¥×"
+
+#
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "Enlightenment ¤Ë¤Ä¤¤¤Æ"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "¤³¤Î¥Æ¡¼¥Þ¤Ë¤Ä¤¤¤Æ"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "ºÆµ¯Æ°"
+
+#
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "¥í¥°¥¢¥¦¥È"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "ÀßÄê¥Õ¥¡¥¤¥ë¥¥ã¥Ã¥·¥å¤ò¾Ãµî¤¹¤ë"
+
+#
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "¥Ú¡¼¥¸¥ã¡¼¤ÎÇØ·Ê¥¥ã¥Ã¥·¥å¤ò¾Ãµî¤¹¤ë"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "ÇØ·Ê¤ÎÁªÂò¥¥ã¥Ã¥·¥å¤ò¾Ãµî¤¹¤ë"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "¤¹¤Ù¤Æ¤Î¥¥ã¥Ã¥·¥å¤ò¾Ãµî¤¹¤ë"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "ÀßÄê¥Õ¥¡¥¤¥ë¥¥ã¥Ã¥·¥å¤Î»ÈÍѾõ¶·¤òÄ´¤Ù¤ë"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "¥Ú¡¼¥¸¥ã¤ÎÇØ·Ê¥¥ã¥Ã¥·¥å¤Î»ÈÍѾõ¶·¤òÄ´¤Ù¤ë"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "ÇØ·ÊÁªÂò¥¥ã¥Ã¥·¥å¤Î»ÈÍѾõ¶·¤òÄ´¤Ù¤ë"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "¤¹¤Ù¤Æ¤Î¥¥ã¥Ã¥·¥å¤Î»ÈÍѾõ¶·¤òÄ´¤Ù¤ë"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "¥á¥Ë¥å¡¼¤òºÆºîÀ®¤¹¤ë"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "¤³¤ì¤Ï»Ä¤¹"
+
+#
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "µ²±¤¹¤ë..."
+
+#
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "¥¦¥£¥ó¥É¥¦¥µ¥¤¥º"
+
+#
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "ÀѤ߽Ťͽç"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "¥Ü¡¼¥À¡¼¥¹¥¿¥¤¥ë¤ÎÀßÄê"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "¥¦¥£¥ó¥É¥¦¥°¥ë¡¼¥×"
+
+#
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤Î¥°¥ë¡¼¥×¤òÀßÄꤹ¤ë"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "¿·¤·¤¤¥°¥ë¡¼¥×¤ò³«»Ï¤¹¤ë"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¸½ºß¤Î¥°¥ë¡¼¥×¤ËÄɲ乤ë"
+
+#
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr " ¤³¤Î¥¦¥£¥ó¥É¥¦¤òÄɲ乤륰¥ë¡¼¥×¤òÁªÂò¤¹¤ë"
+
+#
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "¤³¤Î¥¦¥£¥ó¥É¥¦¤ò¥°¥ë¡¼¥×¤«¤éºï½ü¤¹¤ë"
+
+#
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr " ¤³¤Î¥¦¥£¥ó¥É¥¦¤¬Â°¤¹¤ë¥°¥ë¡¼¥×¤òÇË´þ¤¹¤ë"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "ÀѤ߽Ťͽç"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "²¼¤Ë"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "ÉáÄÌ"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "¾å¤Ë"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "¾ï¤Ë¾å¤Ë"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "¥¦¥£¥ó¥É¥¦¥ê¥¹¥È¤Î¥¹¥¥Ã¥×¡¿²ò½ü"
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "°ÌÃÖ¸ÇÄê¡¿²ò½ü"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "¥µ¥¤¥º¸ÇÄê¡¿²ò½ü"
+
+#
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "¥Õ¥©¡¼¥«¥¹¤ò¼õ¤±¤Ê¤¤¡¿¼õ¤±¤ë"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "¥¯¥ê¥Ã¥¯¤Ç¥Õ¥©¡¼¥«¥¹¡¿²ò½ü"
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "¥¨¥ê¥¢¤ò»È¤ï¤Ê¤¤¡¿»È¤¦"
+
+#
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "¥Ü¥¿¥ó¤Î¥°¥é¥Ö¡¿²ò½ü"
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "¼«Æ°¥·¥§¡¼¥Ç¥£¥ó¥°ÀÚÂØ¤¨"
+
+#
+#: config/strings.c:165
+msgid "Default"
+msgstr "´ûÄêÃÍ"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "¥Õ¥©¡¼¥«¥¹¤¬¤¢¤ì¤Ð100¡óÉÔÆ©ÌÀ¤Ë¤¹¤ë"
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr "¾ï¤Ë¥Õ¥©¡¼¥«¥¹¤¬Ìµ¤¤¤È¤¤ÎÉÔÆ©ÌÀÅÙ¤òŬÍѤ¹¤ë"
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "¥Õ¥§¡¼¥Ç¥£¥ó¥°¤òÀÚ¤êÂØ¤¨¤ë"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "¥·¥ã¥É¡¼ÀÚÂØ¤¨"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "ºÇÂ祵¥¤¥ºÀÚÂØ¤¨"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "ÍøÍѲÄǽ¤ÊºÇÂ祵¥¤¥º¤ÇÀÚÂØ¤¨"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "ÀäÂкÇÂ祵¥¤¥º¤ÇÀÚÂØ¤¨"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr "Xinerama¥¹¥¯¥ê¡¼¥ó³ÈÄ¥"
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "ºÇÂç¹âÀÚÂØ¤¨"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "ÍøÍѲÄǽ¤ÊºÇÂç¹â¤ÇÀÚÂØ¤¨"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "ÀäÂкÇÂç¹â¤ÇÀÚÂØ¤¨"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "ºÇÂçÉýÀÚÂØ¤¨"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "ÍøÍѲÄǽ¤ÊºÇÂçÉý¤ÇÀÚÂØ¤¨"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "ÀäÂкÇÂçÉý¤ÇÀÚÂØ¤¨"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Á´²èÌÌ¡¿Ä̾ï"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "³ÈÂç¡¿½Ì¾®"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "¥æ¡¼¥¶¡¼¥¢¥×¥ê¥±¡¼¥·¥ç¥ó"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "¤½¤Î¾"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment ¤ÎÀßÄê..."
+
+#
+#~ msgid "Focus Settings ..."
+#~ msgstr "¥Õ¥©¡¼¥«¥¹¤ÎÀßÄê ..."
+
+#
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "°Üư¤È¥µ¥¤¥ºÊѹ¹Êý¼°¤ÎÀßÄê ..."
+
+#
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "¥¦¥£¥ó¥É¥¦ÇÛÃÖ¤ÎÀßÄê ..."
+
+#
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "¥Þ¥ë¥Á¥Ç¥¹¥¯¥È¥Ã¥×¤ÎÀßÄê ..."
+
+#
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "²¾Áۥǥ¹¥¯¥È¥Ã¥×¤ÎÀßÄê ..."
+
+#
+#~ msgid "Pager Settings ..."
+#~ msgstr "¥Ú¡¼¥¸¥ã¤ÎÀßÄê ..."
+
+#
+#~ msgid "Menu Settings ..."
+#~ msgstr "¥á¥Ë¥å¡¼¤ÎÀßÄê ..."
+
+#
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "¥ª¡¼¥È¥ì¥¤¥º¤ÎÀßÄê ..."
+
+#
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "¥Ä¡¼¥ë¥Á¥Ã¥×¤ÎÀßÄê ..."
+
+#
+#~ msgid "Audio Settings ..."
+#~ msgstr "¥ª¡¼¥Ç¥£¥ª¤ÎÀßÄê ..."
+
+#
+#~ msgid "Group Settings ..."
+#~ msgstr "¥°¥ë¡¼¥×¤ÎÀßÄê ..."
+
+#
+#~ msgid "Remember Settings ..."
+#~ msgstr "µ²±¤ÎÀßÄê ..."
+
+#
+#~ msgid "Special FX Settings ..."
+#~ msgstr "ÆÃ¼ì¸ú²Ì¤ÎÀßÄê ..."
+
+#
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "¥Ç¥¹¥¯¥È¥Ã¥×ÇØ·Ê¤ÎÀßÄê ..."
+
+#
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "¥Æ¡¼¥ÞÆ©ÌÀ²½¤ÎÀßÄê ..."
+
+#
+#~ msgid "Composite Settings ..."
+#~ msgstr "¥³¥ó¥Ý¥¸¥Ã¥È¤ÎÀßÄê ..."
+
+#
+#~ msgid "Session Settings ..."
+#~ msgstr "¥»¥Ã¥·¥ç¥ó¤ÎÀßÄê ..."
+
+#
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "¤½¤Î¾¤ÎÀßÄê ..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "°ì½ï¤Ë¥·¥§¡¼¥É/¥¢¥¤¥³¥ó²½/¾ï»þɽ¼¨²½¤¹¤ë"
+
+#~ msgid "%i Desktops"
+#~ msgstr "¥Ç¥¹¥¯¥È¥Ã¥× %i Ëç"
+
+#~ msgid "%i Desktop"
+#~ msgstr "¥Ç¥¹¥¯¥È¥Ã¥× %i Ëç"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "¤ÎÂ礤µ¤Î²¾Áۥǥ¹¥¯¥È¥Ã¥×"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "¤ÎÂ礤µ¤Î²¾Áۥǥ¹¥¯¥È¥Ã¥×"
--- /dev/null
+# This is the Korean locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Sung-Hyun Nam <namsh@kldp.org>, 1999-2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.17.1\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2004-08-29 01:02:30+0900\n"
+"Last-Translator: Michael Kim <lavnrose@e.sarang.net>\n"
+"Language-Team: Korean <translation-team-ko@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "인라이튼먼트 %s에 대하여"
+
+#: src/about.c:46
+#, fuzzy, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"인라이튼먼트 창 관리자 %s 버전을 사용하게\n"
+" 된것을 환영합니다.\n"
+"인라이튼먼트는 아직 개발버전입니다. 그러나, 우리는 \n"
+"우리가 발견할 수 있는 모든 벌레를 수정하여 배포\n"
+"합니다. 만약 이 소프트웨어에서 벌레를 발견하게 된다면,\n"
+"벌레 보고 하는것을 귀찮게 생각하지 마십시오.\n"
+"메일링 리스트에 가입하고자 한다면 \"도움말\"을\n"
+"보십시오.\n"
+"\n"
+"이 코드의 마지막 수정시간:\n"
+"%s\n"
+"\n"
+"행운을 빕니다. 우리는 당신이 이 프로그램을 즐겁게 사용하길\n"
+"바랍니다.\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u개의 참조가 남아있습니다\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"다음 프로그램을 실행중 오류가 발생했습니다:\n"
+"%s\n"
+"이 프로그램은 실행될 수 없습니다.\n"
+"이 프로그램이 존재하지 않기 때문입니다.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"다음 프로그램을 실행중 오류가 발생했습니다:\n"
+"%s\n"
+"이 프로그램은 실행될 수 없습니다.\n"
+"아마도 당신의 쉘인 %s가 이 프로그램을 경로에서 찾을 수\n"
+"없기 때문일 겁니다. 당신의 쉘의 도움말을 읽으셔서 경로\n"
+"를 설정하는 방법을 배우신 후 경로를 제대로 설정하시기\n"
+"바랍니다.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"다음 프로그램을 실행중 오류가 발생했습니다:\n"
+"%s\n"
+"이 프로그램은 실행될 수 없습니다.\n"
+"왜 실행할 수 없는 지를 알 수 없습니다. 이 파일은 존재하며,\n"
+"당신이 실행할 수 있도록 되어 있습니다. 이 파일의 내용을\n"
+"한 번 확인해 보시기 바랍니다.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"다음 프로그램을 실행중 오류가 발생했습니다:\n"
+"%s\n"
+"이 프로그램은 실행될 수 없습니다.\n"
+"이 파일이 존재하지만 당신은 이 파일을 실행할 수 있는 권한을\n"
+"가지고 있지 않습니다.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"다음 프로그램을 실행중 오류가 발생했습니다:\n"
+"%s\n"
+"이 프로그램은 실행될 수 없습니다.\n"
+"이것은 파일이 아니고 디렉토리입니다.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"다음 프로그램을 실행중 오류가 발생했습니다:\n"
+"%s\n"
+"이 프로그램은 실행될 수 없습니다.\n"
+"이것은 일반적인 파일이 아니기 때문입니다.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "인라이튼먼트 오류"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "인라이튼먼트 메시지 대화상자"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "무시"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "인라이튼먼트 재시작"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "인라이튼먼트 종료"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "주목 !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "확인"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"배경 정의 정보:\n"
+"이름: %s\n"
+"파일: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-없음-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"배경\n"
+"없음"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "사용되지 않는 배경은 %2i:%2i:%2i후에 해제"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "배경 이미지 사용"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "크기조정시 모양 유지"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "배경에 사용할 타일 이미지"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "앞으로 이동\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "복제\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "목록에서 삭제\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "파일 삭제\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"배경\n"
+"이미지\n"
+"크기조정\n"
+"그리고\n"
+"위치조정\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "배경 색\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "적색:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "녹색:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "청색:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "배경 미리 스캔"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "파일로 정렬"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "속성으로 정렬"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "이미지로 정렬"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "고색상에서 디더링 사용"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "테마의 배경 사용않함"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "배경화면"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "데스크탑 배경 설정"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 데스크탑\n"
+"배경 설정 대화상자\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC 오류"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"모르는 클라이언트 메시지 수신.\n"
+"클라이언트 이름: %s\n"
+"클라이언트 버전: %s\n"
+"메시지 내용:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: \"%s\"에 있는 더 많은 데이타는 무시합니다\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: \"%s\"에 요구되는 데이타가 없습니다\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"경고: 현재의 엑스트라 정의 중간에 있는 다음 텍스트에 대해\n"
+"무엇을 해야 될 지를 모르겠습니다:\n"
+"%s\n"
+"무시하고 계속 진행할 겁니다...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"경고: 설정이 메뉴 블럭을 읽기도 전에 끝난 것 같습니다\n"
+"표시가 나쁘게 될 지도 모르겠습니다.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "테마 버전 오류"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "기본 테마로 재시작"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "중단하고 종료"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"오류:\n"
+"\n"
+"당신이 사용하려는 테마의 설정이 호환되지 않는 것입니다\n"
+"이 테마의 설정 버전은 %i입니다. 필요한 설정 버전은 %i\n"
+"이어야 합니다.\n"
+"\n"
+"테마의 저자나 관리자에게 연락하여 현재 버전의\n"
+"인라이튼먼트에서 동작하도록 수정할 수 있도록 하십시오\n"
+"버전 번호를 맞추기 위해서 그들은 현재의 설정을 갱신\n"
+"해야만 합니다.\n"
+"\n"
+"테마의 버전에 인라이튼먼트의 것보다 높다면 당신이 아직\n"
+"오래된 인라이튼먼트를 사용하고 있다는 것입니다. 이 테마는\n"
+"새로운 인라이튼먼트의 기능을 사용하므로 새 인라이튼먼트를\n"
+"사용하십시오\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "인라이튼먼트 시작중..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "포커스 설정"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "닫기"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "새 아이콘상자 생성"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "아이콘 크기"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "투명 배경"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "이 그룹 보여주기/숨기기"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "아이콘 뒤에 기본 이미지 그리기"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "필요없을 때 스크롤바 숨기기"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "아이콘에 맞추기 위해 자동으로 크기조정"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "자동으로 크기조정시 정렬:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "방위:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "스크롤바 사이드:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "스크롤바 방향:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "수평"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "왼쪽 / 위"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "시작"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "수직"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "오른쪽 / 아래"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "양쪽 끝"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "끝"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "없음"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "아이콘 이름 보여주기"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "이 아이콘상자로 아이콘화할 때 에니메이트"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "아이콘 이미지 표시 정책 (한 동작 실패시 다음 시도):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "창 스냅샷, 응용프로그램 아이콘 사용, 인라이튼먼트 아이콘 사용"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "응용프로그램 아이콘 사용, 인라이튼먼트 아이콘 사용, 창 스냅샷"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "인라이튼먼트 아이콘 사용, 창 스냅샷"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 아이콘상자\n"
+"설정 대화상자\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"마우스 버튼을 누른 상태에서 데스크탑을\n"
+"앞뒤로 끌을 수 있도록 마우스를 끌어\n"
+"보십시오.\n"
+"모든 데스크탑과 그 안의 응용프로그램들의\n"
+"리스트를 보려면 오른쪽 마우스 버튼을 클릭하세요\n"
+"현재 실행중인 모든 응용프로그램들을 보시려면\n"
+"가운데 마우스 버튼을 클릭하세요.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"이것은 루트 데스크탑입니다.\n"
+"루트 데스크탑은 끌을 수 없습니다.\n"
+"모든 데스크탑과 그 안의 응용프로그램들의\n"
+"리스트를 보려면 오른쪽 마우스 버튼을 클릭하세요\n"
+"현재 실행중인 모든 응용프로그램들을 보시려면\n"
+"가운데 마우스 버튼을 클릭하세요.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"데스크탑을 제일 위로 올리기 위해서는\n"
+"여기를 클릭하세요.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"데스크탑을 제일 밑으로 내리기 위해서는\n"
+"여기를 클릭하세요.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "가상 데스크탑 수:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "데스크탑 바꿀 때 미끄러짐"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "데스크탑 미끄러짐 속도: (느림)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "가상 데스크탑 이동을 반복"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "데스크탑 끌기막대 표시"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "끌기막대 위치:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "위"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "아래"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "왼쪽"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "오른쪽"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "데스크탑"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "여러 데스크탑 설정"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 여러 데스크탑\n"
+"설정 대화상자\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "가상 데스크탑 크기:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "가상 데스크탑 주변을 겹치기"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "스크린 변두리에서의 저항감:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "가상 데스크탑 설정"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 가상 데스크탑\n"
+"설정 대화상자\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "적용"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X 서버 설정 오류"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"심각한 오류:\n"
+"\n"
+"X 서버가 쉐이프 확장을 지원하지 않습니다.\n"
+"인라이튼먼트가 실행되려면 반드시 필요한 기능입니다.\n"
+"\n"
+"X 서버가 너무 오래된 것이거나 환경설정이 잘못되었을 것입니다.\n"
+"\n"
+"종료.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "포커스가 포인터 따라감"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "포커스가 포인터를 적당히 따라감"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "포커스가 마우스 클릭을 따라감"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "창안에서 클릭하면 항상 창을 위로 올림"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "모든 새로운 창이 먼저 포커스를 가짐"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "오직 새로운 대화상자 창만 포커스 가짐"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "오직 포커스를 가진 창의 새로운 대화상자만 포커스 가짐"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "바꾸는 동안에 창 포커스"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "포커스가 바뀔 때 마우스 포인터를 그 창으로 보냄"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "포커스가 바뀔 때 마우스 포인터를 그 창으로 보냄"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "포커스 목록을 표시하고 사용"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "포커스 목록에 스틱키 창 포함"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "포커스 목록에 음영 창 포함"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "포커스 목록에 아이콘 창 포함"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "포커스 목록에 음영 창 포함"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "바꾸는 동안에 창 포커스"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "포커스가 바뀐 후에 창 올리기"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "포커스가 바뀐 후 마우스 포인터를 그 창으로 보냄"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "아이콘 이미지 표시 정책 (한 동작 실패시 다음 시도):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "포커스 갖지않음"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "포커스 설정"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 포커스\n"
+"설정 대화상자\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "효과"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "효과 사용: 빗방울"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "잔물결"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "물결"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "특수효과 설정"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 특수 효과\n"
+"설정 대화상자\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "창 그룹 선택"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"인라이튼먼트 창 그룹\n"
+"선택 대화상자\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "창 그룹 오류"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" 이 창은 현재 어떤 그룹에도 속해있지 않습니다. \n"
+" 적어도 하나 이상의 그룹에 속한 창만 그룹으로부터 \n"
+" 창을 삭제하거나 그룹을 제거할 수 있습니다.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" 현재 어떤 그룹도 존재하지 않거나 이 창이 \n"
+" 존재하는 어떤 그룹에 속해있습니다. \n"
+" 먼저 다른 그룹을 시작하셔야 합니다. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" 현재 어떤 그룹도 없습니다. 먼저 그룹을 시작하셔야 합니다.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " 설정할 그룹 선택: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" 다음 동작은 모든 그룹 \n"
+" 멤버에게 적용됩니다: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "가장자리 형식 바꿈"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "아이콘화"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "죽이기"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "이동"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "올리기/내리기"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "고착"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "접기"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "창 그룹 설정"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 창 그룹\n"
+"설정 대화상자\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" 이 창은 현재 어떤 그룹에도 속해있지 않습니다. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr "그룹 설정: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " 공통 설정: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "창 위치 바꿈"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "그룹 %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "기본 그룹 조정 설정"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 기본 그룹\n"
+"조정 설정 대화상자\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " 창이 속할 그룹 선택: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " 창을 삭제할 그룹을 선택하십시오. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " 없앨 그룹을 선택하십시오 "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"인라이튼먼트가 잘못된 명령을 수행하였습니다.\n"
+"\n"
+"이것은 대부분 인라이튼먼트가 지원하도록 컴파일 된\n"
+"프로세서와 당신이 가진 프로세서가 100%% 호환되지 않기\n"
+"때문입니다.\n"
+"당신의 시스템에 맞는 패키지를 새로 구하시거나\n"
+"인라이튼먼트와 인라이튼먼트를 실행하는 데\n"
+"필요한 라이브러리를 다시 컴파일하시기 바랍니다.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"인라이튼먼트가 부동소수점 예외를 당했습니다.\n"
+"\n"
+"이것은 인라이튼먼트나 지원 라이브러리가 잘못된 산술 동작을\n"
+"수행했다는 것을 의미합니다 (대부분의 경우 0으로 나누기).\n"
+"이것은 대부분의 경우 버그입니다. 지금 재시작하십시오.\n"
+"당신이 문제를 고치는 걸 돕기를 원하시면 디버그 정보를\n"
+"가지도록 인라이튼먼트를 다시 컴파일하셔서 gdb에서 인라이\n"
+"튼먼트를 다시 실행하신 후 어디에서 죽는 지를 백트레이스\n"
+"하셔서 백트레이스와 변수들의 값에 대한 정보를 보내주십시오.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"인라이튼먼트가 세그먼트 바이올레이션 (Segfault)를 당했습니다\n"
+"\n"
+"이것은 인라이튼먼트나 지원 라이브러리가 허용되지 않은 시스템\n"
+"메모리에 접근했다는 것을 의미합니다. 이것은 버그가 확실합니다.\n"
+"지금 재시작하십시오.\n"
+"당신이 문제를 고치는 걸 돕기를 원하시면 디버그 정보를\n"
+"가지도록 인라이튼먼트를 다시 컴파일하셔서 gdb에서 인라이\n"
+"튼먼트를 다시 실행하신 후 어디에서 죽는 지를 백트레이스\n"
+"하셔서 백트레이스와 변수들의 값에 대한 정보를 보내주십시오.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"인라이튼먼트가 버스 오류를 당했습니다.\n"
+"\n"
+"당신의 하드웨어나 OS를 점검하시기를 바랍니다.\n"
+"동작중인 하드웨어에서 버스오류가 생기는 것은\n"
+"일반적인 일은 아닙니다.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "TextClass 오류!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "아이콘상자 옵션"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "아이콘상자 설정"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "메시지"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "사운드 사용"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "인라이튼먼트 IPC 명령 도움말"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"모든 명령에 대한 설명을 보시려면 \"help all\"을 사용하십시오\n"
+"각각의 설명을 보시려면 \"help <명령>\"을 사용하십시오\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"현재 사용가능한 명령:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "각각의 설명을 보시려면 \"help <명령>\"을 사용하십시오\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr " <명령> : <설명>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! 오류 오류 오류 오류 !!!!!!!!\n"
+"\n"
+"인라이튼먼트의 실행 도구들을 다음에서 찾을 수 없습니다:\n"
+"\n"
+"%s\n"
+"이것은 심각한 오류이며 인라이튼먼트는 실행될 수 없습니다.\n"
+"이 문제를 고치시기를 바라며 인스톨이 제대로 되었는 지를\n"
+"확인하시기 바랍니다.\n"
+"\n"
+"이 일이 발생한 이유는 패키지가 잘못 만들어 졌든 지 누군가\n"
+"손으로 프로그램을 지웠든 지 아니면 인라이튼먼트 인스톨이\n"
+"잘못된 것입니다.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! 오류 오류 오류 오류 !!!!!!!!\n"
+"\n"
+"인라이튼먼트의 dox 파일을 실행시킬 수가 없습니다:\n"
+"\n"
+"%s\n"
+"이것은 심각한 오류이며 인라이튼먼트는 실행될 수 없습니다.\n"
+"이 문제를 고치시기를 바라며 dox가 인스톨이 제대로 되었는\n"
+"지를 확인하시기 바랍니다.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "잘못된 테마"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "테두리"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "창 목록 건너뜀"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "이 데스크탑으로 가기"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "데스크탑 %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "이 그룹 보여주기/숨기기"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "이 그룹 아이콘화"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "그룹 %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "메뉴 표시 에니메이트"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "항상 화면에 메뉴를 팝업"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "메뉴를 움직인 후에 포인터 뒤집기"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "메뉴:"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "기타 설정"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 포커스\n"
+"설정 대화상자\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "테마 투명도: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "설정을 변경하려면 재시작 해야 합니다:"
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "테두리"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "메뉴:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "활성화:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E 위젯:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E 대화상자:"
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "도움말:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "불투명"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "유리효과"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "테마 투명도: %2d"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "테마 투명도 설정"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 테마 투명도 설정\n"
+"설정 대화상자\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "창 옵션"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "아이콘화"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "전멸시킴"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "고착 / 잡아뗌"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "데스크탑 옵션"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "페이저 설정..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "스냅샷 사용않함"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "고해상도 사용않함"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "고해상도 사용"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "스냅샷 사용"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "페이저 스캐닝 속도:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "초당 줄수"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "페이저 표시 가능"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "잔물결"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "축소된 화면의 스냅샷 만들기"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "스냅샷 모드에서 부드러운 고해상도 스냅샷"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "마우스가 페이저 안의 창 위에 있을 때 그 창 확대"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "마우스가 페이저 안의 창 위에 있을 때 그 창 제목 보여주기"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "페이저를 갱신하기 위해 연속적으로 화면 스캔"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "창을 선택하고 끌기 위한 마우스 버튼:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "중간"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "데스크탑을 선택할 마우스 버튼"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "페이저 메뉴를 표시할 마우스 버튼:"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "페이저 설정"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "페이저 설정"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 데스크탑과 영역\n"
+"페이저 설정 대화상자\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"오류!\n"
+"\n"
+"세션 메니저와의 연결이 끊겼습니다.\n"
+"어이 세션 메니저... 이리 오세요... 뼈다귀라도 드릴까요?\n"
+"제발 오세요! 삐지지 마세요! 나쁜 녀석. 쩝. 세션 메니저없이\n"
+"계속 진행할 겁니다.\n"
+"\n"
+"어쨌든 저는 살아남을 겁니다.\n"
+"\n"
+"\n"
+"... 그러길 바랍니다.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "확실한가요?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" 정말로 로그아웃하기를 바라십니까 ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " 예, 로그아웃 "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " 예, 로그아웃 "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " 예, 로그아웃 "
+
+#: src/session.c:663
+msgid " No "
+msgstr " 아니오 "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "대화상자 머리 사용"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "기타 설정"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "기타 설정"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 포커스\n"
+"설정 대화상자\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "이동 방법:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "크기조정 방법:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "공예"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "상자"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "음영"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "반고체"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "반투명"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "이동/크기변경 위치 정보:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "화면 가운데 (O/T/B 메소드)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "항상 화면의 가장자리"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "보이지 않음"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "바꾸는 동안에 창 포커스"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "크기"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "이동과 크기조정 설정"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 이동과 크기조정\n"
+"방법 설정 대화상자\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "대화상자는 그 소유자와 함께 나타남"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "대화상자가 나타난 데스크탑으로 전환"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "창을 수동으로 배치"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "창을 마우스 아래에 배치"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "포커스 목록에 음영 창 포함"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "창이 나타날 때 미끄러짐"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "깨끗하게 할 때 창 미끄러짐"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "미끄러짐 방법:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "나타남 미끄러짐 속도: (느림)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "청소 미끄러짐 속도: (느림)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "창 접고 펼칠 때 에니메이트"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "창 접기 속도: (느림)\n"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "무시"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "다른창 보다 위에 배치"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "창 배치 설정"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 창 위치\n"
+"설정 대화상자\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "창을 자동으로 올리기"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "자동올리기 지연:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "자동올리기 지연:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "자동올리기 설정"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 창 자동 올리기\n"
+"설정 대화상자\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "대화상자 머리 사용"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "사운드 사용"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "창 노출을 줄이기 위해 세이브언더 사용"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "기타 설정"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "기타 설정"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 기타\n"
+"설정 대화상자\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "사운드 사용"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "에지 플립 사용"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "사운드 사용"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "툴팁 설정"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 툴팁\n"
+"설정 대화상자\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "인라이튼먼트 시작중..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"인라이튼먼트가 쉘 DISPLAY 환경변수에서 지정된 표시장치에\n"
+"연결할 수가 없습니다. 당신은 인라이튼먼트가 연결할 수 있\n"
+"는 표시장치를 가리키도록 이 값을 설정하실 수 있습니다.\n"
+"어쩌면 당신이 X 서버를 실행시키지 않았을 수도 있고, 그\n"
+"표시장치에 연결할 수 있는 권한이 없으실 수도 있습니다.\n"
+"다시 시도하기 전에 모든 것이 정상인지를 확인하세요.\n"
+"\n"
+"xdm이나 startx를 실행하므로서 X 서버를 띄우시거나 로컬\n"
+"시스템 관리자 혹은 X 서버 제작사에 연락하거나 X, xdm과\n"
+"startx 등의 도움말을 미리 읽어보시기 바랍니다.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "다른 창 관리자기 이미 수행중입니다"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X 서버 버전 오류"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "이 오류 무시"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"경고:\n"
+"이것은 X11 서버가 아닙니다. X%i 프로토콜을 지원하는군요.\n"
+"이것은 인라이튼먼트가 동작하지 않거나 잘못 동작될 수\n"
+"있음을 의미합니다. X11보다 나중 버전이라면 당신의 서버는\n"
+"인라이튼먼트의 저자가 들어보지도 못했거나 사용해 보지\n"
+"못한 것임에 분명합니다.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "제목:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "이름:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "클래스:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "적색:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "명령:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "위치"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "테두리 스타일"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "크기"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "데스크탑"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "쉐이드 상태"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "스틱키 상태"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "계층 스택킹"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "창 목록 건너뜀"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "접기"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "유리효과"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "로그인시 응용프로그램 시작"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "이 창의 그룹 기억"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "기억할 응용프로그램 속성"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"이제부터 기억하고자 하는\n"
+"이 창의 속성을 선택하시기\n"
+"바랍니다\n"
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "파일 삭제\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "기억할 설정..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "속성을 기억할 활성화된 창이 없습니다"
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "기억할 설정..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "기억할 창 설정"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 기억할\n"
+"창 설정 대화상자\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "스냅 파일 저장 오류\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "사운드 파일 찾기 오류"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"경고! 인라이튼먼트가 다음 사운드 파일을\n"
+"읽어들일 수 없습니다:\n"
+"%s\n"
+"인라이튼먼트는 동작을 계속할 것입니다만\n"
+"당신의 환경설정을 확인해 보시기 바랍니다.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "사운드 초기화 오류"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"오디오가 사용되도록 되었습니다만 오디오 서버 (Esound)와\n"
+"통신 오류가 발생했습니다. 오디오는 지금부터 사용되지\n"
+"않을 것입니다.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "사운드 사용"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "오디오 설정"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 오디오\n"
+"설정 대화상자\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "ECursor 오류!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "데스크탑 옵션"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "자동올리기 설정"
+
+#: src/theme.c:339
+#, fuzzy, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"테마 디렉토리에서 어떠한 테마도 발견하지 못했습니다:\n"
+" %s/themes/\n"
+"혹은 사용자 테마 디렉토리:\n"
+" %s/themes/\n"
+"현재 동작 이상 진행 할 수 없습니다.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "잘못된 테마"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "기타 설정"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 포커스\n"
+"설정 대화상자\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "툴팁 표시"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "루트 창 팁 표시"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "툴팁 지연:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "도움말:"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "툴팁 설정"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"인라이튼먼트 툴팁\n"
+"설정 대화상자\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i 데스크탑"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "이동"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "창 옵션"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "이 그룹 보여주기/숨기기"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "이 창의 그룹 기억"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "음영"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "크기"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "이 창의 그룹 기억"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "수평"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "수직"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "스냅샷 사용"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "쉐이드 상태"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "아래"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"데스크탑을 제일 위로 올리기 위해서는\n"
+"여기를 클릭하세요.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "고착 / 잡아뗌"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "인라이튼먼트 종료"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "기타 설정"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "데스크탑 끌기막대 표시"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr "배경화면"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "데스크탑 옵션"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i 데스크탑"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "이 데스크탑으로 가기"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "인라이튼먼트 종료"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "메뉴:"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "포커스 설정"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "인라이튼먼트 %s에 대하여"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "재시작"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " 예, 로그아웃 "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "배경 이미지 사용"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "기억할 설정..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "창 목록 건너뜀"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "포커스 설정"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "테두리 스타일"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "창 그룹 오류"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "이 창의 그룹 기억"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " 창을 삭제할 그룹을 선택하십시오. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "이 창의 그룹 기억"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " 창이 속할 그룹 선택: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "고착"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "위"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "포커스 갖지않음"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "포커스 갖지않음"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "아래"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "아래"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "파일 삭제\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "포커스가 마우스 클릭을 따라감"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "에지 플립 사용"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "기억할 응용프로그램 속성"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+#, fuzzy
+msgid "Epplets"
+msgstr "잔물결"
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "인라이튼먼트 시작중..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "초점 설정"
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "이동과 크기조정 설정"
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "창 배치 설정"
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "여러 데스크탑 설정"
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "가상 데스크탑 설정"
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "페이저 설정..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "기타 설정"
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "자동올리기 설정"
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "툴팁 설정"
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "오디오 설정"
+
+#~ msgid "Group Settings ..."
+#~ msgstr "페이저 설정..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "기억할 설정..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "특수효과 설정"
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "데스크탑 배경 설정"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "테마 투명도 설정"
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "툴팁 설정"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "오디오 설정"
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "기타 설정"
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "접기/아이콘화/고착 거울"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i 데스크탑"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i 데스크탑"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "화면 크기"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "화면 크기"
--- /dev/null
+# This is the Norwegian (bokmål dialect) locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Terje Røsten <terjeros@phys.ntnu.no>, 1999-2000.
+# Kjartan Maraas <kmaraas@gnome.org, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2008-10-09 10:43+0200\n"
+"Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n"
+"Language-Team: Norwegian <no@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Om Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u referanser er igjen\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Det var en feil ved kjøring av programmet:\n"
+"%s\n"
+"Dette programmet kunne ikke bli kjørt.\n"
+"Årsaken er at filen ikke eksisterer.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Det var en feil ved kjøring av programmet:\n"
+"%s\n"
+"Dette programmet kunne ikke bli kjørt.\n"
+"Årsaken til dette er antakeligvis at programmet ikke er i\n"
+"stien til kjærbare programmer i skallet %s. Jeg foreslår\n"
+"at du leser om skallet ditt og ser etter hvordan man\n"
+"endrer denne stien.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Det var en feil ved kjøring av programmet:\n"
+"%s\n"
+"Dette programmet kunne ikke bli kjørt.\n"
+"Jeg er usikker på hvorfor du ikke kunne gjøre dette. Filen eksister,\n"
+"er en fil og du har tillatelse til å kjøre det. Jeg foreslår du ser\n"
+"nærmere på dette sjøl.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Det var en feil ved kjøring av programmet:\n"
+"%s\n"
+"Dette programmet kunne ikke bli kjørt.\n"
+"Filen eksister og er en fil, men\n"
+"du har tillatelse til å kjøre det.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Det var en feil ved kjøring av programmet:\n"
+"%s\n"
+"Dette programmet kunne ikke bli kjørt.\n"
+"Årsaken er at fila faktisk er en katalog.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Det var en feil ved kjøring av programmet:\n"
+"%s\n"
+"Dette programmet kunne ikke bli kjørt.\n"
+"Årsaken er at fila ikke er en normal fil.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Feil ved Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightment dialog"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Overse dette"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Start Enlightenment på nytt"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Avslutt Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Merk!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Ok"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Informasjon om bakgrunnsdefinisjonen:\n"
+"Navn : %s\n"
+"Fil : %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-INGEN-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Ingen\n"
+"Bakgrunn"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Ubrukte bakgrunner er fjernet etter %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Bruk bakgrunnsbilde"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Bevar bildeskala"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Flislegg bilde over hele bakgrunnen"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Flytt fremst\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Dupliser\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Fjern fra lista\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Slett fil\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Bakgrunns-\n"
+"bilde:\n"
+"Skalering\n"
+"&\n"
+"justering\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Bakgrunnsfarge\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rød:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Grønn:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blå:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Se etter bakgrunner på forhånd"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Sorter etter filnavn"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Sorter etter etternavn til fila"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Sorter etter bilde"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Bruk dithering ved Hi-Colour"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Bakgrunn overkjører temaet"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Bakgrunn"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Innstillinger for skrivebordsbakgrunn"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"bakgrunn i Enlightenment\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Feil ved E IPC"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Mottok ukjent klientbeskjed.\n"
+"Klientnavn : %s\n"
+"Klientversion : %s\n"
+"Innhold i beskjed :\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: overser ekstra informasjon i \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: nødvendig informasjon mangler i \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Advarsel: klarer ikke bestemme hva som skal gjøres med\n"
+"følgende tekst i midten av gjeldende Ekstra-definisjon:\n"
+"%s\n"
+"Vil dermed overse dette og fortsette...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Advarsel: Konfigurasjon ser ut til å bli stoppet opp før vi\n"
+"var ferdig med å ta inn en meny blokk.\n"
+"Utfallet av dette er sannsynligvis ikke særlig bra.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Feil ved versjonen til temaet"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Start på nytt med standardverdier"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Avbryt og avslutt"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"Konfigurasjonen for det temaet du bruker er inkompatibel.\n"
+"Versjonen til temaet er %i. Men temaet må være markert\n"
+"versjon %i.\n"
+"\n"
+"Kontakt forfatteren til temaet og fortell at\n"
+"dersom temaet fungere i gjeldende versjon av Enlightenment\n"
+"må hun/han oppdatere og endre versjonsnummer.\n"
+"\n"
+"Dersom temaet har høyere versjon enn versjonen til Enlightenment\n"
+"kan det være at du ikke har oppgradert Enlightenment på en\n"
+"stund og dette temaet bruker ting som ikke var tilgjengelig i\n"
+"en tidligere versjon av Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment starter opp..."
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Innstillinger..."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Avbryt"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Lag en ny ikonboks"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Ikonstørrelse: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Gjennomsiktig bakgrunn"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Skjul indre kant"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Bruk bakgrunnsbilde under ikonene"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Skjul scrollbar når den ikke trengs"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Tilpass størrelse automatisk til ikonene"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Justering av anker ved automatisk tilpasning av størrelse:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientering"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Scrollbar-side:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Scrollbar-piler:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horisontalt"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Venstre / Topp"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Start"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertikalt"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Høyre / Bunn"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Begge sider"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "På siden"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Ingen"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Vis ikontitler"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Bruk animeringseffekt når vinduer legges i ikonboksen."
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Ikonbilde regler (dersom den første feiler, prøv neste etc):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Miniatyr av vindu, programmets ikon, Enlightenments ikon"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Programmets ikon, Enlightenments ikon, miniatyr av vindu"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Enlightenments ikon, miniatyr av vindu"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av egenskapene\n"
+"til ikonboksen i Enlightenment\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Hold nede musknappen og dra musa samtidig for å\n"
+"dra skrivebordet fram og tilbake.\n"
+"Klikk høyre musknapp for en list over alle\n"
+"skrivebord og dets programmer.\n"
+"Klikk midtre musknapp for en list over alle\n"
+"programmer som kjører nå.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Dette er det nederste skrivebordet.\n"
+"Du kan ikke dra det nederste skrivebordet rundt omkring.\n"
+"Klikk høyre musknapp for en list over alle\n"
+"skrivebord og dets programmer.\n"
+"Klikk midtre musknapp for en list over alle\n"
+"programmer som kjører nå.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Trykk her for heve dette skrivebordet\n"
+"til toppen.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Trykk her for senke dette skrivebordet\n"
+"til bunnen.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Antall virtuelle skrivebord\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "La skrivebord gli inn når de endres"
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "Hastighet ved skrivebordssgliding:\n"
+
+#: src/desktops.c:2336
+#, fuzzy
+msgid "Wrap desktops around"
+msgstr "La virtuelle skrivebord være sykliske"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Bruk linje til å dra med"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Dralinje posisjon"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Topp"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Bunn"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Venstre"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Høyre"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Skrivebord"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Antall skrivebord"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"virtuelle skrivebord i Enlightenment\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Størrelse til virtuelt skrivebord:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "La virtuelle skrivebord være sykliske"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Motstand ved kanten av skjermen:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Innstillinger for virtuelle skrivebord"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling\n"
+"av virtuelle skrivebord i Enlightenment\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Bruk"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Feil ved oppstart av X serveren."
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"Fatal feil:\n"
+"\n"
+"Denne X Serveren støtter ikke ekstensjonen Shape.\n"
+"Enlightenment krever at dette for å kjøre.\n"
+"\n"
+"Din X Server er antakelig for gammel eller er feil konfiguert.\n"
+"\n"
+"Avslutter.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Fokus følger mus"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Fokus følger mus løst"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Fokus følger musklikk"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Musklikk i et vindu vil alltid heve det"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Alle nye vinduer får fokus"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Bare nye dialogvinduer får fokus"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Bare nye dialoger som tilhører fokusert vindu får fokus"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "La vinduer få fokus ved skifte"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Send muspeker til vindu ved fokusskifte"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Send muspeker til vindu ved fokusskifte"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Vis og bruk fokusliste"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Inkluder stødige vinduer i fokuslista"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Inkluder skyggelagte vinduer i fokuslista"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Inkluder vinduer i ikonboksen i fokuslista"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Inkluder skyggelagte vinduer i fokuslista"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "La vinduer få fokus ved skifte"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Hev vinduer etter fokusskifte"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Send mus til vindu etter fokusskifte"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Ikonbilde regler (dersom den første feiler, prøv neste etc):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Fokus"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Innstillinger for fokus"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling \n"
+"av fokus i Enlightenment\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Effekter"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Slå på effekt: Regndråper"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Krusninger"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Bølger"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "FX"
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Spesiell effekter"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"spesielle effekter i Enlightenment\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Velg vindusgruppe"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Vindusgrupper for Enlightenment\n"
+"Dialog for utvelgelse\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Feil ved vindusgruppe"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Dette vinduet tilhører ingen grupper.\n"
+" Du kan bare ødelegge grupper eller fjerne vinduer fra grupper\n"
+" via ett vindu som tilhører (minst) en gruppe.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" For øyeblikket eksisterer ingen grupper eller så\n"
+" tilhører dette vinduet alle gruppene allerede.\n"
+" Du må starte en gruppe til først.\n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" For øyeblikket eksister ingen grupper. Du må starte en gruppe først.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Velg gruppa som skal konfigures: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Følgende handlinger vi vil bli utført på alle medlemmene i grupppa: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Endring av rammestil"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Ikonifisering"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Avslutning"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Flytting"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Senking/Heving"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Stødighet"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Skyggelegging"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Vindusgrupper"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"vindusgrupper i Enlightenment\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Dette vinduet tilhører ingen grupper for øyeblikket. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr "Innstillinger for enkelt grupper"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Globale innstillinger: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "La vinduer bytte plass"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Grupper"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Innstilling av standardverdier for vindusgrupper"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Dialog for innstillinger av forhåndsvalgte\n"
+"verdier for vindusgrupper i Enlightenment\n"
+"\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Velg den gruppa som vinduet skal tilhøre: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Velg gruppa som vinduet skal fjernes fra. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Velg gruppa som skal brytes opp "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment utførte en ulovlig instruksjon.\n"
+"\n"
+"Sannsynligvis skyldes dette at du installert en prekompilert\n"
+"versjon av Enlightenment eller bibliotekfiler som var \n"
+"kompilert for en annen maskinvare eller som ikke er 100%% kompatibel\n"
+"med din egen. Finn en pakke som er kompatibel med din maskinvare\n"
+"eller kompiler opp Enlightenment selv.\n"
+"Tilsvarende gjelder for alle støtte bibliotekene Enlightenment trenger.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment har forårsaket en flyttalls-beregningsfeil.\n"
+"\n"
+"Dette betyr at Enlightenment eller en støtte-bibliotek-rutine\n"
+"som E kaller har gjort en ulovlig matematisk operasjon.\n"
+"(mest sannsynligvis dividert med med tallet 0). Dette \n"
+"antakeligvis en bug. Det anbefales at du starter på nytt.\n"
+"Dersom du vil være vennlig og være med rette denne feilen\n"
+"kan du kompilere Enlightenment med debuggings-symboler så du kan \n"
+"finne hvor programmet stoppet/døde og kan sende en verdifull\n"
+"bug-report med backtrace informasjon, variable verdier etc.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment forårsaket en Segment overskridelse.\n"
+"(Segment Violation) (Segfault)\n"
+"Dette betyr at Enlightenment eller en støtte-bibliotek-rutine\n"
+"som E har kalt har vært borti områder i ditt systems hukommelse\n"
+"som det ikke har lov til. Dette er antakelig en bug.\n"
+"Du bør starte på nytt.\n"
+"Dersom du vil være vennlig og være med rette denne feilen\n"
+"kan du kompilere Enlightenment med debuggings-symboler\n"
+"og kjøre Enlightenment under gdb så du kan finne hvor\n"
+"programmet stoppet/døde og kan sende en verdifull\n"
+"bug-report med backtrace informasjon, variable verdier etc.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment har forårsaket en bussfeil (Bus Error).\n"
+"\n"
+"Det foreslås at du sjekker din maskinvare og OS installsjon.\n"
+"Det er uhyre uvanlig med med bussfeil på feilfri maskinevare.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "Tekstklasse feil!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Meny for ikonboksen"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Ikonboks"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Beskjed"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr ""
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "lyd"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC Kommando Hjelp\n"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"bruk \"help all\" for beskrivelse av ha alle kommandoene\n"
+"bruk \"help <kommando>\" for beskrivelse av hver enkelt kommando\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"kommandoer som er tilgjengelig for øyeblikket:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "bruk \"help <kommando>\" for individuell beskrivelse\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr "<kommando> : <beskrivelse>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!! Feil ! Feil Feil! !!\n"
+"\n"
+"En kjørbar fil som tilhører Enlightenment ble ikke funnet i:\n"
+"\n"
+"%s\n"
+"Dette er en fatal feil og Enlightenment vil nekte og kjøre.\n"
+"Vær vennlig og ordne opp i dette og forsikre deg om at\n"
+"alt er installert korrekt.\n"
+"\n"
+"Årsaken til mangelen kan være feil ved en pakke, noen \n"
+"har fjernet fila eller en feil ved installering av Enlightenment.\n"
+
+#: src/main.c:693
+#, fuzzy, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!! Feil! Feil! Feil! !!\n"
+"\n"
+"Enlightenments dox (hjelpeprogram) ble ikke funnet i:\n"
+"\n"
+"%s\n"
+"Dette er en fatal feil og Enlightenment vil nekte og starte opp.\n"
+"Vær vennlig og sjekk at dox er til stede og på rett plass.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Tema"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Kant"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Vinduliste"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Gå til dette skrivebordet"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Skriverbord nr. %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Vis/Skjul denne gruppa"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Ikonifiser denne gruppa"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Gruppe %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "La menyer være animerte"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "La menyer alltid opptre innenfor skjermen"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Send muspeker tilbake etter flytting av meny"
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Menyer"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Innstillinger for menyer"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling \n"
+"av fokus i Enlightenment\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Kanter:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Menyer:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Verktøytips:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Med ramme"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Glass"
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Gjennomsiktighet"
+
+#: src/mod-trans.c:281
+#, fuzzy
+msgid "Selective Transparency Settings"
+msgstr ""
+"Dialog for innstilling av\n"
+"Enlightenments verktøytips\n"
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"Enlightenments verktøytips\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Valg for vinduer"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Ikonifiser"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Fjern"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Stødig / ustødig"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Valg for skrivebordet"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Innstillinger for skrivebordsoversikt"
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Ikke ta bilder av skjerm"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Høy kvalitet av"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Høy kvalitet på"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Ta bilder av skjerm"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Oppfriskningshastighet for skrivebordsoversikt:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linjer pr. sekund"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Bruk skrivebordsoversikt"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Enkel"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Lag miniatyrbilder av skjermen"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Lag miniatyrbilder av skjerm med høy kvalitet"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zoom inn vinduer på skrivebordsoversikt når musa er over dem"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Framhev vindustittel når musa er over vinudet"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Oppdater skrivebordsoversikt kontinurlig "
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Musknapp som velger og drar vinduer:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Midtre"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Musknapp som velger skrivebord:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Musknapp som bringer opp menyen til skrivebordsoversikten:"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Skrivebordsoversikt"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Skrivebordsoversikt"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av \n"
+"skrivebordsoversikt i Enlightenment \n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"Mistet sesjonebehandler som var... der?\n"
+"Hit hit sesjonbehandler... kom hit... vil du ha ett ben?\n"
+"Å kom nå! Slutt og skulke! Vel vel, Får fortsette uten\n"
+"sesjonbehandler.\n"
+"\n"
+"\n"
+"... håper jeg.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Er du sikker du vil gjøre dette?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Er du sikker på at du logge ut ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Ja, avslutt "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Ja, start på nytt "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Ja, avslutt "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Nei "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "Bruk dialogoverskrifter"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+msgid "Session"
+msgstr "Sesjon"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "Innstillinger for sesjon"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling \n"
+"av fokus i Enlightenment\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Flytte metoder"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Størrelse metoder"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Teknisk"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Boks"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Skyggelagt"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Hel"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Gjennomsiktig"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Info ved flytting og endring av geometri:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "I midten av vinduet"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Alltid i hjørne av skjermen"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Ikke vis"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "Konservativ"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "Tilgjengelig"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Absolutt"
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "La vinduer få fokus ved skifte"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "Flytt/Endre størrelse"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Flytting & størrelse"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"flytting & størrelse i Enlightenment\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Dialogvinduer opptrer sammen med sitt opphav"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Skift til det skrivebordet hvor dialogen opptrer "
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Plasser vinduer manuelt"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Plasser vinduer under muspeker"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Inkluder skyggelagte vinduer i fokuslista"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "La vinduer gli inn når de kommer"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "La vinduer gli omkring ved rydding"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Glidmetoder:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Hastighet ved gliding av nye vinduer: (treg)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Hastighet ved oppryddningsgliding: (treg)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animasjon ved skyggelegging av vinduer"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Hastighet ved skyggeleggingsgliding: (treg)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Overse dette"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Plasser vinduer manuelt"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Plassering"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Plassering av vinduer"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling\n"
+"av vindusplassering i Enlightenment\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Hev vinduer automatisk"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Forsinkelse ved automatisk heving:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Forsinkelse ved automatisk heving:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Automatisk heving"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Innstillinger for automatisk\n"
+"heving av vinduer i Enlightenment\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Bruk dialogoverskrifter"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Skru på støtte for lyd"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Bruk underlagret for å redusere vindusutbredelse"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Forskjellig"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Forskjellige innstillinger"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for ulike innstillinger\n"
+"i Enlightenment\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Skru på støtte for lyd"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Bruk kantflipping"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Skru på støtte for lyd"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Verktøytips"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"Enlightenments verktøytips\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Innstillinger for Enlightenment"
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment kunne ikke opprette en forbindesle til det displayet\n"
+"som din skallvariable DISPLAY har som verdi. Du kan sette\n"
+"denne variablen for å indikere hvilket display Enlightenment skal\n"
+"bruke. Det kan være at du ikke kjører en X Server som\n"
+"håndterer en forbindelsen til dette displayet eller at du\n"
+"ikke har anledning til det.\n"
+"Vær sikker på at alt er korrekt før du prøver igjen.\n"
+"Kjør en X Server ved å starte xdm eller ved kommandoen startx, eventuelt\n"
+"kontakt din lokale adminstrator eller X Server leverandør, eller\n"
+"lese X, xdm og startx manual sidene før du fortsetter.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "En annen vindussjef kjører allerede"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Feil ved versjonen til X serveren"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Overse denne feilen"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"Advarsel:\n"
+"Dette er ikke en X11 X Server. Den snakker faktisk X%i protokollen.\n"
+"Enlightnement vil dermed ikke fungere.\n"
+"Forfatteren av Enlightenment kjenner ikke til X Servere\n"
+"med versjone høyere enn X 11.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Tittel"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Navn"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klasse"
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Rolle:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Kommando"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Spor endringer"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Plassering"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Rammestil"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Størrelse"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Skrivebord"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Skyggetilstand"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Stødighet"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Nivå"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Overse i vinduslista"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Skyggelegging"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Flagg"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Start programmet ved innlogging"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Husk dette vindus gruppe(r)"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Lagrede egenskaper for dette programmet"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Velg de egenskapene som dette\n"
+"vinduet skal huske\n"
+"fra nå av\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Slett"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Innstillinger for hukommelse"
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Ubrukt"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Det er ingen aktive vinduer som trenger hukommelse."
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Husk"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Innstillinger for hukommelse"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"hukommelse i Enlightenment\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Feil ved lagringa av miniatyr fil\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Feil: kunne ikke finne lydfil"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Advarsel! Enlightenment kunne ikke ta inn\n"
+"følgende lydfil:\n"
+"%s\n"
+"Enlightenment vil fortsette, men du bør\n"
+"sjekke din konfigurasjon.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Feil ved initering av støtte for lyd."
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Bruk av lyd er støttet i Enlightenment, men det var en feil\n"
+"kommunikasjonen med lydserveren (Esound). Lyd vil ikke\n"
+"støttet.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Skru på støtte for lyd"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Lyd"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"Enlightenments bruk av lyd\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "Epeker feil!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Valg for skrivebordet"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Automatisk heving"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Tema"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Innstillinger for menyer"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling \n"
+"av fokus i Enlightenment\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Bruk verktøytips"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Bruk skrivebordstips"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Forsinkelse ved verktøytips:\n"
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Verktøytips:"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Verktøytips"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog for innstilling av\n"
+"Enlightenments verktøytips\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "Bytt skrivebord"
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "Gå til neste skrivebord."
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Gå til forrige skrivebord."
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "Flytt"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "Flytt dette vinduet."
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Valg for vinduer"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Vis/Skjul denne gruppa"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "Start en gruppe"
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Husk dette vindus gruppe(r)"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Skyggelagt"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Endre størrelse"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Husk dette vindus gruppe(r)"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horisontalt"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertikalt"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Lukk dette vinduet."
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Maksimer"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "Send til et annet skrivebord"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Ta bilder av skjerm"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Skyggetilstand"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "Flere knapper"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "Vis flere knapper."
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Hev"
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Trykk her for heve dette skrivebordet\n"
+"til toppen.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Senk"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "Senk dette vinduet."
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Stødig / ustødig"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Avslutt Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "Innstillinger for KDE"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Bruk linje til å dra med"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Skift fokus til dette skrivebordet"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Skift fokus til dette skrivebordet"
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Bakgrunner"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Valg for skrivebordet"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i skrivebord"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Skift fokus til dette skrivebordet"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Skift fokus til dette skrivebordet"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "Brukermenyer"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Innstillinger"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "Vedlikehold"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Hjelp"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "Om Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "Om dette temaet"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Start på nytt"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Logg ut"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Bruk bakgrunnsbilde"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Innstillinger for hukommelse"
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Overse i vinduslista"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Innstillinger for fokus"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Rammestil"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Feil ved vindusgruppe"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Husk dette vindus gruppe(r)"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Start en ny gruppe"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Velg gruppa som vinduet skal fjernes fra. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Husk dette vindus gruppe(r)"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Velg den gruppa som vinduet skal tilhøre: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Stødighet"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Under"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Normal"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Over"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "Øverst"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Aldri fokus"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Aldri fokus"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Bunn"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Bunn"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Slett"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Fokus følger musklikk"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Bruk kantflipping"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Lagrede egenskaper for dette programmet"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Annet"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Innstillinger for Enlightenment..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "Innstillinger for fokus..."
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Innstillinger for flytting & størrelse..."
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Innstillinger for plassering av vinduer..."
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Antall skrivebord"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Innstillinger for virtuelle skrivebord"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Innstillinger for skrivebordsoversikt"
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Forskjellige innstillinger"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Automatisk heving"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Verktøytips"
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "Innstillinger for lyd..."
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Innstillinger for skrivebordsoversikt"
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Innstillinger for hukommelse"
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Spesiell effekter"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Innstillinger for skrivebordsbakgrunn"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr ""
+#~ "Dialog for innstilling av\n"
+#~ "Enlightenments verktøytips\n"
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Verktøytips"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Lyd"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Forskjellige innstillinger"
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Speiling Skyggelegging/Ikonifiser/Stødig"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Skrivebord"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i skrivebord"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "skjermer"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "skjermer (i størrelse)"
--- /dev/null
+# This is the Dutch locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Dènis Riedijk <ried@si.tn.tudelft.nl>, 1999-2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-01-04 23:15+0100\n"
+"Last-Translator: Dènis Riedijk <ried@si.tn.tudelft.nl>\n"
+"Language-Team: Dutch <nl@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Over Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Er is een fout opgetreden bij het uitvoeren van:\n"
+"%s\n"
+"Dit programma kon niet uitgevoerd worden.\n"
+"Dit omdat het bestand niet bestaat.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Er is een fout opgetreden bij het uitvoeren van:\n"
+"%s\n"
+"Dit programma kon niet uitgevoerd worden.\n"
+"De meest waarschijnlijke reden hiervoor is dat het programma\n"
+"niet in het pad voor uw shell staat, dat is %s. Ik suggereer dat \n"
+"U de documentatie voor uw sheel bekijkt hoe U het pad voor\n"
+"uivoerbare programma's moet aanpassen.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Er is een fout opgetreden bij het uitvoeren van:\n"
+"%s\n"
+"Dit programma kon niet uitgevoerd worden.\n"
+"Ik weet niet hoe het komt dat het niet kan. Het bestand bestaat,\n"
+"en U bent gerechtigd om het uit te voeren. Ik suggereer dat\n"
+"U hier naar kijkt.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Er is een fout opgetreden bij het uitvoeren van:\n"
+"%s\n"
+"Dit programma kon niet uitgevoerd worden.\n"
+"De reden hiervoor is dat het bestand bestaat, maar U kan het\n"
+"niet uitvoeren omdat U geen uitvoer rechten voor het bestand heeft.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Er is een fout opgetreden bij het uitvoeren van:\n"
+"%s\n"
+"Dit programma kon niet uitgevoerd worden.\n"
+"De reden hiervoor is dat het bestand in werkelijkheid een directory is.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment fout"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Negeer dit"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Herstart Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Stop Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Attentie !!!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Achtergrond definitie informatie:\n"
+"Naam : %s\n"
+"Bestand : %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-GEEN-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Nee\n"
+"Achtergrond"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Ongebruikte achtergronden verwijderd na %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Gebruik achtergrond plaatje"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Bewaar verhoudingen bij schalen"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Plaats plaatjes naast elkaar op achtergrond"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Verplaats naar voren\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Dupliceer\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Haal uit de lijst\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Verwijder bestand\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Achtergrond\n"
+"Plaatje\n"
+"Schaling\n"
+"en\n"
+"Plaatsing\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Achtergrond kleur\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Rood:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Groen:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blauw:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Prescan Achtergronden"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Sorteer op bestand"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Sorteer op attribuut"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Sorteer op plaatje"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Gebruik dithering in Hi-Color"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Achtergrond overruled thema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr ""
+"Nee\n"
+"Achtergrond"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Desktop Achtergrond Instellingen"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Enlightenment Inter Process Communication fout"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIGURATIE: negeer extra gegevens in \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIGURATIE: benodigde gegevens ontbreken in \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Waarschuwing: ik kan niet bepalen wat te doen met\n"
+"de volgende tekst in het midden van de huidige Extras definitie:\n"
+"%s\n"
+"Zal negeren en doorgaan...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Waarschuwing: Configuratie lijkt te zijn beeindigd voor we\n"
+"klaar zijn met het laden van het huidige menu. Resultaat zal\n"
+"waarschijnlijk niet ok zijn.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Thema versie fout"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Herstarten met standaard instellingen"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Afbreken en afsluiten"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment start op"
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Invoer instellingen"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Sluit"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Maak een nieuwe Icoonbox"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Icoon grootte"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Transparante achtergrond"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Toon/Verberg deze groep"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Teken basisplaatje achter iconen"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Toon geen scrollbar als niet nodig"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Grootte automatisch aanpassen om iconen te bevatten"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Plaatsing van ankers als automatisch grootte aanpassen"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientatie:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Scrollbar kant:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Scrollbar pijltjes"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontaal"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Links/Boven"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Start"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertikaal"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Rechts/Onder"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Beide zijden"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Einde"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Geen"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Toon icoon namen"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animeer wanneer naar deze icconbox geminimaliseerd wordt"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Icoon plaatje instellingen (als de ene niet gaat, probeer volgende):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Snapshot venster, Applicatie icoon, Enlightenment icoon"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Applicatie icoon, Enlightenment icoon, Snapshot venster"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Enlightenment icoon, Snapshot venster"
+
+#: src/container.c:1714
+#, fuzzy
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Hou de muisknop ingedrukt en sleep\n"
+"de muis om in staat te zijn om de desktop\n"
+"heen en weer te schuiven.\n"
+"Klik op de rechtermuisknop voor een lijst\n"
+"van alle desktops en hun applicaties.\n"
+"Klik op de middelste muisknop voor een lijst\n"
+"van de applicaties die nu draaien.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Dit is de 'root' desktop.\n"
+"Deze desktop kan niet verplaatst worden.\n"
+"Klik met de rechter muisknop om een lijst\n"
+"van alle desktops en applicaties te krijgen.\n"
+"Klik met de muisknop om een lijst van alle\n"
+"programma's te krijgen die nu actief zijn.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Klik hier om deze desktop naar\n"
+"boven te brengen\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Klik hier om deze desktop naar\n"
+"beneden te brengen\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Aantal virtuele desktops:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Schuif desktops bij veranderen"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Snelheid van desktop schuiven: (langzaam)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Toon de desktop sleurstrip"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Sleurstrip positie:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Boven"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Onder"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Links"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Rechts"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Desktop"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Meerdere Desktop Instellingen"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Virtuele Desktop grootte:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Weerstand aan de rand van het scherm:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Virtuele Dektop Instellingen"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Pas toe"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr ""
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Invoer volgt de muis"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Invoer volgt de muis slordig"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Invoer volgt muis klikken"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Klikken in een venster brengt het altijd naar boven"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Alle niewe vensters krijgen de invoer"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Alleen nieuwe dialoog vensters krijgen de invoer"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+"Alleen nieuwe dialoog vensters waarvan de eigenaar de invoer heeft krijgen "
+"de invoer"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Breng vensters naar voren na een invoer wisseling"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Stuur de muis naar het venster bij een invoer wisseling"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Stuur de muis naar het venster bij een invoer wisseling"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Toon en gebruik een venster lijst"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr ""
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Plaats vensters met de hand"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr ""
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Breng vensters naar voren na een invoer wisseling"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Stuur de muis naar het vester na een invoer wisseling"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Icoon plaatje instellingen (als de ene niet gaat, probeer volgende):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr ""
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Invoer instellingen"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+#, fuzzy
+msgid "Enable Effect: Raindrops"
+msgstr "Het is niet mogelijk om regendruppels te tonen"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Speciale Effect Instellingen"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Venster Groep Selectie"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Venster groep fout"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Dit venster behoort momenteel niet bij een groep.\n"
+" Je kunt alleen maar groepen verwijderen of vensters van groepen\n"
+" verwijderen via vensters die daadwerkelijk bij minstens een groep behoren\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Momenteel bestaan er geen groepen, of dit venster\n"
+" behoort al bij alle bestaande groepen.\n"
+" Je zult eerst andere groepen moeten starten\n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Momenteel bestaan er geen groepen, Je zult eerst een groep moeten starten.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Kies de groep om in te stellen: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" De volgende acties worden\n"
+" toegepast op alle groepsleden"
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Verander van rand stijl"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Minimaliseren"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Afsluiten"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Verplaatsen"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Omhoog/Omlaag brengen"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Sticken"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Shaden"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Venster Groep Instellingen"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Dit venster behoort momenteel niet bij een groep. \n"
+"\n"
+
+#: src/groups.c:962
+#, fuzzy
+msgid " Per-group settings: "
+msgstr "Pager instellingen"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+#, fuzzy
+msgid "Swap Window Locations"
+msgstr "Venster Opties"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Groep %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Standaard Groep Controle Instellingen"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr "Kies de groep waar het venster bij moet behoren : \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Kies de groep waar het venster van verwijderd moet worden"
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Kies de groep om te breken"
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "Desktop opties"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Icoonbox Opties"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Icoonbox instellingen"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr ""
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Zet geluiden aan"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment Inter Process Commandos Hulp"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"commandos die nu beschikbaar zijn:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr ""
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr ""
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr ""
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Rand stijl"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Venster Opties"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Ga naar deze desktop"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Desktop %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Toon/Verberg deze groep"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Minimaliseer deze groep"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Groep %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Geanimeerd tonen van menus"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Toon menus altijd op het scherm"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr ""
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Rand stijl"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Audio Instellingen"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Rand stijl"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Rand stijl"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Wachttijd voor het tonen:\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Gevuld"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Transparante achtergrond"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr ""
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Venster Opties"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Minimaliseer"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Annihileer"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Stick / Unstick"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Desktop opties"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Pager instellingen..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Snapshots uit"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Hoge kwaliteit uit"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Hoge kwaliteit aan"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Shapshots aan"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Pager scan snelheid:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "lijnen per seconde"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Toon pager"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Grootte"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Maak miniatuur snapshots van het scherm"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Verbeter hoge kwaliteits snapshots in snapshot modus"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zoom in op pager vensters als de muis boven ze is"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Toon venster titel als de muis boven het venster is"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Scan het scherm continu om de pager bij te werken"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Muisknop op vensters te selecteren en slepen"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Midden"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Muisknop om desktops te selecteren"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Muisknop om pager menu te tonen"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Pager instellingen"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Pager instellingen"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Weet U het zeker?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Weet U zeker dat U uit wil loggen ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Ja, log uit "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Ja, log uit "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Ja, log uit "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Nee "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr ""
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Audio Instellingen"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Audio Instellingen"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Verplaats methoden:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Vergroot/Verklein methoden:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Technisch"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Box"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Shaded"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Halfvol"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Doorzichtig"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr ""
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Grootte"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Verplaats en Vergroot/Verklein instellingen"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Dialoog vensters verschijnen samen met hun eigenaar"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Schakel naar desktop waar de dialoog vershijnt"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Plaats vensters met de hand"
+
+#: src/settings.c:331
+#, fuzzy
+msgid "Place windows under mouse"
+msgstr "Plaats vensters met de hand"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Plaats vensters met de hand"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Verschuif vensters als ze verschijnen"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Verschuif vensters bij het opschonen"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Schuif Methode:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Verschijn schuifsnelheid (langzaam)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Opschoon schuifsnelheid (langzaam)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animeer het shaden en de-shaden van vensters"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Venster shadesnelheid (langzaam)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Negeer dit"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Plaats vensters met de hand"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Venster Plaatsing Instellingen"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Breng vensters automatisch naar voren"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Wacht voor omhoogbrengen:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Wacht voor omhoogbrengen:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Automatisch Omhoogbrengen Instelling"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Zet geluiden aan"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Gebruik saveunders om vensters minder te tonen"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Instellingen van deze Icoonbox"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr ""
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Zet geluiden aan"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Ga aan de rand van het sherm naar volgende deel"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Zet geluiden aan"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Tooltip instellingen"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Enlightenment start op"
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Een andere Window Manager is al actief"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr ""
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr ""
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr ""
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr ""
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr ""
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Rood:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr ""
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Locatie"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Rand stijl"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Grootte"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Desktop"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Shaded staat"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Sticky staat"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Laag van het venster"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr ""
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Shaden"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr ""
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Herstart applicatie bij inloggen"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Herinner de groepen van dit venster"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr ""
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Verwijder bestand\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr ""
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Pager instellingen..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr ""
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr ""
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr ""
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr ""
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Zet geluiden aan"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Audio Instellingen"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "Desktop opties"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Desktop opties"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Automatisch Omhoogbrengen Instelling"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr ""
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Audio Instellingen"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr "Enlightenment Bericht Dialoog"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Toon Tooltips"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Toon Tooltips op de achtergrond van desktop"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Wachttijd voor het tonen:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Wachttijd voor het tonen:\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Tooltip instellingen"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i Desktops"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Verplaatsen"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Venster Opties"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Toon/Verberg deze groep"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Herinner de groepen van dit venster"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Shaded"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Grootte"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Herinner de groepen van dit venster"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horizontaal"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertikaal"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Shapshots aan"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Shaded staat"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Onder"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Klik hier om deze desktop naar\n"
+"boven te brengen\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Stick / Unstick"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Stop Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "KDE Instellingen"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Toon de desktop sleurstrip"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr ""
+"Nee\n"
+"Achtergrond"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Desktop opties"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i Desktop"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Ga naar deze desktop"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Stop Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Rand stijl"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Invoer instellingen"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Over Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Herstarten"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Ja, log uit "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Gebruik achtergrond plaatje"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Pager instellingen..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Venster Opties"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Invoer instellingen"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Rand stijl"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Venster groep fout"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Herinner de groepen van dit venster"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Kies de groep waar het venster van verwijderd moet worden"
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Herinner de groepen van dit venster"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr "Kies de groep waar het venster bij moet behoren : \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Sticken"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Boven"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr ""
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr ""
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Onder"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Onder"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Verwijder bestand\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Invoer volgt muis klikken"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Ga aan de rand van het sherm naar volgende deel"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Herstart applicatie bij inloggen"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment start op"
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Invoer instellingen"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Verplaats en Vergroot/Verklein instellingen"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Venster Plaatsing Instellingen"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Meerdere Desktop Instellingen"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Virtuele Dektop Instellingen"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Pager instellingen..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Audio Instellingen"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Automatisch Omhoogbrengen Instelling"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Tooltip instellingen"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Audio Instellingen"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Pager instellingen..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Pager instellingen..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Speciale Effect Instellingen"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Desktop Achtergrond Instellingen"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Pager instellingen..."
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Tooltip instellingen"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Audio Instellingen"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Instellingen van deze Icoonbox"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Desktops"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i Desktop"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "Shermen in grootte"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Sherm in grootte"
--- /dev/null
+# This is the Polish locale definition for Enlightenment.
+# Copyright (C) 1999-2001 Free Software Foundation, Inc.
+# Adam Kisiel <kisiel@if.pw.edu.pl>, 1999-2001.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-01-04 23:15+0100\n"
+"Last-Translator: Adam Kisiel <kisiel@if.pw.edu.pl>\n"
+"Language-Team: Polshi <pl@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "O Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "pozostaje %u odwo³añ\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Nast±pi³ b³±d przy uruchamianiu programu:\n"
+"%s\n"
+"Nie mo¿na uruchomiæ programu.\n"
+"Nie istnieje taki plik wykonywalny.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Nast±pi³ b³±d przy uruchamianiu programu:\n"
+"%s\n"
+"Nie mo¿na uruchomiæ programu.\n"
+"Najprawdopodobniej program nie znajduje siê w ¿adnym z katalogów\n"
+"domy¶lnej ¶ciêzki wykonywalnej, która jest nastêpuj±ca: %s.\n"
+"Proponujê przeczytaæ stronê podrêcznika towjej pow³oki (shell),\n"
+"gdzie dowiesz siê, jak dodaæ katalogi do ¶cie¿ki wykonywalnej\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Nie mo¿na uruchomiæ programu.\n"
+"%s\n"
+"Nie jestem pewien, dlaczego nie da siê tego zrobiæ. Plik istnieje,\n"
+"jest plikiem i masz prawa do uruchomienia go. Proponujê zbadanie\n"
+"problemu.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Nast±pi³ b³±d przy uruchamianiu programu:\n"
+"%s\n"
+"Nie mo¿na uruchomiæ programu.\n"
+"Plik istnieje, jest plikiem, ale nie mo¿na go uruchomiæ, gdy¿\n"
+"nie masz do niego praw wykonywania.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Nast±pi³ b³±d przy uruchamianiu programu:\n"
+"%s\n"
+"Nie mo¿na uruchomiæ programu.\n"
+"Ten plik jest katalogiem.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Nast±pi³ b³±d przy uruchamianiu programu:\n"
+"%s\n"
+"Nie mo¿na uruchomiæ programu.\n"
+"Ten plik nie jest plikiem zwyk³ym.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "B³±d Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Okno wiadomo¶ci Enlightenment"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Zignoruj to"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Uruchom Enlightenment ponownie"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Wyjd¼ z Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Uwaga !"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Defincja t³a:\n"
+"Nazwa : %s\n"
+"Plik : %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-¯ADEN-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Ilo¶æ\n"
+"t³o"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Usuwanie nie uzywanych plików t³a po %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "U¿yj obrazka jako t³a"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Zachowaj proporcje przy skalowaniu"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Utwórz mozaikê z obrazka"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Przesuñ na przód\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Powiel\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Usuñ z listy\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Skasuj plik\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Skalowanie\n"
+"i\n"
+"Wyrównanie\n"
+"Obrazka\n"
+"t³a\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Kolor t³a\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Czerwony :\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Zielony :\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Niebieski :\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Pre-skanowanie obrazków t³a"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Sortuj wed³ug pliku"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Sortuj wed³ug atrybutów"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Sortuj wed³ug obrazka"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "U¿ywaj ditheringu w trybie Hi-Color"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Ustawienia t³a nadrzêdne nad ustawieniami wystroju"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr ""
+"Ilo¶æ\n"
+"t³o"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Ustawienia T³a Pulpitu"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Oknoustawieñ T³a\n"
+"Pulpitu Enlightenment\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "B³±d Enlightenment IPC"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Odebrano nieznan± Wiadomo¶æ Klienta.\n"
+" Nazwa klienta: %s\n"
+" Wersja klienta: %s\n"
+" Zawarto¶æ wiadomo¶ci:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "Konfiguracja : pomijam nadmiarowe dane w \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "Konfiguracja : Brak wymaganych danych w \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Ostrze¿enie: nie wiadomo, co pocz±æ z nastêpujacym tekstem\n"
+"wewn±trz aktualnej definicji sekcji Extras: \n"
+"%s\n"
+"Zignorujê to i bêdê kontynuowaæ...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Ostrze¿enie: Wydaje siê, ¿e konfiguracja urwa³a siê zanim\n"
+"zakoñczono ³adowanie sekcji Menu. Wynik pewnie nie jest dobry.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "B³±d w wersji wystroju."
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Uruchom ponownie z warto¶ciami domy¶lnymi."
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Zaniechaj i Wyjd¼"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"B£¡D:\n"
+"\n"
+"Konfiguracja wystroju, którego u¿ywasz jest\n"
+"niezgodna. Jego wersja to %i. Powinna byæ\n"
+"oznaczona jako %i\n"
+"\n"
+"Skontaktuj siê z autorem wystroju lub osob±, która siê\n"
+"nim opiekuje i poinformuj j±, ¿e jej wystrój bêdzie dzia³a³\n"
+"z t± wersj± Enlightenment, tylko je¿eli zostanie on\n"
+"uaktualniony do obecnej wersji i bêdzie mia³\n"
+"w³a¶ciw± wersjê.\n"
+"\n"
+"Je¿eli wersj± wystroju jest wiêksza ni¿ wersja Enlightenment\n"
+"to mo¿liwe, ¿e nie uaktualnia³e¶ ostatnio Enlightenment,\n"
+"za¶ ten wystrój korzysta z nowych funckji wprowadzonych\n"
+"w nowych wersjach Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Uruchamianie Enlightenment..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Ustawienia Aktywacji"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Zamknij"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Stwórz nowe Pude³ko na Ikony"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Rozmiar Ikon"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Przezroczyste t³o"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Poka¿/Ukryj t± grupê"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Umieszczaj za Ikonami obrazek bazowy"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Ukryj pasek przewijania, gdy nie jest portrzebny"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Automatycznie zmieniaj rozmiar, tak aby zmie¶ciæ Ikony"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Wyrównywanie zaczepienia przy automatycznej zmianie rozmiaru"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientacja:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Pozycja Paska Przewijania:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Strza³ki Paska Przewijania:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Poziome"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Lewo / Góra"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Start"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Pionowe"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Prawo / Dó³"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Obydwa koñce"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Koniec"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "¯aden"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Pokazuj nazwy Ikon"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "W³±cz animacjê przy zwijaniu do Ikony w tym Pude³ku"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Sposób wy¶wietlania ikon (je¿eli która¶ zawiedzie, spróbuj nastêpnej):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Zdjêcie Okna, U¿yj Ikony aplikacji, U¿ytj Ikony Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "U¿yj Ikony aplikacji, U¿ytj Ikony Enlightenment, Zdjêcie Okna"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "U¿ytj Ikony Enlightenment, Zdjêcie Okna"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Pude³ka\n"
+"na Ikony Enlightenment\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Aby przeci±gn±æ pulpit, przytrzymaj\n"
+"przycisk myszy i przeci±gaj mysz w\n"
+"dowolnym kierunku.\n"
+"Aby otrzymaæ listê Pulpitów i aplikacji w nich\n"
+"uruchomianych naci¶nij prawy przycisk myszy.\n"
+"Aby otrzymaæ listê aktualnie dzia³aj±cych aplikacji\n"
+"nacisnij ¶rodkowy przycisk myszy.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"To jest Pulpit g³ówny.\n"
+"Tego pulpitu nie mo¿na przeci±gaæ.\n"
+"Aby otrzymaæ listê Pulpitów i aplikacji w nich\n"
+"uruchomianych naci¶nij prawy przycisk myszy.\n"
+"Aby otrzymaæ listê aktualnie dzia³aj±cych aplikacji\n"
+"nacisnij ¶rodkowy przycisk myszy.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Aby podnie¶æ Pulpit na szczyt,\n"
+"kliknij tutaj.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Aby schowaæ ten Pulpit na dno,\n"
+"kliknij tutaj\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Ilo¶æ Pulpitów wirtualnych:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Pulpity ¶lizgaj± siê podczas ich zmiany"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Szybko¶æ ¶lizgania siê Pulpitów: (wolno)\n"
+
+#: src/desktops.c:2336
+#, fuzzy
+msgid "Wrap desktops around"
+msgstr "Zawijaj Wirtulane Pulpity"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Wy¶wietlaj Pasek Przeci±gania Pulpitu"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Pozycja Paska Przeci±gania"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Góra"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Dó³"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Lewo"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Prawo"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Pulpit"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Ustawienia Wielu Pulpitów"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Wielu Pulpitów\n"
+"Enlightenment\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Rozmiar Wirtualnego Pulpitu :\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Zawijaj Wirtulane Pulpity"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Czu³o¶æ na prze³±czanie przy brzegach ekranu:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Ustawienia Wirtualnego Biurka"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Wirtualnego Biurka\n"
+"Enlightenment\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Zastosuj"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "B³±d w konfiguracji X Serwera"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"B£¡D KRYTYCZNY:\n"
+"\n"
+"Ten XSerwer nie wspiera rozszerzenia Shape.\n"
+"Jest ono konieczne, aby Enlightenment siê uruchomi³.\n"
+"\n"
+"Twój XSerwer jest albo za stary, albo ¼le skonfigurowany.\n"
+"\n"
+"Koñczê dzia³anie.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Aktywacja pod±¿a za kursorem"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Aktywacja pod±za leniwie za kursorem"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Aktywacja pod±¿a za klikniêciami myszy"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Klikniêcie w oknie zawsze je Aktywuje"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Wszystkie nowe okna s± najpierw Aktywowane"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Aktywowane s± tylko nowe okna dialogowe"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Aktywowane s± tylko okna dialogowe, których w³a¶ciciel jest aktywny"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Aktywuj okna podczas prze³±czania"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Przesuñ wska¼nik myszy do Aktywowanego okna"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Przesuñ wska¼nik myszy do Aktywowanego okna"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Wy¶wietl i uzywaj listy Aktywacji"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "W³±cz okna przyklejone do listy aktywacji"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "W³±cz onka w cieniu do listy Aktywacji"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "W³±cz okna zwiniête do ikony do listy Aktywacji"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "W³±cz onka w cieniu do listy Aktywacji"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Aktywuj okna podczas prze³±czania"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Podno¶ okna po prze³±czeniu Aktywacji"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Wy¶lij wska¼nik myszy do okna po prze³±czeniu Aktywacji"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Sposób wy¶wietlania ikon (je¿eli która¶ zawiedzie, spróbuj nastêpnej):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Nigdy Nie Aktywuj"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Ustawienia Aktywacji"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Aktywacja Enlightenment\n"
+"Okno ustawieñ\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+#, fuzzy
+msgid "Enable Effect: Raindrops"
+msgstr "Nie da siê wy¶wietliæ kropli deszczu"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Ustawienia Efektów specjalnych"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Efektów\n"
+"specjalnych Enlightenmnet\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Wybór Grupy Okien"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Okno dialogowe Wyboru\n"
+"Grupy Okien Enlightenment\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "B³±d Grup Okien"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" To okno nie nale¿y w tej chwili do ¿adnej grupy. \n"
+" Mo¿esz tylko rozbijaæ grupy lub usuwac okna z grup \n"
+" Poprzez okno, które nale¿y do przynajmniej jednej grupy. \n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" W tej chwili nie istniej± ¿adne grupy, lub \n"
+" to okno nalezy ju¿ do wszystkich grup. \n"
+" Musisz najpierw utworzyæ now± grupê. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" W tej chwili nie istniej± ¿adne grupy. Musisz najpierw jak±¶ utworzyæ.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Wybierz grupê, któr± chcesz konfigurowaæ :"
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Nastêpuj±ce akcje obejmuj± \n"
+" wszystkich cz³onków grupy: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Zmiana stylu obramowania"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Zwijanie do Ikony"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Niszczenie"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Przesuwanie"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Podnoszenie / Zag³êbianie"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Przyklejanie"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Usuwanie w cieñ"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Ustawienia Grup Okien"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Grup\n"
+"Okien Enlightenment\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" To okno nie nale¿y w tej chwili do ¿adnej grupy. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Ustawienia dotycz±ce ca³ej grupy: "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Ustawienia globalne: "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Zamiana po³o¿eñ okien"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Grupa %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Ustawienia Domy¶lne Grupy"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ domy¶lnych\n"
+"Grup Enlightenment\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Wybierz grupê, do której bêdzie nale¿eæ okno:\n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Wybierz grupê, z której mam usun±æ okno. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Wybierz grupê, któr± mam rozbiæ "
+
+#: src/handlers.c:61
+#, fuzzy, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enightenment wykona³ niedozwolona instrukkcjê.\n"
+"\n"
+"Przyczyn± jest prawdopodobnie to, ¿e zosta³a zainstalowana i\n"
+"uruchomiona wersja binarna Enlightenment, która nie jest w 100%\n"
+"zgodna z twoim typem procesora. Nale¿y albo zdobyæ w³a¶ciw±\n"
+"dla twojego systemu wersjê, albo ponownie skompilowaæ Enlightenment\n"
+"i byæ mo¿e równie¿ wszystke biblioteki pomocnicze, które\n"
+"zainstalowano w formie binarnej\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment spowodowa³ Wyj±tek w Dzia³aniach Zmienno-Przecinkowych\n"
+"\n"
+"Oznacza to, ¿e Enlightenment, lub funkcje z bibliotek pomocniczych\n"
+"wykona³y niedozwolon± operacjê matematyczn± (najprawdopodobniej\n"
+"dzielenie przez zero). Jest to prawdopodobnie b³±d w programie.\n"
+"Doradzamy ponowne uruchomienie. Je¿eli chcesz nam pomóc w usuniêciu\n"
+"tego b³êdu, zrekompiluj Enlightenment z u¿yciem symboli debuggera\n"
+"i uruchom Enlightenment pod kontrola gdb, tak, aby¶ móg³ wy¶ledziæ,\n"
+"gdzie powstaje b³±d i wy¶lij nam u¿yteczny 'Bug Report' z informacj±\n"
+"¶ledz±c± i zrzutem warto¶ci zmiennych\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment spowodowal naruszenie ochrony pamiêci (Segfault)\n"
+"\n"
+"Oznacza to, ¿e Enlightenment, lub funkcje z bibliotek pomocniczych\n"
+"za¿±da³y dostêpu do obszarów pamiêci do któeych nie mia³y praw dostêpu.\n"
+"Jest to prawdopodobnie b³±d w programie.\n"
+"Doradzamy ponowne uruchomienie. Je¿eli chcesz nam pomóc w usuniêciu\n"
+"tego b³êdu, zrekompiluj Enlightenment z u¿yciem symboli debuggera\n"
+"i uruchom Enlightenment pod kontrola gdb, tak, aby¶ móg³ wy¶ledziæ,\n"
+"gdzie powstaje b³±d i wy¶lij nam u¿yteczny 'Bug Report' z informacj±\n"
+"¶ledz±c± i zrzutem warto¶ci zmiennych\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment spowodowa³ b³±d szyny\n"
+"\n"
+"Doradzamy sprawdzenie sprzêtu i instalacji systemu operacyjnego.\n"
+"Spowodowanie b³êdu szyny jest bardzo ma³o prawodpodobne przy\n"
+"dobrze dzia³aj±cym sprzêcie\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "B³±d sekcji TextClass"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Opcje Pude³ka na Ikony"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Ustawienia Pude³ka na Ikony"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Wiadomo¶æ"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "W³±cz d¼wiêki"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Pomoc dla komend Enlightenmnet IPC"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"wpisz \"help all\" aby uzyskaæ opis ka¿dej z komend\n"
+"wpisz \"help <komenda>\" aby uzyskaæ opis pojedynczej komendy\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"Aktualnie dostêpne komendy :\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "wpisz \"help <komenda>\" aby uzyskaæ opis pojedynczej komendy\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr "<komenda> : <opis>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! B£¡D B£¡D B£¡D B£¡D !!!!!!!!\n"
+"\n"
+"Nie znaleziono progrmau pomocniczego Enlightenment w:\n"
+"\n"
+"%s\n"
+"Jest to b³±d krytyczny i Enlightenment zakoñczy dzia³anie.\n"
+"Spróbuj zaradziæ tej sytuacji i zainstaluj poprawnie ten\n"
+"program.\n"
+"\n"
+"Powodem braku mo¿e byæ ¼le przygotowany plik instalacyjny,\n"
+"rêczne skasowanie pliku, lub b³±d w instalacji\n"
+"Enlightenment.\n"
+
+#: src/main.c:693
+#, fuzzy, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! B£¡D B£¡D B£¡D B£¡D !!!!!!!!\n"
+"\n"
+"Nie znaleziono progrmau pomocniczego Enlightenment dox w:\n"
+"\n"
+"%s\n"
+"Jest to b³±d krytyczny i Enlightenment zakoñczy dzia³anie.\n"
+"Spróbuj zaradziæ tej sytuacji i upewnij siê, ¿e dox jest\n"
+"zaistalowany poprawnie.\n"
+"\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Z³y wystrój"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Styl Obramowania"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Pomijanie w Li¶cie Okien"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Pulpit %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Poka¿/Ukryj t± grupê"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Zwiñ t± grupê do ikony"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Grupa %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Animowane wy¶wietlanie menu"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Zawsze pokazuj menu w ca³o¶ci na ekranie"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Przeno¶ wska¼nik myszy razem z menu"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Styl Obramowania"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Ustawienia ró¿ne"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Aktywacja Enlightenment\n"
+"Okno ustawieñ\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Styl Obramowania"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Styl Obramowania"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Opó¼nienie wy¶wietlania Podpowiedzi\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Nieprzezroczysta"
+
+#: src/mod-trans.c:235
+#, fuzzy
+msgid "Glass"
+msgstr "Klasa:"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Przezroczyste t³o"
+
+#: src/mod-trans.c:281
+#, fuzzy
+msgid "Selective Transparency Settings"
+msgstr ""
+"Okno Ustawieñ\n"
+"Podpowiedzi Enlightenment\n"
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno Ustawieñ\n"
+"Podpowiedzi Enlightenment\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Opcje Okna"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Zwiñ do Ikony"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Zniszcz"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Przyklej/Odklej"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Opcje pulpitu"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Opcje Podgl±du Pulpitu..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Wy³±cz 'Zdjêcie Ekranu'"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Wy³±cz Wysok± Jako¶æ"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "W³±cz Wysok± Jako¶æ"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "W³±cz 'Zdjêcie Ekranu'"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Szybko¶æ skanowania w Podgl±dzie Pulpitu:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linii na sekundê"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "W³±cz Podgl±d Pulpitu"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Rozmiar"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Rób miniaturowe zdjêcia ekranu"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Wyg³adzaj wysokiej jako¶ci zdjêcia w trybie 'Zdjêcia Ekranu'"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Powiêksz okna w Podgl±dzie Pulpitu, gdy jest nad nimi wska¼nik myszy"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Wy¶wietl tytu³ okna, gdy jest nad nim wska¼nik myszy"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Skanuj bez przerwy ekran i uaktualniaj Podgl±d Pulpitu"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Przycisk myszy s³u¿acy do wybierania i przeci±gania okien :"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "¦rodek"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Przycisk myszy s³u¿±cy do wybierania Pulpitów :"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Przycisk myszy s³u¿acy do wy¶wietlania menu Podgl±du Pulpitu :"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Ustawienia Podgladu Pulpitu"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Ustawienia Podgladu Pulpitu"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Podgl±du\n"
+"Pulpitu Enlightenment\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"B³±d !\n"
+"\n"
+"Znikn±³ Session Manager, który poprzednio tam by³?\n"
+"No chod¼ session managerku... no chod¼... mo¿e chcesz kosteczkê?\n"
+"No chod¼ wreszcie! Przestañ siê d±saæ! Frajer. No có¿. Dzia³am\n"
+"dalej bez session managera.\n"
+"\n"
+"Jako¶ sobie poradzê.\n"
+"\n"
+"\n"
+"... Tak± mam nadziejê.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Na pewno?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Czy na pewno chcesz siê wylogowaæ ?\n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Tak, Wyloguj siê "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Tak, Wyloguj siê "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Tak, Wyloguj siê "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Nie "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "W³±cz nag³ówki okien dialogowych"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Ustawienia ró¿ne"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Ustawienia ró¿ne"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Aktywacja Enlightenment\n"
+"Okno ustawieñ\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Metody Przesuwania"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Metody Zmiany rozmiaru"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Techniczna"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Pude³ko"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Zacieniowane"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Pó³-pe³ne"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Przezroczyste"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Informacja o geometrii Przesuwania/Zmiany rozmiaru"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Centrum Okna (Metody N/Prz/Pud)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Zawsze w rogu ekranu"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Nie pokazuj"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "Aktywuj okna podczas prze³±czania"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Rozmiar"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Ustawienia Przesuwania i Zmiany rozmiaru"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ metod Przesuwania\n"
+"i Zmieniania Rozmiaru Enlightenment\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Okna dialogowe pojawjaj± siê razem z w³a¶cicielem"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Prze³±czaj na Pulpit, gdzie pojawia siê okno dialogowe"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Rozmieszczaj okna rêcznie"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Rozmieszczaj okna pod mysz±"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "W³±cz onka w cieniu do listy Aktywacji"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Okna ¶lizgaj± siê, gdy siê pojawjaj±"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Okna ¶lizgaja siê podczas czyszczenia"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Metoda ¦lizgania :"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Szybko¶æ ¶lizgania siê przy pojawianiu: (wolno)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Szybko¶æ ¶lizgania siê okien przy czyszczeniu: (wolno)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animacja przechodzenia w cieñ i wychodzenia z cienia"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Szybko¶æ przechodzenia w cieñ: (wolna)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Zignoruj to"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Rozmieszczaj okna na kolejnym ekranie gdy jest pe³no"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Ustawienia Rozmieszczania Okien"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Rozmiesczania\n"
+"Okien Enlightenment\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Podno¶ Okna Automatycznie"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Opó¼nienie podnoszenia:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Opó¼nienie podnoszenia:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Ustawienia Auto-Podnoszenia"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Okno ustawieñ Automatycznego\n"
+"Podnoszenia Okien\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "W³±cz nag³ówki okien dialogowych"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "W³±cz d¼wiêki"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "U¿yj funkcji saveunders, aby ograniczyæ wy¶wietlanie okien"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Ustawienia ró¿ne"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Ustawienia ró¿ne"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno Ustawieñ Ró¿nych\n"
+"Enlightenment\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "W³±cz d¼wiêki"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "W³±cz prze³±czanie przy brzegach ekranu"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "W³±cz d¼wiêki"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Ustawienia Podpowiedzi"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno Ustawieñ\n"
+"Podpowiedzi Enlightenment\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Uruchamianie Enlightenment..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment nie mo¿e siê po³±czyæ z ekranem wskazywanym prze\n"
+"twoj± zmienn± ¶rodowiskow± DISPLAY. Mo¿esz ustawiæ t± zmienn±\n"
+"wskazuj±c Enlightenment, z którym ekranem powinien siê po³±czyæ.\n"
+"Byæ mo¿e nie uruchomi³e¶ jeszcze XSerwera, który tworzy ekran, z\n"
+"którym mo¿na siê po³±czyæ, albo nie masz praw na po³±czeni z ju¿\n"
+"istniejacym. Upewnij siê, ¿e wszystko jest w porz±dku, zanim\n"
+"spróbujesz ponownie. Uruchom XSerwer wydaj±c komendê starts lub xdm,\n"
+"albo skontaktuj siê z administratorem systemu, lub sprzedawc±\n"
+"XSerwera, preczytaj strony podrêcznika X, xdm i startx zanim\n"
+"podejmiesz dalsze dzia³ania.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Inny Menad¼er Okien jest ju¿ uruchomiony"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "B³±d wersji XSerwera"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Zignoruj ten b³±d"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"OSTRZE¯ENIE:\n"
+"To nie jest X11 Xserwer. W rzeczywisto¶ci u¿ywa on protoko³u X%i\n"
+"Mo¿e to oznaczaæ, ¿e Enlightenment albo nie bêdzie dzia³a³\n"
+"albo bêdzie dzia³a³ niepoprawnie. Je¿eli jest on pó¼niejszy\n"
+"ni¿ X11, to do Twojego serwera autor Enlightenment nigdy nie\n"
+"mia³ dostêpu, ani nawet o nim nie s³ysza³.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Tytu³:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Nazwa:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klasa:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Czerwony :\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Komenda:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Pozycja"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Styl Obramowania"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Rozmiar"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Pulpit"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Stan Usuniêcia w Cieñ"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Stan Przyklejania"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Poziom"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Pomijanie w Li¶cie Okien"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Usuwanie w cieñ"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Klasa:"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Uruchom aplikacjê przy logowaniu"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Zapamiêtaj grupy tego okna"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Zapamiêtywane Ustawienia Aplikacji"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Wybierz Ustawienia tego okna\n"
+"które chcesz od tego momentu\n"
+"zapamiêtaæ.\n"
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Skasuj plik\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Zapamiêtywane ustawienia..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Nie ma ¿adnych aktywnych okien z zapamiêtanymi ustawieniami."
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Zapamiêtywane ustawienia..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Zapamiêtywane ustawienia okien"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Okno dialogowe Zapamiêtywanych\n"
+"Ustawwieñ Okien Enlightenment\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "B³±d w zapisie pliku zdjêæ\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "B³±d przy znajdowaniu pliku d¼wiêkowego"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Ostrze¿enie! Enlightenment nie by³ w stanie za³adowaæ\n"
+"nastêpuj±cego pliku d¼wiêkowego:\n"
+"%s\n"
+"Enlightenment bêdzie dalej dzia³a³, ale byæ mo¿e zechcesz\n"
+"sprawdziæ swoj± koniguracjê.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "B³±d przy inicjalizacji d¼wiêku"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"W³±czono obs³ugê d¼wiêku Enlightenment, ale wyst±pi³ b³±d\n"
+"przy komunikacji z serwerem Audio (Esound). D¼wiêk zostanie\n"
+"teraz wy³±czony.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "W³±cz d¼wiêki"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Ustawienia Audio"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno ustwieñ Audio\n"
+"Enlightenment\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "B³±d w sekcji ECursor"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Opcje pulpitu"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Ustawienia Auto-Podnoszenia"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Z³y wystrój"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Ustawienia ró¿ne"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Aktywacja Enlightenment\n"
+"Okno ustawieñ\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Wy¶wietlaj Podpowiedzi"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Wy¶wietlaj Podpowiedzi Okna G³ównego"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Opó¼nienie wy¶wietlania Podpowiedzi\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Opó¼nienie wy¶wietlania Podpowiedzi\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Ustawienia Podpowiedzi"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Okno Ustawieñ\n"
+"Podpowiedzi Enlightenment\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i Puplpitów"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Przesuwanie"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Opcje Okna"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Poka¿/Ukryj t± grupê"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Zapamiêtaj grupy tego okna"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Zacieniowane"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Rozmiar"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Zapamiêtaj grupy tego okna"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Poziome"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Pionowe"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "W³±cz 'Zdjêcie Ekranu'"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Stan Usuniêcia w Cieñ"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Dó³"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Aby podnie¶æ Pulpit na szczyt,\n"
+"kliknij tutaj.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Przyklej/Odklej"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Wyjd¼ z Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "Ustawienia KDE"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Wy¶wietlaj Pasek Przeci±gania Pulpitu"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr ""
+"Ilo¶æ\n"
+"t³o"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Opcje pulpitu"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "Pulpit %i"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Przejd¼ do tego Pulpitu"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Wyjd¼ z Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Styl Obramowania"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Ustawienia Aktywacji"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "O Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Uruchom ponownie"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Tak, Wyloguj siê "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "U¿yj obrazka jako t³a"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Zapamiêtywane ustawienia..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Pomijanie w Li¶cie Okien"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Ustawienia Aktywacji"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Styl Obramowania"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "B³±d Grup Okien"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Zapamiêtaj grupy tego okna"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Wybierz grupê, z której mam usun±æ okno. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Zapamiêtaj grupy tego okna"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Wybierz grupê, do której bêdzie nale¿eæ okno:\n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Przyklejanie"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Góra"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Nigdy Nie Aktywuj"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Nigdy Nie Aktywuj"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Dó³"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Dó³"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Skasuj plik\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Aktywacja pod±¿a za klikniêciami myszy"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "W³±cz prze³±czanie przy brzegach ekranu"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Zapamiêtywane Ustawienia Aplikacji"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Uruchamianie Enlightenment..."
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Ustawienia Aktywacji"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Ustawienia Przesuwania i Zmiany rozmiaru"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Ustawienia Rozmieszczania Okien"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Ustawienia Wielu Pulpitów"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Ustawienia Wirtualnego Biurka"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Opcje Podgl±du Pulpitu..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Ustawienia ró¿ne"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Ustawienia Auto-Podnoszenia"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Ustawienia Podpowiedzi"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Ustawienia Audio"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Opcje Podgl±du Pulpitu..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Zapamiêtywane ustawienia..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Ustawienia Efektów specjalnych"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Ustawienia T³a Pulpitu"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr ""
+#~ "Okno Ustawieñ\n"
+#~ "Podpowiedzi Enlightenment\n"
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Ustawienia Podpowiedzi"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Ustawienia Audio"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Ustawienia ró¿ne"
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Usuwanie w Cieñ/Zwijanie do Ikony/Przyklejanie"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Puplpitów"
+
+#~ msgid "%i Desktop"
+#~ msgstr "Pulpit %i"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "Pulpitów"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Pulpitu"
--- /dev/null
+# This is the Portuguese locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Pedro Alexandre <miguel@linuxfreak.com>, 1999-2000.
+# Daniel Vieira Pereira <gunsmithcat@ip.pt>, 1999-2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-03-07 16:35+0100\n"
+"Last-Translator: Daniel Vieira Pereira <gunsmithcat@ip.pt>\n"
+"Language-Team: Portuguese <pt@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Sobre o Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Ocoreu um erro ao executar o programa:\n"
+"%s\n"
+"Este programa não pode ser executado\n"
+"porque o ficheiro não existe.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Ocoreu um erro ao executar o programa:\n"
+"%s\n"
+"Este programa não pode ser executado.\n"
+"O mais provavel é que o programa não esteja no\n"
+"path para a sua shell que é %s. Sugiro que leia a pagina\n"
+"do manual para esta shell e veja como mudar ou adicionar\n"
+"ao seu path de execução.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Ocoreu um erro ao executar o programa:\n"
+"%s\n"
+"Este programa não pode ser executado.\n"
+"Não sei ao certo o porquê de o não poder fazer. O ficheiro existe,\n"
+"é um ficheiro, e está autorizado a executa-lo. Sugiro que veja este\n"
+"problema com mais profundidade.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Ocoreu um erro ao executar o programa:\n"
+"%s\n"
+"Este programa não pode ser executado.\n"
+"Isto deve-se a que o ficheiro existe, é um ficheiro, mas não o\n"
+"pode executar porque não tem permissão de execução para este ficheiro.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Ocoreu um erro ao executar o programa:\n"
+"%s\n"
+"Este programa não pode ser executado.\n"
+"Acontece que o ficheiro é na realidade uma directoria.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Ocoreu um erro ao executar o programa:\n"
+"%s\n"
+"Este programa não pode ser executado.\n"
+"Isto aconteceu porque o ficheiro não é um ficheiro regular.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Erro no Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignorar"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Reiniciar o Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Sair do Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Atenção !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Informação sobre as opções do background:\n"
+"Nome: %s\n"
+"Ficheiro: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NENHUM-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Sem\n"
+"Imagem de fundo"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Imagens de fundo não usadas serão libertadas após %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Usar imagem de fundo"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Manter aspecto à escala"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Duplicar imagem pelo ecrã de fundo"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Mover para a Frente\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplicar\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Tirar da lista\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Apagar Ficheiro\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Imagem de fundo\n"
+"Imagem\n"
+"Escala\n"
+"e\n"
+"Alinhamento\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Côr da imagem de fundo\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Vermelho:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Verde:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Azul:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Carregar antecipadamente Imagens de Fundo"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Arranjar por Ficheiro"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Arranjar por Atributo"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Arranjar por Imagem"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Usar dithering em Hi-Colour"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Imagem de fundo sobrepôe-se à do tema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr ""
+"Sem\n"
+"Imagem de fundo"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Opções de Imagem de Fundo do Desktop"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Erro no IPC do E"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Recebida Mensagem Desconhecida do Cliente.\n"
+"Nome do Cliente: %s\n"
+"Versão do Cliente: %s\n"
+"Conteúdo da Mensagem:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: a ignorar dados extra em \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: falta de dados necessários em \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Atenção: incapaz de determinar o que fazer com\n"
+"o seguinte texto no meio da actual definição de Extras:\n"
+"%s\n"
+"Serão ignoradas, continuando...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Atenção: A configuração, aparentemente, acabou antes de o\n"
+"Menu block estar carregado. Provavelmente o resultado\n"
+"não será muito bom.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Erro na versão do Tema"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Reiniciar com os valores iniciais"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Abortar e Sair"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ERRO:\n"
+"\n"
+"A configuração para o tema que está a usar é\n"
+"incompativel. A versão da configuração é %i. É necessário\n"
+"que a versão seja %i\n"
+"\n"
+"Por favor contacte o autor do tema ou o maintainer e\n"
+"informe-os de maneira a que o tema funcione com esta\n"
+"versão do Enlightenment. É necessário actualizá-lo para as\n"
+"definições actuais, e então igualar a versão.\n"
+"\n"
+"Se a versão do tema é superior à do Enlightenment pode\n"
+"ser que não tenha actualizado a sua versão do Enlightenment\n"
+"e este tema tire partido de novas funções de um Enlightenment\n"
+"mais recente.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Inicializando o Enlightenment ..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Definições de Foco"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Fechar"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Criar Nova Caixa de Icones"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Tamanho do Icone"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Imagem de fundo transparente"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Mostar/esconder este grupo"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Desenhar base atrás dos Ícones"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Esconder barra quando não é necessária"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Automaticamente ajustar pelos Ícones"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Alinhamento quando o ajuste é automático:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Posicionamento:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Tamanho da barra:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Setas da barra:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontal"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Esquerda / Topo"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Inicio"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertical"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Direita / Baixo"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Ambos os lados"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Fim"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Nenhuma"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Mostrar nome dos ícones"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animar quando minimizar para esta Caixa de Iconos"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Ordem de uso de ícones (se uma falha, usa-se a próxima)"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+"Miniatura da janela, Usar icone da aplicação, Usar Icone do Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+"Usar icone da aplicação, Usar Icone do Enlightenment, Miniatura da janela"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Usar Icone do Enlightenment, Miniatura da janela"
+
+#: src/container.c:1714
+#, fuzzy
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Prima o botão do rato e arraste-o para\n"
+"poder mover o desktop para trás e para\n"
+"a frente.\n"
+"Prima o botão direito do rato para uma lista\n"
+"de todos os Desktops e respectivas aplicações.\n"
+"Prima o botão do meio do rato para uma lista\n"
+"de todas as aplicações a correr.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Esta é a janela principal.\n"
+"A janela principal não pode ser arrastada.\n"
+"Carregue no botão direito do rato para uma lista\n"
+"de todos os desktops e as suas aplicações\n"
+"Carregue no botão do meio do rato para uma lista\n"
+"de todas as aplicações activas.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Prima aqui para elevar este desktop\n"
+"para o topo.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Prima aqui para mover este desktop\n"
+"para o fundo.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Número de desktops virtuais:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Deslizar desktops aquando mudança"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Velocidade de Deslize do Desktop: (lento)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Mostrar barra de arrasto do desktop"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Posição da barra de arrasto"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Topo"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Baixo"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Esquerda"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Direita"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Desktop"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Opções de Desktops Multiplos"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Tamanho do Ecrã Virtual:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Resistência no limiar do ecrã:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Definições para os Ecrãs Virtuais"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Aplicar"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Erro no setup do servidor de X"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ERRO FATAL:\n"
+"\n"
+"Este servidor de X não suporta Shape extension.\n"
+"Este é um dos requerimentos para o Enlightenment funcionar.\n"
+"\n"
+"O seu servidor de X é provavelmente antigo ou está mal configurado.\n"
+"\n"
+"A terminar.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Foco segue ponteiro"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Foco segue condicionalmente o ponteiro"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Foco segue click do rato"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Clickar numa janela eleva-a sempre"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Todas as novas janelas ficam com o foco"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Apenas novas janelas de dialogo ganham foco"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+"Apenas novas caixas de dialogo cujo proprietário tenha foco ganham foco"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Elevar janelas depois de mudança de foco"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Enviar ponteiro do rato para a janela quando há mudança de foco"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Enviar ponteiro do rato para a janela quando há mudança de foco"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Mostrar e usar lista de foco"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Incluir janelas pegadas na lista de foco"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Incluir janelas pegadas na lista de foco"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr ""
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Elevar janelas depois de mudança de foco"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Enviar ponteiro do rato até janela depois da mudança de foco"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Ordem de uso de ícones (se uma falha, usa-se a próxima)"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Nunca ter foco"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Definições de Foco"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+#, fuzzy
+msgid "Enable Effect: Raindrops"
+msgstr "Impossível mostrar gotas de água"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Opcões para Efeitos Especiais"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Seleção de Grupos de Janelas "
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Erro no Grupo da Janela"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Actualmente,esta janela não pertence a nenhum grupo. \n"
+" Apenas pode destruir ou remover janelas de grupos \n"
+" por uma janela pertencente a pelo menos um grupo. \n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Actualmente, não existem grupos ou esta janela \n"
+" já pertence a todos os grupos existentes. \n"
+" Tem que criar outros grupos primeiro. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Actualmente, não existem grupos. Tem que criar um grupo primeiro.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Escolha o grupo para configurar: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" As seguintes acções serão \n"
+" aplicadas a todos os membros do grupo: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Alterando o Tipo de Janela"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Minimizar"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Matar"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Mover"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Elevar/Baixar"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Colar"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Enrolar"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Definições dos Grupos de Janelas"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Esta janela não pertence a nenhum grupo. \n"
+"\n"
+
+#: src/groups.c:962
+#, fuzzy
+msgid " Per-group settings: "
+msgstr "Opções do Pager"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+#, fuzzy
+msgid "Swap Window Locations"
+msgstr "Opções da Janela"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Grupo %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Opções por Defeito de Controlo de Grupo"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Escolha o grupo ao qual a janela irá pertencer: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Escolha o grupo ao qual quer remover a janela. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Escolha o grupo que quer remover "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"O Enlightenment realizou uma Instrução Ilegal.\n"
+"\n"
+"O mais provável é que devido a ter instalado e correr um\n"
+"binário do Enlightenment que foi compilado para uma marca\n"
+"ou modelo de Processador que não é 100%% compativél com o seu.\n"
+"Por favor obtenha o pacote adequado ao seu sistema, ou\n"
+"recompile o Enlightenment e possivelmente algumas das\n"
+"libraries de suporte que tenha obtido como binário para\n"
+"correr o Enlightenment.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"O Enlightenment causou uma Excepção de Virgula Flutuante.\n"
+"\n"
+"Isto significa que o Enlightenment ou uma routina de uma library de\n"
+"suporte chamada pelo Enlightenment executou uma operação matemática\n"
+"ilegal (muito provavelmente a divisão de um número por zero). É bem\n"
+"provavel que isto seja um bug. É recomendado que reinicie. Se deseja\n"
+"ajudar neste bug, por favor compile o Enlightenment com opções de debug\n"
+"e corra o Enlightenment através do gdb, para ter o rasto até onde o\n"
+"programa morreu e envie um report do bug com toda a informação recolhida\n"
+"com o gdb.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"O Enlightenment causou uma Violação de Segmento (Segfault)\n"
+"\n"
+"Isto significa que o Enlightenment ou uma routina de uma library de\n"
+"suporte chamada pelo Enlightenment acedeu areas da memória que não\n"
+"devia. É bem provavel que isto seja um bug. É recomendado que reinicie.\n"
+"Se deseja ajudar neste bug, por favor compile o Enlightenment com opções\n"
+"de debug e corra o Enlightenment através do gdb, para ter o rasto até\n"
+"onde o programa morreu e envie um report do bug com toda a informação\n"
+"recolhida com o gdb.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment causou um Erro de Bus.\n"
+"\n"
+"É aconselhavel que verifique o seu hardware e instalação do SO.\n"
+"É muito raro causar Erros de Bus em hardware em uso.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "Opções do Desktop"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Opções da Caixa de Icones"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Opções da Caixa de Ícones"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr ""
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Ligar sons"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Ajuda de comandos do IPC do Enlightenment"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"use \"help all\" para uma descrição de cada comando\n"
+"use \"help <comando>\" para uma descrição individual\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"comandos actualmente disponíveis:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "use \"help <comando>\" para uma descrição individual\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr "<comando> : <descrição>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ERRO ERRO ERRO ERRO !!!!!!!!\n"
+"\n"
+"O utilitário executável do Enlightenment não foi encontrado em:\n"
+"\n"
+"%s\n"
+"Este é um erro fatal e o Enlightenment deixará de funcionar.\n"
+"Por favor, rectifique esta situação e assegure-se que ele está\n"
+"instalado correctamente.\n"
+"\n"
+"A razão pela qual isto sucedeu poderá ter sido por pacotes\n"
+"estarem mal formados, alguém realmente apagou o programa ou\n"
+"houve um erro ao instalar o Enlightenment.\n"
+
+#: src/main.c:693
+#, fuzzy, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ERRO ERRO ERRO ERRO !!!!!!!!\n"
+"\n"
+"O executavel dox do Enlightenment não pode ser executado:\n"
+"\n"
+"%s\n"
+"Este é um erro fatal e o Enlightenment deixará de funcionar.\n"
+"Por favor, rectifique esta situação e assegure-se que o dox\n"
+"está instalado.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Tema Errado"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Tipo de janelas"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Não aparecer na Lista de Janelas"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Ir para este Desktop"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Desktop %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Mostar/esconder este grupo"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Minimizar este grupo"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Grupo %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Mostrar menus animados"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Mostrar sempre menus no ecrã"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Posicionar ponteiro após mover menus"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Tipo de janelas"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Opções do Som"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Tipo de janelas"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Tipo de janelas"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Atraso das Dicas:\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Opaco"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Imagem de fundo transparente"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr ""
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Opções da Janela"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Minimizar"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Aniquilar"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Colar / Descolar"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Opções do Desktop"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Opções do Pager..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Desligar Miniaturização"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Desligar Alta Qualidade"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Ligar Alta Qualidade"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Ligar Miniaturização"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Velocidade de varrimento do pager"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linhas por segundo"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Activar o pager"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Tamanho"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Criar imagem miniatura do ecrã"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Miniaturas de alta qualidade, no modo de miniaturização"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Aumentar as janelas do pager quando o ponteiro está em cima delas"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Mostrar titulo da janela quando o ponteiro está sobre a janela"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Varrer continuamente o ecrã para actualizar o pager"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Botão do rato para seleccionar e arrastar janelas:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Centro"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Botão do rato para selecionar desktops:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Botão do rato para mostrar menu do pager"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Opções do Pager"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Opções do Pager"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ERRO!\n"
+"\n"
+"Perdeu o gerenciador de sessão que estava aqui?\n"
+"Gerenciador de sessão ... anda ... anda ... queres um osso?\n"
+"Anda lá! Deixa-te de brincadeiras! ... Paciencia, continuo sem\n"
+"o gerenciador de sessão.\n"
+"\n"
+"Não faz mal ...\n"
+"\n"
+"\n"
+" ... espero.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Tem a certeza?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Tem a certeza que quer terminar a sessão ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Sim, Terminar "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Sim, Terminar "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Sim, Terminar "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Não "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr ""
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Opções do Som"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Opções do Som"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Métodos de Movimentação:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Métodos de Modificação:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Técnico"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Caixa"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Sombreado"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Semi-Solido"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Translucido"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr ""
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Tamanho"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Opções de Movimentação e Modificação:"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Janela de diálogo aparece sempre com o seu proprietário"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Mudar para o desktop onde apareçe a janela de diálogo"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Colocar janelas manualmente"
+
+#: src/settings.c:331
+#, fuzzy
+msgid "Place windows under mouse"
+msgstr "Colocar janelas manualmente"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Incluir janelas pegadas na lista de foco"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Deslizar janelas quando aparecem"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Deslizar janelas aquando limpeza"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Método de Deslize:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Velocidade de deslize quando aparece: (lento)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Velocidade de deslize aquando limpeza: (lento)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animar enrolar e desenrolar das janelas"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Velocidade ao (des)enrolar a janela: (lento)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Ignorar"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Colocar janelas manualmente"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Opções de Posicionamento de Janelas"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Elevar Janelas Automaticamente"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Atraso de Autoelevação"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Atraso de Autoelevação"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Opção de Autoelevação"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Ligar sons"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Usar saveunders para reduzir exposições da janela"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Configuração desta Caixa de Icones ..."
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr ""
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Ligar sons"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Ligar passagem no limiar"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Ligar sons"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Opções das Dicas"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Inicializando o Enlightenment ..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"O Enlightenment não se consiguiu ligar ao display atribuído\n"
+"pela variavel DISPLAY da sua shell. Deve atribuir a esta\n"
+"variavel o nome do display no qual deseja que o Enlightenment\n"
+"se ligue. Pode ser que não tenha um servidor de X a correr para\n"
+"servir de ligação ou que não tenha permissões para se ligar\n"
+"a esse display. Por favor verifique essas condições antes de\n"
+"tentar outra vez. Corra um servidor de X executando xdm ou\n"
+"startx, ou contacte o seu administrador de sistemas, ou o seu\n"
+"vendedor do servidor de X ou então leia os manuais do X, xdm e\n"
+"startx, antes de prosseguir.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Outro Gerenciador de Janelas está em uso"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Erro na versão do servidor de X"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignorar este erro"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"ATENÇÂO:\n"
+"Este não é um servidor de X X11. Ele apenas suporta o protocolo X%i.\n"
+"Isto quer dizer que o Enlightenment poderá não funcionar, ou\n"
+"funcionará incorrectamente. Se é mais recente que o X11, então\n"
+"o seu servidor é um dos que os autores do Enlightenment não\n"
+"têm acesso ou nunca ouviram falar.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr ""
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr ""
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr ""
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Vermelho:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr ""
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Posição"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Tipo de janelas"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Tamanho"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Desktop"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Enrolar"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Colar"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Nivel de empilhamento"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Não aparecer na Lista de Janelas"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Enrolar"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr ""
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Recomeçar a aplicação no login"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Lembrar o(s) grupo(s) desta janela"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr ""
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Apagar Ficheiro\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr ""
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Opções do Pager..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr ""
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Erro ao salvar o ficheiro de miniaturas\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Erro ao procurar ficheiro de som"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Aviso! O Enlightenment não conseguiu carregar o\n"
+"seguinte ficheiro de som:\n"
+"%s\n"
+"O Enlightenment continuará a funcionar, mas\n"
+"aconselhamos que verifique a sua configuração.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Erro ao inicializar o som"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"O Som foi ligado para o Enlightenment mas ouve um erro\n"
+"ao comunicar com o servidor de som (Esound). O Som será\n"
+"desligado agora.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Ligar sons"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Opções do Som"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "Opções do Desktop"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Opções do Desktop"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Opção de Autoelevação"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Tema Errado"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Opções do Som"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr "Caixa de Diálogo do Enlightement"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Mostrar Dicas"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Mostrar Dicas na Janela Principal"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Atraso das Dicas:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Atraso das Dicas:\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Opções das Dicas"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i Desktops"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Mover"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Opções da Janela"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Mostar/esconder este grupo"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Lembrar o(s) grupo(s) desta janela"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Sombreado"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Tamanho"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Lembrar o(s) grupo(s) desta janela"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horizontal"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertical"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Ligar Miniaturização"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Enrolar"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Baixo"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Prima aqui para elevar este desktop\n"
+"para o topo.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Colar / Descolar"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Sair do Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "Opções para KDE"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Mostrar barra de arrasto do desktop"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr ""
+"Sem\n"
+"Imagem de fundo"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Opções do Desktop"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i Desktop"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Ir para este Desktop"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Sair do Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Tipo de janelas"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Definições de Foco"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Sobre o Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Reiniciar"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Sim, Terminar "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Usar imagem de fundo"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Opções do Pager..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Não aparecer na Lista de Janelas"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Definições de Foco"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Tipo de janelas"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Erro no Grupo da Janela"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Lembrar o(s) grupo(s) desta janela"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Escolha o grupo ao qual quer remover a janela. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Lembrar o(s) grupo(s) desta janela"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Escolha o grupo ao qual a janela irá pertencer: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Colar"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Topo"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Nunca ter foco"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Nunca ter foco"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Baixo"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Baixo"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Apagar Ficheiro\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Foco segue click do rato"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Ligar passagem no limiar"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Recomeçar a aplicação no login"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Inicializando o Enlightenment ..."
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Definições de Foco"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Opções de Movimentação e Modificação:"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Opções de Posicionamento de Janelas"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Opções de Desktops Multiplos"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Definições para os Ecrãs Virtuais"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Opções do Pager..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Opções do Som"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Opção de Autoelevação"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Opções das Dicas"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Opções do Som"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Opções do Pager..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Opções do Pager..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Opcões para Efeitos Especiais"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Opções de Imagem de Fundo do Desktop"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Opções do Pager..."
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Opções das Dicas"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Opções do Som"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Configuração desta Caixa de Icones ..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Copiar ao Enrolar/Minimizar/Colar"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Desktops"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i Desktop"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "Ecrãs em tamanho"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Ecrã em tamanho"
--- /dev/null
+# This is the Brazilian Portuguese locale definition for Enlightenment.
+# Copyright (C) 2000 Free Software Foundation, Inc.
+# Roberto Selbach Teixeira <robteix@zaz.com.br>, 2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-02-24 16:22+0100\n"
+"Last-Translator: Roberto S. Teixeira <robteix@zaz.com.br>\n"
+"Language-Team: Portuguese <pt@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Sobre o Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Ocorreu um erro durante a execução do programa:\n"
+"%s\n"
+"Esse programa não pôde ser executado.\n"
+"Isso se deve ao arquivo não existir.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Ocorreu um erro durante a execução do programa:\n"
+"%s\n"
+"Esse programa não pôde ser executado.\n"
+"Isso provavelmente se deve ao fato de o arquivo não estar\n"
+"no caminho de execução do seu shell, que é %s. Eu sugiro\n"
+"que você leia a página do manual referente ao seu shell\n"
+"e leia como modificar ou adicionar a seu caminho de execução.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Ocorreu um erro durante a execução do programa:\n"
+"%s\n"
+"Esse programa não pôde ser executado.\n"
+"Não tenho certeza do porquê. O arquivo existe, é um arquivo e você\n"
+"tem permissão para executá-lo. Eu sugiro que você dê uma olhada nisso.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Ocorreu um erro durante a execução do programa:\n"
+"%s\n"
+"Esse programa não pôde ser executado.\n"
+"Isso se deve ao arquivo existir, ser um arquivo, mas você não\n"
+"ter permissão para executá-lo.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Ocorreu um erro durante a execução do programa:\n"
+"%s\n"
+"Esse programa não pôde ser executado.\n"
+"Isso se deve ao arquivo ser, na realidade, um diretório.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Ocorreu um erro durante a execução do programa:\n"
+"%s\n"
+"Esse programa não pôde ser executado.\n"
+"Isso se deve ao arquivo não ser um arquivo regular.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Erro do Enlightenment"
+
+# melhor assim, né, Rainer? :)
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignorar Isso"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Reiniciar o Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Sair do Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Atenção !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "OK"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Informações sobre definições de fundo:\n"
+"Nome : %s\n"
+"Arquivo: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-NENHUM-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Nenhum\n"
+"Fundo"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Fundos não utilizados após %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Usar imagem de fundo"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Manter aspecto"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Repita a imagem pelo fundo"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Mover para a Frente\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplicar\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Não listar\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Deletar Arquivo\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Fundo\n"
+"Imagem\n"
+"Escala\n"
+"e\n"
+"Alinhamento\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Cor do Fundo\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Vermelho:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Verde:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Azul:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Pre-escanear fundos"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Ordenar por Arquivo"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Ordernar por Atributos"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Ordenar por Imagem"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Usar dithering em Hi-Colour"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Fundo tem prioridade sobre o tema"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr ""
+"Nenhum\n"
+"Fundo"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Configurações do Fundo da Área de Trabalho"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Erro de IPC do E"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Mensagem Desconhecida de Cliente Recebida.\n"
+"Nome do Cliente: %s\n"
+"Versão do Cliente: %s\n"
+"Conteúdo da Mensagem:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: ignorando dados extras em \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: faltando datos obrigatórios em \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Aviso: não é possível determinar o quê fazer com o seguinte\n"
+"texto encontrado no meio da definição atual de Extras:\n"
+"%s\n"
+"Vou ignorar e continuar...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Aviso: A configuração parece ter terminado antes de termos\n"
+"terminado de carregar o bloco Menu. O resultado não deverá\n"
+"ser bom.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "ERRO de versão de tema"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Reiniciar com os Padrões"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Abortar e Sair"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ERRO:\n"
+"\n"
+"A configuração do tema que você está rodando é\n"
+"incompatível. Sua versão é %i. Ela teria de ser\n"
+"marcada como versão %i\n"
+"\n"
+"Por favor, contate o autor ou mantenedor do tema e\n"
+"informe-os que, para que seu tema funcione com\n"
+"esta versão do Enlightenment, eles têm de atualizá-lo\n"
+"para as configurações atuais e então acertar o número\n"
+"de versão.\n"
+"\n"
+"Se o número de versão do tema é mais alto do que o do\n"
+"Enlightenment, pode ser que você não tenha atualizado o\n"
+"Enlightenment por algum tempo e esse tema usa novas\n"
+"funções das novas versões do Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Inicializando o Enlightenment..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Configurações de Foco"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Fechar"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Criar Novo Porta-ícone"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Tamanho dos Ícones"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Fundo Transparente"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Exibir/Esconder esse grupo"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Desenhar imagem atrás dos ícones"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Esconder barra de rolagem quando não necessária"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Automaticamente redimensionar para caber ícones"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Alinhamento de âncora quando redimensionando automaticamente:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Orientação:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Tamanho das Barras de Rolagem:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Setas das Barras de Rolagem:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horizontal"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Esquerda / Topo"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Início"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertical"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Direita / Embaixo"
+
+# só baixo parecia estranho...
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Ambas as pontas"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Final"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Nenhuma"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Exibir nomes dos ícones"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animar quando iconificando neste Porta-ícone"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Política de exibição de imagem dos ícones (se uma falha, tenta a próxima):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+"Miniaturas das Janelas, Usar Ícone da Aplicação, Usar Ícone do Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+"Usar Ícone da Aplicação, Usar Ícone do Enlightenment, Miniaturas das Janelas"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Usar Ícone de Enlightenment, Miniaturas das Janelas"
+
+# melhor assim, né, Rainer? :)
+#: src/container.c:1714
+#, fuzzy
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Segure o botão do mouse e arraste o mouse\n"
+"para poder arrastar a área de trabalho para\n"
+"a frente e para trás.\n"
+"Clique o botão direito do mouse para uma lista\n"
+"de áreas de trabalho e suas aplicações.\n"
+"Clique o botão do meio do mouse para uma lista\n"
+"de aplicações sendo executadas.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Este é a área de trabalho raiz.\n"
+"Você não pode arrastar a área de trabalho raiz.\n"
+"Clique o botão direito do mouse para uma lista\n"
+"de áreas de trabalho e suas aplicações.\n"
+"Clique o botão do meio do mouse para uma lista\n"
+"de aplicações sendo executadas.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Clique aqui para levantar essa área\n"
+"de trabalho para o topo.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Clique aqui para baixar essa área\n"
+"de trabalho para o fundo.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Número de áreas de trabalho virtuais:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Deslizar área de trabalhos quando mudando"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Velocidade de deslizamento de área de trabalho: (lento)\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Exibir barra de arrasto das áreas de trabalho"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Posição da barra de arrasto:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Topo"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Fundo"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Esquerda"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Direita"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Área de Trabalho"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Configurações de Múltiplas Áreas de Trabalho"
+
+# melhor assim, né, Rainer? :)
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Tamanho da Área de Trabalho Virtual:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Resistência na borda da tela:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Configurações Área de Trabalho Virtual"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Aplicar"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Erro de configuração do servidor X"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ERRO FATAL:\n"
+"\n"
+"Esse servidorX não suporta a extensão Shape.\n"
+"Isso é exigido para que o Enlightenment rode.\n"
+"\n"
+"O seu servidorX provavelmente é antigo ou mal-configurado.\n"
+"\n"
+"Saindo.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Foco segue mouse"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Foco segue mouse de modo desordenadamente"
+
+# putz...
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Foco segue cliques do mouse"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Clicar em janela sempre a levanta"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Todas as novas janelas recebem o foco"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Apenas novas caixas de diálogos recebem o foco"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Apenas novas caixas de diálogos cujo pai tem o foco recebem o foco"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Levantar janelas após troca de foco"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Enviar o ponteiro para a janela na troca de foco"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Enviar o ponteiro para a janela na troca de foco"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Exibir e usar a lista de foco"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr ""
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Posicionar janelas manualmente"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr ""
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Levantar janelas após troca de foco"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Enviar ponteiro para a janela após troca de foco"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Política de exibição de imagem dos ícones (se uma falha, tenta a próxima):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr ""
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Configurações de Foco"
+
+# melhor assim, né, Rainer? :)
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+#, fuzzy
+msgid "Enable Effect: Raindrops"
+msgstr "Não é possível exibir gotas de chuva"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Configurações de Efeitos Especiais"
+
+# melhor assim, né, Rainer? :)
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Seleção de Grupo de Janela"
+
+# melhor assim, né, Rainer? :)
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Erro de Grupo de Janela"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Essa janela atualmente não pertence a nenhum grupo. \n"
+" Você só pode destruir grupos ou remover janelas de grupos \n"
+" através de uma janela que pertença a, pelo menos, um grupo.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Atualmente, nenhum grupo existe ou essa \n"
+" janela já pertence a todos os grupos \n"
+" existentes. \n"
+" Você deve criar outros grupos antes. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Atualmente, nenhum grupo existe. Você deve criar um novo grupo antes.\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Selecione o grupo a configurar: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" As seguintes ações são aplicadas \n"
+" a todos os membros do grupo: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Mudar o Estilo da Borda"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Iconificar"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Matar"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Mover"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Levantar/Baixar"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Grudar"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Deslizar"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Configurações de Grupos de Janelas"
+
+# melhor assim, né, Rainer? :)
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Essa janela atualmente não pertence a nenhum grupo. \n"
+"\n"
+
+#: src/groups.c:962
+#, fuzzy
+msgid " Per-group settings: "
+msgstr "Configurações do Pager"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+#, fuzzy
+msgid "Swap Window Locations"
+msgstr "Opções de Janela"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Grupo %i"
+
+# sinceramente eu não entendi isso aqui...
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Configurações Padrões de Grupos"
+
+# sinceramente eu não entendi isso aqui...
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Selecione o grupo ao qual essa janela pertencerá: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Selecione o grupo do qual esta janela será removida. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Selecione o grupo a dividir "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"O Enlightenment realizou uma Instrução Ilegal.\n"
+"\n"
+"Isso se deve provavelmente a você ter instalado e executado\n"
+"um binário do Enlightenment que foi compilado para um modelo\n"
+"de CPU não 100%% idêntica à sua. Por favor, obtenha o pacote\n"
+"correto para o seu sistema, ou recompile o Enlightenment e,\n"
+"possivelmente, qualquer biblioteca de apoio que você tenha\n"
+"em formato binário para executar o Enlightenment.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"O Enlightenment causou uma Exceção de Ponto Flutuante.\n"
+"\n"
+"Isso quer dizer que o Enlightenment ou as rotinas de bibliotecas\n"
+"que ele chama realizaram uma operação matemática ilegal (mais\n"
+"provavelmente dividindo um número por zero). Isso é provavelmente\n"
+"um bug. Recomenda-se que você reinicialize agora. Se você deseja\n"
+"ajudar a corrigir esse bug, compile o Enlightenment com símbolos\n"
+"de depuração e execute o Enlightenment com o gdb para que você\n"
+"possa encontrar o ponto onde ele morreu e enviar um relatório de\n"
+"bug com informações de backtracing e dumps de variáveis, etc...\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"O Enlightenment causou uma Violação de Segmento (Segfault)\n"
+"\n"
+"Isso quer dizer que o Enlightenmenet ou funções em bibliotecas\n"
+"que ele chama acessaram áreas da memória de seu sistema a que\n"
+"elas não deveriam ter acesso. Isso é muito provavelmente um bug.\n"
+"Recomenda-se que você reinicialize agora. Se você deseja\n"
+"ajudar a corrigir esse bug, compile o Enlightenment com símbolos\n"
+"de depuração e execute o Enlightenment com o gdb para que você\n"
+"possa encontrar o ponto onde ele morreu e enviar um relatório de\n"
+"bug com informações de backtracing e dumps de variáveis, etc...\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"O Enlightenment causou um Erro de Barramento.\n"
+"\n"
+"Sugere-se que você cheque seu hardware e instalação do sistema\n"
+"operacional. É muito pouco comum causar Erros de Barramento em\n"
+"hardware operacional.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "Opções da Área de Trabalho"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Opções do Porta-ícone"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Configurações do Porta-Ícone"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr ""
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Ativar sons"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Ajuda dos Comandos de IPC do Enlightenment"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"use \"help all\" para uma descrição de cada comando\n"
+"use \"help <comando>\" para uma descrição individual\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"comandos atualmente disponíveis:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "use \"help <comando>\" para uma descrição individual\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr "<comando> : <descrição>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ERRO ERRO ERRO ERRO !!!!!!!!\n"
+"\n"
+"O executável do utilitário do Enlightenment não pôde ser\n"
+"encontrado em:\n"
+"\n"
+"%s\n"
+"Esse é um erro fatal e o Enlightenment irá deixar de rodar.\n"
+"Favor retificar essa situação e assegurar que a instalação\n"
+"está correta.\n"
+"\n"
+"A razão do porquê dele estar faltando pode ser um pacote mal\n"
+"criado, alguém deletando manualmente o programa ou talvez um\n"
+"erro na instalação do Enlightenment.\n"
+
+#: src/main.c:693
+#, fuzzy, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ERRO ERRO ERRO ERRO !!!!!!!!\n"
+"\n"
+"O executável dox do Enlightenment não pôde ser executado:\n"
+"\n"
+"%s\n"
+"Esse é um erro fatal e o Enlightenment irá deixar de rodar.\n"
+"Favor retificar essa situação e assegurar que o dox está\n"
+"instalado corretamente.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Tema Ruim"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Estilo da Borda"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Opções de Janela"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Ir para essa Área de Trabalho"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Área de Trabalho %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Exibir/Esconder esse grupo"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Iconificar esse grupo"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Grupo %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Exibição animada de menus"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Sempre exibir menus na tela"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr ""
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Estilo da Borda"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Configuração de Som"
+
+# melhor assim, né, Rainer? :)
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Estilo da Borda"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Estilo da Borda"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Espera das Dicas:\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Opaco"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Fundo Transparente"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr ""
+
+# melhor assim, né, Rainer? :)
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Opções de Janela"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Iconificar"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Aniquilar"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Grudar / Desgrudar"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Opções da Área de Trabalho"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Configurações do Pager..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Desativar Miniaturas"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Desativar Alta Qualidade"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Ativar Alta Qualidade"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Ativar Miniaturas"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Velocidade de escaneamento:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linhas por segundo"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Ativar Pager"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Tamanho"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Fazer minuaturas da tela"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Suavizar minuaturas de alta qualidade em modo miniatura"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Dar um zoom nas janelas do pager quando o mouse estiver em cima"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Mostrar título da janela quando mouse estiver em cima"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Escanear tela continuamente para atualizar o pager"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Botão do mouse para selecionar e arrastar:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Meio"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Botão do mouse para selecionar áreas de trabalho:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Botão do mouse para exibir menu do pager:"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Configurações do Pager"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Configurações do Pager"
+
+# melhor assim, né, Rainer? :)
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ERRO!\n"
+"\n"
+"O Gerenciador de Sessão que estava aqui se perdeu?\n"
+"Aqui, aqui, gerenciador de sessão... vem aqui... quer um osso?\n"
+"Oh, vamos! Chega de brincadeira! Ah! Vou continuar sem um gerenciador\n"
+"de sessão.\n"
+"\n"
+"Vou sobreviver de alguma maneira.\n"
+"\n"
+"\n"
+"... espero.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Tem certeza?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Tem certeza de que deseja mesmo sair? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Sim, sair "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Sim, sair "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Sim, sair "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Não "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr ""
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Configuração de Som"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Configuração de Som"
+
+# melhor assim, né, Rainer? :)
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Métodos de Movimentação:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Métodos de Redimensionamento:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Técnico"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Caixa"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Sombreado"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Semi-Sólido"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Translúcido"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr ""
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Tamanho"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Configurações de Mover & Redimensionar"
+
+# melhor assim, né, Rainer? :)
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Diálogos aparecem juntos a seus pais"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Trocar de área de trabalho onde diálogo aparece"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Posicionar janelas manualmente"
+
+#: src/settings.c:331
+#, fuzzy
+msgid "Place windows under mouse"
+msgstr "Posicionar janelas manualmente"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Posicionar janelas manualmente"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Deslizar janelas quando aparecerem"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Deslizar janelas quando limpar"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Médoto de Deslizamento:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Velocidade de Deslizamento de Aparição: (lento)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Velocidade de Deslizamento da limpeza: (lento)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animar shading e unshading de janelas"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Velocidade do Shading: (lento)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Ignorar Isso"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Posicionar janelas manualmente"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Configurações de Posicionamento de Janela"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Levantar Janelas Automaticamente"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Espera do Autolevantar:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Espera do Autolevantar:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Configurações do Autolevantar"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Ativar sons"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Usar saveunders para reduzir exposição de janelas"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Configurações deste Porta-Ícone..."
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr ""
+
+# melhor assim, né, Rainer? :)
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Ativar sons"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Ativa pulo de borda"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Ativar sons"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Configurações Dicas"
+
+# melhor assim, né, Rainer? :)
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Inicializando o Enlightenment..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"O Enlightenment não consegue conectar-se com o display indicado\n"
+"pela sua variável de ambiente DISPLAY. Você pode setar essa\n"
+"variável para indicar o display ao qual o Enlightenment deverá\n"
+"conectar-se. Pode ser que já exista um outro ServidorX sendo\n"
+"executado para servir a essa conexão, ou você não tem permissão\n"
+"para conectar-se àquele display. Favor assegurar-se que tudo já\n"
+"está certo antes de continuar. Execute o ServidorX rodando xdm\n"
+"ou startx antes, ou contate o administrador do seu sistema, ou o\n"
+"vendedor do servidorX, ou leia as páginas do manual correspondentes\n"
+"ao X, xdm e startx antes de prosseguir.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Um outro Gerenciador de Janelas já está sendo executado"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Erro de versão do servidor X"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignorar esse erro"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"AVISO:\n"
+"Esse não é um Xserver X11. Ele fala o protocolor X%i.\n"
+"Isso pode querer dizer que o Enlightenment ou não vai funcionar\n"
+"ou vai funcionar incorretamente. Se é mais novo que X11, então seu\n"
+"servidor é um ao qual o autor do Enlightenment não tem acesso\n"
+"ou nunca ouviu falar.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr ""
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr ""
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr ""
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Vermelho:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr ""
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Localização"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Estilo da Borda"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Tamanho"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Área de Trabalho"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Estado Baixada"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Estado Grudado"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr ""
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr ""
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Deslizar"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr ""
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Reiniciar aplicação no login"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Lembrar o grupo dessa(s) janela(s)"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr ""
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Deletar Arquivo\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr ""
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Configurações do Pager..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr ""
+
+# melhor assim, né, Rainer? :)
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Erro salvando arquivo de miniaturas\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Erro encontrando arquivo de som"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Aviso! O Enlightenment foi incapaz de carregar o\n"
+"seguinte arquivo de som:\n"
+"%s\n"
+"O Enlightenment vai continuar a funcionar, mas você\n"
+"pode querer checar sua configuração.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Erro inicializando som"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Som foi ativado no Enlightenment mas ocorreu um erro ao tentar\n"
+"comunicar com o servidor de som (EsounD). O som será destivado.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Ativar sons"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Configuração de Som"
+
+# melhor assim, né, Rainer? :)
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "Opções da Área de Trabalho"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Opções da Área de Trabalho"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Configurações do Autolevantar"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Tema Ruim"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Configuração de Som"
+
+# melhor assim, né, Rainer? :)
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr "Mensagem de Diálogo do Enlightenment"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Exibir Dicas"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Exibir Dicas da Janela Raíz"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Espera das Dicas:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Espera das Dicas:\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Configurações Dicas"
+
+# melhor assim, né, Rainer? :)
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i Áreas de Trabalho"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Mover"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Opções de Janela"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Exibir/Esconder esse grupo"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Lembrar o grupo dessa(s) janela(s)"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Sombreado"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Tamanho"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Lembrar o grupo dessa(s) janela(s)"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horizontal"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertical"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Ativar Miniaturas"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Estado Baixada"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Fundo"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Clique aqui para levantar essa área\n"
+"de trabalho para o topo.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Grudar / Desgrudar"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Sair do Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "Configurações do KDE"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Exibir barra de arrasto das áreas de trabalho"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr ""
+"Nenhum\n"
+"Fundo"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Opções da Área de Trabalho"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i Área de Trabalho"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Ir para essa Área de Trabalho"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Sair do Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Estilo da Borda"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Configurações de Foco"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Sobre o Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Reiniciar"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Sim, sair "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Usar imagem de fundo"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Configurações do Pager..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Opções de Janela"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Configurações de Foco"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Estilo da Borda"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Erro de Grupo de Janela"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Lembrar o grupo dessa(s) janela(s)"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Selecione o grupo do qual esta janela será removida. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Lembrar o grupo dessa(s) janela(s)"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Selecione o grupo ao qual essa janela pertencerá: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Grudar"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Topo"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr ""
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr ""
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Fundo"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Fundo"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Deletar Arquivo\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+# putz...
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Foco segue cliques do mouse"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Ativa pulo de borda"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Reiniciar aplicação no login"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Inicializando o Enlightenment..."
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Configurações de Foco"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Configurações de Mover & Redimensionar"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Configurações de Posicionamento de Janela"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Configurações de Múltiplas Áreas de Trabalho"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Configurações Área de Trabalho Virtual"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Configurações do Pager..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Configuração de Som"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Configurações do Autolevantar"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Configurações Dicas"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Configuração de Som"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Configurações do Pager..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Configurações do Pager..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Configurações de Efeitos Especiais"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Configurações do Fundo da Área de Trabalho"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Configurações do Pager..."
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Configurações Dicas"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Configuração de Som"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Configurações deste Porta-Ícone..."
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i Áreas de Trabalho"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i Área de Trabalho"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "Telas de tamanho"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Tela de tamanho"
--- /dev/null
+s/"\([^"]*\)"/“\1”/g
+s/`\([^`']*\)'/‘\1’/g
+s/ '\([^`']*\)' / ‘\1’ /g
+s/ '\([^`']*\)'$/ ‘\1’/g
+s/^'\([^`']*\)' /‘\1’ /g
+s/“”/""/g
--- /dev/null
+# Sed script that remove the POT-Creation-Date line in the header entry
+# from a POT file.
+#
+# The distinction between the first and the following occurrences of the
+# pattern is achieved by looking at the hold space.
+/^"POT-Creation-Date: .*"$/{
+x
+# Test if the hold space is empty.
+s/P/P/
+ta
+# Yes it was empty. First occurrence. Remove the line.
+g
+d
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}
--- /dev/null
+# This is the Russian locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+#
+# converted to UTF-8 and improved by sda <sda00@himki.net>, 2009, SOAD Linux Team
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-01-14 20:43-0300\n"
+"Last-Translator: sda <sda00@himki.net>\n"
+"Language-Team: Russian <ru@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Версия Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+"Вас приветствует %s версия\n"
+"Enlightenment-DR16 менеджера.\n"
+"Пожалуйста, пришлите нам багрепорт\n"
+"в случае возникновения неполадок.\n"
+"С наилучшими пожеланиями.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "Осталось %u ссылок\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Ошибка при выполнении программы:\n"
+"%s\n"
+"Программа не может быть выполнена,\n"
+"так как необходимый файл отсутствует.\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Ошибка при выполнении программы:\n"
+"%s\n"
+"Программа не может быть выполнена.\n"
+"Вероятнее всего, она отсутствует в определенных Вами\n"
+"для исполняемых файлов местах\n"
+"(переменная path вашего shell = %s).\n"
+"Вам рекомендуется прочесть описание Вашего shell,\n"
+"в особенности ту часть, где описывается изменение переменной path.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Ошибка при выполнении программы:\n"
+"%s\n"
+"Программа не может быть выполнена по непонятной причине...\n"
+"Файл действительно существует, является файлом,\n"
+"и у Вас есть право на его выполнение. Вам придется\n"
+"проверить все самостоятельно....\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Ошибка при выполнении программы:\n"
+"%s\n"
+"Программа не может быть выполнена.\n"
+"Файл действительно существует,является файлом,\n"
+"но Вы не можете его выполнить, так как\n"
+"не имеете права выполнять этот файл.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Ошибка при выполнении программы:\n"
+"%s\n"
+"Программа не может быть выполнена,\n"
+"так как файл в действительности является директорией.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Ошибка при выполнении программы:\n"
+"%s\n"
+"Программа не может быть выполнена,\n"
+"так как файл не является обычным файлом.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+"Обнаружены ошибки при выполнении программы:\n"
+"%s\n"
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Ошибка Enlightenment"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Диалог сообщения Enlightenment"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Игнорировать"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Перезапустить Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Выйти из Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Внимание !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "ОК"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Информация о фоновом рисунке:\n"
+"Название: %s\n"
+"Файл: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-ПУСТО-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Без\n"
+"рисунка"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Освобождать неиcпользуемые картинки после %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Использовать картинку"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Сохранять аспектное отношение"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Расположить картинку черепицей"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Переместить вперед\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Дублировать\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Убрать\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Стереть файл\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Пропорции\n"
+"и\n"
+"выравнивание\n"
+"фонового\n"
+"рисунка\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Цвет фона\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Красный:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Зеленый:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Синий:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Предварительно сканировать"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "По имени файла"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "По аттрибутам"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "По имени"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Использовать сглаживание в Hi-Colour"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Фоновый рисунок перекрывает установки темы"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "Включить режим поддержки ARGB для фонового рисунка"
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "Фоновый рисунок"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Установки фонового рисунка"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Диалог настройки фона\n"
+"рабочего стола Enlightenment\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "Ошибка E IPC"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"От клиента получено неизвестное сообщение.\n"
+"Имя клиента: %s\n"
+"Версия клиента: %s\n"
+"Сообщение:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG: игнорирую лишние данные в \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG: в \"%s\" отсутствуют требуемые данные\n"
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Предупреждение: невозможно определить, что делать\n"
+"со следующим текстом в текущем %s определении:\n"
+"%s\n"
+"Игнорирую и продолжаю...\n"
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Предупреждение: Ошибка кофигурирования в %s блоке\n"
+"Результат сомнителен...\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "ОШИБКА версии темы"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Перезапуск \"по умолчанию\""
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Выход"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"ОШИБКА:\n"
+"\n"
+"Тема, которую Вы используете, несовместима\n"
+"с версией Enlightenment. Версия данной темы - %i.\n"
+"Требуется, чтобы ее версия была по крайней мере %i\n"
+"\n"
+"Пожалуйста, свяжитесь с автором или разработчиком этой темы,\n"
+"и проинформируйте их, что для работы темы\n"
+"в данной версии Enlightenment им требуется обновить\n"
+"до текущих установок, а также привести в соответствие\n"
+"номер версии.\n"
+"\n"
+"Если номер версии темы превосходит версию Enlightenment,\n"
+"то, скорее всего, Вы какое-то время не обновляли Ваш любимый\n"
+"window manager, и эта тема уже использует преимущества новых\n"
+"возможностей Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Запуск Enlightenment..."
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "Настройки..."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Закрыть"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Сделать новый Iconbox"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "Размер пиктограммы: %2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Прозрачный фон"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "Показать/спрятать эту группу"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Рисовать основной фон под пиктограммами"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Прятать полосу прокрутки, когда она не нужна"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Автоматически менять размер по количеству пиктограмм"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Выравнивание при автоматическом изменении размера"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Ориентация:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Полоса прокрутки:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Стрелки:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Горизонтальная"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Слева / вверху"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "В начале"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Вертикальная"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Справа / внизу"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "С обеих сторон"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "В конце"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Не использовать"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Показывать имена пиктограмм"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Анимировать сворачивание в этот Iconbox"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Способ отображения пиктограмм (если один не работает, пробовать следующий):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Снимок окна, Пиктограмма приложения, Пиктограмма Enlightenment"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Пиктограмма приложения, Пиктограмма Enlightenment, Снимок окна"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Пиктограмма Enlightenment, Снимок окна"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"Iconbox-а Enlightenment\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "Непрозрачность фокусированного активного окна: %d/%d %%"
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Нажав кнопку мыши и перемещая мышь,\n"
+"Вы можете двигать рабочий стол\n"
+"вперед-назад.\n"
+"Кликните правой кнопкой мыши для получения\n"
+"списка всех рабочих столов и находящихся на них\n"
+"приложений.\n"
+"Кликните средней кнопкой мыши для\n"
+"получения списка всех работающих\n"
+"приложений.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Это - \"корневой\" рабочий стол.\n"
+"Вы не можете его перемещать.\n"
+"Кликните правой кнопкой мыши для получения\n"
+"списка всех рабочих столов и находящихся на них\n"
+"приложений.\n"
+"Кликните средней кнопкой мыши для\n"
+"получения списка всех работающих\n"
+"приложений.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Кликните здесь, чтобы поднять этот\n"
+"рабочий стол наверх.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Кликните здесь, чтобы опустить этот\n"
+"рабочий стол вниз.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Количество виртуальных рабочих столов:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Скользящая анимация при смене рабочего стола"
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "Скорость \"скольжения\" десктопа:\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr "Закольцевать перемещение по рабочим столам"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Показывать Dragbar"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Сторона экрана, на которой расположен Dragbar"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Верхняя"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Нижняя"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Левая"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Правая"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "Рабочий стол"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Установки рабочих столов"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки виртуальных\n"
+"рабочих столов Enlightenment\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Размер виртуального рабочего стола:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Замкнуть смену рабочих столов в 'петлю'"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "Смена рабочего стола при подходе мышки к краю экрана:"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "Выкл."
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "Вкл."
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "Только при перемещении окон"
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "\"Сопротивление\" на границе экрана:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "Зоны"
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Установки виртуальных рабочих столов"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки виртуальных\n"
+"рабочих столов Enlightenment\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Применить"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+"Не удалось активировать Composite Manager.\n"
+"Используйте xdpyinfo для проверки\n"
+"Composite, Damage, Fixes, и Render\n"
+"загруженных расширений X-сервера."
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "Ошибка установки X-сервера"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ФАТАЛЬНАЯ ОШИБКА:\n"
+"\n"
+"Ваш X-сервер не поддерживает расширение Shape.\n"
+"Поддержка этого расширения необходима для работы Enlightenment.\n"
+"\n"
+"Возможно, Ваш X-сервер слишком старой версии, или\n"
+"он неверно настроен.\n"
+"\n"
+"Выходим.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Фокус следует за мышью"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Фокус следует за мышью свободно"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Фокус по нажатию кнопки мыши"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Нажатие кнопки мыши всегда поднимает окно наверх"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Все новые окна получают фокус"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Только новые диалоги получают фокус"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Только новые диалоги окон в фокусе получают фокус"
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr "Поднимать окна наверх после переключения фокуса"
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Посылать курсор в окно при получении фокуса"
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Посылать курсор в окно при получении фокуса"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Отображать и использовать список окон для передачи фокуса"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Включать зафиксированные окна в список передачи фокуса"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Включать скрытые окна в список передачи фокуса"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Включать свёрнутые окна в список передачи фокуса"
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr "Располагать окна вручную"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "При переключении в другое окно передавать ему фокус"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Поднимать окна наверх после переключения фокуса"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Посылать курсор в окно после получении фокуса"
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Способ отображения пиктограмм (если один не работает, пробовать следующий):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr "Сперва - иконку E, потом - иконку приложения"
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr "Сперва - иконку приложения, потоиииииконку E"
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "Фокус"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Настройки фокуса"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"фокуса Enlightenment\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "Эффекты"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "Невозможно показать дождевые капли"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "Рябь"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "Волны"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "FX"
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Установки спецэффектов"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"спецэффектов Enlightenment\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Выбор Группы Окон"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"групп окон Enlightenment\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Ошибка Группы Окон"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" В настоящий момент, это окно не входит ни в одну группу. \n"
+" Вы можете разрывать группы или удалять окна из групп \n"
+" только из окна, которое входит по крайней мере в одну группу.\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" В настоящий момент, не существует ни одной группы \n"
+" или это окно уже входит во все существующие группы. \n"
+" Вам надо сперва начать другие группы. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" В настоящий момент, не существует ни одной группы.\n"
+" Вам надо сперва начать группу. \n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Выберите группу для настройки: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Эти действия применяются \n"
+" ко всем членам группы окон: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Изменить стиль бордюра окна"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Свернуть"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Уничтожить"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Переместить"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Поднять/Опустить"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Зафиксировать"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Скрыть"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Установки группы окон"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"групп окон Enlightenment\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" В настоящий момент это окно не входит ни в одну группу. \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr "Настройки каждой группы окон:"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr "Глобальные настройки:"
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Изменить расположение окна"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "Группы окон"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Установки группы по умолчанию"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Диалог настройки контроля\n"
+"групп окон Enlightenment\n"
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr "Выберите группу, к которой будет принадлежать окно:"
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr "Выберите группу, из которой нужно убрать это окно:"
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr "Выберите группу, которую хотите разорвать:"
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment выполнил запрещенную операцию.\n"
+"\n"
+"Скорее всего, Вы используете бинарную версию Enlightenment,\n"
+"откомпилированную для типа или модели процессора, не идентичной\n"
+"или несовместимой с Вашим. Пожалуйста, установите подходящую\n"
+"для Вашей системы бинарную версию Enlightenment, или же\n"
+"перекомпилируйте Enlightenment (а также, возможно, необходимые\n"
+"библиотеки) самостоятельно.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment вызвал ошибку операции с плавающей точкой (FPE).\n"
+"\n"
+"Это означает, что Enlightenment (или вызыванная им из\n"
+"поддерживающей библиотеки процедура) выполнил(а) запрещенную\n"
+"математическую операцию (скорее всего, деление на ноль).\n"
+"Скорее всего, это баг. Рекомендуется немедленно перезапуститься.\n"
+"Если Вы хотите помочь исправить баг, пожалуйста откомпилируйте\n"
+"Enlightenment с включенной отладочной информацией.\n"
+"Затем запустите Enlightenment под отладчиком и сделайте backtrace\n"
+"до момента возникновения ошибки. Пошлите нам багрепорт\n"
+"с полученной в отладчике информацией, дампами переменных и т.д.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment вызвал нарушение сегмента (Segfault).\n"
+"\n"
+"Это означает, что Enlightenment (или вызыванная им из\n"
+"поддерживающей библиотеки процедура) выполнил(а) обращение\n"
+"к области системной памяти, доступ к которой ему запрещен.\n"
+"Скорее всего, это баг. Рекомендуется немедленно перезапуститься.\n"
+"Если Вы хотите помочь исправить баг, пожалуйста откомпилируйте\n"
+"Enlightenment с включенной отладочной информацией.\n"
+"Затем запустите Enlightenment под отладчиком и сделайте backtrace\n"
+"до момента возникновения ошибки. Пошлите нам багрепорт\n"
+"с полученной в отладчике информацией, дампами переменных и т.д.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment вызвал ошибку шины (Bus Error).\n"
+"\n"
+"Вам рекомендуется проверить все компоненты компьютера\n"
+"и установку ОС. Такая ошибка встречается крайне редко на рабочем\n"
+"оборудовании.\n"
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "Рабочий стол"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr "Не могу получить контроль над: %s"
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Iconbox"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Установки Iconbox"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Сообщение"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "Меня собрали без поддержки %s !"
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "Композит"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "Звук"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Справка по командам Enlightenment IPC\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"\"help all\": описание всех команд\n"
+"\"help <команда>\": описание команды\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "Доступные команды:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr "Набери \"help full\" для получения полного справочника\n"
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "\"help <команда>\": описание команды\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr "<команда> : <описание>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+"%s должен быть каталогом, в котором вы имеете\n"
+"права на чтение, запись и исполнение приложений.\n"
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! ***** ОШИБКА ***** !!!!!!!!\n"
+"\n"
+"Невозможно найти утилиту Enlightenment в:\n"
+"\n"
+"%s\n"
+"Ошибка фатальна - Enlightenment не может продолжить работу.\n"
+"Пожалуйста, разберитесь в ситуации и убедитесь, что\n"
+"утилита установлена правильно.\n"
+"\n"
+"Возможные причины ошибки - пакеты собраны неверно, пакеты\n"
+"кем-то удалены, программа стерта кем-либо, либо ошибка в\n"
+"установке Enlightenment.\n"
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! ***** ОШИБКА ***** !!!!!!!!\n"
+"\n"
+"Невозможно запустить программу \"dox\":\n"
+"\n"
+"%s\n"
+"Ошибка фатальна - Enlightenment не может продолжить работу.\n"
+"Пожалуйста, разберитесь в ситуации и убедитесь, что\n"
+"\"dox\" установлен правильно.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "Экранная лупа"
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "Темы оформления рабочего стола"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "Стиль рамки"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "Окно"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "Перейти на этот рабочий стол"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Рабочий стол %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Показать/спрятать эту группу"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Свернуть эту группу"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Группа %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Анимированный показ окон"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Всегда показывать меню поверх остальных окон"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Следить за перемещением меню"
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "Стиль рамки"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "Настройки меню"
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"Меню Enlightenment\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "\"Прозрачность\" темы: %2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "Изменения могут потребовать рестарт Е"
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "Стиль рамки"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "Стиль рамки"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "Выделить:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "Виджеты Е:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "Диалоги Е:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "Всплывающие подсказки:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Как есть"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr "Стекло"
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "Прозрачный фон"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "\"Прозрачность\" диалога сообщений"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"прозрачности Enlightenment\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Окно"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Свернуть"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Уничтожить"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Закрепить / Освободить"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Рабочий стол"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Установки Pager-а..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Выключить отображение экрана"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Низкое качество"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Высокое качество"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Включить отображение экрана"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "Выключить зум"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "Включить зум"
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Скорость сканирования:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "линий в секунду"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Включить Pager"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "Режим пейджера"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "Размер"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Отображать экран"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "Постоянное сканирование"
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Высокое качество иконок в режиме отображения экрана"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Увеличивать иконки окон при прохождении курсора"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Показывать заголовок окна, когда курсор над иконкой"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Непрерывно сканировать экран"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Кнопка для выбора и перемещения окон:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Средняя"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Кнопка для выбора рабочих столов:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Кнопка для отображения меню Pager-а:"
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "Настройки Pager-а"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Настройки Pager-а"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Диалог настройки Десктопа,\n"
+"Зон и Пейджера Enlightenment\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"ОШИБКА!\n"
+"\n"
+"Что, потерялся Session Manager?\n"
+"Ага, тэк-с, session manager... иди-ка сюда... колбаски хошь?\n"
+"Да ладно, хорош дуться! Ну и зараза. Ладно, черт с ним.\n"
+"Без него обойдемся.\n"
+"\n"
+"Проживем как-нибудь.\n"
+"\n"
+"\n"
+"... надеюсь.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Вы уверены?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Вы действительно хотите выйти ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " Да, выключить компьютер "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " Да, перезагрузить компьютер "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Да, завершить сессию "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Нет "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "Разрешить сохранение сессии"
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "Разрешить вывод диалога завершения сессии"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "Разрешить перезагрузку/выключение при завершении сессии"
+
+#: src/session.c:814
+msgid "Session"
+msgstr "Сессия"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "Настройки сессии"
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"Сессии Пользователя\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Режимы перемещения:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Режимы изменения размера:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Технический"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Границы окна"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Затененный"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Полу-непрозрачный"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Полупрозрачный"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr "Сказать X-серверу, чтобы не мешал..."
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Позиционирование окна информации о рабочих координатах приложения:"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Центр Окна (O/T/B Методы)"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Всегда в углу экрана"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Не показывать"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "Использовать политику изменения размера по умолчанию:"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr "Консервативная схема"
+
+#: src/settings.c:190
+msgid "Available"
+msgstr "На доступную площадь"
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr "Схема абсолютных координат"
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "Рисовать содержимое окна при перетаскивании"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "Синхронизировать изменения размеров/геометрии окна с приложением"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr "Не перекрывать драгбар"
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "Перемещение, изменение размера окон"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Установки перемещения/изменения размера"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Настройки перемещения/изменения\n"
+"размера приложений\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Диалоги появляются вместе с хозяевами"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Переключаться на рабочий стол, где появляется диалог"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Располагать окна вручную"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Располагать окна под курсором мышки"
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "Располагать окна по центру экрана"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Перемещать окна на передний план при их появлении"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Раскидать окна при разгребании мусора на рабочем столе"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Метод \"Скольжения\":"
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr "Скорость появления:"
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr "%i рабочий стол"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Анимировать скрытие и восстановление окон"
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr "Скорость скрытия окна"
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr "Игнорировать"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr "Поднимать окна в фулскрине выше всех остальных"
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr "Располагать окна на другом столе если текущий уже заполнен"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "Расположение"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Установки расположения окон"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Настройки расположения окон\n"
+"\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Поднимать окна на передний план вручную"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Задержка подъема:"
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "Задержка подъема:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Установки автоматического поднятия окон"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Автоматически поднимать диалог\n"
+"параметров окна выше других\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Включить показ заголовков"
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "Включить картинки кнопок"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr "Включить анимированную заставку при старте"
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Использовать \"saveunders\""
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "Прочее"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Прочие Настройки"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог прочих настроек\n"
+"\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "Включить композит"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "Разрешить переход через край"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "Скорость угасания:"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "Выключить тени"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr "Точные тени"
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr "Точные тени 2 (а теперь - банановые!)"
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr "Размытые тени от окна"
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "Прозрачность активного окна по умолчанию:"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "Прозрачность неактивного окна:"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "Прозрачность всплывающего окна:"
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr "Композит"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "Установки подсказок"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки композита\n"
+"(прозрачность окон)\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Настройки Enlightenment..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment не может установить соединение и дисплеем,\n"
+"который указан в переменной DISPLAY Вашего shell. Вы можете\n"
+"менять эту переменную и таким образом указывать Enlightenment,\n"
+"с каким дисплеем работать. Возможно, Ваш X-сервер не настроен\n"
+"на обслуживание подключения к этому дисплею, или у Вас нет\n"
+"прав на подключение к нему. Убедитесь в том, что все в порядке,\n"
+"прежде чем запускать Enlightenment снова. Запустите X-сервер\n"
+"(команда xdm или startx), или свяжитесь со своим системным\n"
+"администратором, с разработчиком X-сервера, или же изучите\n"
+"man-страницы (описания) команд X, xdm и startx.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Уже запущен другой Window Manager"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+"Слышь, Хозяин! У тебя уже запущен какой-то WM.\n"
+"\n"
+"Ты его прибей сперва - \"htop\" тебе в помощь,\n"
+"а потом меня запускай!\n"
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "Ошибка версии X-сервера"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Игнорировать эту ошибку"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"ПРЕДУПРЕЖДЕНИЕ:\n"
+"X-сервер не является сервером X11. На самом деле, этот сервер\n"
+"работает по протоколу X%i. Это может привести к тому, что\n"
+"Enlightenment либо не будет работать, либо будет работать\n"
+"некорректно. Если Ваш X-сервер более поздней версии, чем X11,\n"
+"то автор Enlightenment о таком еще не слышал и не видел такового.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Заголовок:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Имя:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Класс:"
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr "Роль:"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Команда:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "Отслеживать изменения"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Положение"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Стиль рамки"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Размер"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Рабочий стол"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Статус - скрыто"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Прикрепленность"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Уровень"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Не включать в список запущенных приложений"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "Непрозрачность"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "Тени"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr "Флаги"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Запускать при входе"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Запомнить группу этого окна"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Запомнить аттрибуты приложения"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Выберите атрибуты этого приолжения\n"
+"для запоминания их параметров\n"
+"отныне и навеки вечные...\n"
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "Удалить"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Запомнить настройки..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "Не используется"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+"Нет запущенных приложений с настройками, что мы храним в памяти своей..."
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "Запомнить"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Зафиксированные настройки окон рабочих приложений"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Диалог настройки хранимых\n"
+"аттрибутов рабочих приложений\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Ошибка сохранения сессионного файла\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Ошибка: звуковой файл не найден"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Предупреждение! Enlightenment не смог загрузить\n"
+"звуковой файл:\n"
+"%s\n"
+"Enlightenment продолжит работу, однако, возможно,\n"
+"Вам следует проверить установки конфигурации.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Ошибка инициализации звука"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Была включена поддержка звука в Enlightenment, однако произошла\n"
+"ошибка при установлении соединения с Esound (%s). Поддержка звука\n"
+"будет сейчас отключена.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Включить поддержку звука"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "Звук"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Установки звука"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки Аудио\n"
+"для Enlightenment\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "Рабочий стол"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "Куда-то запропастился систрей..."
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "Запускать только один систрей"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "Не могу запустить систрей (оно нам не нужно, Хозяин!)"
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "Рабочий стол"
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "Установки автоматического поднятия окон"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+"Нет доступных тем оформления:\n"
+" %s\n"
+"Прекращение работы.\n"
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr "Изменения вступят в силу после перезагрузки"
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr "Использовать шрифты, указанные в теме оформления"
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr "Использовать альтернативную конфигурацию шрифтов (%s)"
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr "Не установлено"
+
+#: src/theme.c:402
+msgid "Theme"
+msgstr "Темы оформления рабочего стола"
+
+#: src/theme.c:403
+msgid "Theme Settings"
+msgstr "Настройки темы"
+
+#: src/theme.c:406
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"Меню Enlightenment\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Показывать подсказки"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Показывать подсказки на \"корневом\" окне"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Задержка подсказки:\n"
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "Всплывающие подсказки"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Установки подсказок"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Диалог настройки\n"
+"всплывающих подсказок\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+"Кликни и тяни весь десктоп\n"
+"(куды хош, кроме нумера 0)"
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "%i рабочих столов"
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "Перейти на следующий рабочий стол"
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "Перейти на предыдущий рабочий стол"
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "Переместить"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "Переместить это окно"
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "Скрыть/восстановить это окно"
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "Показать меню опций этого окна"
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "Показать/спрятать эту группу"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "Создать группу"
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "Добавить в текущую группу"
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "Запомнить группу этого окна"
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr "Затененный"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "Показать"
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "Размер"
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "Запомнить группу этого окна"
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "Горизонтальная"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "Изменить размер этого окна по горизонтали"
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "Вертикальная"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "Изменить размер этого окна по вертикали"
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "Закрыть это окно"
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr "Уничтожить и развеять прах этого окна"
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "Увеличить размер окна по вертикали до максимума"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr "Переключить размер окна по вертикали: максимум - норма"
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "Увеличить размер окна по горизонтали до максимума"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr "Переключить размер окна по горизонтали: максимум - норма"
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "Увеличить размер окна до максимума"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr "Переключить размер окна: максимум - норма"
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "Переместить на другой рабочий стол"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr "Переместить окно на следующий рабочий стол"
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr "Переместить окно на предыдущий рабочий стол"
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "Включить отображение экрана"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr "Я не знаю, Хозяин, что делает эта кнопка."
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "Затененный"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr "Свернуть в иконку (минимизировать) это окно."
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "Нижняя"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "Показать больше кнопок управления окнами."
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "Поднять"
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr "Поднять это окно наверх."
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "Опустить"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr "Опустить это окно (в хорошем смысле этого слова)"
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr "Закрепить / Освободить"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr "Включить показ окна на всех рабочих столах"
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+"Что можно огрести, кликая мышой\n"
+"на рабочем столе"
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "Показать меню пользователя"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "Выйти из Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "Показать меню настроек"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "Показать меню задач"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "Показать меню рабочего стола"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "Показать меню группы"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "Перейти на предыдущий рабочий стол"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "Перейти на следующий рабочий стол"
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "Фоновые рисунки"
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "Рабочий стол"
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "Очистить рабочий стол"
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "Перейти на следующий рабочий стол"
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "Перейти на предыдущий рабочий стол"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "Создать систрей"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "Показать лупу"
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "Меню Пользователя"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "Настройки"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "Техобслуживание"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "Помощь"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "О теме"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Рестарт Е"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "Завершить текущую сессию"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "Уничтожить кэш конфигов"
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "Очистить кэш фоновых картинок"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "Очистить кэш прочих картинок"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "Сжечь напалмом весь кэш"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "Протестировать конфиги в кэше"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "Протестировать конфиги кэша пейджера"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "Протестировать конфиги кэша фоновых картинок"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "Протестировать все кэши конфигов"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "Воссоздать меню"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr "Убрать все окна, кроме текущего"
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "Запомнить..."
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "Окно"
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "Настроить позиционирование"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "Стиль рамки"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "Группы Окон"
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "Настроить эту группу окон"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "Создать новую группу"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "Добавить это окно к текущей группе"
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "Выберите группу, к которой нужно добавить это окно"
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "Удалить это окно из группы"
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "Уничтожить группу, к которой принадлежит это окно"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "Позиционирование"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "Под"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "Норма"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "Над"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "На самом верху"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "Переключатель \"Skip Window Lists\""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "Переключатель фиксированного расположения окна"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "Включить фиксированное расположение окна"
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "Включить игнорирование фокуса"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "Включить фокус по клику мышкой"
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "Включить \"никогда не ходить на Зону\""
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr "Переключатель перехвата сигнала от кнопок"
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "Включить тени"
+
+#: config/strings.c:165
+msgid "Default"
+msgstr "Настройки по умолчанию"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "Непрозрачность фокусированного активного окна 100%"
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr "Фокус по нажатию кнопки мыши"
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "Разрешить переход через край"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "Включить тени"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "Разворачивать на полную"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "Разворачивать на всё доступное пространство"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "Конкретно разворачивать на полную"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr "Управление Экранами Xinerama"
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "Включить на максимальную высоту"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "Включить на доступную максимальную высоту"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "Включить на абсолютную максимальную высоту"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "Включить на максимальную ширину"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "Включить на доступную максимальную ширину"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "Включить на абсолютную максимальную ширину"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "Во весь экран / Норма"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "Увеличить/Сбросить увеличение"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "Список приложений Пользователя"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "Прочее"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "Модули (эпплеты)"
+
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Настройки Enlightenment..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "Настройки фокуса"
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Установки перемещения/изменения размера"
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Установки расположения окон"
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Установки рабочих столов"
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Установки виртуальных рабочих столов"
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "Установки Pager-а..."
+
+#~ msgid "Menu Settings ..."
+#~ msgstr "Настройки меню"
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Установки автоматического поднятия окон"
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Установки подсказок"
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "Установки звука"
+
+#~ msgid "Group Settings ..."
+#~ msgstr "Установки групп окон..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "Установки сохранения настроек окон..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Установки спецэффектов"
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Установки фонового рисунка"
+
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "Установки прозрачности текущей темы..."
+
+#~ msgid "Composite Settings ..."
+#~ msgstr "Установки композита (прозрачность окон)..."
+
+#~ msgid "Session Settings ..."
+#~ msgstr "Установки сессии Пользователя"
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Прочие настройки..."
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Скрыть/Свернуть/Зафиксировать"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i рабочих столов"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i рабочий стол"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "экранов"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "экран"
--- /dev/null
+# This is the Swedish locale definition for Enlightenment.
+# Copyright (C) 1999-2000 Free Software Foundation, Inc.
+# Bernt Holmberg <bernt@grub01.physto.se>, 1999-2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-04-10 17:30+0200\n"
+"Last-Translator: Bernt Holmberg <bernt@grub01.physto.se>\n"
+"Language-Team: Swedish <sv@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Om Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u referenser återstår\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"Det uppstod ett fel när programmet skulle köras:\n"
+"%s\n"
+"Programmet kunde inte exekveras.\n"
+"Orsaken är att filen inte existerar\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"Det uppstod ett fel när programmet skulle köras:\n"
+"%s\n"
+"Programmet kunde inte exekveras.\n"
+"Det beror antagligen på att programmet inte finns i sökvägen\n"
+"för ditt skal, som är %s. Jag föreslår att du läser manualsidan\n"
+"för skalet, och kollar upp hur man lägger till eller ändrar\n"
+"sin sökväg.\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"Det uppstod ett fel när programmet skulle köras:\n"
+"%s\n"
+"Programmet kunde inte exekveras.\n"
+"Jag är osäker på varför det inte kunde köras. Filen existerar,\n"
+"det är en fil, och du har rättigheter att\n"
+"köra den. Jag föreslår att du undersöker saken.\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"Det uppstod ett fel när programmet skulle köras:\n"
+"%s\n"
+"Programmet kunde inte exekveras.\n"
+"Filen existerar och det är en fil, men du har inte\n"
+"rättigheter som räcker för att köra den.\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"Det uppstod ett fel när programmet skulle köras:\n"
+"%s\n"
+"Programmet kunde inte exekveras.\n"
+"Detta beror på att filen i verkligheten är en katalog.\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"Det uppstod ett fel när programmet skulle köras:\n"
+"%s\n"
+"Programmet kunde inte exekveras.\n"
+"Orsaken är att filen inte är en vanlig fil.\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment Fel"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment meddelandedialog"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Ignorera detta"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Starta om Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Avsluta Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Uppmärksamhet!!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Ok"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Bakrundens definitions information:\n"
+"Namn: %s\n"
+" Fil: %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-INGEN-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Ingen\n"
+"Bakgrund"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Oanvända bakgrunder frigörs efter %2i:%02i:%02i"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Använd bakgrundsbild"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Ta hänsyn till skalan"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Bildmosaik för bakgrunden"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Flytta upp\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Duplicera\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Lista inte\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Radera fil\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Bakgrundsbildens\n"
+"skala\n"
+"och\n"
+"placering\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Bakgrundsfärg\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Röd:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Grön:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Blå:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Förscanna bg(er)"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Sortera efter fil"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Sortera efter attr."
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Sortera efter bild"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Använd dithering vid fullfärg"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Bakgrunden går före temat"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr ""
+"Ingen\n"
+"Bakgrund"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Skrivbordsbakgrundsinställningar"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"bakgrundsinställningar\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC Fel"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Tog emot okänt klientmeddelande.\n"
+"Klientnamn: %s\n"
+"Klientversion: %s\n"
+"Meddelandeinnehåll:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "KONFIG: ignorerar extra data i \"%s\"\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "KONFIG: det saknas data i \"%s\"\n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Varning: Det går ej att bestämma vad som skall göras med följande\n"
+"text i mitten på nuvarande extras-definition:\n"
+"%s\n"
+"Ignorerar och fortsätter...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Varning: Konfigureringen verkar ha avbrutits innan menydelen\n"
+"hade laddats färdigt. Resultatet blir troligen felaktigt.\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Fel version av temat"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Starta om med grundinställningar"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Avbryt och avsluta"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+"FEL:\n"
+"\n"
+"Konfigureringen för det valda temat är ej kompatibelt.\n"
+"Konfigurationsrevisionen är %i. Den måste vara\n"
+"märkt som revision %i.\n"
+"\n"
+"Vänligen kontakta författaren och informera om att\n"
+"för att temat skall fungera med denna version\n"
+"av Enlightenment, måste de uppdatera till\n"
+"nuvarande standard, och sedan matcha versionsnummret.\n"
+"\n"
+"Om temats versionsnummer är högre än Enlightenments\n"
+"har inte Enlightenment uppgraderats på ett tag och\n"
+"detta tema utnyttjar finesser som bara finns i senare\n"
+"versioner av Enlightenment.\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment Startar..."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Fokusinställningar"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Stäng"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Skapa ny ikonlåda"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Ikon storlek"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Transparent bakgrund"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Visa/gömma denna grupp"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Visa bakgrundsbild bakom ikoner"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Dölj rullningslist när den ej behövs"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Auto storleksförändra för att passa ikoner"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Placering av förankring vid auto storleksförändring:"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Placering:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Rullningslist sida:"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Rullningslist pilar:"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Horisontal"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Vänster / Upp"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Start"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Vertikal"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Höger / Ner"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Båda sidor"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Slut"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Ingen"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Visa ikonnamn"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Animera vid ikonifiering till denna ikonlåda"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "Ikonbilds visningpolicy (om ett försök misslyckas, försök nästa):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "Snapshot av fönster, Anv applikation ikon, Anv Enlightenment ikon"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "Anv applikation ikon, Anv Enlightenment ikon, Snapshot av fönster"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Anv Enlightenment ikon, Snapshot av fönster"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"ikonlådeinställningar\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Håll ner musknappen och dra musen för att flytta\n"
+"skrivbordet fram och tillbaka.\n"
+"Klicka högra musknappen för en lista på alla\n"
+"skrivbord och deras applikationer.\n"
+"Klicka mellersta musknappen för en lista på alla\n"
+"applikationer som körs nu.\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Detta är rotskrivbordet.\n"
+"Det kan ej flyttas omkring.\n"
+"Klicka högra musknappen för en lista på alla\n"
+"skrivbord och deras applikationer.\n"
+"Klicka mellersta musknappen för en lista på alla\n"
+"applikationer som körs nu.\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Klicka här för att lägga detta\n"
+"skrivbord överst.\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Klicka här för att lägga detta\n"
+"skribord underst.\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Antal virtuella skrivbord:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Låt skrivborden glida omkring vid växling"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Skrivbordets glid fart: (sakta)\n"
+
+#: src/desktops.c:2336
+#, fuzzy
+msgid "Wrap desktops around"
+msgstr "Svep omkring virtuella skrivbord"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Visa skrivbordens draglist"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Draglistens läge:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Upptill"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Nertill"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Vänster"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Höger"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Skrivbord"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Multipla skrivbordsinställningar"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"multipla skrivbordsinställningar\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Storlek för virtuella skribord:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Svep omkring virtuella skrivbord"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Motstånd vid bildskärmskanten:\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Virtuella skrivbordsinställningar"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"virtuella skrivbordsinställningar\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Använd"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X server installationsfel"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"ALLVARLIGT FEL:\n"
+"\n"
+"Denna Xserver stödjer inte Shape tillägget.\n"
+"Detta krävs för att Enlightenment skall fungera.\n"
+"\n"
+"Din Xserver är troligen för gammal eller felkonfigurerad.\n"
+"Avslutar.\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Fokus följer pekaren"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Fokus följer pekaren slafsigt"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Fokus följer musklick"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Musklick i fönster lägger alltid överst"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Alla nya fönster får fokus först"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Bara nya dialogfönster får fokus"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Bara nya dialoger vars ägare är fokuserade får fokus"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Fokusera fönster vid växling"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Muspekaren till fönster vid fokusväxling"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Muspekaren till fönster vid fokusväxling"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Visa och använd fokuslista"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Ta med klibbiga fönster i fokuslistan"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Ta med skymda fönster i fokuslistan"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Ta med ikonifierade fönster i fokuslistan"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Ta med skymda fönster i fokuslistan"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Fokusera fönster vid växling"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Fönster överst efter fokusväxling"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Muspekaren flyttas till fönster efter fokusväxling"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr "Ikonbilds visningpolicy (om ett försök misslyckas, försök nästa):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Fokusera aldrig"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Fokusinställningar"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fokusinställningar\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+#, fuzzy
+msgid "Enable Effect: Raindrops"
+msgstr "Kan inte visa regndroppar"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Specialeffektsinställningar"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"specialeffektsinställningar\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Fönstergruppsval"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fönstergruppsinställningar\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Fönstergruppsfel"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Detta fönster hör just nu inte till någon grupp.\n"
+" Du kan bara avlägsna grupper, eller ta bort fönster från\n"
+" grupper med ett fönster som tillhör minst en grupp .\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Just nu finns ingen grupp, eller så tillhör\n"
+" detta fönster redan alla grupper som finns.\n"
+" Du måste skapa andra grupper först.. \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Just nu finns inga grupper. Du måste skapa en grupp först..\n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Välj grupp att konfigurera: "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Följande egenskaper appliceras \n"
+" på alla gruppmedlemmar: "
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Ändra ramstil"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Ikonifiera"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Döda"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Flytta"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Lägga överst/underst"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Klibba"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Skymma"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Fönstergruppsinställningar"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fönstergruppsinställningar\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Detta fönster hör just nu inte till några grupper \n"
+"\n"
+
+#: src/groups.c:962
+#, fuzzy
+msgid " Per-group settings: "
+msgstr "Sidväxlarinställningar"
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr ""
+
+#: src/groups.c:1012
+#, fuzzy
+msgid "Swap Window Locations"
+msgstr "Fönsterval"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Grupp %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Förvalda gruppkontrollsinställningar"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"förvalda gruppkontrollsinställningar\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Välj den grupp som fönstret skall tillhöra: \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Välj den grupp som fönstret skall tas bort ifrån. "
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Välj den grupp som skall brytas upp "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment utförde en otillåten instruktion.\n"
+"\n"
+"Detta beror troligen på att den installerade binärfilen av\n"
+"Enlightenment är kompilerad för en processor som inte är\n"
+"100%% identisk eller kompatibel med din. Införskaffa rätt paket\n"
+"för ditt system, eller kompilera om Enlightenment och\n"
+"eventuella bibliotek som Enlightenment är beroende av.\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment orsakade ett flyttalsfel.\n"
+"\n"
+"Det betyder att Enlightenment, eller biblioteksrutiner som\n"
+"Enlightenment anropar, har utfört en felaktig matematisk operation\n"
+"(troligtvis division av ett tal med noll). Detta är troligtvis en bugg.\n"
+"Det är att rekommendera en omstart nu. Om du vill hjälpa till att\n"
+"åtgärda detta vänligen kompilera om Enlightenment med debug-\n"
+"symboler påslagna, och kör Enlightenment under gdb så att du kan\n"
+"spåra tillbaka till haveristället och skicka in en så fullständig\n"
+"buggrapport som möjligt med info om bakåtspårnings data och variabel\n"
+"dumpar etc.\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment orsakade ett segmentöverskridande (Segfault)\n"
+"\n"
+"Detta betyder att Enlightenment, eller biblioteksrutiner som\n"
+"Enlightenment anropar, har accessat delar av ditt systems minne\n"
+"som de inte har access till. Detta är troligtvis en bugg.\n"
+"Det är att rekommendera en omstart nu. Om du vill hjälpa till att\n"
+"åtgärda detta vänligen kompilera om Enlightenment med debug-\n"
+"symboler påslagna, och kör Enlightenment under gdb så att du kan\n"
+"spåra tillbaka till haveristället och skicka in en så fullständig\n"
+"buggrapport som möjligt med info om bakåtspårnings data och variabel\n"
+"dumpar etc.\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment orsakade ett bussfel.\n"
+"\n"
+"Det är att rekommendera att du kontrollerar din hårdvara\n"
+"och OS installation. Det är mycket ovanligt med bussfel på\n"
+"fungerande hårdvara.\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "Textklass fel!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Ikonlådeval"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Ikonlådeinställningar"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Meddelande"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Möjliggör ljud"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC kommando hjälp"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"använd \"help all\" för beskrivningar av varje kommando\n"
+"använd \"help <kommando>\" för en individuell beskrivning\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"kommandon som nu är tillgängliga:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "använd \"help <kommando>\" för en individuell beskrivning\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr "<kommando> : <beskrivning>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!!!!!!!! FEL FEL FEL FEL !!!!!!!!\n"
+"\n"
+"Enlightenments exekverbara fil för tillbehör hittas inte i:\n"
+"\n"
+"%s\n"
+"Detta är ett grundfel och Enlightenment kan inte köras.\n"
+"Var vänlig att korrigera detta, och kontrollera \n"
+"att den är korrekt installerad.\n"
+"\n"
+"Orsaken till detta kan vara att den saknas pga dåligt\n"
+"byggt paket, eller någon som manuellt har raderat\n"
+"programmet, eller fel vid Enlightenments installation .\n"
+
+#: src/main.c:693
+#, fuzzy, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!!!!!!!! FEL FEL FEL FEL !!!!!!!!\n"
+"\n"
+"Enlightenments dox exekverbara fil kan inte köras:\n"
+"\n"
+"%s\n"
+"Detta är ett grundfel och Enlightenment kan inte köras.\n"
+"Var vänlig att korrigera detta, och kontrollera \n"
+"att dox är korrekt installerad.\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Felaktigt tema"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Ramstil"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Fönsterlistignorering"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Gå till detta skrivbord"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Skrivbord %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Visa/gömma denna grupp"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Ikonifiera denna grupp"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Grupp %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Animerad visning av menyer"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Låt alltid menyer poppa upp på skärm"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Flytta muspekaren efter att menyer flyttats"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Ramstil"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Diverse inställningar"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fokusinställningar\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Ramstil"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Ramstil"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Fördröjning av verktygstips:\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Ogenomskinlig"
+
+#: src/mod-trans.c:235
+#, fuzzy
+msgid "Glass"
+msgstr "Klass:"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Transparent bakgrund"
+
+#: src/mod-trans.c:281
+#, fuzzy
+msgid "Selective Transparency Settings"
+msgstr ""
+"Dialog för Enlightenments\n"
+"verktygstipsinställningar\n"
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"verktygstipsinställningar\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Fönsterval"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Ikonifiera"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Förinta"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Klibbigt / Ej klibbigt"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Skrivbordsval"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Sidväxlarinställningar..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Snapshots av"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Hög kvalitet av"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Hög kvalitet på"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Snapshots på"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Sidväxlares scanningshastighet:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "linjer per sekund"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Möjliggör sidväxlare"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Storlek"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Gör mini snapshots av skärmen"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Mjuka högkvalitetssnapshots i snapshot läget"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Zooma in fönster i sidväxlare, när musen är över dem"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Poppa upp fönstertitel när musen är över fönster"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Scanna skärm kontinuerligt för att uppdatera sidväxlaen"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Musknapp för att välja och dra fönster:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Mitten"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Musknapp för att välja skrivbord"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Musknapp för att visa sidväxlarmenyn"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Sidväxlarinställningar"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Sidväxlarinställningar"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"skrivbords- & sidväxlarinställningar\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"FEL!\n"
+"\n"
+"Förlorade sessions hanteraren som fanns där?\n"
+"Kom... Kom sessionshanteraren... Kom hit... Vill du ha ett ben?\n"
+"Kom igen nu! Sluta sura! Helsike. Ok fortsätter utan en \n"
+"sessionshanterare.\n"
+"\n"
+"Jag överlever i alla fall.\n"
+"\n"
+"\n"
+"... hoppas jag.\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Är du säker?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Säkert att du vill logga ut? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Ja, logga ut "
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Ja, logga ut "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Ja, logga ut "
+
+#: src/session.c:663
+msgid " No "
+msgstr " Nej "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "Möjliggör dialoghuvuden"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Diverse inställningar"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Diverse inställningar"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fokusinställningar\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Flyttningssätt:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Storleksändringssätt:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Teknisk"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Låda"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Skuggad"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Delvis täckande"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Genomlysande"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr ""
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "Fokusera fönster vid växling"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Storlek"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Flytt & storleksändringsinställningar"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments flytt- &\n"
+"storleksändringsinställningar\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Dialogfönster uppträder tillsammans med sin ägare"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Växla till skrivbord där dialoger uppträder"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Manuell fönsterplacering"
+
+#: src/settings.c:331
+#, fuzzy
+msgid "Place windows under mouse"
+msgstr "Manuell fönsterplacering"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Ta med skymda fönster i fokuslistan"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Låt fönstren glida in när de dyker upp"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Låt fönstren glida omkring vid uppstädning"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Glidningssätt:"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Dyka upp glid fart: (sakta)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Uppstädnings glid fart: (sakta)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Animera fönsters skymundan/ej skymundan"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Fönsters skymnings fart: (sakta)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Ignorera detta"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Manuell fönsterplacering"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Fönsterplaceringsinställningar"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fönsterplaceringsinställningar\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Lägg fönster överst automatiskt"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Lägga fönster överst fördröjning:"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Lägga fönster överst fördröjning:"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Lägga överst inställningar"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"lägga överst inställningar\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Möjliggör dialoghuvuden"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Möjliggör ljud"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Anv spara-under för att minska fönsterexponering"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Diverse inställningar"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Diverse inställningar"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"diverse inställningar\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Möjliggör ljud"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Möjliggör kant flip"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Möjliggör ljud"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Verktygstipsinställningar"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"verktygstipsinställningar\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Enlightenment Startar..."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment kan inte ansluta till den skärm som anges i\n"
+"ditt skals DISPLAY-variabel. Du måste sätta denna variabel\n"
+"att peka på vilken skärm som Enlightenment skall visas på.\n"
+"Det kan vara så att du ej har en Xserver som körs för denna\n"
+"skärm, eller så har du inte rättigheter att koppla upp till\n"
+"den. Var snäll att kontrollera att allt är rätt innan du\n"
+"försöker igen. Kör en Xserver genom att köra xdm eller startx\n"
+"först, eller kontakta din lokala systemadministratör eller\n"
+"Xserver leverantör, eller läs manualsidorna för X, xdm och\n"
+"startx innan du fortsätter.\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "En annan fönsterhanterare körs redan"
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X server av fel version"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Ignorera detta fel"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"WARNING:\n"
+"Detta är inte X11 Xserver. Den använder X%i protokollet.\n"
+"Detta betyder att Enlightenment inte kommer att fungera,\n"
+"eller fungera felaktigt. Om den är senare än X11, då har \n"
+"Enlightenments upphovsman inte tillgång till eller kännedom\n"
+"om denna.\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Titel:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Namn:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Klass:"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Röd:\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Kommando:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Placering"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Ramstil"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Storlek"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Skrivbord"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Skymt läge"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Klibbigt läge"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Stapellager"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Fönsterlistignorering"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Skymma"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Klass:"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Starta om applikation vid inloggning"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Kom ihåg detta fönsters grupp(er)"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Ihågkommna applikationsattribut"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Välj de attribut för detta\n"
+"fönster som du vill komma\n"
+"ihåg framöver\n"
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Radera fil\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Ihågkommna tillval..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Det finns inga aktiva fönster med ihågkommna attribut."
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Ihågkommna tillval..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Ihågkommna fönsterinställningar"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"ihågkommna fönsterinställningar\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Fel vid sparande av snaps fil\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Fel vid sökning efter ljudfil"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Varning! Enlightenment kunde inte ladda\n"
+"följande ljudfil:\n"
+"%s\n"
+"Enlightenment kommer att fortsätta fungera, men du kanske\n"
+"vill kontrollera dina konfigureringsinställningar.\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Fel vid initiering av ljud"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Ljud är aktiverat för Enlightenment, men ett fel uppstod\n"
+"vid kommunikation med ljudservern (Esound). Ljud kommer\n"
+"nu att deaktiveras.\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Möjliggör ljud"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Ljudinställningar"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"ljudinställningar\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "EPekar fel!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Skrivbordsval"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Lägga överst inställningar"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Felaktigt tema"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Diverse inställningar"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"fokusinställningar\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Visa verktygstips"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Visa rotfönstertips"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Fördröjning av verktygstips:\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Fördröjning av verktygstips:\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Verktygstipsinställningar"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Dialog för Enlightenments\n"
+"verktygstipsinställningar\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i skrivbord"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Flytta"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Fönsterval"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Visa/gömma denna grupp"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Kom ihåg detta fönsters grupp(er)"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Skuggad"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Storlek"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Kom ihåg detta fönsters grupp(er)"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Horisontal"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Vertikal"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Snapshots på"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Skymt läge"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Nertill"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Klicka här för att lägga detta\n"
+"skrivbord överst.\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Klibbigt / Ej klibbigt"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Avsluta Enlightenment"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "KDE inställningar"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Visa skrivbordens draglist"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr ""
+"Ingen\n"
+"Bakgrund"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Skrivbordsval"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i skrivbord"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Gå till detta skrivbord"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Avsluta Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Ramstil"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Fokusinställningar"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Om Enlightenment %s"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Starta om"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Ja, logga ut "
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Använd bakgrundsbild"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Ihågkommna tillval..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Fönsterlistignorering"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Fokusinställningar"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Ramstil"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Fönstergruppsfel"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Kom ihåg detta fönsters grupp(er)"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Välj den grupp som fönstret skall tas bort ifrån. "
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Kom ihåg detta fönsters grupp(er)"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Välj den grupp som fönstret skall tillhöra: \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Klibba"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Upptill"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Fokusera aldrig"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Fokusera aldrig"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Nertill"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Nertill"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Radera fil\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Fokus följer musklick"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Möjliggör kant flip"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Ihågkommna applikationsattribut"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment Startar..."
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Fokusinställningar"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Flytt & storleksändringsinställningar"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Fönsterplaceringsinställningar"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Multipla skrivbordsinställningar"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Virtuella skrivbordsinställningar"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Sidväxlarinställningar..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Diverse inställningar"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Lägga överst inställningar"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Verktygstipsinställningar"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Ljudinställningar"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Sidväxlarinställningar..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Ihågkommna tillval..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Specialeffektsinställningar"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Skrivbordsbakgrundsinställningar"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr ""
+#~ "Dialog för Enlightenments\n"
+#~ "verktygstipsinställningar\n"
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Verktygstipsinställningar"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Ljudinställningar"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Diverse inställningar"
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Spegla skymma/ikonifiera/klibba"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i skrivbord"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i skrivbord"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "skärmar i storlek"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "skärm i storlek"
--- /dev/null
+# This is the Turkish locale definition for Enlightenment.
+# Copyright (C) 2000 Free Software Foundation, Inc.
+# Fatih Demir <kabalak@gmx.net>, 2000.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: enlightenment 0.16.6\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2000-07-30 22:39+0200\n"
+"Last-Translator: Fatih Demir <kabalak@gmx.net>\n"
+"Language-Team: Turkish <tr@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-9\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "Enlightenment %s hakkýnda bilgi "
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr "%u bað geriye kaldý\n"
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+"%s uygulamasýný çalýþtýrýrken bir\n"
+"hata oluþtu .\n"
+"Bu uygulama çalýþtýrýlamadý .\n"
+"Zira , bu dosya yok .\n"
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+"%s uygulamasýný çalýþtýrýrken bir\n"
+"hata oluþtu .\n"
+"Bu uygulama çalýþtýrýlamadý .\n"
+"Çoðunlukla bu hata yetersiz verilmiþ bir\n"
+"´path´ veriminden dolayýdýr .\n"
+"Bu ´path´ þu an %s idir . Kullandýðýn\n"
+"komutanýn rehberine (man ..) bakýp o ´path´\n"
+"verimini geniþlet .\n"
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+"%s uygulamasýný çalýþtýrýrken bir\n"
+"hata oluþtu .\n"
+"Bu uygulama çalýþtýrýlamadý .\n"
+"Neden yapmadýðýmý da kestiremiyorum !\n"
+"Bu dosya var ve senin çalýþtýrma hakkýn da\n"
+"var ?! ..\n"
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+"%s uygulamasýný çalýþtýrýrken bir\n"
+"hata oluþtu .\n"
+"Bu uygulama çalýþtýrýlamadý .\n"
+"Bu uygulama var , ama senin bu uyulamayý \n"
+"çalýþtýrma hakkýn yok .\n"
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+"%s uygulamasýný çalýþtýrýrken bir\n"
+"hata oluþtu .\n"
+"Bu uygulama çalýþtýrýlamadý .\n"
+"O dosya gercek'te bir dizin .\n"
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+"%s uygulamasýný çalýþtýrýrken bir\n"
+"hata oluþtu .\n"
+"Bu uygulama çalýþtýrýlamadý .\n"
+"Zira bu normal bir dosya deðil .\n"
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment hatasý"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment ileti kutusu"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "Bunu geç"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "Enlightenment'i yeniden baþlat"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "Enlightenment'ten çýk"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "Dikkat !!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "Oldu"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"Ardalan bilgi þekli :\n"
+"Isim : %s\n"
+"Dosya : %s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-YOK-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"Ardalan\n"
+"yok"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr "Kullanýlmayan %2i:%02i:%02i dan sonra serbest'edilsin"
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "Ardalan resmini kullan"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "Büyütürken boyutlarý koru"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr "Resmi ardalan'da tekrarla"
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "Öne getir\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "Kopyala\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "Listeden çýkar\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "Dosyayý sil\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"Ardalan\n"
+"Resim\n"
+"Büyütme\n"
+"ve\n"
+"Taraflandýrma\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "Ardalan rengi\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "Kýrmýzý :\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "Yeþil :\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "Mavi :\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "Ardalanlarý ön-tara"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "Dosyaya göre sýrala"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "Üzelliklere göre sýrala"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "Resme göre sýrala"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr "Yüksek renk sayýlarýnda titremi kur"
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "Ardalan görünümü geçer"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr ""
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+#, fuzzy
+msgid "Background"
+msgstr ""
+"Ardalan\n"
+"yok"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "Ardalan ayarlarý"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Enlightenment masaüstü\n"
+"ardalan ayarlarý diyaloðu\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC hatasý"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"Tanýnmayan kullanýcý iletisini aldým .\n"
+"Müþteri : %s\n"
+"Numara : %s\n"
+"Ileti içeriði :\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG : \"%s\"'nin ekstra bilgilerini gözardý ediyorum .\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG : \"%s\"'de gerekli bilgi yok \n"
+
+#: src/config.c:215
+#, fuzzy, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+"Ikaz : \"Extras\" bölümünde bu metinle : \n"
+"´%s´ , ne yapýlacaðý bilinemiyor .\n"
+" \n"
+"Gözardý edip , devam ediyorum ...\n"
+
+#: src/config.c:223
+#, fuzzy, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+"Ikaz : Ayarlama mönü bloðunun yükleminin bitiminden önce \n"
+"bitirilmiþ . Sonuç iyi olmayabilir .\n"
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "Görünüm nesilleme hatasý"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "Önayarlý deðerlerle yeniden baþla"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "Býrak ve Çýk"
+
+#: src/config.c:316
+#, fuzzy, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+" * HATA : \n"
+"\n"
+"Çalýþtýrdýðýn görünümün (\"Theme\") bazý \n"
+"ayar tipleri uygun deðil . Ayarlar %i nesle göre \n"
+"yapýlmýþ , bu ama %i neslidir .\n"
+"\n"
+"Lütfen görünümün yazarýyla/yöneticisiyle \n"
+"iletiþim kurup o görünümlerin ayar dosyalarýný\n"
+"Enlightenment'in bu nesline göre yenileyip , bu\n"
+"nesle göre de uygun yapmalarýný ric'a et .\n"
+"O zaman þu anki nesle uygun olunulur .\n"
+"\n"
+"Görünümün nesli Enlightenment'inkinden daha yeniyse\n"
+", o zaman sen uzun bir süre için Enlightenment'ini \n"
+"yenilemedin ve bu görünüm yeni nesillerin bazý özelliklerinden\n"
+"faydalanýyor .\n"
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment baþlýyor ...."
+
+#: src/container.c:1207
+#, fuzzy
+msgid "Settings..."
+msgstr "Foküsleme ayarlarý"
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "Kapat"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "Yeni simge kutusunu yarat"
+
+#: src/container.c:1513 src/container.c:1586
+#, fuzzy, c-format
+msgid "Icon size: %2d"
+msgstr "Ikona boyutu"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "Transparan ardalan"
+
+#: src/container.c:1554
+#, fuzzy
+msgid "Hide inner border"
+msgstr "Bu kitleyi göster/gizle"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "Simgenin arkasýnda resim boya"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "Lazým deðilse kayd#_rima çubuðunu gizle"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "Simgelere göre boyutlandýr"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr "Otomatikman yeniden boyutlandýrýrken demirlenecek yön :"
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "Taraflama :"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr "Kaydýrma çubuðu tarafý :"
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr "Kaydýrma çubuðu göstergesi :"
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "Ufki"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "Sol / Üst"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "Baþla"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "Dikey"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "Sað / Alt"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr "Iki son da"
+
+#: src/container.c:1652
+msgid "End"
+msgstr "Son"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "Hiç biri"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "Simge isimlerini göster"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr "Simge kutusuna simgeleþirken hareketlendir"
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr ""
+"Ikona resmi gösterme taktiði ( birisi baþarýsýz olursa , baþkasýný dene ):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr ""
+"Pencereyi yakala, uygulama simgesini kullan, Enlightenment simgesini kullan"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr ""
+"Uygulama simgesini kullan, Enlightenment simgesini kullan, pencereyi yakala"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "Enlightenment simgesini kullan, pencereyi yakala"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment simge kutusu\n"
+"ayarlarý diyaloðu\n"
+
+#: src/coords.c:74
+#, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr ""
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Fare tuþunu tut ve fareyi taþý ki ,\n"
+"masaüstlerini ileri ve geri taþý .\n"
+" \n"
+"Saðla týklayýp yekin masaüstlerini ve\n"
+"yekin uygulamalarýn bir listesini görebilirsin .\n"
+"Orta fare tuþuyla yekin þu an çalýþan \n"
+"uygulamalarý görebilirsin .\n"
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+"Bu ana masaüstü idir.\n"
+"Ana masaüstünü etrafta taþýyamayabilirsin.\n"
+"Saðla týklayýp yekin masaüstlerini ve\n"
+"yekin uygulamalarýn bir listesini görebilirsin .\n"
+"Orta fare tuþuyla yekin þu an çalýþan \n"
+"uygulamalarý görebilirsin .\n"
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+"Bu masaüstünü baþa getirmek için \n"
+"buraya týkla .\n"
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+"Bu masaüstünü en dibe göndermek için\n"
+"buraya týkla .\n"
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "Sanal masaüstlerinin sayýsý :\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "Masaüstü deðiþtirirken masaüstünü kaydýrt"
+
+#: src/desktops.c:2322
+#, fuzzy
+msgid "Desktop Slide speed:\n"
+msgstr "Masaüstü kaydýrtma hýzý : (yavaþ)\n"
+
+#: src/desktops.c:2336
+#, fuzzy
+msgid "Wrap desktops around"
+msgstr "Sanal masaüstleri kenarda deðiþtir"
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "Masaüstü çizgisini göster"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "Masaüstü çizgisinin yeri :"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "Üst"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "Alt"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "Sol"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "Sað"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+#, fuzzy
+msgid "Desks"
+msgstr "Masaüstü"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "Çoklu masaüstü ayarlarý"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment çoklu masaüstü\n"
+"ayarlarý diyaloðu\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "Sanal masaüstü boyutu :\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr "Sanal masaüstleri kenarda deðiþtir"
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr ""
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr ""
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr ""
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr ""
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr "Ekran kenarýnýn dayanýklýðý :\n"
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr ""
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "Sanal masaüstü ayarlarý"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment sanal masaüstü\n"
+"ayarlarý diyaloðu\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "Uygula"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X sunucusu kurulum hatasý"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+"AÐIR HATA :\n"
+"\n"
+"Bu X-sunucusu \"Shape\"-eklemine sahip deðildir .\n"
+"Fakat bu Enlightenment'in çalýþmasý için gerekli .\n"
+"\n"
+"Ya X-sunucun çok eski , yada doðru ayarlanmamýþtýr .\n"
+"\n"
+"Bitiriyorum .\n"
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "Foküs göstergeyi takip ediyor"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr "Foküs göstergeyi yavaþ takip ediyor"
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "Foküs fare týklamalarýný takip ediyor"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr "Pencereye týklanýnca pencereyi yükselt"
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "Ilken pencere çikarsa o'nu foküsla"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "Sadece yeni diyalok pencereleri foküs alýr"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr "Sadece sahibi foküslü olan yeni diyalok pencereleri foküs alýr"
+
+#: src/focus.c:760
+#, fuzzy
+msgid "Raise windows while switching focus"
+msgstr "Pencere deðiþtirirken pencereleri foküsle"
+
+#: src/focus.c:766
+#, fuzzy
+msgid "Send mouse pointer to window while switching focus"
+msgstr "Foküs deðiþiminde fareyi pencereye gönder"
+
+#: src/focus.c:772
+#, fuzzy
+msgid "Always send mouse pointer to window on focus switch"
+msgstr "Foküs deðiþiminde fareyi pencereye gönder"
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "Göster ve foküsleme listesini kullan"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr "Yapýþýk pencereleri foküsleme listesinde içer"
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr "Toplanmýþ pencereleri foküsleme listesinde içer"
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr "Simgeleþtirilmiþ pencereleri foküsleme listesinde içer"
+
+#: src/focus.c:800
+#, fuzzy
+msgid "Include windows on other desks in focus list"
+msgstr "Toplanmýþ pencereleri foküsleme listesinde içer"
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "Pencere deðiþtirirken pencereleri foküsle"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr "Foküs deðiþiminden sonra pencereleri yükselt"
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr "Foküs deðiþimden sonra fareyi pencereye gönder"
+
+#: src/focus.c:825
+#, fuzzy
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+"Ikona resmi gösterme taktiði ( birisi baþarýsýz olursa , baþkasýný dene ):"
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+#, fuzzy
+msgid "Focus"
+msgstr "Katiyyen foküsleme"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "Foküsleme ayarlarý"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment foküsleme\n"
+"ayarlarý diyaloðu\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr ""
+
+#: src/fx.c:937
+#, fuzzy
+msgid "Enable Effect: Raindrops"
+msgstr "Yaðmur damlalarýný gösteremiyorum"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr ""
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr ""
+
+#: src/fx.c:951
+msgid "FX"
+msgstr ""
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "Özel efekler ayarlarý"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment özel efekler\n"
+"ayarlarý diyaloðu\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "Pencere kitlesi seçimi"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment pencere kitlesi\n"
+"seçim diyaloðu\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "Pencere kitle hatasý"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+"\n"
+" Bu pencere þu an hiç bir kitlenin üyesi deðil .\n"
+" Kitleleri silmek yada bit kitleden bir pencereyi silmek için\n"
+" en azýndan bir pencere bir kitlenin üyesi olmasý lazým .\n"
+"\n"
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+"\n"
+" Þu an , hiç bir kitle yok yada bu pencere \n"
+" her varolan kitlenin üyesidir . \n"
+" Ilken baþka bir kitleyi kurman lazým . \n"
+"\n"
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+"\n"
+" Þu an , hiç bir pencere kitlesi yok . Ilken bir kitle kur . \n"
+"\n"
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr " Ayarlanacak kitleyi seç : "
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+" Bu eylemler bu kitlenin \n"
+" yekin üyelerine etkin edilecektir"
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "Kenar deðiþiklikleri"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr "Ikonalaþlým"
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "Öldürülme"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "Taþýnma"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "Yükseltme/Alçaltma"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr "Yapýþtýrma"
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr "Toplanma"
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "Pencere kitlesi ayarlarý"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment pencere kitlesi\n"
+"ayarlarý diyaloðu\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+"\n"
+" Bu pencere hiç bir kitlenin üyesi deðil . \n"
+"\n"
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr " Kitleye ögzü ayarlar : "
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " Genel ayarlar : "
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "Pencere yerlerini deðiþtir"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+#, fuzzy
+msgid "Groups"
+msgstr "Kitle %i"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "Önayarlý kitle kontrol ayarlarý"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Enlightenment önayarlý kitle kontrol\n"
+"ayarlarý diyaloðu\n"
+
+#: src/groups.c:1050
+#, fuzzy
+msgid "Pick the group the window will belong to:"
+msgstr " Pencerenin eklencek olduðu kitleyi seç : \n"
+
+#: src/groups.c:1056
+#, fuzzy
+msgid "Select the group to remove the window from:"
+msgstr " Pencerenin silnecek olduðu kitleyi seç ."
+
+#: src/groups.c:1061
+#, fuzzy
+msgid "Select the group to break:"
+msgstr " Kýrýlacak kitleyi seç "
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+"Enlightenment geçersiz bir iþlem yaptý .\n"
+"\n"
+"Çoðu zaman bu Enlightenment'in pakajlardan yüklenip\n"
+", bu pakajdaki biner uygulamasýnýn senin iþlemciyle\n"
+"%% 100 eþit olmayan bir iþlemcide denetlenmiþtir . Lütfen\n"
+"senin sistemin için doðru pakajý yükle , yada \n"
+"Enlightenment'i yeniden dentlet ve mümkün ise biner taban \n"
+"kitaplýklarý da yenile .\n"
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment bir noksap ( noktalý hesap ) hatasýna yol açtý !\n"
+"\n"
+"Bu , Enlightenment'in yada E'yi desktekleyen bir kütüphane'nin geçersiz\n"
+"bir matematiksel bir iþlem yaptýðýnýn bir belgesidir ( bu da , \n"
+"çoðunlukla bir sayýnýn sýfýr'a bölmesinden dolayýdýr . ) .\n"
+"Elhasýl, bu bir yazýlým hatasýdýr . Þimdi yeniden baþlamak \n"
+"iyi bir fikir'dir . Bu hatanýn düzeltilmesine katký saðlamak istiyorsan \n"
+"Enlightenment'i çözüm semboleriyle beraber ( -> debug ) denetlet ve \n"
+"Enlightenment'i gdb altýnda çalýþtýrýp gdb'nin verdiði verileri\n"
+"ve veri özellikleriyle beraber bir hata raporu gönder .\n"
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+"Enlightenment bir bölge-hatasýna sebebiyet verdi ( -> Segfault )\n"
+"\n"
+"Enlightenment veya Enlightenment'i destekleyen kütüphaneler bir iþlem'de\n"
+"kendisine kullanýlmaya verilmeyen bir hafýza parçasýný kullanmaya\n"
+"uðraþmasýnýn bir belgesidir . Eveet , bir hatayý buldun !\n"
+"Elhasýl, bu bir yazýlým hatasýdýr . Þimdi yeniden baþlamak \n"
+"iyi bir fikir'dir . Bu hatanýn düzeltilmesine katký saðlamak istiyorsan \n"
+"Enlightenment'i çözüm semboleriyle beraber ( -> debug ) denetlet ve \n"
+"Enlightenment'i gdb altýnda çalýþtýrýp gdb'nin verdiði verileri\n"
+"ve veri özellikleriyle beraber bir hata raporu gönder .\n"
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+"Enlightenment bir yuvalama hatasý yaptý .\n"
+"\n"
+"Lütfen iþletim sistemini ve donatýmýný gözden geçir .\n"
+"Çalýþan bir donatýmda yuvalama hatalarýnýn oluþmasý\n"
+"enderdir .\n"
+
+#: src/hints.c:600
+#, fuzzy
+msgid "Selection Error!"
+msgstr "TextClass hatasý!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "Simge kutusu ayarlarý"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "Simge kutusu ayarlarý"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "Ileti"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr ""
+
+#: src/ipc.c:1473
+#, fuzzy
+msgid "composite"
+msgstr "Sesi aç"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr ""
+
+#: src/ipc.c:1823
+#, fuzzy
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC komuta yardýmý"
+
+#: src/ipc.c:1827
+#, fuzzy
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+"\"help all\" ile her komutanýn yardýmýný görebilirsin\n"
+"\"help <komuta>\" ile komutaya özgü bir yardým görebilirsin\n"
+"\n"
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+#, fuzzy
+msgid "Commands currently available:\n"
+msgstr ""
+"\n"
+"þu an mümkün olan komutalar :\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+#, fuzzy
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr "\"help <komuta>\" ile komutaya özgü bir yardým görebilirsin\n"
+
+#: src/ipc.c:1850 src/ipc.c:1862
+#, fuzzy
+msgid " <command> : <description>\n"
+msgstr "<komuta> : <anlatým>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+"!! HATA HATA HATA HATA HATA ( Reha Muhtar'sýz ;-) ) !!\n"
+"\n"
+"Enlightenment'in uygulama baþlatýcýsý burada bulunamadý :\n"
+"\n"
+"%s\n"
+"Bu aðýr bir hatadýr ve Enlightenment çalýþmayý durdurcaktýr .\n"
+"Lütfen bu durumabir göz at ve Enlightenment'in parçalarýnýn doðruca\n"
+"yüklendiðini te'min et .\n"
+"\n"
+"Ya yanlýþ haz#-irlanmýþ bir paketi kullanýyorsun , ya baþka biri\n"
+"( yada sen ) bu uygulamayý sildi yada Enlightenment tamamen ve doðruca \n"
+"yüklendmedi .\n"
+
+#: src/main.c:693
+#, fuzzy, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+"!! HATA HATA HATA HATA HATA ( Reha Muhtar'sýz ;-) ) !!\n"
+"\n"
+"Enlightenment'in yardým gösterme uygulamasý bulunamadý :\n"
+"\n"
+"%s\n"
+"Bu aðýr bir hatadýr ve Enlightenment çalýþmayý durdurcaktýr .\n"
+"Lütfen bu duruma bir göz at ve dox'un doðruca yüklendiðini te'min et .\n"
+"Dox Enlightenment'in yardým gösterme uygulamasýdýr .\n"
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr ""
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+#, fuzzy
+msgid "Themes"
+msgstr "Kütü görünüm"
+
+#: src/menus-misc.c:469
+#, fuzzy
+msgid "Border"
+msgstr "Kenar tipi"
+
+#: src/menus-misc.c:531
+#, fuzzy
+msgid "Window List"
+msgstr "Pencere çizgiyesinde kaydetme"
+
+#: src/menus-misc.c:553
+#, fuzzy
+msgid "Go to this Desktop"
+msgstr "Bu masaüstüne geç"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "Masaüstü %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "Bu kitleyi göster/gizle"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr "Bu kitleyi simgeleþtir"
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "Kitle %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "Mönüleri hareketlendir"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "Mönüleri her zaman ekranda aç"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr "Mönüleri taþýdýktan sonra göstergeyi zýplat"
+
+#: src/menus.c:2115
+#, fuzzy
+msgid "Menus"
+msgstr "Kenar tipi"
+
+#: src/menus.c:2116
+#, fuzzy
+msgid "Menu Settings"
+msgstr "Karýþýk ayarlar"
+
+#: src/menus.c:2119
+#, fuzzy
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment foküsleme\n"
+"ayarlarý diyaloðu\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr ""
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr ""
+
+#: src/mod-trans.c:152
+#, fuzzy
+msgid "Borders:"
+msgstr "Kenar tipi"
+
+#: src/mod-trans.c:156
+#, fuzzy
+msgid "Menus:"
+msgstr "Kenar tipi"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr ""
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr ""
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr ""
+
+#: src/mod-trans.c:172
+#, fuzzy
+msgid "Tooltips:"
+msgstr "Balon yardýmý gösterme zaman arasý :\n"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "Içli"
+
+#: src/mod-trans.c:235
+#, fuzzy
+msgid "Glass"
+msgstr "Sýnýf :"
+
+#: src/mod-trans.c:280
+#, fuzzy
+msgid "Transparency"
+msgstr "Transparan ardalan"
+
+#: src/mod-trans.c:281
+#, fuzzy
+msgid "Selective Transparency Settings"
+msgstr ""
+"Enlightenment balon yardýmý\n"
+"ayarlarý diyaloðu\n"
+
+#: src/mod-trans.c:284
+#, fuzzy
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment balon yardýmý\n"
+"ayarlarý diyaloðu\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "Pencere ayarlarý"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr "Simgeleþtir"
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr "Öldür"
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr "Yapýþtýr/Serbest'et"
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "Masaüstü ayarlarý"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "Gözey ayarlarý ..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "Ekranlamayý kapat"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "Yüksek kalitesiz"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "Yüksek kaliteyle"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "Ekranlamayý aç"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr ""
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr ""
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "Gözey tarama hýzý :"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "satýr/saniyede"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "Gözey gösterimini aç"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr ""
+
+#: src/pager.c:1857
+#, fuzzy
+msgid "Simple"
+msgstr "Misal"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "Ekranýn ufacýk resimlerini çek"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr ""
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr "Ufacýk resimlerde ufak bir puslama yap"
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr "Güzey'de fare bir pencerenin üzerinde vardýðý zaman \"zoom\" yap"
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr "Fare pencerenin üstünde olduðu zaman pencere üstyazýs#_ný aç"
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr "Gözey'i yenilemek için ekraný daima tara"
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "Pencereleri seçme ve taþýma tuþu :"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "Orta"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "Masaüstünün seçme fare tuþu :"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "Gözey mönüsünü gösterten fare tuþu :"
+
+#: src/pager.c:1994
+#, fuzzy
+msgid "Pagers"
+msgstr "Gözey ayarlarý"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "Gözey ayarlarý"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Enlightenment masaüstü & bölge\n"
+"gözey ayarlarý diyaloðu\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+"HATA !\n"
+"\n"
+"Oturum yöneticisini kaybettim ?!?\n"
+"Cici oturum yöneticisi , buraa gel , bir þeker verceeem !\n"
+"Gel be ! Nerdesin ! Gelmüün müsün , oldu ; sensiz de devam edeceðim,\n"
+"oturum yöneticisi olmadan .\n"
+"\n"
+"Ben zaten hayata devam edeceðim !\n"
+"\n"
+"\n"
+"... inþallah !\n"
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "Emin misin ?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" Enlightenment'den çýkmak istediðinden emin misin ? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+#, fuzzy
+msgid " Yes, Shut Down "
+msgstr " Evet, çýk"
+
+#: src/session.c:658
+#, fuzzy
+msgid " Yes, Reboot "
+msgstr " Evet, çýk"
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " Evet, çýk"
+
+#: src/session.c:663
+msgid " No "
+msgstr " Hayýr"
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr ""
+
+#: src/session.c:803
+#, fuzzy
+msgid "Enable Logout Dialog"
+msgstr "Diyalok baþlýklarýný aç"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr ""
+
+#: src/session.c:814
+#, fuzzy
+msgid "Session"
+msgstr "Karýþýk ayarlar"
+
+#: src/session.c:815
+#, fuzzy
+msgid "Session Settings"
+msgstr "Karýþýk ayarlar"
+
+#: src/session.c:818
+#, fuzzy
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment foküsleme\n"
+"ayarlarý diyaloðu\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "Taþýma þekli :"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "Yeniden boyutlandýrma þekli :"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr "Teknik"
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr "Kutu olarak"
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr "Gölgeli"
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr "Yarý-gözükür"
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr "Transparan"
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr "Taþýma/boyutlandýrma bilgisi yeri :"
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr "Pencere ortasýnda ( O/T/B türleri )"
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr "Daima ekran köþesinde"
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "Gösterme"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr ""
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+#, fuzzy
+msgid "Update window while moving"
+msgstr "Pencere deðiþtirirken pencereleri foküsle"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr ""
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+#, fuzzy
+msgid "Move/Resize"
+msgstr "Boyut"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "Boyutlandýrma & Taþýma þekilleri"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment Taþýma & boyutlandýrma\n"
+"türleri ayarlarý diyaloðu\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr "Diyalok pencerelerini ana pencereleriyle beraber ayný masaüsütünde aç"
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "Yeni bir diyalok penceresinin açýldýðý masaüstüne geç"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "Pencereleri elden yerleþtir"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "Pencereleri farenin altýna yerleþtir"
+
+#: src/settings.c:336
+#, fuzzy
+msgid "Center windows when desk is full"
+msgstr "Toplanmýþ pencereleri foküsleme listesinde içer"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr "Pencerler gözükürken pencereleri kaydýrt"
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr "Ekraný temizlerken pencereleri kaydýrt"
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr "Kaydýrma þekli :"
+
+#: src/settings.c:384
+#, fuzzy
+msgid "Appear Slide speed:"
+msgstr "Görünme kaydýtma hýzý : (yavaþ)\n"
+
+#: src/settings.c:395
+#, fuzzy
+msgid "Cleanup Slide speed:"
+msgstr "Temizleme kaydýrtma hýzý: (yavaþ)\n"
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr "Pencerelerin toplanmasýný hareketlendir"
+
+#: src/settings.c:414
+#, fuzzy
+msgid "Window Shading speed:"
+msgstr "Pencere toplama hýzý : (yavaþ)\n"
+
+#: src/settings.c:427
+#, fuzzy
+msgid "Ignore struts"
+msgstr "Bunu geç"
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+#, fuzzy
+msgid "Place windows on another head when full"
+msgstr "Pencereleri elden yerleþtir"
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr ""
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "Pencere yerleþme ayarlarý"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment pencere yerleþme\n"
+"ayarlarý diyaloðu\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "Pencereleri otomatikman öne geçir"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "Bekleme zamaný :"
+
+#: src/settings.c:500
+#, fuzzy
+msgid "Autoraise"
+msgstr "Bekleme zamaný :"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "Otomatik öne getirim"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment otomatikman öne getirim\n"
+"ayarlarý diyaloðu\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr "Diyalok baþlýklarýný aç"
+
+#: src/settings.c:547
+#, fuzzy
+msgid "Enable Button Images"
+msgstr "Sesi aç"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr "Pencere gösterimlerini \"saveunder\"'leri kullanýp azalt"
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+#, fuzzy
+msgid "Miscellaneous"
+msgstr "Karýþýk ayarlar"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "Karýþýk ayarlar"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment karýþýk ayarlar\n"
+"diyaloðu\n"
+
+#: src/settings.c:615
+#, fuzzy
+msgid "Enable Composite"
+msgstr "Sesi aç"
+
+#: src/settings.c:623
+#, fuzzy
+msgid "Enable Fading"
+msgstr "Kenar zýplamasýný aç"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr ""
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr ""
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr ""
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr ""
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr ""
+
+#: src/settings.c:704
+#, fuzzy
+msgid "Composite"
+msgstr "Sesi aç"
+
+#: src/settings.c:705
+#, fuzzy
+msgid "Composite Settings"
+msgstr "Balon yardýmý ayarlarý"
+
+#: src/settings.c:708
+#, fuzzy
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment balon yardýmý\n"
+"ayarlarý diyaloðu\n"
+
+#: src/settings.c:794
+#, fuzzy
+msgid "Enlightenment Settings"
+msgstr "Enlightenment baþlýyor ...."
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+"Enlightenment komutanýn DISPLAY verimiyle belirtilmiþ yere\n"
+"baðlanamýyor ! Sen bunu yanlýþ yazdýysan , þimdi düzeltebilirsin .\n"
+"Veya sen þu an bir X sunucusu baþlatmadýn ki , Enlightenment o'na \n"
+"baðlansa ; yada senin X-sunucuna baðlanma hakkýn yok .\n"
+"Lütfen bu þartlarýn hepsinin bir tür yerine getirildiðinden emin\n"
+"olup , Enlightenment'i yeniden baþlatmaya dene . O zaman \n"
+"'xdm' yada 'startx' ile X'i baþlat yada yerel sistem yöneticisiyle\n"
+"iletiþim kurup , derdini o'na , ya da X-sunucusu imalatcýsýný\n"
+"ya da ruh doktorunla görüþ , veya X , xdm ve startx kýlavuzlarýný\n"
+"yeniden denemeden önce bi' oku .\n"
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr "Baþka bir pencere yöneticisi zaten çalýþýyor "
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X sunucu nesil hatasý"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "Bu hatayý gözardý et"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+"IKAZ :\n"
+"Bu bir X11 X-sunucus deðil . Gerçek'te X%i protokolünü konuþuyor .\n"
+"Bu Enlightenment'in çalýþtýrmayabilir yada \n"
+"bozuk çalýþmasýna sebebiyet verebilir . Fakat X11'den\n"
+"daha yeniyse , o zaman Enlightenment'in yazarlarýnýn\n"
+"hiç duymadýðý yada eriþemediði bir tanesi idir .\n"
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "Baþlýk :"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "Isim :"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr "Sýnýf :"
+
+#: src/snaps.c:765
+#, fuzzy
+msgid "Role:"
+msgstr "Kýrmýzý :\n"
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "Komuta :"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr ""
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "Yer"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "Kenar tipi"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "Boyut"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "Masaüstü"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr "Toplanmýþ"
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr "Yapýþýk"
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "Býrakým seviyesi"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr "Pencere çizgiyesinde kaydetme"
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr ""
+
+#: src/snaps.c:869
+#, fuzzy
+msgid "Shadowing"
+msgstr "Toplanma"
+
+#: src/snaps.c:875
+#, fuzzy
+msgid "Flags"
+msgstr "Sýnýf :"
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "Giriþ'te uygulamayý yeniden baþlat"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "Pencere(ler)in kitlesini hýfzet"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "Hatýrlanan uygulama özellikleri"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+"Bu pencerenin þimdiden sonra\n"
+"hatýrlanmasýný istediðin\n"
+"özellikleri seç\n"
+
+#: src/snaps.c:1014
+#, fuzzy
+msgid "Delete"
+msgstr "Dosyayý sil\n"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "Hatýrlanan ayarlar ..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr ""
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr "Hatýrlanan ayarlarlý geçerli pencere yok."
+
+#: src/snaps.c:1068
+#, fuzzy
+msgid "Remember"
+msgstr "Hatýrlanan ayarlar ..."
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "Pencere ayarlarýný hatýrla"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment hatýrlanan\n"
+"pencere ayarlarý diyaloðu\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "Yakalam dosyasýný kaydederken hata oldu\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "Ses dosyasýný ararken hata oldu"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+"Ikaz ! Enlightenment ´%s´ ses dosyasýný\n"
+"yükleyemedi .\n"
+"Enlightenment çalýþmaya devam edecektir \n"
+", fakat sen ayar dosyalarýný bir gözden \n"
+"geçirmek istersin ( herhalde ) .\n"
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "Sesi baþlatýrken hata oldu"
+
+#: src/sound.c:311
+#, fuzzy, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+"Enlightenment'i sesle çalýþmak için ayarlanmýþ , ama\n"
+"E ses sunucusuyla iletiþim kurarken (\"Esound\") hata oldu .\n"
+"Ses kapatýlcaktýr .\n"
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "Sesi aç"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr ""
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "Ses ayarlarý"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment ses\n"
+"ayarlarý diyaloðu\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+#, fuzzy
+msgid "Systray Error!"
+msgstr "ECursor hatasý!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr ""
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr ""
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr ""
+
+#: src/systray.c:449
+#, fuzzy
+msgid "Systray Options"
+msgstr "Masaüstü ayarlarý"
+
+#: src/systray.c:450
+#, fuzzy
+msgid "Systray Settings"
+msgstr "Otomatik öne getirim"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "Kütü görünüm"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "Karýþýk ayarlar"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment foküsleme\n"
+"ayarlarý diyaloðu\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "Balon yardýmlarý göster"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "Ana pencere yardýmlarýný göster"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "Balon yardýmý gösterme zaman arasý :\n"
+
+#: src/tooltips.c:888
+#, fuzzy
+msgid "Tooltips"
+msgstr "Balon yardýmý gösterme zaman arasý :\n"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "Balon yardýmý ayarlarý"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment balon yardýmý\n"
+"ayarlarý diyaloðu\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+#, fuzzy
+msgid "Switch Desktops"
+msgstr "%i masaüstleri"
+
+#: config/strings.c:7
+#, fuzzy
+msgid "Go to the next desktop."
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:9
+#, fuzzy
+msgid "Go to the previous desktop."
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:10
+#, fuzzy
+msgid "Move"
+msgstr "Taþýnma"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr ""
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr ""
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+#, fuzzy
+msgid "Show the Window Options menu."
+msgstr "Pencere ayarlarý"
+
+#: config/strings.c:15
+#, fuzzy
+msgid "Show/Hide group borders."
+msgstr "Bu kitleyi göster/gizle"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr ""
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr ""
+
+#: config/strings.c:18
+#, fuzzy
+msgid "Break this window's group."
+msgstr "Pencere(ler)in kitlesini hýfzet"
+
+#: config/strings.c:19
+#, fuzzy
+msgid "Shade."
+msgstr "Gölgeli"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr ""
+
+#: config/strings.c:21
+#, fuzzy
+msgid "Resize"
+msgstr "Boyut"
+
+#: config/strings.c:22
+#, fuzzy
+msgid "Resize this window."
+msgstr "Pencere(ler)in kitlesini hýfzet"
+
+#: config/strings.c:24
+#, fuzzy
+msgid "Resize Horizontally"
+msgstr "Ufki"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr ""
+
+#: config/strings.c:27
+#, fuzzy
+msgid "Resize Vertically"
+msgstr "Dikey"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr ""
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr ""
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr ""
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr ""
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr ""
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+#, fuzzy
+msgid "Send To Another Desktop"
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+#, fuzzy
+msgid "Snapshot"
+msgstr "Ekranlamayý aç"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+#, fuzzy
+msgid "Shade/Unshade"
+msgstr "Toplanmýþ"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+#, fuzzy
+msgid "More Buttons"
+msgstr "Alt"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr ""
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr ""
+
+#: config/strings.c:57
+#, fuzzy
+msgid "Raise this window to the top."
+msgstr ""
+"Bu masaüstünü baþa getirmek için \n"
+"buraya týkla .\n"
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr ""
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+#, fuzzy
+msgid "Stick/Unstick"
+msgstr "Yapýþtýr/Serbest'et"
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr ""
+
+#: config/strings.c:65 config/strings.c:67
+#, fuzzy
+msgid "Display Enlightenment Menu"
+msgstr "Enlightenment'ten çýk"
+
+#: config/strings.c:66 config/strings.c:71
+#, fuzzy
+msgid "Display Settings Menu"
+msgstr "KDE ayarlarý"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr ""
+
+#: config/strings.c:69
+#, fuzzy
+msgid "Display Desktop Menu"
+msgstr "Masaüstü çizgisini göster"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr ""
+
+#: config/strings.c:72
+#, fuzzy
+msgid "Go Back a Desktop"
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:73
+#, fuzzy
+msgid "Go Forward a Desktop"
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:78 config/strings.c:81
+#, fuzzy
+msgid "Backgrounds"
+msgstr ""
+"Ardalan\n"
+"yok"
+
+#: config/strings.c:80
+#, fuzzy
+msgid "Desktop Operations"
+msgstr "Masaüstü ayarlarý"
+
+#: config/strings.c:82
+#, fuzzy
+msgid "Cleanup Desktop"
+msgstr "%i masaüstü"
+
+#: config/strings.c:83
+#, fuzzy
+msgid "Goto Next Desktop"
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:84
+#, fuzzy
+msgid "Goto Previous Desktop"
+msgstr "Bu masaüstüne geç"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr ""
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr ""
+
+#: config/strings.c:89
+#, fuzzy
+msgid "Enlightenment"
+msgstr "Enlightenment'ten çýk"
+
+#: config/strings.c:90 config/strings.c:190
+#, fuzzy
+msgid "User Menus"
+msgstr "Kenar tipi"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+#, fuzzy
+msgid "Settings"
+msgstr "Foküsleme ayarlarý"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr ""
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr ""
+
+#: config/strings.c:96 config/strings.c:118
+#, fuzzy
+msgid "About Enlightenment"
+msgstr "Enlightenment %s hakkýnda bilgi "
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr ""
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "Yeniden baþla"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+#, fuzzy
+msgid "Log Out"
+msgstr " Evet, çýk"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr ""
+
+#: config/strings.c:103
+#, fuzzy
+msgid "Purge pager background cache"
+msgstr "Ardalan resmini kullan"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr ""
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr ""
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr ""
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr ""
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr ""
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr ""
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr ""
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+#, fuzzy
+msgid "Remember..."
+msgstr "Hatýrlanan ayarlar ..."
+
+#: config/strings.c:133
+#, fuzzy
+msgid "Window Size"
+msgstr "Pencere çizgiyesinde kaydetme"
+
+#: config/strings.c:134
+#, fuzzy
+msgid "Set Stacking"
+msgstr "Foküsleme ayarlarý"
+
+#: config/strings.c:135
+#, fuzzy
+msgid "Set Border Style"
+msgstr "Kenar tipi"
+
+#: config/strings.c:136
+#, fuzzy
+msgid "Window Groups"
+msgstr "Pencere kitle hatasý"
+
+#: config/strings.c:141
+#, fuzzy
+msgid "Configure this window's group(s)"
+msgstr "Pencere(ler)in kitlesini hýfzet"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr ""
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr ""
+
+#: config/strings.c:144
+#, fuzzy
+msgid "Select group to add this window to"
+msgstr " Pencerenin silnecek olduðu kitleyi seç ."
+
+#: config/strings.c:145
+#, fuzzy
+msgid "Remove this window from a group"
+msgstr "Pencere(ler)in kitlesini hýfzet"
+
+#: config/strings.c:146
+#, fuzzy
+msgid "Destroy a group this window belongs to"
+msgstr " Pencerenin eklencek olduðu kitleyi seç : \n"
+
+#: config/strings.c:148
+#, fuzzy
+msgid "Stacking"
+msgstr "Yapýþtýrma"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr ""
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr ""
+
+#: config/strings.c:151
+msgid "Above"
+msgstr ""
+
+#: config/strings.c:152
+#, fuzzy
+msgid "On Top"
+msgstr "Üst"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr ""
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr ""
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr ""
+
+#: config/strings.c:158
+#, fuzzy
+msgid "Toggle Never Focus"
+msgstr "Katiyyen foküsleme"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr ""
+
+#: config/strings.c:160
+#, fuzzy
+msgid "Toggle Never Use Area"
+msgstr "Katiyyen foküsleme"
+
+#: config/strings.c:161
+#, fuzzy
+msgid "Toggle Button Grabs"
+msgstr "Alt"
+
+#: config/strings.c:162
+#, fuzzy
+msgid "Toggle Autoshade"
+msgstr "Alt"
+
+#: config/strings.c:165
+#, fuzzy
+msgid "Default"
+msgstr "Dosyayý sil\n"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr ""
+
+#: config/strings.c:167
+msgid "40%"
+msgstr ""
+
+#: config/strings.c:168
+msgid "60%"
+msgstr ""
+
+#: config/strings.c:169
+msgid "80%"
+msgstr ""
+
+#: config/strings.c:170
+msgid "100%"
+msgstr ""
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr ""
+
+#: config/strings.c:172
+#, fuzzy
+msgid "Focused opacity follows unfocused"
+msgstr "Foküs fare týklamalarýný takip ediyor"
+
+#: config/strings.c:173
+#, fuzzy
+msgid "Toggle Fading"
+msgstr "Kenar zýplamasýný aç"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr ""
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr ""
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr ""
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr ""
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr ""
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr ""
+
+#: config/strings.c:191
+#, fuzzy
+msgid "User Application List"
+msgstr "Hatýrlanan uygulama özellikleri"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr ""
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment baþlýyor ...."
+
+#, fuzzy
+#~ msgid "Focus Settings ..."
+#~ msgstr "Foküsleme ayarlarý"
+
+#, fuzzy
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "Boyutlandýrma & Taþýma þekilleri"
+
+#, fuzzy
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "Pencere yerleþme ayarlarý"
+
+#, fuzzy
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "Çoklu masaüstü ayarlarý"
+
+#, fuzzy
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "Sanal masaüstü ayarlarý"
+
+#, fuzzy
+#~ msgid "Pager Settings ..."
+#~ msgstr "Gözey ayarlarý ..."
+
+#, fuzzy
+#~ msgid "Menu Settings ..."
+#~ msgstr "Karýþýk ayarlar"
+
+#, fuzzy
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "Otomatik öne getirim"
+
+#, fuzzy
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "Balon yardýmý ayarlarý"
+
+#, fuzzy
+#~ msgid "Audio Settings ..."
+#~ msgstr "Ses ayarlarý"
+
+#, fuzzy
+#~ msgid "Group Settings ..."
+#~ msgstr "Gözey ayarlarý ..."
+
+#, fuzzy
+#~ msgid "Remember Settings ..."
+#~ msgstr "Hatýrlanan ayarlar ..."
+
+#, fuzzy
+#~ msgid "Special FX Settings ..."
+#~ msgstr "Özel efekler ayarlarý"
+
+#, fuzzy
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "Ardalan ayarlarý"
+
+#, fuzzy
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr ""
+#~ "Enlightenment balon yardýmý\n"
+#~ "ayarlarý diyaloðu\n"
+
+#, fuzzy
+#~ msgid "Composite Settings ..."
+#~ msgstr "Balon yardýmý ayarlarý"
+
+#, fuzzy
+#~ msgid "Session Settings ..."
+#~ msgstr "Ses ayarlarý"
+
+#, fuzzy
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "Karýþýk ayarlar"
+
+#~ msgid "Mirror Shade/Iconify/Stick"
+#~ msgstr "Toplama/Ikonalaþma/Yapýþ#_týrma aynalanmasý"
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i masaüstleri"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i masaüstü"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i * %i\n"
+#~ "Ekran boyutlarý"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "Ekran boyutu"
--- /dev/null
+# translation of e16.po to 简体中文
+# Copyright (C) 2009 The Enlightenment Team
+# This file is distributed under the same license as the e16 package.
+# Ni Hui <shuizhuyuanluo@126.com>, 2008.
+# Aron Xu <aronmalache@163.com>, 2009.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: e16\n"
+"Report-Msgid-Bugs-To: enlightenment-intl@lists.sourceforge.net\n"
+"POT-Creation-Date: 2009-05-30 09:50+0200\n"
+"PO-Revision-Date: 2009-02-28 19:15+0800\n"
+"Last-Translator: Aron Xu <aronmalache@163.com>\n"
+"Language-Team: Chinese/Simplified <i18n-translation@lists.linux.net.cn>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/about.c:35
+#, fuzzy, c-format
+msgid "About Enlightenment e16 version %s"
+msgstr "关于 Enlightenment %s"
+
+#: src/about.c:46
+#, c-format
+msgid ""
+"Welcome to Enlightenment e16\n"
+"version %s.\n"
+"If you find a bug, please do not\n"
+"hesitate to send in a bug report.\n"
+"We hope you enjoy the software.\n"
+"\n"
+"The Rasterman - raster@rasterman.com\n"
+"Mandrake - mandrake@mandrake.net\n"
+"Kim Woelders - kim@woelders.dk\n"
+msgstr ""
+
+#: src/aclass.c:209 src/backgrounds.c:236 src/borders.c:641 src/buttons.c:181
+#: src/cursors.c:170 src/iclass.c:337 src/tclass.c:113 src/tooltips.c:135
+#, c-format
+msgid "%u references remain\n"
+msgstr ""
+
+#: src/actions.c:109
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file does not exist.\n"
+msgstr ""
+
+#: src/actions.c:115
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is most probably because this program is not in the\n"
+"path for your shell which is %s. I suggest you read the manual\n"
+"page for that shell and read up how to change or add to your\n"
+"execution path.\n"
+msgstr ""
+
+#: src/actions.c:134
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"I am unsure as to why you could not do this. The file exists,\n"
+"is a file, and you are allowed to execute it. I suggest you look\n"
+"into this.\n"
+msgstr ""
+
+#: src/actions.c:144
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file exists, is a file, but you are unable\n"
+"to execute it because you do not have execute access to this file.\n"
+msgstr ""
+
+#: src/actions.c:157
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is in fact a directory.\n"
+msgstr ""
+
+#: src/actions.c:164
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+"This program could not be executed.\n"
+"This is because the file is not a regular file.\n"
+msgstr ""
+
+#: src/actions.c:189
+#, c-format
+msgid ""
+"There was an error running the program:\n"
+"%s\n"
+msgstr ""
+
+#: src/alert.c:210
+msgid "Enlightenment Error"
+msgstr "Enlightenment 错误"
+
+#: src/alert.c:569
+msgid "Enlightenment Message Dialog"
+msgstr "Enlightenment 消息对话框"
+
+#: src/alert.c:569
+msgid "Ignore this"
+msgstr "忽略这个"
+
+#: src/alert.c:570
+msgid "Restart Enlightenment"
+msgstr "重启 Enlightenment"
+
+#: src/alert.c:570 src/setup.c:168
+msgid "Quit Enlightenment"
+msgstr "退出 Enlightenment"
+
+#: src/alert.c:583
+msgid "Attention !!!"
+msgstr "注意!!!"
+
+#: src/alert.c:583 src/dialog.c:844 src/dialog.c:2034 src/events.c:87
+#: src/setup.c:157 src/sound.c:310
+msgid "OK"
+msgstr "确定"
+
+#: src/backgrounds.c:1521
+#, c-format
+msgid ""
+"Background definition information:\n"
+"Name: %s\n"
+"File: %s\n"
+msgstr ""
+"背景定义信息:\n"
+"名称:%s\n"
+"文件:%s\n"
+
+#: src/backgrounds.c:1522
+msgid "-NONE-"
+msgstr "-无-"
+
+#: src/backgrounds.c:1695 src/backgrounds.c:1697
+msgid ""
+"No\n"
+"Background"
+msgstr ""
+"没有\n"
+"背景"
+
+#: src/backgrounds.c:1791 src/backgrounds.c:2221
+#, c-format
+msgid "Unused backgrounds freed after %2i:%02i:%02i"
+msgstr ""
+
+#: src/backgrounds.c:2007
+msgid "Use background image"
+msgstr "使用背景图像"
+
+#: src/backgrounds.c:2011
+msgid "Keep aspect on scale"
+msgstr "保持宽高比"
+
+#: src/backgrounds.c:2015
+msgid "Tile image across background"
+msgstr ""
+
+#: src/backgrounds.c:2024
+msgid "Move to Front\n"
+msgstr "移至前端\n"
+
+#: src/backgrounds.c:2029
+msgid "Duplicate\n"
+msgstr "重复\n"
+
+#: src/backgrounds.c:2033
+msgid "Unlist\n"
+msgstr "不列出\n"
+
+#: src/backgrounds.c:2038
+msgid "Delete File\n"
+msgstr "删除文件\n"
+
+#: src/backgrounds.c:2049
+msgid ""
+"Background\n"
+"Image\n"
+"Scaling\n"
+"and\n"
+"Alignment\n"
+msgstr ""
+"背景\n"
+"图像\n"
+"缩放\n"
+"以及\n"
+"对齐\n"
+
+#: src/backgrounds.c:2106
+msgid "BG Colour\n"
+msgstr "背景色\n"
+
+#: src/backgrounds.c:2111
+msgid "Red:\n"
+msgstr "红:\n"
+
+#: src/backgrounds.c:2122
+msgid "Green:\n"
+msgstr "绿:\n"
+
+#: src/backgrounds.c:2133
+msgid "Blue:\n"
+msgstr "蓝:\n"
+
+#: src/backgrounds.c:2166
+msgid "Pre-scan BG's"
+msgstr "预览背景"
+
+#: src/backgrounds.c:2174
+msgid "Sort by File"
+msgstr "按文件排序"
+
+#: src/backgrounds.c:2179
+msgid "Sort by Attr."
+msgstr "按属性排序"
+
+#: src/backgrounds.c:2185
+msgid "Sort by Image"
+msgstr "按图像排序"
+
+#: src/backgrounds.c:2205
+msgid "Use dithering in Hi-Colour"
+msgstr ""
+
+#: src/backgrounds.c:2209
+msgid "Background overrides theme"
+msgstr "背景覆盖主题"
+
+#: src/backgrounds.c:2214
+msgid "Enable background transparency compatibility mode"
+msgstr "启用背景透明兼容模式"
+
+#: src/backgrounds.c:2238 src/mod-trans.c:204
+msgid "Background"
+msgstr "背景"
+
+#: src/backgrounds.c:2239
+msgid "Desktop Background Settings"
+msgstr "桌面背景设置"
+
+#: src/backgrounds.c:2242
+msgid ""
+"Enlightenment Desktop\n"
+"Background Settings Dialog\n"
+msgstr ""
+"Enlightenment 桌面\n"
+"背景设置对话框\n"
+
+#: src/comms.c:240
+msgid "E IPC Error"
+msgstr "E IPC 错误"
+
+#: src/comms.c:241
+#, c-format
+msgid ""
+"Received Unknown Client Message.\n"
+"Client Name: %s\n"
+"Client Version: %s\n"
+"Message Contents:\n"
+"\n"
+"%s\n"
+msgstr ""
+"收到未知客户端消息。\n"
+"客户端名称: %s\n"
+"客户端版本: %s\n"
+"消息内容:\n"
+"\n"
+"%s\n"
+
+#: src/config.c:197 src/config.c:297
+#, c-format
+msgid "CONFIG: ignoring extra data in \"%s\"\n"
+msgstr "CONFIG:忽略“%s”中的额外数据\n"
+
+#: src/config.c:205 src/config.c:304
+#, c-format
+msgid "CONFIG: missing required data in \"%s\"\n"
+msgstr "CONFIG:缺失“%s”中的必需数据\n"
+
+#: src/config.c:215
+#, c-format
+msgid ""
+"Warning: unable to determine what to do with\n"
+"the following text in the middle of current %s definition:\n"
+"%s\n"
+"Will ignore and continue...\n"
+msgstr ""
+
+#: src/config.c:223
+#, c-format
+msgid ""
+"Warning: Configuration error in %s block.\n"
+"Outcome is likely not good.\n"
+msgstr ""
+
+#: src/config.c:313
+msgid "Theme versioning ERROR"
+msgstr "主题版本错误"
+
+#: src/config.c:314
+msgid "Restart with Defaults"
+msgstr "以默认重启"
+
+#: src/config.c:315
+msgid "Abort and Exit"
+msgstr "中止并退出"
+
+#: src/config.c:316
+#, c-format
+msgid ""
+"ERROR:\n"
+"\n"
+"The configuration for the theme you are running is\n"
+"incompatible. It's config revision is %i.\n"
+"It needs to be marked as being revision <= %i\n"
+"\n"
+"Please contact the theme author or maintainer and\n"
+"inform them that in order for their theme to function\n"
+"with this version of Enlightenment, they have to\n"
+"update it to the current settings, and then match\n"
+"the revision number.\n"
+"\n"
+"If the theme revision is higher than Enlightenment's\n"
+"it may be that you haven't upgraded Enlightenment for\n"
+"a while and this theme takes advantages of new\n"
+"features in Enlightenment in new versions.\n"
+msgstr ""
+
+#: src/config.c:578
+msgid "Enlightenment Starting..."
+msgstr "Enlightenment 启动中..."
+
+#: src/container.c:1207
+msgid "Settings..."
+msgstr "设置..."
+
+#: src/container.c:1211 src/dialog.c:856 src/pager.c:1013 config/strings.c:30
+#: config/strings.c:124
+msgid "Close"
+msgstr "关闭"
+
+#: src/container.c:1216 config/strings.c:85
+msgid "Create New Iconbox"
+msgstr "创建新图标架"
+
+#: src/container.c:1513 src/container.c:1586
+#, c-format
+msgid "Icon size: %2d"
+msgstr "图标大小:%2d"
+
+#: src/container.c:1550
+msgid "Transparent background"
+msgstr "透明背景"
+
+#: src/container.c:1554
+msgid "Hide inner border"
+msgstr "隐藏内部边框"
+
+#: src/container.c:1558
+msgid "Draw base image behind Icons"
+msgstr "在图标后面绘制基线"
+
+#: src/container.c:1562
+msgid "Hide scrollbar when not needed"
+msgstr "不需要时隐藏滚动栏"
+
+#: src/container.c:1566
+msgid "Automatically resize to fit Icons"
+msgstr "自动调整大小以适应图标"
+
+#: src/container.c:1573
+msgid "Alignment of anchoring when automatically resizing:"
+msgstr ""
+
+#: src/container.c:1604
+msgid "Orientation:"
+msgstr "方向:"
+
+#: src/container.c:1609
+msgid "Scrollbar side:"
+msgstr ""
+
+#: src/container.c:1614
+msgid "Scrollbar arrows:"
+msgstr ""
+
+#: src/container.c:1617
+msgid "Horizontal"
+msgstr "水平"
+
+#: src/container.c:1622
+msgid "Left / Top"
+msgstr "左侧/顶部"
+
+#: src/container.c:1627
+msgid "Start"
+msgstr "开始"
+
+#: src/container.c:1632
+msgid "Vertical"
+msgstr "垂直"
+
+#: src/container.c:1638
+msgid "Right / Bottom"
+msgstr "右侧/底部"
+
+#: src/container.c:1644
+msgid "Both ends"
+msgstr ""
+
+#: src/container.c:1652
+msgid "End"
+msgstr "结束"
+
+#: src/container.c:1660 src/focus.c:841
+msgid "None"
+msgstr "无"
+
+#: src/container.c:1670
+msgid "Show icon names"
+msgstr "显示图标名称"
+
+#: src/container.c:1674
+msgid "Animate when iconifying to this Iconbox"
+msgstr ""
+
+#: src/container.c:1684
+msgid "Icon image display policy (if one operation fails, try the next):"
+msgstr "图标图像显示策略(如果有操作失败,则尝试下一个):"
+
+#: src/container.c:1689
+msgid "Snapshot Windows, Use application icon, Use Enlightenment Icon"
+msgstr "抓图窗口,使用应用程序图标,使用 Enlightenment 图标"
+
+#: src/container.c:1696
+msgid "Use application icon, Use Enlightenment Icon, Snapshot Window"
+msgstr "使用应用程序图标,使用 Enlightenment 图标,抓图窗口"
+
+#: src/container.c:1701
+msgid "Use Enlightenment Icon, Snapshot Window"
+msgstr "使用 Enlightenment 图标,抓图窗口"
+
+#: src/container.c:1714
+msgid ""
+"Enlightenment Iconbox\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 图标架\n"
+"设置对话框\n"
+
+#: src/coords.c:74
+#, fuzzy, c-format
+msgid "Focused/unfocused opacity: %d/%d %%"
+msgstr "聚焦透明度 100%"
+
+#: src/desktops.c:124
+msgid ""
+"Hold down the mouse button and drag\n"
+"the mouse to be able to drag the desktop\n"
+"back and forth.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:135
+msgid ""
+"This is the Root desktop.\n"
+"You cannot drag the root desktop around.\n"
+"Click right mouse button for a list of all\n"
+"Desktops and their applications.\n"
+"Click middle mouse button for a list of all\n"
+"applications currently running.\n"
+msgstr ""
+
+#: src/desktops.c:153
+msgid ""
+"Click here to raise this desktop\n"
+"to the top.\n"
+msgstr ""
+
+#: src/desktops.c:165
+msgid ""
+"Click here to lower this desktop\n"
+"to the bottom.\n"
+msgstr ""
+
+#: src/desktops.c:2291
+msgid "Number of virtual desktops:\n"
+msgstr "虚拟桌面的数量:\n"
+
+#: src/desktops.c:2316
+msgid "Slide desktops around when changing"
+msgstr "更改桌面时拉幕式切换"
+
+#: src/desktops.c:2322
+msgid "Desktop Slide speed:\n"
+msgstr "桌面切换速度:\n"
+
+#: src/desktops.c:2336
+msgid "Wrap desktops around"
+msgstr ""
+
+#: src/desktops.c:2344
+msgid "Display desktop dragbar"
+msgstr "显示桌面拖拽栏"
+
+#: src/desktops.c:2350
+msgid "Drag bar position:"
+msgstr "拖动栏位置:"
+
+#: src/desktops.c:2354
+msgid "Top"
+msgstr "顶部"
+
+#: src/desktops.c:2360
+msgid "Bottom"
+msgstr "底部"
+
+#: src/desktops.c:2366 src/pager.c:1924 src/pager.c:1949 src/pager.c:1974
+msgid "Left"
+msgstr "左侧"
+
+#: src/desktops.c:2372 src/pager.c:1936 src/pager.c:1961 src/pager.c:1986
+msgid "Right"
+msgstr "右侧"
+
+#: src/desktops.c:2380 src/menus-misc.c:571
+msgid "Desks"
+msgstr "桌面"
+
+#: src/desktops.c:2381
+msgid "Multiple Desktop Settings"
+msgstr "多桌面设置"
+
+#: src/desktops.c:2384
+msgid ""
+"Enlightenment Multiple Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 多桌面\n"
+"设置对话框\n"
+
+#: src/desktops.c:2475
+msgid "Virtual Desktop size:\n"
+msgstr "虚拟桌面大小:\n"
+
+#: src/desktops.c:2511
+msgid "Wrap virtual desktops around"
+msgstr ""
+
+#: src/desktops.c:2518
+msgid "Edge Flip Mode:"
+msgstr "边缘翻转模式:"
+
+#: src/desktops.c:2521
+msgid "Off"
+msgstr "关闭"
+
+#: src/desktops.c:2526
+msgid "On"
+msgstr "开启"
+
+#: src/desktops.c:2531
+msgid "Only when moving window"
+msgstr "仅移动窗口时开启"
+
+#: src/desktops.c:2537
+msgid "Resistance at edge of screen:\n"
+msgstr ""
+
+#: src/desktops.c:2549
+msgid "Areas"
+msgstr "区域"
+
+#: src/desktops.c:2550
+msgid "Virtual Desktop Settings"
+msgstr "虚拟桌面设置"
+
+#: src/desktops.c:2553
+msgid ""
+"Enlightenment Virtual Desktop\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 虚拟桌面\n"
+"设置对话框\n"
+
+#: src/dialog.c:849
+msgid "Apply"
+msgstr "应用"
+
+#: src/ecompmgr.c:2602
+msgid ""
+"Cannot enable Composite Manager.\n"
+"Use xdpyinfo to check that\n"
+"Composite, Damage, Fixes, and Render\n"
+"extensions are loaded."
+msgstr ""
+
+#: src/events.c:87
+msgid "X server setup error"
+msgstr "X 服务设置错误"
+
+#: src/events.c:88
+msgid ""
+"FATAL ERROR:\n"
+"\n"
+"This Xserver does not support the Shape extension.\n"
+"This is required for Enlightenment to run.\n"
+"\n"
+"Your Xserver probably is too old or mis-configured.\n"
+"\n"
+"Exiting.\n"
+msgstr ""
+
+#: src/focus.c:713
+msgid "Focus follows pointer"
+msgstr "跟随指针聚焦"
+
+#: src/focus.c:719
+msgid "Focus follows pointer sloppily"
+msgstr ""
+
+#: src/focus.c:725
+msgid "Focus follows mouse clicks"
+msgstr "跟随鼠标点击聚焦"
+
+#: src/focus.c:735
+msgid "Clicking in a window always raises it"
+msgstr ""
+
+#: src/focus.c:743
+msgid "All new windows first get the focus"
+msgstr "所有新窗口先得到焦点"
+
+#: src/focus.c:748
+msgid "Only new dialog windows get the focus"
+msgstr "仅新对话框窗口获得焦点"
+
+#: src/focus.c:755
+msgid "Only new dialogs whose owner is focused get the focus"
+msgstr ""
+
+#: src/focus.c:760
+msgid "Raise windows while switching focus"
+msgstr ""
+
+#: src/focus.c:766
+msgid "Send mouse pointer to window while switching focus"
+msgstr ""
+
+#: src/focus.c:772
+msgid "Always send mouse pointer to window on focus switch"
+msgstr ""
+
+#: src/focus.c:780
+msgid "Display and use focus list"
+msgstr "显示并使用焦点列表"
+
+#: src/focus.c:785
+msgid "Include sticky windows in focus list"
+msgstr ""
+
+#: src/focus.c:790
+msgid "Include shaded windows in focus list"
+msgstr ""
+
+#: src/focus.c:795
+msgid "Include iconified windows in focus list"
+msgstr ""
+
+#: src/focus.c:800
+msgid "Include windows on other desks in focus list"
+msgstr ""
+
+#: src/focus.c:805
+msgid "Focus windows while switching"
+msgstr "切换时聚焦窗口"
+
+#: src/focus.c:810
+msgid "Raise windows after focus switch"
+msgstr ""
+
+#: src/focus.c:815
+msgid "Send mouse pointer to window after focus switch"
+msgstr ""
+
+#: src/focus.c:825
+msgid "Focuslist image display policy (if one operation fails, try the next):"
+msgstr ""
+
+#: src/focus.c:829
+msgid "First E Icon, then App Icon"
+msgstr ""
+
+#: src/focus.c:835
+msgid "First App Icon, then E Icon"
+msgstr ""
+
+#: src/focus.c:849
+msgid "Focus"
+msgstr "焦点"
+
+#: src/focus.c:850
+msgid "Focus Settings"
+msgstr "焦点设置"
+
+#: src/focus.c:853
+msgid ""
+"Enlightenment Focus\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 焦点\n"
+"设置对话框\n"
+
+#: src/fx.c:934
+msgid "Effects"
+msgstr "效果"
+
+#: src/fx.c:937
+msgid "Enable Effect: Raindrops"
+msgstr "启用效果:雨滴"
+
+#: src/fx.c:941
+msgid "Ripples"
+msgstr "波纹"
+
+#: src/fx.c:945
+msgid "Waves"
+msgstr "波浪"
+
+#: src/fx.c:951
+msgid "FX"
+msgstr "FX"
+
+#: src/fx.c:952
+msgid "Special FX Settings"
+msgstr "特殊 FX 设置"
+
+#: src/fx.c:955
+msgid ""
+"Enlightenment Special Effects\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 特效\n"
+"设置对话框\n"
+
+#: src/groups.c:701
+msgid "Window Group Selection"
+msgstr "窗口分组选择"
+
+#: src/groups.c:704
+msgid ""
+"Enlightenment Window Group\n"
+"Selection Dialog\n"
+msgstr ""
+"Enlightenment 窗口分组\n"
+"选择对话框\n"
+
+#: src/groups.c:727 src/groups.c:736 src/groups.c:744 src/groups.c:925
+msgid "Window Group Error"
+msgstr "窗口分组错误"
+
+#: src/groups.c:729
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+" You can only destroy groups or remove windows from groups \n"
+" through a window that actually belongs to at least one group.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:737
+msgid ""
+"\n"
+" Currently, no groups exist or this window \n"
+" already belongs to all existing groups. \n"
+" You have to start other groups first. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:746
+msgid ""
+"\n"
+" Currently, no groups exist. You have to start a group first.\n"
+"\n"
+msgstr ""
+
+#: src/groups.c:836
+msgid " Pick the group to configure: "
+msgstr ""
+
+#: src/groups.c:867
+msgid ""
+" The following actions are \n"
+" applied to all group members: "
+msgstr ""
+
+#: src/groups.c:872 src/groups.c:969
+msgid "Changing Border Style"
+msgstr "更改边框风格"
+
+#: src/groups.c:877 src/groups.c:974
+msgid "Iconifying"
+msgstr ""
+
+#: src/groups.c:882 src/groups.c:979
+msgid "Killing"
+msgstr "杀死"
+
+#: src/groups.c:887 src/groups.c:984
+msgid "Moving"
+msgstr "移动"
+
+#: src/groups.c:892 src/groups.c:989
+msgid "Raising/Lowering"
+msgstr "升起/降低"
+
+#: src/groups.c:897 src/groups.c:994
+msgid "Sticking"
+msgstr ""
+
+#: src/groups.c:902 src/groups.c:999
+msgid "Shading"
+msgstr ""
+
+#: src/groups.c:909
+msgid "Window Group Settings"
+msgstr "窗口分组设置"
+
+#: src/groups.c:912
+msgid ""
+"Enlightenment Window Group\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 窗口分组\n"
+"设置对话框\n"
+
+#: src/groups.c:927
+msgid ""
+"\n"
+" This window currently does not belong to any groups. \n"
+"\n"
+msgstr ""
+
+#: src/groups.c:962
+msgid " Per-group settings: "
+msgstr ""
+
+#: src/groups.c:1008
+msgid " Global settings: "
+msgstr " 全局设置:"
+
+#: src/groups.c:1012
+msgid "Swap Window Locations"
+msgstr "交换窗口位置"
+
+#: src/groups.c:1018 src/menus-misc.c:631 config/strings.c:140
+msgid "Groups"
+msgstr "分组"
+
+#: src/groups.c:1019
+msgid "Default Group Control Settings"
+msgstr "默认分组控制设置"
+
+#: src/groups.c:1022
+msgid ""
+"Enlightenment Default\n"
+"Group Control Settings Dialog\n"
+msgstr ""
+"Enlightenment 默认\n"
+"分组控制设置对话框\n"
+
+#: src/groups.c:1050
+msgid "Pick the group the window will belong to:"
+msgstr ""
+
+#: src/groups.c:1056
+msgid "Select the group to remove the window from:"
+msgstr ""
+
+#: src/groups.c:1061
+msgid "Select the group to break:"
+msgstr ""
+
+#: src/handlers.c:61
+#, c-format
+msgid ""
+"Enlightenment performed an Illegal Instruction.\n"
+"\n"
+"This most likely is due to you having installed an run a\n"
+"binary of Enlightenment that was compiled for a make or model\n"
+"of CPU not 100%% identical or compatible with yours. Please\n"
+"either obtain the correct package for your system, or\n"
+"re-compile Enlightenment and possibly any support libraries\n"
+"that you got in binary format to run Enlightenment.\n"
+msgstr ""
+
+#: src/handlers.c:71
+msgid ""
+"Enlightenment caused a Floating Point Exception.\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have performed an illegal mathematical operation (most likely\n"
+"dividing a number by zero). This is most likely a bug. It is\n"
+"recommended to restart now. If you wish to help fix this please\n"
+"compile Enlightenment with debugging symbols in and run\n"
+"Enlightenment under gdb so you can backtrace for where it died and\n"
+"send in a useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:83
+msgid ""
+"Enlightenment caused Segment Violation (Segfault)\n"
+"\n"
+"This means that Enlightenment or support library routines it calls\n"
+"have accessed areas of your system's memory that they are not\n"
+"allowed access to. This is most likely a bug. It is recommended to\n"
+"restart now. If you wish to help fix this please compile\n"
+"Enlightenment with debugging symbols in and run Enlightenment\n"
+"under gdb so you can backtrace for where it died and send in a\n"
+"useful bug report with backtrace information and variable\n"
+"dumps etc.\n"
+msgstr ""
+
+#: src/handlers.c:95
+msgid ""
+"Enlightenment caused Bus Error.\n"
+"\n"
+"It is suggested you check your hardware and OS installation.\n"
+"It is highly unusual to cause Bus Errors on operational\n"
+"hardware.\n"
+msgstr ""
+
+#: src/hints.c:600
+msgid "Selection Error!"
+msgstr "选择错误!"
+
+#: src/hints.c:600
+#, c-format
+msgid "Could not acquire selection: %s"
+msgstr ""
+
+#: src/iconify.c:469
+msgid "Iconbox Options"
+msgstr "图标架选项"
+
+#: src/iconify.c:470
+msgid "Iconbox Settings"
+msgstr "图标架设置"
+
+#: src/ipc.c:195 src/ipc.c:1472 src/ipc.c:1479 src/theme.c:369
+msgid "Message"
+msgstr "消息"
+
+#: src/ipc.c:1472 src/ipc.c:1479
+#, c-format
+msgid "e16 was built without %s support"
+msgstr "e16 构建带有 %s 支持"
+
+#: src/ipc.c:1473
+msgid "composite"
+msgstr "混成"
+
+#: src/ipc.c:1480
+msgid "sound"
+msgstr "声音"
+
+#: src/ipc.c:1823
+msgid "Enlightenment IPC Commands Help\n"
+msgstr "Enlightenment IPC 命令帮助\n"
+
+#: src/ipc.c:1827
+msgid ""
+"Use \"help all\" for descriptions of each command\n"
+"Use \"help <command>\" for an individual description\n"
+"\n"
+msgstr ""
+
+#: src/ipc.c:1829 src/ipc.c:1849 src/ipc.c:1861
+msgid "Commands currently available:\n"
+msgstr "当前可用命令:\n"
+
+#: src/ipc.c:1847
+msgid "Use \"help full\" for full descriptions of each command\n"
+msgstr ""
+
+#: src/ipc.c:1848
+msgid "Use \"help <command>\" for an individual description\n"
+msgstr ""
+
+#: src/ipc.c:1850 src/ipc.c:1862
+msgid " <command> : <description>\n"
+msgstr " <command> :<description>\n"
+
+#: src/main.c:584
+#, c-format
+msgid ""
+"%s must be a directory in which you have\n"
+"read, write, and execute permission.\n"
+msgstr ""
+
+#: src/main.c:679
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable cannot be found at:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+"\n"
+"The reason this could be missing is due to badly created\n"
+"packages, someone manually deleting that program or perhaps\n"
+"an error in installing Enlightenment.\n"
+msgstr ""
+
+#: src/main.c:693
+#, c-format
+msgid ""
+"!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n"
+"\n"
+"Enlightenment's utility executable is not able to be executed:\n"
+"\n"
+"%s\n"
+"This is a fatal error and Enlightenment will cease to run.\n"
+"Please rectify this situation and ensure it is installed\n"
+"correctly.\n"
+msgstr ""
+
+#: src/magwin.c:462
+msgid "Magnifier"
+msgstr "放大镜"
+
+#: src/menus-misc.c:443 config/strings.c:93 config/strings.c:115
+msgid "Themes"
+msgstr "主题"
+
+#: src/menus-misc.c:469
+msgid "Border"
+msgstr "边框"
+
+#: src/menus-misc.c:531
+msgid "Window List"
+msgstr "窗口列表"
+
+#: src/menus-misc.c:553
+msgid "Go to this Desktop"
+msgstr "转到此桌面"
+
+#: src/menus-misc.c:557 src/menus-misc.c:653
+#, c-format
+msgid "Desktop %i"
+msgstr "桌面 %i"
+
+#: src/menus-misc.c:600
+msgid "Show/Hide this group"
+msgstr "显示/隐藏该组"
+
+#: src/menus-misc.c:605
+msgid "Iconify this group"
+msgstr ""
+
+#: src/menus-misc.c:616
+#, c-format
+msgid "Group %i"
+msgstr "组 %i"
+
+#: src/menus.c:2099
+msgid "Animated display of menus"
+msgstr "动画显示菜单"
+
+#: src/menus.c:2104
+msgid "Always pop up menus on screen"
+msgstr "总是在屏幕上弹出菜单"
+
+#: src/menus.c:2109
+msgid "Warp pointer after moving menus"
+msgstr ""
+
+#: src/menus.c:2115
+msgid "Menus"
+msgstr "菜单"
+
+#: src/menus.c:2116
+msgid "Menu Settings"
+msgstr "菜单设置"
+
+#: src/menus.c:2119
+msgid ""
+"Enlightenment Menu\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 菜单\n"
+"设置对话框\n"
+
+#: src/mod-trans.c:114 src/mod-trans.c:264
+#, c-format
+msgid "Theme transparency: %2d"
+msgstr "主题透明度:%2d"
+
+#: src/mod-trans.c:143
+msgid "Changes Might Require Restart:"
+msgstr "更改可能需要重启:"
+
+#: src/mod-trans.c:152
+msgid "Borders:"
+msgstr "边框:"
+
+#: src/mod-trans.c:156
+msgid "Menus:"
+msgstr "菜单:"
+
+#: src/mod-trans.c:160
+msgid "Hilights:"
+msgstr "高亮:"
+
+#: src/mod-trans.c:164
+msgid "E Widgets:"
+msgstr "E 部件:"
+
+#: src/mod-trans.c:168
+msgid "E Dialogs:"
+msgstr "E 对话框:"
+
+#: src/mod-trans.c:172
+msgid "Tooltips:"
+msgstr "工具条提示:"
+
+#: src/mod-trans.c:176 src/settings.c:82 src/settings.c:87 src/settings.c:354
+msgid "Opaque"
+msgstr "不透明度"
+
+#: src/mod-trans.c:235
+msgid "Glass"
+msgstr ""
+
+#: src/mod-trans.c:280
+msgid "Transparency"
+msgstr "半透明"
+
+#: src/mod-trans.c:281
+msgid "Selective Transparency Settings"
+msgstr "选择性透明设置"
+
+#: src/mod-trans.c:284
+msgid ""
+"Enlightenment Selective Transparency\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 选择性透明\n"
+"设置对话框\n"
+
+#: src/pager.c:1006 config/strings.c:49 config/strings.c:123
+msgid "Window Options"
+msgstr "窗口选项"
+
+#: src/pager.c:1009 config/strings.c:51 config/strings.c:126
+msgid "Iconify"
+msgstr ""
+
+#: src/pager.c:1017 config/strings.c:125
+msgid "Annihilate"
+msgstr ""
+
+#: src/pager.c:1021
+msgid "Stick / Unstick"
+msgstr ""
+
+#: src/pager.c:1030
+msgid "Desktop Options"
+msgstr "桌面选项"
+
+#: src/pager.c:1032
+msgid "Pager Settings..."
+msgstr "分页器设置..."
+
+#: src/pager.c:1037
+msgid "Snapshotting Off"
+msgstr "关闭实时快照"
+
+#: src/pager.c:1041
+msgid "High Quality Off"
+msgstr "关闭高质量"
+
+#: src/pager.c:1043
+msgid "High Quality On"
+msgstr "开启高质量"
+
+#: src/pager.c:1048
+msgid "Snapshotting On"
+msgstr "开启实时快照"
+
+#: src/pager.c:1052
+msgid "Zoom Off"
+msgstr "关闭缩放"
+
+#: src/pager.c:1054
+msgid "Zoom On"
+msgstr "开启缩放"
+
+#: src/pager.c:1813 src/pager.c:1904
+msgid "Pager scanning speed:"
+msgstr "分页器扫描速度:"
+
+#: src/pager.c:1814 src/pager.c:1905
+msgid "lines per second"
+msgstr "每秒行数"
+
+#: src/pager.c:1843
+msgid "Enable pager display"
+msgstr "启用分页器显示"
+
+#: src/pager.c:1853
+msgid "Pager Mode:"
+msgstr "分页器模式:"
+
+#: src/pager.c:1857
+msgid "Simple"
+msgstr "简单"
+
+#: src/pager.c:1863
+msgid "Make miniature snapshots of the screen"
+msgstr "显示屏幕微缩快照"
+
+#: src/pager.c:1870
+msgid "Live Update"
+msgstr "实时更新"
+
+#: src/pager.c:1881
+msgid "Smooth high quality snapshots in snapshot mode"
+msgstr ""
+
+#: src/pager.c:1886
+msgid "Zoom in on pager windows when mouse is over them"
+msgstr ""
+
+#: src/pager.c:1892
+msgid "Pop up window title when mouse is over the window"
+msgstr ""
+
+#: src/pager.c:1897
+msgid "Continuously scan screen to update pager"
+msgstr ""
+
+#: src/pager.c:1920
+msgid "Mouse button to select and drag windows:"
+msgstr "选择和拖动窗口的鼠标按钮:"
+
+#: src/pager.c:1930 src/pager.c:1955 src/pager.c:1980
+msgid "Middle"
+msgstr "中键"
+
+#: src/pager.c:1945
+msgid "Mouse button to select desktops:"
+msgstr "选择桌面的鼠标按钮:"
+
+#: src/pager.c:1970
+msgid "Mouse button to display pager menu:"
+msgstr "显示分页器菜单的鼠标按钮:"
+
+#: src/pager.c:1994
+msgid "Pagers"
+msgstr "分页器"
+
+#: src/pager.c:1995
+msgid "Pager Settings"
+msgstr "分页器设置"
+
+#: src/pager.c:1998
+msgid ""
+"Enlightenment Desktop & Area\n"
+"Pager Settings Dialog\n"
+msgstr ""
+"Enlightenment 桌面区域\n"
+"分页器设置对话框\n"
+
+#: src/session.c:344
+msgid ""
+"ERROR!\n"
+"\n"
+"Lost the Session Manager that was there?\n"
+"Here here session manager... come here... want a bone?\n"
+"Oh come now! Stop sulking! Bugger. Oh well. Will continue without\n"
+"a session manager.\n"
+"\n"
+"I'll survive somehow.\n"
+"\n"
+"\n"
+"... I hope.\n"
+msgstr ""
+
+#: src/session.c:644
+msgid "Are you sure?"
+msgstr "您确定吗?"
+
+#: src/session.c:646
+msgid ""
+"\n"
+"\n"
+" Are you sure you wish to log out ? \n"
+"\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+" 您确定要注销吗? \n"
+"\n"
+"\n"
+
+#: src/session.c:656
+msgid " Yes, Shut Down "
+msgstr " 是的,关机 "
+
+#: src/session.c:658
+msgid " Yes, Reboot "
+msgstr " 是的,重启 "
+
+#: src/session.c:661
+msgid " Yes, Log Out "
+msgstr " 是的,注销 "
+
+#: src/session.c:663
+msgid " No "
+msgstr " 不是 "
+
+#: src/session.c:798
+msgid "Enable Session Script"
+msgstr "启用会话脚本"
+
+#: src/session.c:803
+msgid "Enable Logout Dialog"
+msgstr "启用注销对话框"
+
+#: src/session.c:808
+msgid "Enable Reboot/Halt on Logout"
+msgstr "在注销中启用重启/关机"
+
+#: src/session.c:814
+msgid "Session"
+msgstr "会话"
+
+#: src/session.c:815
+msgid "Session Settings"
+msgstr "会话设置"
+
+#: src/session.c:818
+msgid ""
+"Enlightenment Session\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 会话\n"
+"设置对话框\n"
+
+#: src/settings.c:74
+msgid "Move Methods:"
+msgstr "移动方式:"
+
+#: src/settings.c:79
+msgid "Resize Methods:"
+msgstr "调整大小方式:"
+
+#: src/settings.c:92 src/settings.c:97 src/settings.c:359
+msgid "Technical"
+msgstr ""
+
+#: src/settings.c:102 src/settings.c:107 src/settings.c:364
+msgid "Box"
+msgstr ""
+
+#: src/settings.c:112 src/settings.c:117 src/settings.c:369
+msgid "Shaded"
+msgstr ""
+
+#: src/settings.c:122 src/settings.c:127 src/settings.c:374
+msgid "Semi-Solid"
+msgstr ""
+
+#: src/settings.c:133
+msgid "Translucent"
+msgstr ""
+
+#: src/settings.c:142
+msgid "Avoid server grab"
+msgstr ""
+
+#: src/settings.c:152
+msgid "Move/Resize Geometry Info Postion:"
+msgstr ""
+
+#: src/settings.c:156
+msgid "Window Center (O/T/B Methods)"
+msgstr ""
+
+#: src/settings.c:162
+msgid "Always Screen corner"
+msgstr ""
+
+#: src/settings.c:168
+msgid "Don't show"
+msgstr "不显示"
+
+#: src/settings.c:180
+msgid "Default Resize Policy:"
+msgstr "默认调整大小策略:"
+
+#: src/settings.c:184
+msgid "Conservative"
+msgstr ""
+
+#: src/settings.c:190
+msgid "Available"
+msgstr ""
+
+#: src/settings.c:196
+msgid "Absolute"
+msgstr ""
+
+#: src/settings.c:206
+msgid "Update window while moving"
+msgstr "移动时更新窗口"
+
+#: src/settings.c:211
+msgid "Synchronize move/resize with application"
+msgstr "与应用程序同步移动/调整大小"
+
+#: src/settings.c:216
+msgid "Do not cover dragbar"
+msgstr ""
+
+#: src/settings.c:222
+msgid "Move/Resize"
+msgstr "移动/调整大小"
+
+#: src/settings.c:223
+msgid "Move & Resize Settings"
+msgstr "移动和调整大小设置"
+
+#: src/settings.c:226
+msgid ""
+"Enlightenment Move & Resize\n"
+"Method Settings Dialog\n"
+msgstr ""
+"Enlightenment 移动和调整大小\n"
+"方式设置对话框\n"
+
+#: src/settings.c:313
+msgid "Dialog windows appear together with their owner"
+msgstr ""
+
+#: src/settings.c:318
+msgid "Switch to desktop where dialog appears"
+msgstr "对话框出现时切换至桌面"
+
+#: src/settings.c:326
+msgid "Place windows manually"
+msgstr "手动放置窗口"
+
+#: src/settings.c:331
+msgid "Place windows under mouse"
+msgstr "将窗口放置于鼠标下"
+
+#: src/settings.c:336
+msgid "Center windows when desk is full"
+msgstr "桌面满的时候居中窗口"
+
+#: src/settings.c:341
+msgid "Slide windows in when they appear"
+msgstr ""
+
+#: src/settings.c:346
+msgid "Slide windows around when cleaning up"
+msgstr ""
+
+#: src/settings.c:351
+msgid "Slide Method:"
+msgstr ""
+
+#: src/settings.c:384
+msgid "Appear Slide speed:"
+msgstr ""
+
+#: src/settings.c:395
+msgid "Cleanup Slide speed:"
+msgstr ""
+
+#: src/settings.c:408
+msgid "Animate shading and unshading of windows"
+msgstr ""
+
+#: src/settings.c:414
+msgid "Window Shading speed:"
+msgstr ""
+
+#: src/settings.c:427
+msgid "Ignore struts"
+msgstr ""
+
+#: src/settings.c:432
+msgid "Raise fullscreen windows"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Place windows on another head when full"
+msgstr ""
+
+#: src/settings.c:448
+msgid "Placement"
+msgstr "放置"
+
+#: src/settings.c:449
+msgid "Window Placement Settings"
+msgstr "窗口放置设置"
+
+#: src/settings.c:452
+msgid ""
+"Enlightenment Window Placement\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 窗口放置\n"
+"设置对话框\n"
+
+#: src/settings.c:483
+msgid "Raise Windows Automatically"
+msgstr "自动升起窗口"
+
+#: src/settings.c:489
+msgid "Autoraise delay:"
+msgstr "自动升起延迟:"
+
+#: src/settings.c:500
+msgid "Autoraise"
+msgstr "自动升起"
+
+#: src/settings.c:501
+msgid "Autoraise Settings"
+msgstr "自动升起设置"
+
+#: src/settings.c:504
+msgid ""
+"Enlightenment Automatic Raising\n"
+"of Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment 窗口自动升起\n"
+"设置对话框\n"
+
+#: src/settings.c:541
+msgid "Enable Dialog Headers"
+msgstr ""
+
+#: src/settings.c:547
+msgid "Enable Button Images"
+msgstr "启用按钮图像"
+
+#: src/settings.c:556
+msgid "Enable sliding startup windows"
+msgstr ""
+
+#: src/settings.c:564
+msgid "Use saveunders to reduce window exposures"
+msgstr ""
+
+#: src/settings.c:570 config/strings.c:138 config/strings.c:154
+msgid "Miscellaneous"
+msgstr "杂项"
+
+#: src/settings.c:571
+msgid "Miscellaneous Settings"
+msgstr "杂项设置"
+
+#: src/settings.c:574
+msgid ""
+"Enlightenment Miscellaneous\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 杂项\n"
+"设置对话框\n"
+
+#: src/settings.c:615
+msgid "Enable Composite"
+msgstr "启用混成"
+
+#: src/settings.c:623
+msgid "Enable Fading"
+msgstr "启用淡入淡出"
+
+#: src/settings.c:629
+msgid "Fading Speed:"
+msgstr "淡入淡出速度:"
+
+#: src/settings.c:642
+msgid "Shadows Off"
+msgstr "阴影关闭"
+
+#: src/settings.c:648
+msgid "Shadows Sharp"
+msgstr ""
+
+#: src/settings.c:654
+msgid "Shadows Sharp2"
+msgstr ""
+
+#: src/settings.c:660
+msgid "Shadows Blurred"
+msgstr ""
+
+#: src/settings.c:671
+msgid "Default focused window opacity:"
+msgstr "默认的聚焦窗口透明度:"
+
+#: src/settings.c:682
+msgid "Default unfocused window opacity:"
+msgstr "默认未聚焦窗口透明度:"
+
+#: src/settings.c:693
+msgid "Default pop-up window opacity:"
+msgstr "默认弹出窗口透明度:"
+
+#: src/settings.c:704
+msgid "Composite"
+msgstr "混成"
+
+#: src/settings.c:705
+msgid "Composite Settings"
+msgstr "混成设置"
+
+#: src/settings.c:708
+msgid ""
+"Enlightenment Composite\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 混成\n"
+"设置对话框\n"
+
+#: src/settings.c:794
+msgid "Enlightenment Settings"
+msgstr "Enlightenment 设置"
+
+#: src/setup.c:58
+msgid ""
+"Enlightenment cannot connect to the display nominated by\n"
+"your shell's DISPLAY environment variable. You may set this\n"
+"variable to indicate which display name Enlightenment is to\n"
+"connect to. It may be that you do not have an Xserver already\n"
+"running to serve that Display connection, or that you do not\n"
+"have permission to connect to that display. Please make sure\n"
+"all is correct before trying again. Run an Xserver by running\n"
+"xdm or startx first, or contact your local system\n"
+"administrator, or Xserver vendor, or read the X, xdm and\n"
+"startx manual pages before proceeding.\n"
+msgstr ""
+
+#: src/setup.c:156
+msgid "Another Window Manager is already running"
+msgstr ""
+
+#: src/setup.c:158
+msgid ""
+"Another Window Manager is already running.\n"
+"\n"
+"You will have to quit your current Window Manager first before\n"
+"you can successfully run Enlightenment.\n"
+msgstr ""
+
+#: src/setup.c:167
+msgid "X server version error"
+msgstr "X 服务版本错误"
+
+#: src/setup.c:167
+msgid "Ignore this error"
+msgstr "忽略此错误"
+
+#: src/setup.c:169
+#, c-format
+msgid ""
+"WARNING:\n"
+"This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+"This may mean Enlightenment will either not function, or\n"
+"function incorrectly. If it is later than X11, then your\n"
+"server is one the author of Enlightenment neither have\n"
+"access to, nor have heard of.\n"
+msgstr ""
+
+#: src/snaps.c:727
+msgid "Title:"
+msgstr "标题:"
+
+#: src/snaps.c:739
+msgid "Name:"
+msgstr "名称:"
+
+#: src/snaps.c:752
+msgid "Class:"
+msgstr ""
+
+#: src/snaps.c:765
+msgid "Role:"
+msgstr ""
+
+#: src/snaps.c:778
+msgid "Command:"
+msgstr "命令:"
+
+#: src/snaps.c:818
+msgid "Track Changes"
+msgstr "跟踪更改"
+
+#: src/snaps.c:823
+msgid "Location"
+msgstr "位置"
+
+#: src/snaps.c:828
+msgid "Border style"
+msgstr "边框风格"
+
+#: src/snaps.c:833 config/strings.c:176
+msgid "Size"
+msgstr "大小"
+
+#: src/snaps.c:838 config/strings.c:92 config/strings.c:114
+msgid "Desktop"
+msgstr "桌面"
+
+#: src/snaps.c:843
+msgid "Shaded state"
+msgstr ""
+
+#: src/snaps.c:848
+msgid "Sticky state"
+msgstr ""
+
+#: src/snaps.c:853
+msgid "Stacking layer"
+msgstr "叠放层次"
+
+#: src/snaps.c:858
+msgid "Window List Skip"
+msgstr ""
+
+#: src/snaps.c:864 config/strings.c:137 config/strings.c:164
+msgid "Opacity"
+msgstr "透明度"
+
+#: src/snaps.c:869
+msgid "Shadowing"
+msgstr "阴影"
+
+#: src/snaps.c:875
+msgid "Flags"
+msgstr ""
+
+#: src/snaps.c:894
+msgid "Restart application on login"
+msgstr "登录时重启应用程序"
+
+#: src/snaps.c:913
+msgid "Remember this window's group(s)"
+msgstr "记忆此窗口分组"
+
+#: src/snaps.c:921
+msgid "Remembered Application Attributes"
+msgstr "记忆应用程序属性"
+
+#: src/snaps.c:924
+msgid ""
+"Select the attributes of this\n"
+"window you wish to Remember\n"
+"from now on\n"
+msgstr ""
+
+#: src/snaps.c:1014
+msgid "Delete"
+msgstr "删除"
+
+#: src/snaps.c:1042
+msgid "Remembered Settings..."
+msgstr "记忆设置..."
+
+#: src/snaps.c:1049
+msgid "Unused"
+msgstr "未使用"
+
+#: src/snaps.c:1062
+msgid "There are no active windows with remembered attributes."
+msgstr ""
+
+#: src/snaps.c:1068
+msgid "Remember"
+msgstr "记忆"
+
+#: src/snaps.c:1069
+msgid "Remembered Windows Settings"
+msgstr "已记忆的窗口设置"
+
+#: src/snaps.c:1072
+msgid ""
+"Enlightenment Remembered\n"
+"Windows Settings Dialog\n"
+msgstr ""
+"Enlightenment 记忆\n"
+"窗口设置对话框\n"
+
+#: src/snaps.c:1166
+msgid "Error saving snaps file\n"
+msgstr "保存快照文件出错\n"
+
+#: src/sound.c:213
+msgid "Error finding sound file"
+msgstr "查找声音文件出错"
+
+#: src/sound.c:214
+#, c-format
+msgid ""
+"Warning! Enlightenment was unable to load the\n"
+"following sound file:\n"
+"%s\n"
+"Enlightenment will continue to operate, but you\n"
+"may wish to check your configuration settings.\n"
+msgstr ""
+
+#: src/sound.c:310
+msgid "Error initialising sound"
+msgstr "初始化声音出错"
+
+#: src/sound.c:311
+#, c-format
+msgid ""
+"Audio was enabled for Enlightenment but there was an error\n"
+"communicating with the audio server (%s).\n"
+"Audio will now be disabled.\n"
+msgstr ""
+
+#: src/sound.c:460
+msgid "Enable sounds"
+msgstr "启用声音"
+
+#: src/sound.c:466
+msgid "Sound"
+msgstr "声音"
+
+#: src/sound.c:467
+msgid "Audio Settings"
+msgstr "音频设置"
+
+#: src/sound.c:470
+msgid ""
+"Enlightenment Audio\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 音频\n"
+"设置对话框\n"
+
+#: src/systray.c:331 src/systray.c:431 src/systray.c:439
+msgid "Systray Error!"
+msgstr "系统托盘出错!"
+
+#: src/systray.c:331
+msgid "Systray went elsewhere?!?"
+msgstr "系统托盘到哪里去了?!?"
+
+#: src/systray.c:431
+msgid "Only one systray is allowed"
+msgstr "仅允许一个系统托盘存在"
+
+#: src/systray.c:439
+msgid "Could not activate systray"
+msgstr "无法激活系统托盘"
+
+#: src/systray.c:449
+msgid "Systray Options"
+msgstr "系统托盘选项"
+
+#: src/systray.c:450
+msgid "Systray Settings"
+msgstr "系统托盘设置"
+
+#: src/theme.c:339
+#, c-format
+msgid ""
+"No themes were found in the default directories:\n"
+" %s\n"
+"Proceeding from here is mostly pointless.\n"
+msgstr ""
+
+#: src/theme.c:369
+msgid "Changes will take effect after restart"
+msgstr ""
+
+#: src/theme.c:389
+msgid "Use theme font configuration"
+msgstr ""
+
+#: src/theme.c:394
+#, c-format
+msgid "Use alternate font configuration (%s)"
+msgstr ""
+
+#: src/theme.c:395
+msgid "Not set"
+msgstr ""
+
+#: src/theme.c:402
+#, fuzzy
+msgid "Theme"
+msgstr "主题"
+
+#: src/theme.c:403
+#, fuzzy
+msgid "Theme Settings"
+msgstr "菜单设置"
+
+#: src/theme.c:406
+#, fuzzy
+msgid ""
+"Enlightenment Theme\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 菜单\n"
+"设置对话框\n"
+
+#: src/tooltips.c:867
+msgid "Display Tooltips"
+msgstr "显示工具条提示"
+
+#: src/tooltips.c:872
+msgid "Display Root Window Tips"
+msgstr "显示根窗口提示"
+
+#: src/tooltips.c:877
+msgid "Tooltip Delay:\n"
+msgstr "工具条提示延迟:\n"
+
+#: src/tooltips.c:888
+msgid "Tooltips"
+msgstr "工具条提示"
+
+#: src/tooltips.c:889
+msgid "Tooltip Settings"
+msgstr "工具条提示设置"
+
+#: src/tooltips.c:892
+msgid ""
+"Enlightenment Tooltip\n"
+"Settings Dialog\n"
+msgstr ""
+"Enlightenment 工具条\n"
+"设置对话框\n"
+
+#: config/strings.c:5
+msgid ""
+"Click and drag to move desktop\n"
+"(on any desktop but desktop 0)"
+msgstr ""
+
+#: config/strings.c:6 config/strings.c:8
+msgid "Switch Desktops"
+msgstr "切换桌面"
+
+#: config/strings.c:7
+msgid "Go to the next desktop."
+msgstr "转到下一个桌面。"
+
+#: config/strings.c:9
+msgid "Go to the previous desktop."
+msgstr "转到上一个桌面。"
+
+#: config/strings.c:10
+msgid "Move"
+msgstr "移动"
+
+#: config/strings.c:11 config/strings.c:23 config/strings.c:26
+#: config/strings.c:29
+msgid "Move this window."
+msgstr "移动此窗口。"
+
+#: config/strings.c:12 config/strings.c:14 config/strings.c:48
+msgid "Shade/Unshade this window."
+msgstr "卷起/不卷起此窗口。"
+
+#: config/strings.c:13 config/strings.c:50 config/strings.c:53
+msgid "Show the Window Options menu."
+msgstr "显示窗口选项菜单。"
+
+#: config/strings.c:15
+msgid "Show/Hide group borders."
+msgstr "显示/隐藏分组边框。"
+
+#: config/strings.c:16
+msgid "Start a group."
+msgstr "开始新分组。"
+
+#: config/strings.c:17
+msgid "Add to current group."
+msgstr "添加至当前分组。"
+
+#: config/strings.c:18
+msgid "Break this window's group."
+msgstr "取消此窗口的分组。"
+
+#: config/strings.c:19
+msgid "Shade."
+msgstr "卷起。"
+
+#: config/strings.c:20
+msgid "Unshade."
+msgstr "不卷起。"
+
+#: config/strings.c:21
+msgid "Resize"
+msgstr "调整大小"
+
+#: config/strings.c:22
+msgid "Resize this window."
+msgstr "调整此窗口大小。"
+
+#: config/strings.c:24
+msgid "Resize Horizontally"
+msgstr "水平调整大小"
+
+#: config/strings.c:25
+msgid "Resize this window horizontally."
+msgstr "水平调整此窗口大小。"
+
+#: config/strings.c:27
+msgid "Resize Vertically"
+msgstr "垂直调整大小"
+
+#: config/strings.c:28
+msgid "Resize this window vertically."
+msgstr "垂直调整此窗口大小。"
+
+#: config/strings.c:31
+msgid "Close this window."
+msgstr "关闭此窗口。"
+
+#: config/strings.c:32
+msgid "Forcibly destroy this window."
+msgstr ""
+
+#: config/strings.c:33
+msgid "Maximize Height"
+msgstr "最大化高度"
+
+#: config/strings.c:34 config/strings.c:40
+msgid "Toggle between maximum screen height and normal height."
+msgstr ""
+
+#: config/strings.c:35
+msgid "Maximize Width"
+msgstr "最大化宽度"
+
+#: config/strings.c:36 config/strings.c:39
+msgid "Toggle between maximum screen width and normal width."
+msgstr ""
+
+#: config/strings.c:37
+msgid "Maximize"
+msgstr "最大化"
+
+#: config/strings.c:38
+msgid "Toggle between maximum screen size and normal size."
+msgstr ""
+
+#: config/strings.c:41 config/strings.c:43
+msgid "Send To Another Desktop"
+msgstr "发送至另一个桌面"
+
+#: config/strings.c:42
+msgid "Send this Window to the next desktop."
+msgstr ""
+
+#: config/strings.c:44
+msgid "Send this Window to the previous desktop."
+msgstr ""
+
+#: config/strings.c:45
+msgid "Snapshot"
+msgstr "快照"
+
+#: config/strings.c:46
+msgid "This button does nothing interesting."
+msgstr ""
+
+#: config/strings.c:47 config/strings.c:130
+msgid "Shade/Unshade"
+msgstr "卷起/不卷起"
+
+#: config/strings.c:52
+msgid "Iconify (Minimize) this window."
+msgstr ""
+
+#: config/strings.c:54
+msgid "More Buttons"
+msgstr "更多按钮"
+
+#: config/strings.c:55
+msgid "Show more buttons."
+msgstr "显示更多按钮。"
+
+#: config/strings.c:56 config/strings.c:128
+msgid "Raise"
+msgstr "升起"
+
+#: config/strings.c:57
+msgid "Raise this window to the top."
+msgstr ""
+
+#: config/strings.c:58 config/strings.c:129
+msgid "Lower"
+msgstr "降低"
+
+#: config/strings.c:59
+msgid "Lower this window."
+msgstr ""
+
+#: config/strings.c:60 config/strings.c:131
+msgid "Stick/Unstick"
+msgstr ""
+
+#: config/strings.c:61
+msgid "Toggle the Omnipresent (visible on all Desktops) state of this window."
+msgstr ""
+
+#: config/strings.c:63
+msgid ""
+"Clicking your mouse on the desktop will perform\n"
+"the following actions"
+msgstr ""
+
+#: config/strings.c:64
+msgid "Display User Menus"
+msgstr "显示用户菜单"
+
+#: config/strings.c:65 config/strings.c:67
+msgid "Display Enlightenment Menu"
+msgstr "显示 Enlightenment 菜单"
+
+#: config/strings.c:66 config/strings.c:71
+msgid "Display Settings Menu"
+msgstr "显示设置菜单"
+
+#: config/strings.c:68
+msgid "Display Task List Menu"
+msgstr "显示任务列表菜单"
+
+#: config/strings.c:69
+msgid "Display Desktop Menu"
+msgstr "显示桌面菜单"
+
+#: config/strings.c:70
+msgid "Display Group Menu"
+msgstr "显示分组菜单"
+
+#: config/strings.c:72
+msgid "Go Back a Desktop"
+msgstr "后退桌面"
+
+#: config/strings.c:73
+msgid "Go Forward a Desktop"
+msgstr "前进桌面"
+
+#: config/strings.c:78 config/strings.c:81
+msgid "Backgrounds"
+msgstr "背景"
+
+#: config/strings.c:80
+msgid "Desktop Operations"
+msgstr "桌面操作"
+
+#: config/strings.c:82
+msgid "Cleanup Desktop"
+msgstr "清理桌面"
+
+#: config/strings.c:83
+msgid "Goto Next Desktop"
+msgstr "转到下一个桌面"
+
+#: config/strings.c:84
+msgid "Goto Previous Desktop"
+msgstr "转到上一个桌面"
+
+#: config/strings.c:86
+msgid "Create Systray"
+msgstr "创建系统托盘"
+
+#: config/strings.c:87
+msgid "Show Magnifier"
+msgstr "显示放大镜"
+
+#: config/strings.c:89
+msgid "Enlightenment"
+msgstr "Enlightenment"
+
+#: config/strings.c:90 config/strings.c:190
+msgid "User Menus"
+msgstr "用户菜单"
+
+#: config/strings.c:91 config/strings.c:112 config/strings.c:113
+msgid "Settings"
+msgstr "设置"
+
+#: config/strings.c:94 config/strings.c:101 config/strings.c:116
+msgid "Maintenance"
+msgstr "维护"
+
+#: config/strings.c:95 config/strings.c:117
+msgid "Help"
+msgstr "帮助"
+
+#: config/strings.c:96 config/strings.c:118
+msgid "About Enlightenment"
+msgstr "关于 Enlightenment"
+
+#: config/strings.c:97 config/strings.c:119
+msgid "About this theme"
+msgstr "关于本主题"
+
+#: config/strings.c:98 config/strings.c:120 config/strings.c:194
+msgid "Restart"
+msgstr "重启"
+
+#: config/strings.c:99 config/strings.c:121 config/strings.c:195
+msgid "Log Out"
+msgstr "注销"
+
+#: config/strings.c:102
+msgid "Purge config file cache"
+msgstr "清除配置文件缓存"
+
+#: config/strings.c:103
+msgid "Purge pager background cache"
+msgstr "清除分页器背景缓存"
+
+#: config/strings.c:104
+msgid "Purge background selector cache"
+msgstr "清除背景选择器缓存"
+
+#: config/strings.c:105
+msgid "Purge all caches"
+msgstr "清除所有缓存"
+
+#: config/strings.c:106
+msgid "Query config file cache usage"
+msgstr "查询配置文件缓存用法"
+
+#: config/strings.c:107
+msgid "Query pager background cache usage"
+msgstr "查询分页器背景缓存用法"
+
+#: config/strings.c:108
+msgid "Query background selector cache usage"
+msgstr "查询背景选择器缓存用法"
+
+#: config/strings.c:109
+msgid "Query all cache usage"
+msgstr "查询所有缓存用法"
+
+#: config/strings.c:110
+msgid "Regenerate Menus"
+msgstr "重新生成菜单"
+
+#: config/strings.c:127
+msgid "Leave Alone"
+msgstr ""
+
+#: config/strings.c:132
+msgid "Remember..."
+msgstr "记忆 ..."
+
+#: config/strings.c:133
+msgid "Window Size"
+msgstr "窗口大小"
+
+#: config/strings.c:134
+msgid "Set Stacking"
+msgstr "设定叠放"
+
+#: config/strings.c:135
+msgid "Set Border Style"
+msgstr "设定边框风格"
+
+#: config/strings.c:136
+msgid "Window Groups"
+msgstr "窗口分组"
+
+#: config/strings.c:141
+msgid "Configure this window's group(s)"
+msgstr "配置此窗口分组"
+
+#: config/strings.c:142
+msgid "Start a new group"
+msgstr "开始新分组"
+
+#: config/strings.c:143
+msgid "Add this window to the current group"
+msgstr "将此窗口添加到当前分组"
+
+#: config/strings.c:144
+msgid "Select group to add this window to"
+msgstr "选择要将此窗口添加到的分组"
+
+#: config/strings.c:145
+msgid "Remove this window from a group"
+msgstr "将此窗口从分组中移除"
+
+#: config/strings.c:146
+msgid "Destroy a group this window belongs to"
+msgstr "取消此窗口所属的分组"
+
+#: config/strings.c:148
+msgid "Stacking"
+msgstr "叠放"
+
+#: config/strings.c:149
+msgid "Below"
+msgstr "下方"
+
+#: config/strings.c:150
+msgid "Normal"
+msgstr "普通"
+
+#: config/strings.c:151
+msgid "Above"
+msgstr "上方"
+
+#: config/strings.c:152
+msgid "On Top"
+msgstr "置顶"
+
+#: config/strings.c:155
+msgid "Toggle Skip Window Lists"
+msgstr "切换跳过窗口列表"
+
+#: config/strings.c:156
+msgid "Toggle Fixed Position"
+msgstr "切换固定位置"
+
+#: config/strings.c:157
+msgid "Toggle Fixed Size"
+msgstr "切换固定大小"
+
+#: config/strings.c:158
+msgid "Toggle Never Focus"
+msgstr "切换从不聚焦"
+
+#: config/strings.c:159
+msgid "Toggle Click to Focus"
+msgstr "切换点击聚焦"
+
+#: config/strings.c:160
+msgid "Toggle Never Use Area"
+msgstr "切换从不使用区域"
+
+#: config/strings.c:161
+msgid "Toggle Button Grabs"
+msgstr ""
+
+#: config/strings.c:162
+msgid "Toggle Autoshade"
+msgstr "自动隐藏"
+
+#: config/strings.c:165
+msgid "Default"
+msgstr "默认"
+
+#: config/strings.c:166
+msgid "20%"
+msgstr "20%"
+
+#: config/strings.c:167
+msgid "40%"
+msgstr "40%"
+
+#: config/strings.c:168
+msgid "60%"
+msgstr "60%"
+
+#: config/strings.c:169
+msgid "80%"
+msgstr "80%"
+
+#: config/strings.c:170
+msgid "100%"
+msgstr "100%"
+
+#: config/strings.c:171
+msgid "Focused opacity 100%"
+msgstr "聚焦透明度 100%"
+
+#: config/strings.c:172
+msgid "Focused opacity follows unfocused"
+msgstr ""
+
+#: config/strings.c:173
+msgid "Toggle Fading"
+msgstr "切换淡入淡出"
+
+#: config/strings.c:174
+msgid "Toggle Shadows"
+msgstr "切换阴影"
+
+#: config/strings.c:177
+msgid "Max Size Toggle"
+msgstr "最大大小切换"
+
+#: config/strings.c:178
+msgid "Available Max Size Toggle"
+msgstr "可用最大大小切换"
+
+#: config/strings.c:179
+msgid "Absolute Max Size Toggle"
+msgstr "绝对最大大小切换"
+
+#: config/strings.c:180
+msgid "Span Xinerama Screens"
+msgstr ""
+
+#: config/strings.c:181
+msgid "Max Height Toggle"
+msgstr "最大高度切换"
+
+#: config/strings.c:182
+msgid "Available Max Height Toggle"
+msgstr "可用最大高度切换"
+
+#: config/strings.c:183
+msgid "Absolute Max Height Toggle"
+msgstr "绝对最大高度切换"
+
+#: config/strings.c:184
+msgid "Max Width Toggle"
+msgstr "最大宽度切换"
+
+#: config/strings.c:185
+msgid "Available Max Width Toggle"
+msgstr "可用最大宽度切换"
+
+#: config/strings.c:186
+msgid "Absolute Max Width Toggle"
+msgstr "绝对最大宽度切换"
+
+#: config/strings.c:187
+msgid "Fullscreen/Normal"
+msgstr "全屏/普通"
+
+#: config/strings.c:188
+msgid "Zoom/Unzoom"
+msgstr "缩放/不缩放"
+
+#: config/strings.c:191
+msgid "User Application List"
+msgstr "用户应用程序列表"
+
+#: config/strings.c:192
+msgid "Other"
+msgstr "其它"
+
+#: config/strings.c:193
+msgid "Epplets"
+msgstr "Epplets 小程序"
+
+#~ msgid "Enlightenment Settings ..."
+#~ msgstr "Enlightenment 设置 ..."
+
+#~ msgid "Focus Settings ..."
+#~ msgstr "焦点设置 ..."
+
+#~ msgid "Move & Resize Settings ..."
+#~ msgstr "移动和调整大小设置 ..."
+
+#~ msgid "Window Placement Settings ..."
+#~ msgstr "窗口放置设置 ..."
+
+#~ msgid "Multiple Desktop Settings ..."
+#~ msgstr "多桌面设置 ..."
+
+#~ msgid "Virtual Desktop Settings ..."
+#~ msgstr "虚拟桌面设置 ..."
+
+#~ msgid "Pager Settings ..."
+#~ msgstr "分页器设置 ..."
+
+#~ msgid "Menu Settings ..."
+#~ msgstr "菜单设置 ..."
+
+#~ msgid "Autoraise Settings ..."
+#~ msgstr "自动升起设置 ..."
+
+#~ msgid "Tooltip Settings ..."
+#~ msgstr "工具条提示设置 ..."
+
+#~ msgid "Audio Settings ..."
+#~ msgstr "音频设置 ..."
+
+#~ msgid "Group Settings ..."
+#~ msgstr "分组设置 ..."
+
+#~ msgid "Remember Settings ..."
+#~ msgstr "记忆设置 ..."
+
+#~ msgid "Special FX Settings ..."
+#~ msgstr "特殊 FX 设置 ..."
+
+#~ msgid "Desktop Background Settings ..."
+#~ msgstr "桌面背景设置 ..."
+
+#~ msgid "Theme Transparency Settings ..."
+#~ msgstr "主题透明设置 ..."
+
+#~ msgid "Composite Settings ..."
+#~ msgstr "混成设置 ..."
+
+#~ msgid "Session Settings ..."
+#~ msgstr "会话设置 ..."
+
+#~ msgid "Miscellaneous Settings ..."
+#~ msgstr "杂项设置 ..."
+
+#~ msgid "%i Desktops"
+#~ msgstr "%i 个桌面"
+
+#~ msgid "%i Desktop"
+#~ msgstr "%i 个桌面"
+
+#~ msgid ""
+#~ "%i x %i\n"
+#~ "Screens in size"
+#~ msgstr ""
+#~ "%i x %i\n"
+#~ "屏幕尺寸"
+
+#~ msgid ""
+#~ "1\n"
+#~ "Screen in size"
+#~ msgstr ""
+#~ "1\n"
+#~ "屏幕尺寸"
+
+#~ msgid ""
+#~ "Enlightenment Version : %s\n"
+#~ "code is current to : %s\n"
+#~ msgstr ""
+#~ "Enlightenment 版本:%s\n"
+#~ "当前代码为 :%s\n"
+
+#~ msgid "Theme %s does not contain a %s file\n"
+#~ msgstr "主题 %s 不包含 %s 文件\n"
+
+#~ msgid "Unknown\n"
+#~ msgstr "未知\n"
--- /dev/null
+#!/usr/bin/perl
+
+# Copyright (C) 2000-2004 Carsten Haitzler, Geoff Harrison and various contributors
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# This is a little script that will create a window that says
+# "Follow the Bouncing Ball" and then drops it to the bottom of the
+# screen and slowly bounces it around.
+# then when it's done bouncing it gets rid of it.
+
+
+$s = `eesh screen size`;
+chomp($s);
+
+($crap,$width,$height) = split(/\s+/,$s);
+if ($s =~ /.*size\s+(\d+)x(\d+)/) {
+ $width = $1; $height = $2;
+}
+
+`eesh dialog_ok \"Follow the Bouncing Ball\"`;
+$ball = "Message";
+
+$s = `eesh win_op $ball move "?"`;
+if ($s =~ /.*:\s+(\d+)\s+(\d+)/) {
+ $ballx = $1; $bally = $2;
+}
+$s = `eesh win_op $ball size "??"`;
+if ($s =~ /.*:\s+(\d+)\s+(\d+)/) {
+ $ballw = $1; $ballh = $2;
+}
+#print "x,y=$ballx,$bally wxh=$ballw x $ballh\n";
+
+# now for the fun part. make that baby bounce up and down.
+# we're going to open a big pipe for this one and just shove data
+# to it.
+
+open IPCPIPE,"| eesh";
+
+@fallspeed = (30,25,20,15,10,5,4,3,2);
+$i = 0;
+foreach(@fallspeed) {
+ $originalbally = $bally;
+ $fallspeed = $fallspeed[i];
+ while($bally < ($height - $ballh)) {
+ if(($bally + $fallspeed + $ballh) < $height) {
+ $bally += $fallspeed;
+ } else {
+ $bally = $height - $ballh;
+ }
+ print IPCPIPE "win_op $ball move $ballx $bally\n";
+ system("usleep 20000");
+ }
+
+ if($fallspeed[i+1]) {
+ $fallspeed = $fallspeed[i+1];
+ } else {
+ $fallspeed = 1;
+ }
+
+ while($bally > ($originalbally + int($originalbally * (1/$#fallspeed)))) {
+ if(($bally - $fallspeed) >
+ ($originalbally + int($originalbally * (1/$#fallspeed)))) {
+ $bally -= $fallspeed;
+ } else {
+ $bally = $originalbally + int($originalbally * (1/$#fallspeed));
+ }
+ print IPCPIPE "win_op $ball move $ballx $bally\n";
+ system("usleep 20000");
+ }
+ $i++;
+}
+
+print IPCPIPE "win_op $ball close\n";
+close IPCPIPE;
+
+# that's all folks.
--- /dev/null
+#!/bin/sh
+
+# Copyright (C) 1999-2004 Hallvar Helleseth (hallvar@ii.uib.no)
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# Author: Hallvar Helleseth (hallvar@ii.uib.no) - Not that I'm proud ;)
+# Instructions: move the top window and see what happends to the lower one.
+#
+
+# Open dialog 1
+eesh -e "dialog_ok Move this window"
+usleep 100000
+eesh -e "wop Message title Dlg1"
+usleep 100000
+
+# Open dialog 2
+eesh -e "dialog_ok Watch me follow the above window"
+usleep 100000
+eesh -e "wop Message title Dlg2"
+usleep 100000
+
+# In one endless loop, get window position of the first window, then move the
+# second one accordingly...
+while true
+do
+ # Get position
+ pos=`eesh wop Dlg1 move "?"`
+ a=0
+ for i in $pos;do
+ a=$(($a + 1))
+ if [ $a = 3 ];then
+ xpos=$i
+ fi
+ if [ $a = 4 ];then
+ ypos=$i
+ fi
+ done
+
+ # Move the second window to the new position
+ eesh wop Dlg2 move $xpos $(($ypos + 74))
+done
--- /dev/null
+#!/usr/bin/perl
+
+# Copyright (C) 2000-2004 Carsten Haitzler, Geoff Harrison and various contributors
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# This is a hack of mandrake's "testroller.pl" that shades/unshades all your
+# pager windows
+
+# here we're going to test to see whether we are shading or unshading
+# the window.
+
+if($ARGV[0] eq "1") {
+ $shade = "on";
+} elsif($ARGV[0] eq "0") {
+ $shade = "off";
+} else {
+ $shade = "";
+}
+
+
+# make sure that we're not an internal window in our list
+
+@winlist_temp = `eesh window_list`;
+foreach(@winlist_temp) {
+ chomp;
+ @stuff = split /\s*\:\s*/;
+# print ">$stuff[0]<>$stuff[1]<\n";
+ if ($stuff[1] =~ /^Pager-.*/) {
+ push @winlist,$stuff[0] if ($stuff[0]);
+ }
+}
+
+# now we're going to walk through each of these windows and
+# shade them
+
+open IPCPIPE,"| eesh";
+foreach $window (@winlist) {
+ print IPCPIPE "win_op $window shade $shade\n";
+}
+close IPCPIPE;
+
+# Alternatively, simply do
+#$ eesh wop Pager* shade [on|off]
--- /dev/null
+#!/usr/bin/perl
+
+# Copyright (C) 2000-2004 Carsten Haitzler, Geoff Harrison and various contributors
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# This script is still VERY VERY VERY early on in development
+# but I wanted to give you folks an idea of why the IPC was being
+# set up the way it was. this is just a quick hack. expect better
+# samples in the near future.
+# This app will take the parameters "on" and "off", and will basically
+# shade all the windows on the current desktop and area. (or unshade)
+#
+# --Mandrake
+
+# here we're going to test to see whether we are shading or unshading
+# the window.
+
+if($ARGV[0] eq "on") {
+ $shade = 1;
+} else {
+ $shade = 0;
+}
+
+# here we'll retreive the current desk we're on
+
+$_ = `eesh desk`;
+@stuff = split(/\s*:\s*/);
+@stuff = split(/\s*\/\s*/, $stuff[1]);
+$current_desk = $stuff[0];
+
+# here we'll retreive the current area we're on
+
+$_ = `eesh area`;
+@stuff = split(/\s*\n\s*/);
+@stuff = split(/\s*:\s*/, $stuff[0]);
+$current_area = $stuff[1];
+$current_area =~ s/\n//g;
+
+
+# get the old shadespeed so that we can set it back later
+# because we want this to happen fairly quickly, we'll set
+# the speed to something really high
+
+$_ = `eesh show misc.shading.speed`;
+@stuff = split(/\s*\n\s*/);
+@stuff = split(/\s*=\s*/, $stuff[0]);
+$shadespeed = $stuff[1];
+
+open IPCPIPE,"| eesh";
+print IPCPIPE "set misc.shading.speed 10000000\n";
+
+# now we're going to walk through each of these windows and
+# shade them
+
+@winlist = `eesh window_list a`;
+foreach (@winlist) {
+ if (/\s*(\w+)\s* : .* :: \s*(-*\d+)\s* : (.*) : (.*)$/) {
+ $window = $1;
+ $desk = $2;
+ $area = $3;
+ $name = $4;
+
+ # Skip pagers, iconboxes, systrays, and epplets
+ next if ($name =~ /^Pager-|Iconbox|Systray|E-/);
+# next unless (($desk == -1) and ($desk eq $current_desk));
+ next unless ($desk eq $current_desk);
+ next unless ($area eq $current_area);
+ if ($shade) {
+ print IPCPIPE "win_op $window shade on\n";
+ } else {
+ print IPCPIPE "win_op $window shade off\n";
+ }
+ }
+}
+
+# now we're going to set the shade speed back to what it was originally
+
+print IPCPIPE "set misc.shading.speed $shadespeed\n";
+close IPCPIPE;
+
+# that's it!
--- /dev/null
+scriptdir = $(pkgdatadir)/scripts
+
+script_SCRIPTS = e_gen_menu e_cache_clean e_cache_query session.sh
+
+EXTRA_DIST = $(script_SCRIPTS)
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = scripts
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(scriptdir)"
+scriptSCRIPT_INSTALL = $(INSTALL_SCRIPT)
+SCRIPTS = $(script_SCRIPTS)
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+scriptdir = $(pkgdatadir)/scripts
+script_SCRIPTS = e_gen_menu e_cache_clean e_cache_query session.sh
+EXTRA_DIST = $(script_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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign 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
+install-scriptSCRIPTS: $(script_SCRIPTS)
+ @$(NORMAL_INSTALL)
+ test -z "$(scriptdir)" || $(MKDIR_P) "$(DESTDIR)$(scriptdir)"
+ @list='$(script_SCRIPTS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f $$d$$p; then \
+ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
+ echo " $(scriptSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(scriptdir)/$$f'"; \
+ $(scriptSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(scriptdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-scriptSCRIPTS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(script_SCRIPTS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
+ echo " rm -f '$(DESTDIR)$(scriptdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(scriptdir)/$$f"; \
+ done
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(SCRIPTS)
+installdirs:
+ for dir in "$(DESTDIR)$(scriptdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-scriptSCRIPTS
+
+install-dvi: install-dvi-am
+
+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
+
+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-scriptSCRIPTS
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ 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-scriptSCRIPTS \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ uninstall uninstall-am uninstall-scriptSCRIPTS
+
+# 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:
--- /dev/null
+#!/bin/sh
+##############################################################################
+# cleans up parts of your enlightenment cache #
+#
+# Copyright (C) 1999-2007 Carsten Haitzler, Geoff Harrison and various contributors
+# Copyright (C) 2008 Kim Woelders
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+##############################################################################
+
+PATH=$PATH:$EBIN
+export PATH
+
+case "x$1" in
+xall)
+ dir="*"
+ txt="All caches"
+ ;;
+
+xbgsel)
+ dir=bgsel
+ txt="Background selector cache"
+ ;;
+
+xconfig)
+ dir=cfg
+ txt="Config file cache"
+ ;;
+
+xpager)
+ dir=pager
+ txt="Pager background cache"
+ ;;
+
+*)
+ echo "usage:"
+ echo " "$0" [ all | bgsel | config | pager ]"
+ exit
+ ;;
+esac
+
+rm -rf $ECACHEDIR/cached/$dir/* $ECACHEDIR/cached/$dir/.* >/dev/null 2>&1
+eesh -e "dialog_ok $txt purged."
--- /dev/null
+#!/bin/sh
+##############################################################################
+# queries sizes of your enlightenment cache #
+#
+# Copyright (C) 1999-2007 Carsten Haitzler, Geoff Harrison and various contributors
+# Copyright (C) 2008 Kim Woelders
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+##############################################################################
+
+PATH=$PATH:$EBIN
+export PATH
+
+case "x$1" in
+xall)
+ dir=""
+ txt="Your caches are using"
+ ;;
+
+xbgsel)
+ dir=bgsel
+ txt="Your background selector cache is using"
+ ;;
+
+xconfig)
+ dir=cfg
+ txt="Your config file cache is using"
+ ;;
+
+xpager)
+ dir=pager
+ txt="Your pager background cache is using"
+ ;;
+
+*)
+ echo "usage:"
+ echo " "$0" [ all | bgsel | config | pager ]"
+ exit
+ ;;
+esac
+
+val=`du -s $ECACHEDIR/cached/$dir | awk '{printf("%s", $1);}'`
+eesh -e "dialog_ok $txt $val Kb of disk space."
--- /dev/null
+#!/usr/bin/perl
+##############################################################################
+# generates a file.menu format for Enlightenment out of menu hierarchies
+#
+# Copyright (C) 2003-2008 Kim Woelders
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies of the Software, its documentation and marketing & publicity
+# materials, and acknowledgment shall be given in the documentation, materials
+# and software packages that this Software was used.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+##############################################################################
+
+# Likely prefixes
+$Prefixes = "/usr/local:/usr:/opt:/opt/kde:$ENV{'KDEDIR'}";
+$Prefixes = "$Prefixes:/opt/kde3:/opt/gnome"; # SUSE
+$Prefixes = RemoveDuplcates($Prefixes);
+
+# Where to look for GNOME/KDE stuff
+$AppDirs = MkDirList($Prefixes, "/share/applications:/share/applications/kde:/share/applications/kde4");
+
+$IconDirs = MkDirList($Prefixes, "/share/pixmaps:/share/icons");
+$IconDirs2 = MkDirList($Prefixes, "/share/icons");
+$Themes = "default.kde:gnome:hicolor";
+$IconCats = "apps:filesystems:actions:devices:categories:places";
+
+# Where to look for GNOME1 apps
+$OldGnomeDirs = MkDirList($Prefixes, "/share/gnome/apps");
+# Where to look for KDE1/2 apps
+$OldKdeDirs = MkDirList($Prefixes, "/share/applnk");
+
+# Pick up env vars
+$EdirUser = "$ENV{'ECONFDIR'}";
+$EdirRoot = "$ENV{'EROOT'}";
+$EdirBin = "$ENV{'EBIN'}";
+
+# Localization bits. There may be better ways to do this.
+$Lang = "$ENV{'LANG'}";
+$loc1 = $loc2 = $loc3 = $Lang;
+$loc2 =~ s/[\.\@].*//;
+$loc3 =~ s/_.*//;
+$loc1 = "" if ($loc1 eq $loc2);
+
+$EdirUser = "$ENV{'HOME'}/.e16" unless $EdirUser;
+$EdirRoot = "/usr/share/enlightenment" unless $EdirRoot;
+$EdirBin = "/usr/bin" unless $EdirBin;
+
+$EdirMenus = "$EdirUser/menus";
+
+$dbg = "$ENV{'E_MENUGEN_DBG'}";
+
+# Put EBIN first in path
+$ENV{'PATH'} = "$EdirBin:$ENV{'PATH'}";
+
+# Programs
+$DoIconv = `which iconv`;
+
+@CatsRemove = (
+ "Qt",
+ "QT",
+ "GTK",
+ "GNOME",
+ "KDE",
+ "UtilityApplication",
+ "Applications",
+ "Application",
+ "X-.*",
+);
+
+@MainMenu = (
+ "t:User Menus",
+ "m:User Application List:user_apps.menu",
+ "m:GNOME:menus_GNOME/index.menu",
+ "m:KDE:menus_KDE/index.menu",
+ "m:Other:menus_Other/index.menu",
+ "m:Epplets:epplets.menu",
+ "c:Restart:exit restart",
+ "c:Log Out:exit logout"
+);
+
+@UserAppsMenu = (
+ "t:User Application List",
+ "x:Eterm:Eterm",
+ "x:Terminal:Terminal",
+ "x:XTerm:xterm",
+ "x:rxvt:rxvt",
+ "x:urxvt:urxvt",
+ "x:Mozilla:mozilla",
+ "x:Seamonkey:seamonkey",
+ "x:Firefox:firefox",
+ "x:Galeon:galeon",
+ "x:Opera:opera",
+ "x:Gmplayer:gmplayer",
+ "x:Xine:xine",
+ "x:The GIMP:gimp",
+ "x:GQView:gqview",
+ "x:XV:xv",
+ "x:Gaim:gaim",
+ "x:Xchat:xchat",
+ "x:Xchat2:xchat2",
+ "x:Xchat2:xchat-2",
+ "x:XMag:xmag",
+ "x:Grip:grip",
+ "x:XMMS:xmms"
+);
+
+# Remove duplicates and nulls in ':' separated dir list
+sub RemoveDuplcates {
+ local $dl = shift;
+ local @r;
+ local %h;
+ foreach $p (split(':', $dl)) {
+ next unless $p;
+ next if $h{$p};
+ $h{$p} = $p;
+ push @r, $p;
+ }
+ return join(':', @r);
+}
+
+# Make : separated directory list, check that they exist
+sub MkDirList {
+ local $dl = shift;
+ local $sf = shift;
+ local $d;
+ local @r;
+ foreach $p (split(':', $dl)) {
+ foreach $q (split(':', $sf)) {
+ $d = "$p$q";
+ push(@r, "$d") if -d "$d";
+ }
+ }
+ return join(':', @r);
+}
+
+# Make dir if non-existing
+sub MkDir {
+ local $d = shift;
+ mkdir("$d") unless (-d "$d");
+}
+
+# Make simple menus
+sub MakeMenu {
+ local $f = shift;
+ local $m = shift;
+
+ $f = "$EdirMenus/$f";
+ return if (-f "$f");
+ open(FD, ">$f");
+ foreach $e (@$m) {
+ ($t, $n, $p) = split(':', $e);
+ if ($t eq "t") {
+ print FD "\"$n\"\n";
+ } elsif ($t eq "m") {
+ print FD "\"$n\" NULL menu \"$p\"\n";
+ } elsif ($t eq "x") {
+ print FD "\"$n\" NULL exec \"$p\"\n";
+ } elsif ($t eq "c") {
+ print FD "\"$n\" NULL \"$p\"\n";
+ }
+ }
+ close(FD);
+}
+
+# Process a .desktop file
+sub ProcessFile {
+ local $f = shift;
+ local $Name, $Exec, $Icon, $Cats, $Type, $File;
+ local $c;
+
+ if (! -f "$f") {
+ print "Not found: $f\n" if $dbg ge 1;
+ return;
+ }
+
+ # Global ref no
+ $N++;
+
+ $Name = $Exec = $Icon = "";
+ $Nam1 = $Nam2 = $Nam3 = "";
+ $Cats = shift;
+ $Type = shift;
+
+ open(FI,$f) or return;
+ while (<FI>) {
+ if (/^Name=(.*)$/) {
+ $Name = $1;
+ } elsif ($loc1 && /^Name\[$loc1\]=(.*)$/) {
+ $Nam1 = $1;
+ } elsif ($loc2 && /^Name\[$loc2\]=(.*)$/) {
+ $Nam2 = $1;
+ } elsif ($loc3 && /^Name\[$loc3\]=(.*)$/) {
+ $Nam3 = $1;
+ } elsif (/^Exec=(.*)$/) {
+ $Exec = $1;
+ } elsif (/^Icon=(.*)$/) {
+ $Icon = $1;
+ } elsif (/^OnlyShowIn=(.*);$/) {
+ $Type = $1;
+ } elsif (/^Categories=(.*)$/) {
+ next if "$Cats"; # Given
+ CF: foreach $cf (split(';', $1)) {
+ if ($cf eq "KDE") {
+ $Type = "KDE";
+ next;
+ }
+ foreach $cr (@CatsRemove) {
+ next CF if ($cf =~ /^$cr$/);
+ }
+ $Cats = "$Cats$cf;";
+ }
+ } elsif (/^Type=(.*)$/) {
+ if ($1 ne "Application") {
+ $Name = "";
+ last;
+ }
+ }
+ if ($Nam1 || $Nam2 || $Nam3) {
+ if ($Nam1) { $Name = $Nam1; }
+ elsif ($Nam2) { $Name = $Nam2; }
+ else { $Name = $Nam3; }
+ $Name = `echo "$Name" | iconv -f UTF-8` if $DoIconv;
+ chomp($Name);
+ }
+ }
+ close FI;
+
+ $Cats =~ s/ +$//;
+ if (!$Name || !$Exec || !$Cats) {
+ printf("Skipped: %-24s %-24s %-20s %-20s %s\n",
+ $f, $Name, $Exec, $Icon, $Cats) if $dbg ge 1;
+ return;
+ }
+
+ # Basename
+ $File = $f; $File =~ s/^.*\///;
+
+ printf("%-24s: %-24s %-20s %-20s %s\n",
+ $File, $Name, $Exec, $Icon, $Cats) if $dbg ge 3;
+
+ if (!$Type) {
+ if ($File =~ /^gnome/) {
+ $Type = "GNOME";
+ } elsif ($File =~ /^kde/) {
+ $Type = "KDE";
+ } else {
+ $Type = "Other";
+ }
+ }
+
+ $Namx = "$Name-$N"; # Make key unique
+ $Namx =~ tr/A-Z/a-z/; # To lower case (for sorting)
+ $Exec =~ s/\s*%(f|F|i|k|m|n|N|u|U|v)//g; # Strip unwanted args
+ $Exec =~ s/\s*-\w+\s*"%c"//g; # Strip option with caption
+# $Exec =~ s/"%c"/'$Name'/g; # Alternatively - Substitute caption
+ $File{$Namx} = $File;
+ $Name{$Namx} = $Name;
+ $Exec{$Namx} = $Exec;
+ $Icon{$Namx} = $Icon;
+ $Cats{$Namx} = $Cats;
+ $Type{$Namx} = $Type;
+}
+
+# Process all .desktop files in a directory
+sub ProcessDir {
+ local $d = shift;
+ local $dx = shift;
+ local $t = shift;
+ local @l;
+ local $f;
+
+ @l = grep /\.desktop$/, ReadDir($d);
+ foreach $f (@l) {
+ $f = "$d/$f";
+ print "- File $f\n" if $dbg ge 2;
+ ProcessFile("$f", "$dx", "$t");
+ }
+}
+
+# Process old style GNOME/KDE directories
+sub ProcessOldStyle {
+ local $t = shift;
+ local $dl = shift;
+ local $d, $d2;
+ local @d2l;
+
+ foreach $d (split(':', $dl)) {
+ print "Processing directory: $d\n" if $dbg ge 1;
+ if (! -d "$d") {
+ print "- Not found\n" if $dbg ge 1;
+ next;
+ }
+ @d2l = grep !/^\./, ReadDir($d);
+ foreach $d2 (@d2l) {
+ print " Subdir: $d/$d2\n" if $dbg ge 1;
+ next unless -d "$d/$d2";
+ ProcessDir("$d/$d2", "$d2", "$t");
+ }
+ }
+}
+
+# Find that $#@! thing
+sub FindIcon {
+ local $f = shift;
+ local $x = "x";
+
+ return $f if (! $f);
+
+ return $f if (-f $f);
+
+ foreach $d (split(':', $IconDirs)) {
+ $i = "$d/$f";
+ unless (-f $i) {
+ next if ($f =~ /\.png$/);
+ $i = "$i.png";
+ next unless -f $i;
+ }
+ return $i;
+ }
+
+ foreach $d (split(':', $IconDirs2)) {
+ next unless (-d "$d");
+ foreach $t (split(':', $Themes)) {
+ next unless (-d "$d/$t");
+ foreach $s (split(':', "48:32:24:16")) {
+ $S = "$d/$t/$s$x$s";
+ next unless (-d "$S");
+ if ($f =~ /^stock/) {
+ $i = "$S/stock/*/$f.png";
+ $ii = glob("$i");
+ print "Testing $i\n" if $dbg >= 2;
+ return $ii if (-f $ii);
+ } else {
+ foreach $u (split(':', $IconCats)) {
+ next unless (-d "$S/$u");
+ $i = "$S/$u/$f";
+ if ($f =~ /\.png|\.xpm$/) {
+ print "Testing $i\n" if $dbg >= 2;
+ return $i if (-f $i);
+ } else {
+ $ii = "$i.png";
+ print "Testing $ii\n" if $dbg >= 2;
+ return $ii if (-f $ii);
+ $ii = "$i.xpm";
+ print "Testing $ii\n" if $dbg >= 2;
+ return $ii if (-f $ii);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return $f;
+}
+
+# Make the Epplets menu
+sub MakeEppsMenu {
+ local $f = shift;
+ local $d;
+ local %done;
+ open(FD, ">$EdirMenus/$f");
+ print FD "\"Enlightenment Epplets\"\n";
+ foreach $d (split(':', $ENV{'PATH'})) {
+ next unless -d $d;
+ next if ($done{$d});
+ $done{$d} = 1;
+ print "Looking for epplets in $d\n" if $dbg ge 1;
+ @el = grep /\.epplet$/, ReadDir($d);
+ foreach $e (@el) {
+ $e =~ s/\.epplet$//;
+ $i = "$EdirRoot/epplet_icons/$e.icon";
+ print FD "\"$e\" \"$i\" exec \"$d/$e.epplet\"\n";
+ }
+ }
+ close(FD);
+}
+
+# Make the menu for a given app type
+sub MakeAppsMenu {
+ local $type = shift;
+ local %menus;
+ local $c, $k, $dir;
+
+ $dir = "$EdirMenus/menus_$type";
+ $mdir = "menus_$type";
+ print "Generating Menu: $type in $dir\n" if $dbg ge 1;
+ MkDir($dir);
+
+ # Sort the apps into categories
+ foreach $k (sort(keys(%Name))) {
+ next if ($Type{$k} ne $type);
+ $c = $Cats{$k};
+ $c =~ s/;.*$//;
+# $menus{$c} = $k;
+ push(@{$menus{$c}}, $k);
+ }
+
+ # Make top- and sub-menus
+ open(FTopM, ">$dir/index.menu") or die "*** Couldn't create $dir/index.menu\n";
+ print FTopM "\"$type Menu\"\n";
+ foreach $m (sort(keys(%menus))) {
+ open(FSubM, ">$dir/$m.menu") or die "*** Couldn't create $dir/$m.menu\n";
+ print "- Submenu: $m\n" if $dbg ge 2;
+ print FTopM "\"$m\" \"\" menu \"$mdir/$m.menu\"\n";
+ print FSubM "\"$m\"\n";
+ foreach $k (sort(@{$menus{$m}})) {
+ print " - Item: $k\n" if $dbg ge 2;
+ $icon = FindIcon($Icon{$k});
+ printf FSubM "\"%s\" \"%s\" exec \"%s\"\n",
+ $Name{$k}, $icon, $Exec{$k};
+ }
+ close(FSubM);
+ }
+ close(FTopM);
+}
+
+# Return list of files in dir
+sub ReadDir {
+ local $dir = shift;
+ local @dirs;
+ if (!opendir DH, $dir) { print "*** Could not open: $dir\n"; return 0; }
+ @dirs = readdir DH;
+ closedir DH;
+ return @dirs;
+}
+
+# Close all windows named "Message" (we assume they are E dialogs)
+sub CloseMessageWindows {
+ system("eesh -e 'wop Message* close' >/dev/null");
+}
+
+
+##############################################################################
+# Here we go
+##############################################################################
+$N = 0;
+
+CloseMessageWindows();
+system("eesh -e \"dialog_ok Menus are being generated... Please Wait.\"");
+
+# Process old style GNOME directories
+ProcessOldStyle("GNOME", "$OldGnomeDirs");
+
+# Process old style KDE directories
+ProcessOldStyle("KDE", "$OldKdeDirs");
+
+# Process new style (GNOME2, KDE2/3) directories
+foreach $d (split(':', $AppDirs)) {
+ print "Processing directory: $d\n" if $dbg ge 1;
+ if (! -d $d) {
+ print "- Not found\n" if $dbg ge 1;
+ next;
+ }
+ ProcessDir($d);
+}
+
+# Make menu dir and scaled icon dir
+MkDir("$EdirMenus");
+
+# Make the menus
+MakeMenu("file.menu", \@MainMenu);
+MakeMenu("user_apps.menu", \@UserAppsMenu);
+MakeEppsMenu("epplets.menu");
+MakeAppsMenu("GNOME");
+MakeAppsMenu("KDE");
+MakeAppsMenu("Other");
+
+CloseMessageWindows();
+system("eesh -e 'menus reload'");
+system("eesh -e 'dialog_ok Menu generation complete.'");
--- /dev/null
+#!/bin/sh
+#
+# Default script for e16 session start/restart/stop management
+#
+# Assuming misc.session.enable_script is set and misc.session.script
+# points to this script it will be called with parameter
+#
+# - "init" first time an X-session (with e16) starts
+# - "start" every time e16 (re)starts
+# - "stop" when e16 exits without restarting
+#
+# On init, start, and stop the script will run any executable found in
+# ~/.e16/Init/, ~/.e16/Start/, and ~/.e16/Stop/, respectively.
+# These executables do not have to exit as they are called with '&' from here.
+#
+# NOTE:
+# In multi-display/screen setups the DISPLAY environment variable can be used
+# to differentiate.
+#
+
+#echo $DISPLAY
+
+RunApps() {
+ local d;
+
+ d="$ECONFDIR/$1"
+ test -d "$d" || return
+
+ for f in "$d"/*
+ do
+ if [ -x "$f" ]; then
+# echo $f
+ case "$f" in
+ *~) # Assume this is crap - skip
+ ;;
+ *.sh) # Scripts are executed in foreground
+ "$f"
+ ;;
+ *) # Anything else is executed in background
+ "$f" &
+ ;;
+ esac
+ fi
+ done
+}
+
+
+case "$1" in
+init)
+ RunApps Init
+ ;;
+start)
+ RunApps Start
+ ;;
+stop)
+ RunApps Stop
+ ;;
+esac
--- /dev/null
+/*****************************************************************************/
+/* Enlightenment - The Window Manager that dares to do what others don't */
+/*****************************************************************************/
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "config.h"
+
+#include "alert.h"
+#include "edebug.h"
+#include "lang.h"
+#include "sounds.h"
+#include "util.h"
+
+#include <X11/X.h>
+
+#include "xtypes.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#define FILEPATH_LEN_MAX 4096
+
+#ifndef MAX
+#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+
+#define IN_RANGE(a, b, range) \
+ ((((a) > (b)) && ((a) - (b) <= (range))) || \
+ (((a) <= (b)) && ((b) - (a) <= (range))))
+
+#define IN_ABOVE(a, b, range) \
+ (((a) >= (b)) && ((a) - (b) <= (range)))
+
+#define IN_BELOW(a, b, range) \
+ (((a) <= (b)) && ((b) - (a) <= (range)))
+
+#define SPANS_COMMON(x1, w1, x2, w2) \
+ (!((((x2) + (w2)) <= (x1)) || ((x2) >= ((x1) + (w1)))))
+
+#define STATE_NORMAL 0
+#define STATE_HILITED 1
+#define STATE_CLICKED 2
+#define STATE_DISABLED 3
+
+#define FLAG_BUTTON 0
+#define FLAG_TITLE 1
+#define FLAG_MINIICON 2
+#define FLAG_FIXED 4
+#define FLAG_FIXED_HORIZ 8
+#define FLAG_FIXED_VERT 16
+
+#define MODE_FOCUS_POINTER 0
+#define MODE_FOCUS_SLOPPY 1
+#define MODE_FOCUS_CLICK 2
+
+#define EDGE_FLIP_OFF 0
+#define EDGE_FLIP_ON 1
+#define EDGE_FLIP_MOVE 2
+
+#define DOCK_LEFT 0
+#define DOCK_RIGHT 1
+#define DOCK_UP 2
+#define DOCK_DOWN 3
+
+#define ICON_LEFT 0
+#define ICON_RIGHT 1
+#define ICON_UP 2
+#define ICON_DOWN 3
+
+#define MODE_NONE 0
+#define MODE_MOVE_PENDING 1
+#define MODE_MOVE 2
+#define MODE_RESIZE 3
+#define MODE_RESIZE_H 4
+#define MODE_RESIZE_V 5
+#define MODE_DESKDRAG 6
+#define MODE_BUTTONDRAG 7
+#define MODE_DESKRAY 8
+#define MODE_PAGER_DRAG_PENDING 9
+#define MODE_PAGER_DRAG 10
+
+#define EVENT_MOUSE_DOWN 0
+#define EVENT_MOUSE_UP 1
+#define EVENT_MOUSE_ENTER 2
+#define EVENT_MOUSE_LEAVE 3
+#define EVENT_KEY_DOWN 4
+#define EVENT_KEY_UP 5
+#define EVENT_DOUBLE_DOWN 6
+#define EVENT_FOCUS_IN 7
+#define EVENT_FOCUS_OUT 8
+
+/* Server extensions */
+#define XEXT_SHAPE 0
+#define XEXT_SYNC 1
+#define XEXT_SCRSAVER 2
+#define XEXT_RANDR 3
+#define XEXT_COMPOSITE 4
+#define XEXT_DAMAGE 5
+#define XEXT_FIXES 6
+#define XEXT_RENDER 7
+#define XEXT_GLX 8
+
+#define XEXT_CM_ALL 16
+
+#define XEXT_AVAILABLE(ext) (Mode.server.extensions & (1 << ext))
+
+/*
+ * Types
+ */
+#include "etypes.h"
+
+/* Configuration parameters */
+typedef struct {
+ struct {
+ unsigned int step; /* Animation time step, ms */
+ } animation;
+ struct {
+ char enable;
+ int delay; /* milliseconds */
+ } autoraise;
+ struct {
+ char hiquality;
+ char user;
+ char no_scan;
+ int timeout;
+ } backgrounds;
+ struct {
+ int move_resistance;
+ } buttons;
+ struct {
+ unsigned int num;
+ int dragdir;
+ int dragbar_width;
+ int dragbar_length;
+ int dragbar_ordering;
+ char desks_wraparound;
+ char slidein;
+ int slidespeed;
+ int areas_nx;
+ int areas_ny;
+ char areas_wraparound;
+ int edge_flip_mode;
+ int edge_flip_resistance;
+ } desks;
+ struct {
+ char headers;
+ char button_image;
+ } dialogs;
+ struct {
+ char enable; /* wmdockapp only */
+ char sticky; /* Make dockapps sticky by default */
+ int dirmode;
+ int startx;
+ int starty;
+ } dock;
+ struct {
+ int mode;
+ char clickraises;
+ char transientsfollowleader;
+ char switchfortransientmap;
+ char all_new_windows_get_focus;
+ char new_transients_get_focus;
+ char new_transients_get_focus_if_group_focused;
+ char raise_on_next;
+ char warp_on_next;
+ char warp_always;
+ } focus;
+ struct {
+ char set_xroot_info_on_root_window;
+ } hints;
+ struct {
+ char animate;
+ char onscreen;
+ char warp;
+ char show_icons;
+ int icon_size;
+ struct {
+ KeySym left, right, up, down, escape, ret;
+ } key;
+ } menus;
+ struct {
+ int mode_move;
+ int mode_resize;
+ int mode_info;
+ int mode_maximize_default;
+ unsigned int color;
+ char avoid_server_grab;
+ char update_while_moving;
+ char enable_sync_request;
+ char dragbar_nocover;
+ } movres;
+ struct {
+ int movres;
+ int menus;
+ int tooltips;
+ int focused;
+ int unfocused;
+ } opacity;
+ struct {
+ char manual;
+ char manual_mouse_pointer;
+ char center_if_desk_full;
+ char ignore_struts;
+ char raise_fullscreen;
+ char slidein;
+ char cleanupslide;
+ int slidemode;
+ int slidespeedmap;
+ int slidespeedcleanup;
+#ifdef USE_XINERAMA_no /* Not implemented */
+ char extra_head; /* Not used */
+#endif
+ } place;
+ struct {
+ char enable_script;
+ char *script;
+ char enable_logout_dialog;
+ char enable_reboot_halt;
+ char *cmd_reboot;
+ char *cmd_halt;
+ } session;
+ struct {
+ char animate;
+ int speed;
+ } shading;
+ struct {
+ char enable;
+ int edge_snap_dist;
+ int screen_snap_dist;
+ } snap;
+ struct {
+ char firsttime;
+ char animate;
+ } startup;
+ struct {
+ char use_theme_font_cfg;
+ char use_alt_font_cfg;
+ char *name;
+ char *extra_path;
+ char *font_cfg;
+ } theme;
+#ifdef ENABLE_THEME_TRANSPARENCY
+ struct {
+ int alpha;
+ int border;
+ int widget;
+ int iconbox;
+ int menu;
+ int menu_item;
+ int tooltip;
+ int dialog;
+ int hilight;
+ int pager;
+ int warplist;
+ } trans;
+#endif
+ struct {
+ char enable;
+ char showsticky;
+ char showshaded;
+ char showiconified;
+ char showalldesks;
+ char warpfocused;
+ char raise_on_select;
+ char warp_on_select;
+ int icon_mode;
+ } warplist;
+
+ struct {
+ char argb_internal_objects;
+ char argb_internal_clients;
+ char argb_clients;
+ char argb_clients_inherit_attr;
+ int image_cache_size;
+ int mask_alpha_threshold;
+ char enable_startup_id;
+ char use_render_for_scaling;
+ char bindings_reload;
+ unsigned int no_sync_mask;
+ } testing;
+
+ char autosave;
+ char memory_paranoia;
+ char save_under;
+ char difftime;
+} EConf;
+
+typedef struct {
+ struct {
+ unsigned int startup_id;
+ } apps;
+ struct {
+ char force_scan;
+ } backgrounds;
+ struct {
+ char *name;
+ char *dir;
+ char *cache_dir;
+ } conf;
+ struct {
+ char dummy; /* Prevent empty struct */
+#ifdef USE_XINERAMA
+ char xinerama_active;
+#endif
+#if USE_XSYNC
+ XID server_time;
+#endif
+ } display;
+ struct {
+ Time time;
+ int cx, cy; /* Any detected pointer movement */
+ int mx, my; /* Motion event */
+ int px, py; /* Previous motion event */
+ Time last_btime;
+ Window last_bpress;
+ Window last_bpress2;
+ unsigned int last_button;
+ unsigned int last_keycode;
+ unsigned int last_keystate;
+ char double_click;
+ char on_screen;
+#if USE_COMPOSITE
+ unsigned int damage_count;
+#endif
+ } events;
+ struct {
+ char pointer_grab_active;
+ Window pointer_grab_window;
+ } grabs;
+ struct {
+ const char *lang;
+ char utf8_int; /* Use UTF-8 internally */
+ char utf8_loc; /* Locale is UTF-8 */
+ } locale;
+ struct {
+ unsigned int mod_key_mask;
+ unsigned int mod_combos[8];
+ } masks;
+ struct {
+ char check; /* Avoid losing windows offscreen */
+ char swap;
+ int swapcoord_x, swapcoord_y;
+ } move;
+ struct {
+ signed char enable_features;
+ char doing_manual;
+ char doing_slide;
+ } place;
+ struct {
+ int w_old;
+ int h_old;
+ } screen;
+ struct {
+ unsigned int extensions;
+ } server;
+ struct {
+ Pixmap ext_pmap;
+ char ext_pmap_valid;
+ } root;
+ struct {
+ char *paths;
+ char *path;
+ } theme;
+ struct {
+ char *exec_name; /* argv[0] */
+ char master; /* We are the master E */
+ char single; /* No slaves */
+ char window; /* Running in virtual root window */
+ pid_t pid;
+ int master_screen;
+ char session_start;
+ char startup;
+ char restart;
+ char exiting;
+ char in_signal_handler;
+ char exit_now;
+ char save_ok;
+ char coredump;
+ int win_w, win_h;
+ int exit_mode;
+ char *exit_param;
+ int child_count;
+ pid_t *children;
+ char *machine_name;
+ } wm;
+ int mode;
+ int op_source;
+ char action_inhibit;
+ EWin *focuswin;
+ EWin *mouse_over_ewin;
+ EWin *context_ewin;
+ Colormap current_cmap;
+ Win context_win;
+ char constrained;
+ char nogroup;
+ char keybinds_changed;
+ char showing_desktop;
+ Window button_proxy_win;
+ char firsttime;
+ char debug_exit;
+} EMode;
+
+/*
+ * Function prototypes
+ */
+
+/* about.c */
+void About(void);
+
+/* actions.c */
+#define EXEC_SET_LANG 0x01
+#define EXEC_SET_STARTUP_ID 0x02
+int execApplication(const char *params, int flags);
+void Espawn(int argc, char **argv);
+void EspawnCmd(const char *cmd);
+
+/* config.c */
+void SkipTillEnd(FILE * ConfigFile);
+char *GetLine(char *s, int size, FILE * f);
+int ConfigParseline1(char *str, char *s2, char **p2, char **p3);
+void ConfigParseError(const char *where, const char *line);
+void ConfigAlertLoad(const char *txt);
+char *FindFile(const char *file, const char *themepath);
+char *ThemeFileFind(const char *file);
+char *ConfigFileFind(const char *name, const char *themepath,
+ int pp);
+int ConfigFileLoad(const char *name, const char *themepath,
+ int (*parse) (FILE * fs), int preparse);
+int ConfigFileRead(FILE * fs);
+int ThemeConfigLoad(void);
+
+/* dialog.c */
+#if ENABLE_DIALOGS
+void __PRINTF_2__ DialogOK(const char *title, const char *fmt, ...);
+void DialogOKstr(const char *title, const char *txt);
+#else
+#define DialogOK(title, fmt, ...) do {} while(0)
+#define DialogOKstr(title, fmt) do {} while(0)
+#endif /* ENABLE_DIALOGS */
+
+/* econfig.c */
+void ConfigurationLoad(void);
+void ConfigurationSave(void);
+void ConfigurationSet(const char *params);
+void ConfigurationShow(const char *params);
+
+/* edge.c */
+void EdgeCheckMotion(int x, int y);
+void EdgeWindowsShow(void);
+void EdgeWindowsHide(void);
+
+/* extinitwin.c */
+Window ExtInitWinCreate(void);
+void ExtInitWinSet(Window win);
+Window ExtInitWinGet(void);
+void ExtInitWinKill(void);
+
+/* fonts.c */
+void FontConfigLoad(void);
+void FontConfigUnload(void);
+const char *FontLookup(const char *name);
+
+/* handlers.c */
+void SignalsSetup(void);
+void SignalsRestore(void);
+
+/* main.c */
+__NORETURN__ void EExit(int exitcode);
+__EXPORT__ const char *EDirRoot(void);
+const char *EDirBin(void);
+const char *EDirUser(void);
+const char *EDirUserCache(void);
+void EDirMake(const char *base, const char *name);
+const char *EGetSavePrefix(void);
+void Etmp(char *s);
+
+/* misc.c */
+void Quicksort(void **a, int l, int r,
+ int (*CompareFunc) (void *d1, void *d2));
+void ETimedLoopInit(int k1, int k2, int speed);
+int ETimedLoopNext(void);
+
+/* mod-misc.c */
+void autosave(void);
+
+/* regex.c */
+int matchregexp(const char *rx, const char *s);
+
+/* setup.c */
+void SetupX(const char *dstr);
+
+/* slideouts.c */
+int SlideoutsConfigLoad(FILE * fs);
+
+/* startup.c */
+void StartupWindowsCreate(void);
+void StartupWindowsOpen(void);
+void StartupBackgroundsDestroy(void);
+
+/* theme.c */
+char *ThemeFind(const char *theme);
+char *ThemePathName(const char *path);
+void ThemePathFind(void);
+char **ThemesList(int *num);
+
+/*
+ * Global vars
+ */
+extern const char e_wm_name[];
+extern const char e_wm_version[];
+__EXPORT__ extern EConf Conf;
+__EXPORT__ extern EMode Mode;
--- /dev/null
+SUBDIRS =
+
+EXTRA_DIST = gnome.c eglx.c eglx.h glwin.c ecompmgr.c ecompmgr.h magwin.c snprintf.c
+
+bin_PROGRAMS = e16
+
+if ENABLE_GNOME
+SRCS_GNOME = gnome.c
+endif
+if ENABLE_GLX
+SRCS_GLX = eglx.c eglx.h glwin.c
+endif
+if ENABLE_COMPOSITE
+SRCS_ECOMPMGR = ecompmgr.c ecompmgr.h magwin.c
+endif
+if ENABLE_DBUS
+SRCS_DBUS = edbus.c edbus.h
+endif
+if USE_ESNPRINTF
+SRCS_SNPRINTF = snprintf.c
+endif
+
+e16_SOURCES = \
+ E.h \
+ about.c \
+ aclass.c aclass.h \
+ actions.c \
+ alert.c alert.h \
+ arrange.c \
+ backgrounds.c backgrounds.h \
+ borders.c borders.h \
+ buttons.c buttons.h \
+ comms.c comms.h \
+ conf.h \
+ config.c \
+ container.c container.h \
+ coords.c \
+ cursors.c cursors.h \
+ desktops.c desktops.h \
+ dialog.c dialog.h \
+ dock.c \
+ draw.c \
+ e16-ecore_hints.c e16-ecore_hints.h \
+ e16-ecore_list.c e16-ecore_list.h \
+ econfig.c econfig.h \
+ edebug.h \
+ edge.c \
+ eimage.c eimage.h \
+ emodule.c emodule.h \
+ eobj.c eobj.h \
+ etypes.h \
+ events.c events.h \
+ ewins.c ewins.h \
+ ewin-ops.c ewin-ops.h \
+ ewmh.c \
+ extinitwin.c \
+ file.c file.h \
+ finders.c \
+ focus.c focus.h \
+ fonts.c \
+ fx.c \
+ grabs.c grabs.h \
+ groups.c groups.h \
+ handlers.c \
+ hints.c hints.h \
+ hiwin.c hiwin.h \
+ icccm.c \
+ iclass.c iclass.h \
+ iconify.c \
+ icons.c icons.h \
+ ipc.c ipc.h \
+ lang.c lang.h \
+ main.c \
+ memory.c \
+ menus.c menus.h \
+ menus-misc.c \
+ misc.c \
+ mod-misc.c \
+ mod-trans.c \
+ moveresize.c \
+ mwm.c \
+ pager.c \
+ parse.c parse.h \
+ piximg.c piximg.h \
+ progress.c progress.h \
+ regex.c \
+ screen.c screen.h \
+ session.c session.h \
+ settings.c settings.h \
+ setup.c \
+ size.c \
+ slideout.c \
+ snaps.c snaps.h \
+ sound.c sound.h \
+ sounds.h \
+ stacking.c \
+ startup.c \
+ string.c \
+ systray.c \
+ tclass.c tclass.h \
+ text.c \
+ theme.c \
+ timers.c timers.h \
+ tooltips.c tooltips.h \
+ user.c user.h \
+ util.h \
+ warp.c \
+ windowmatch.c windowmatch.h \
+ x.c xwin.h \
+ xtypes.h \
+ zoom.c \
+ $(MODULE_SRCS) \
+ $(SRCS_GNOME) \
+ $(SRCS_GLX) \
+ $(SRCS_ECOMPMGR) \
+ $(SRCS_DBUS) \
+ $(SRCS_SNPRINTF)
+
+e16_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
+ $(ECORE_CFLAGS) \
+ $(MODULE_CFLAGS) \
+ $(IMLIB2_CFLAGS) \
+ $(DBUS_CFLAGS) \
+ $(X_CFLAGS) $(CWARNFLAGS) \
+ -D LOCALEDIR=\"$(datadir)/locale\" \
+ -D ENLIGHTENMENT_BIN=\"$(bindir)\" \
+ -D ENLIGHTENMENT_LIB=\"$(pkglibdir)\" \
+ -D ENLIGHTENMENT_ROOT=\"$(pkgdatadir)\"
+
+LDADD = \
+ $(LTLIBINTL) \
+ $(LTLIBICONV) \
+ $(ECORE_LIBS) \
+ $(IMLIB2_LIBS) \
+ $(MODULE_LIBS) \
+ $(GLX_LIBS) \
+ $(X_LIBS) \
+ $(SM_LIBS) \
+ $(XINERAMA_LIBS) \
+ $(X_EXTRA_LIBS) \
+ $(E_X_LIBS) \
+ $(DBUS_LIBS) \
+ -lX11 -lm
+
+if BUILD_MODULES
+
+e16_LDFLAGS = -export-dynamic
+
+libe16dir = $(pkglibdir)
+
+libe16_LTLIBRARIES = $(LIBSND_ESD) $(LIBSND_PA) $(LIBFNT_IFT) $(LIBFNT_XFT) $(LIBFNT_PANGO)
+
+if USE_LIBESD
+LIBSND_ESD = libsound_esd.la
+libsound_esd_la_SOURCES = sound_esd.c sound_load.c
+libsound_esd_la_CFLAGS = $(ESD_CFLAGS) $(CWARNFLAGS)
+libsound_esd_la_LIBADD = $(ESD_LIBS)
+libsound_esd_la_LDFLAGS = -module -avoid-version
+endif
+
+if USE_LIBPA
+LIBSND_PA = libsound_pa.la
+libsound_pa_la_SOURCES = sound_pa.c sound_load.c
+libsound_pa_la_CFLAGS = $(PA_CFLAGS) $(CWARNFLAGS)
+libsound_pa_la_LIBADD = $(PA_LIBS)
+libsound_pa_la_LDFLAGS = -module -avoid-version
+endif
+
+LIBFNT_IFT = libfont_ift.la
+libfont_ift_la_SOURCES = ttfont.c
+libfont_ift_la_CFLAGS = $(IMLIB2_CFLAGS) $(CWARNFLAGS)
+libfont_ift_la_LIBADD = $(IMLIB2_LIBS)
+libfont_ift_la_LDFLAGS = -module -avoid-version
+
+if USE_LIBXFT
+LIBFNT_XFT = libfont_xft.la
+libfont_xft_la_SOURCES = text_xft.c
+libfont_xft_la_CFLAGS = $(XFT_CFLAGS) $(CWARNFLAGS)
+libfont_xft_la_LIBADD = $(XFT_LIBS)
+libfont_xft_la_LDFLAGS = -module -avoid-version
+endif
+
+if USE_LIBPANGO
+LIBFNT_PANGO = libfont_pango.la
+libfont_pango_la_SOURCES = text_pango.c
+libfont_pango_la_CFLAGS = $(PANGO_CFLAGS) $(CWARNFLAGS)
+libfont_pango_la_LIBADD = $(PANGO_LIBS) libfont_xft.la
+libfont_pango_la_LDFLAGS = -module -avoid-version
+endif
+
+else
+
+MODULE_SRCS = sound_esd.c sound_pa.c sound_load.c ttfont.c text_xft.c text_pango.c
+MODULE_LIBS = $(ESD_LIBS) $(PA_LIBS) $(PANGO_LIBS) $(XFT_LIBS)
+MODULE_CFLAGS = $(ESD_CFLAGS) $(PA_CFLAGS) $(PANGO_CFLAGS) $(XFT_CFLAGS)
+
+endif
+
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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@
+bin_PROGRAMS = e16$(EXEEXT)
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_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 = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libe16dir)" "$(DESTDIR)$(bindir)"
+libe16LTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(libe16_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+@BUILD_MODULES_TRUE@libfont_ift_la_DEPENDENCIES = \
+@BUILD_MODULES_TRUE@ $(am__DEPENDENCIES_1)
+am__libfont_ift_la_SOURCES_DIST = ttfont.c
+@BUILD_MODULES_TRUE@am_libfont_ift_la_OBJECTS = \
+@BUILD_MODULES_TRUE@ libfont_ift_la-ttfont.lo
+libfont_ift_la_OBJECTS = $(am_libfont_ift_la_OBJECTS)
+libfont_ift_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libfont_ift_la_CFLAGS) \
+ $(CFLAGS) $(libfont_ift_la_LDFLAGS) $(LDFLAGS) -o $@
+@BUILD_MODULES_TRUE@am_libfont_ift_la_rpath = -rpath $(libe16dir)
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@libfont_pango_la_DEPENDENCIES = \
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@ $(am__DEPENDENCIES_1) \
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@ libfont_xft.la
+am__libfont_pango_la_SOURCES_DIST = text_pango.c
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@am_libfont_pango_la_OBJECTS = libfont_pango_la-text_pango.lo
+libfont_pango_la_OBJECTS = $(am_libfont_pango_la_OBJECTS)
+libfont_pango_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libfont_pango_la_CFLAGS) \
+ $(CFLAGS) $(libfont_pango_la_LDFLAGS) $(LDFLAGS) -o $@
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@am_libfont_pango_la_rpath = \
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@ -rpath $(libe16dir)
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@libfont_xft_la_DEPENDENCIES = \
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@ $(am__DEPENDENCIES_1)
+am__libfont_xft_la_SOURCES_DIST = text_xft.c
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@am_libfont_xft_la_OBJECTS = libfont_xft_la-text_xft.lo
+libfont_xft_la_OBJECTS = $(am_libfont_xft_la_OBJECTS)
+libfont_xft_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libfont_xft_la_CFLAGS) \
+ $(CFLAGS) $(libfont_xft_la_LDFLAGS) $(LDFLAGS) -o $@
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@am_libfont_xft_la_rpath = -rpath \
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@ $(libe16dir)
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@libsound_esd_la_DEPENDENCIES = \
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@ $(am__DEPENDENCIES_1)
+am__libsound_esd_la_SOURCES_DIST = sound_esd.c sound_load.c
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@am_libsound_esd_la_OBJECTS = libsound_esd_la-sound_esd.lo \
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@ libsound_esd_la-sound_load.lo
+libsound_esd_la_OBJECTS = $(am_libsound_esd_la_OBJECTS)
+libsound_esd_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsound_esd_la_CFLAGS) \
+ $(CFLAGS) $(libsound_esd_la_LDFLAGS) $(LDFLAGS) -o $@
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@am_libsound_esd_la_rpath = \
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@ -rpath $(libe16dir)
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@libsound_pa_la_DEPENDENCIES = \
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@ $(am__DEPENDENCIES_1)
+am__libsound_pa_la_SOURCES_DIST = sound_pa.c sound_load.c
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@am_libsound_pa_la_OBJECTS = libsound_pa_la-sound_pa.lo \
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@ libsound_pa_la-sound_load.lo
+libsound_pa_la_OBJECTS = $(am_libsound_pa_la_OBJECTS)
+libsound_pa_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsound_pa_la_CFLAGS) \
+ $(CFLAGS) $(libsound_pa_la_LDFLAGS) $(LDFLAGS) -o $@
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@am_libsound_pa_la_rpath = -rpath \
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@ $(libe16dir)
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am__e16_SOURCES_DIST = E.h about.c aclass.c aclass.h actions.c alert.c \
+ alert.h arrange.c backgrounds.c backgrounds.h borders.c \
+ borders.h buttons.c buttons.h comms.c comms.h conf.h config.c \
+ container.c container.h coords.c cursors.c cursors.h \
+ desktops.c desktops.h dialog.c dialog.h dock.c draw.c \
+ e16-ecore_hints.c e16-ecore_hints.h e16-ecore_list.c \
+ e16-ecore_list.h econfig.c econfig.h edebug.h edge.c eimage.c \
+ eimage.h emodule.c emodule.h eobj.c eobj.h etypes.h events.c \
+ events.h ewins.c ewins.h ewin-ops.c ewin-ops.h ewmh.c \
+ extinitwin.c file.c file.h finders.c focus.c focus.h fonts.c \
+ fx.c grabs.c grabs.h groups.c groups.h handlers.c hints.c \
+ hints.h hiwin.c hiwin.h icccm.c iclass.c iclass.h iconify.c \
+ icons.c icons.h ipc.c ipc.h lang.c lang.h main.c memory.c \
+ menus.c menus.h menus-misc.c misc.c mod-misc.c mod-trans.c \
+ moveresize.c mwm.c pager.c parse.c parse.h piximg.c piximg.h \
+ progress.c progress.h regex.c screen.c screen.h session.c \
+ session.h settings.c settings.h setup.c size.c slideout.c \
+ snaps.c snaps.h sound.c sound.h sounds.h stacking.c startup.c \
+ string.c systray.c tclass.c tclass.h text.c theme.c timers.c \
+ timers.h tooltips.c tooltips.h user.c user.h util.h warp.c \
+ windowmatch.c windowmatch.h x.c xwin.h xtypes.h zoom.c \
+ sound_esd.c sound_pa.c sound_load.c ttfont.c text_xft.c \
+ text_pango.c gnome.c eglx.c eglx.h glwin.c ecompmgr.c \
+ ecompmgr.h magwin.c edbus.c edbus.h snprintf.c
+@BUILD_MODULES_FALSE@am__objects_1 = e16-sound_esd.$(OBJEXT) \
+@BUILD_MODULES_FALSE@ e16-sound_pa.$(OBJEXT) \
+@BUILD_MODULES_FALSE@ e16-sound_load.$(OBJEXT) \
+@BUILD_MODULES_FALSE@ e16-ttfont.$(OBJEXT) \
+@BUILD_MODULES_FALSE@ e16-text_xft.$(OBJEXT) \
+@BUILD_MODULES_FALSE@ e16-text_pango.$(OBJEXT)
+@ENABLE_GNOME_TRUE@am__objects_2 = e16-gnome.$(OBJEXT)
+@ENABLE_GLX_TRUE@am__objects_3 = e16-eglx.$(OBJEXT) \
+@ENABLE_GLX_TRUE@ e16-glwin.$(OBJEXT)
+@ENABLE_COMPOSITE_TRUE@am__objects_4 = e16-ecompmgr.$(OBJEXT) \
+@ENABLE_COMPOSITE_TRUE@ e16-magwin.$(OBJEXT)
+@ENABLE_DBUS_TRUE@am__objects_5 = e16-edbus.$(OBJEXT)
+@USE_ESNPRINTF_TRUE@am__objects_6 = e16-snprintf.$(OBJEXT)
+am_e16_OBJECTS = e16-about.$(OBJEXT) e16-aclass.$(OBJEXT) \
+ e16-actions.$(OBJEXT) e16-alert.$(OBJEXT) \
+ e16-arrange.$(OBJEXT) e16-backgrounds.$(OBJEXT) \
+ e16-borders.$(OBJEXT) e16-buttons.$(OBJEXT) \
+ e16-comms.$(OBJEXT) e16-config.$(OBJEXT) \
+ e16-container.$(OBJEXT) e16-coords.$(OBJEXT) \
+ e16-cursors.$(OBJEXT) e16-desktops.$(OBJEXT) \
+ e16-dialog.$(OBJEXT) e16-dock.$(OBJEXT) e16-draw.$(OBJEXT) \
+ e16-e16-ecore_hints.$(OBJEXT) e16-e16-ecore_list.$(OBJEXT) \
+ e16-econfig.$(OBJEXT) e16-edge.$(OBJEXT) e16-eimage.$(OBJEXT) \
+ e16-emodule.$(OBJEXT) e16-eobj.$(OBJEXT) e16-events.$(OBJEXT) \
+ e16-ewins.$(OBJEXT) e16-ewin-ops.$(OBJEXT) e16-ewmh.$(OBJEXT) \
+ e16-extinitwin.$(OBJEXT) e16-file.$(OBJEXT) \
+ e16-finders.$(OBJEXT) e16-focus.$(OBJEXT) e16-fonts.$(OBJEXT) \
+ e16-fx.$(OBJEXT) e16-grabs.$(OBJEXT) e16-groups.$(OBJEXT) \
+ e16-handlers.$(OBJEXT) e16-hints.$(OBJEXT) e16-hiwin.$(OBJEXT) \
+ e16-icccm.$(OBJEXT) e16-iclass.$(OBJEXT) e16-iconify.$(OBJEXT) \
+ e16-icons.$(OBJEXT) e16-ipc.$(OBJEXT) e16-lang.$(OBJEXT) \
+ e16-main.$(OBJEXT) e16-memory.$(OBJEXT) e16-menus.$(OBJEXT) \
+ e16-menus-misc.$(OBJEXT) e16-misc.$(OBJEXT) \
+ e16-mod-misc.$(OBJEXT) e16-mod-trans.$(OBJEXT) \
+ e16-moveresize.$(OBJEXT) e16-mwm.$(OBJEXT) e16-pager.$(OBJEXT) \
+ e16-parse.$(OBJEXT) e16-piximg.$(OBJEXT) \
+ e16-progress.$(OBJEXT) e16-regex.$(OBJEXT) \
+ e16-screen.$(OBJEXT) e16-session.$(OBJEXT) \
+ e16-settings.$(OBJEXT) e16-setup.$(OBJEXT) e16-size.$(OBJEXT) \
+ e16-slideout.$(OBJEXT) e16-snaps.$(OBJEXT) e16-sound.$(OBJEXT) \
+ e16-stacking.$(OBJEXT) e16-startup.$(OBJEXT) \
+ e16-string.$(OBJEXT) e16-systray.$(OBJEXT) \
+ e16-tclass.$(OBJEXT) e16-text.$(OBJEXT) e16-theme.$(OBJEXT) \
+ e16-timers.$(OBJEXT) e16-tooltips.$(OBJEXT) e16-user.$(OBJEXT) \
+ e16-warp.$(OBJEXT) e16-windowmatch.$(OBJEXT) e16-x.$(OBJEXT) \
+ e16-zoom.$(OBJEXT) $(am__objects_1) $(am__objects_2) \
+ $(am__objects_3) $(am__objects_4) $(am__objects_5) \
+ $(am__objects_6)
+e16_OBJECTS = $(am_e16_OBJECTS)
+e16_LDADD = $(LDADD)
+@BUILD_MODULES_FALSE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) \
+@BUILD_MODULES_FALSE@ $(am__DEPENDENCIES_1) \
+@BUILD_MODULES_FALSE@ $(am__DEPENDENCIES_1) \
+@BUILD_MODULES_FALSE@ $(am__DEPENDENCIES_1)
+e16_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+e16_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(e16_LDFLAGS) \
+ $(LDFLAGS) -o $@
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libfont_ift_la_SOURCES) $(libfont_pango_la_SOURCES) \
+ $(libfont_xft_la_SOURCES) $(libsound_esd_la_SOURCES) \
+ $(libsound_pa_la_SOURCES) $(e16_SOURCES)
+DIST_SOURCES = $(am__libfont_ift_la_SOURCES_DIST) \
+ $(am__libfont_pango_la_SOURCES_DIST) \
+ $(am__libfont_xft_la_SOURCES_DIST) \
+ $(am__libsound_esd_la_SOURCES_DIST) \
+ $(am__libsound_pa_la_SOURCES_DIST) $(am__e16_SOURCES_DIST)
+RECURSIVE_TARGETS = all-recursive check-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 uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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 =
+EXTRA_DIST = gnome.c eglx.c eglx.h glwin.c ecompmgr.c ecompmgr.h magwin.c snprintf.c
+@ENABLE_GNOME_TRUE@SRCS_GNOME = gnome.c
+@ENABLE_GLX_TRUE@SRCS_GLX = eglx.c eglx.h glwin.c
+@ENABLE_COMPOSITE_TRUE@SRCS_ECOMPMGR = ecompmgr.c ecompmgr.h magwin.c
+@ENABLE_DBUS_TRUE@SRCS_DBUS = edbus.c edbus.h
+@USE_ESNPRINTF_TRUE@SRCS_SNPRINTF = snprintf.c
+e16_SOURCES = \
+ E.h \
+ about.c \
+ aclass.c aclass.h \
+ actions.c \
+ alert.c alert.h \
+ arrange.c \
+ backgrounds.c backgrounds.h \
+ borders.c borders.h \
+ buttons.c buttons.h \
+ comms.c comms.h \
+ conf.h \
+ config.c \
+ container.c container.h \
+ coords.c \
+ cursors.c cursors.h \
+ desktops.c desktops.h \
+ dialog.c dialog.h \
+ dock.c \
+ draw.c \
+ e16-ecore_hints.c e16-ecore_hints.h \
+ e16-ecore_list.c e16-ecore_list.h \
+ econfig.c econfig.h \
+ edebug.h \
+ edge.c \
+ eimage.c eimage.h \
+ emodule.c emodule.h \
+ eobj.c eobj.h \
+ etypes.h \
+ events.c events.h \
+ ewins.c ewins.h \
+ ewin-ops.c ewin-ops.h \
+ ewmh.c \
+ extinitwin.c \
+ file.c file.h \
+ finders.c \
+ focus.c focus.h \
+ fonts.c \
+ fx.c \
+ grabs.c grabs.h \
+ groups.c groups.h \
+ handlers.c \
+ hints.c hints.h \
+ hiwin.c hiwin.h \
+ icccm.c \
+ iclass.c iclass.h \
+ iconify.c \
+ icons.c icons.h \
+ ipc.c ipc.h \
+ lang.c lang.h \
+ main.c \
+ memory.c \
+ menus.c menus.h \
+ menus-misc.c \
+ misc.c \
+ mod-misc.c \
+ mod-trans.c \
+ moveresize.c \
+ mwm.c \
+ pager.c \
+ parse.c parse.h \
+ piximg.c piximg.h \
+ progress.c progress.h \
+ regex.c \
+ screen.c screen.h \
+ session.c session.h \
+ settings.c settings.h \
+ setup.c \
+ size.c \
+ slideout.c \
+ snaps.c snaps.h \
+ sound.c sound.h \
+ sounds.h \
+ stacking.c \
+ startup.c \
+ string.c \
+ systray.c \
+ tclass.c tclass.h \
+ text.c \
+ theme.c \
+ timers.c timers.h \
+ tooltips.c tooltips.h \
+ user.c user.h \
+ util.h \
+ warp.c \
+ windowmatch.c windowmatch.h \
+ x.c xwin.h \
+ xtypes.h \
+ zoom.c \
+ $(MODULE_SRCS) \
+ $(SRCS_GNOME) \
+ $(SRCS_GLX) \
+ $(SRCS_ECOMPMGR) \
+ $(SRCS_DBUS) \
+ $(SRCS_SNPRINTF)
+
+e16_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
+ $(ECORE_CFLAGS) \
+ $(MODULE_CFLAGS) \
+ $(IMLIB2_CFLAGS) \
+ $(DBUS_CFLAGS) \
+ $(X_CFLAGS) $(CWARNFLAGS) \
+ -D LOCALEDIR=\"$(datadir)/locale\" \
+ -D ENLIGHTENMENT_BIN=\"$(bindir)\" \
+ -D ENLIGHTENMENT_LIB=\"$(pkglibdir)\" \
+ -D ENLIGHTENMENT_ROOT=\"$(pkgdatadir)\"
+
+LDADD = \
+ $(LTLIBINTL) \
+ $(LTLIBICONV) \
+ $(ECORE_LIBS) \
+ $(IMLIB2_LIBS) \
+ $(MODULE_LIBS) \
+ $(GLX_LIBS) \
+ $(X_LIBS) \
+ $(SM_LIBS) \
+ $(XINERAMA_LIBS) \
+ $(X_EXTRA_LIBS) \
+ $(E_X_LIBS) \
+ $(DBUS_LIBS) \
+ -lX11 -lm
+
+@BUILD_MODULES_TRUE@e16_LDFLAGS = -export-dynamic
+@BUILD_MODULES_TRUE@libe16dir = $(pkglibdir)
+@BUILD_MODULES_TRUE@libe16_LTLIBRARIES = $(LIBSND_ESD) $(LIBSND_PA) $(LIBFNT_IFT) $(LIBFNT_XFT) $(LIBFNT_PANGO)
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@LIBSND_ESD = libsound_esd.la
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@libsound_esd_la_SOURCES = sound_esd.c sound_load.c
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@libsound_esd_la_CFLAGS = $(ESD_CFLAGS) $(CWARNFLAGS)
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@libsound_esd_la_LIBADD = $(ESD_LIBS)
+@BUILD_MODULES_TRUE@@USE_LIBESD_TRUE@libsound_esd_la_LDFLAGS = -module -avoid-version
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@LIBSND_PA = libsound_pa.la
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@libsound_pa_la_SOURCES = sound_pa.c sound_load.c
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@libsound_pa_la_CFLAGS = $(PA_CFLAGS) $(CWARNFLAGS)
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@libsound_pa_la_LIBADD = $(PA_LIBS)
+@BUILD_MODULES_TRUE@@USE_LIBPA_TRUE@libsound_pa_la_LDFLAGS = -module -avoid-version
+@BUILD_MODULES_TRUE@LIBFNT_IFT = libfont_ift.la
+@BUILD_MODULES_TRUE@libfont_ift_la_SOURCES = ttfont.c
+@BUILD_MODULES_TRUE@libfont_ift_la_CFLAGS = $(IMLIB2_CFLAGS) $(CWARNFLAGS)
+@BUILD_MODULES_TRUE@libfont_ift_la_LIBADD = $(IMLIB2_LIBS)
+@BUILD_MODULES_TRUE@libfont_ift_la_LDFLAGS = -module -avoid-version
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@LIBFNT_XFT = libfont_xft.la
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@libfont_xft_la_SOURCES = text_xft.c
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@libfont_xft_la_CFLAGS = $(XFT_CFLAGS) $(CWARNFLAGS)
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@libfont_xft_la_LIBADD = $(XFT_LIBS)
+@BUILD_MODULES_TRUE@@USE_LIBXFT_TRUE@libfont_xft_la_LDFLAGS = -module -avoid-version
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@LIBFNT_PANGO = libfont_pango.la
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@libfont_pango_la_SOURCES = text_pango.c
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@libfont_pango_la_CFLAGS = $(PANGO_CFLAGS) $(CWARNFLAGS)
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@libfont_pango_la_LIBADD = $(PANGO_LIBS) libfont_xft.la
+@BUILD_MODULES_TRUE@@USE_LIBPANGO_TRUE@libfont_pango_la_LDFLAGS = -module -avoid-version
+@BUILD_MODULES_FALSE@MODULE_SRCS = sound_esd.c sound_pa.c sound_load.c ttfont.c text_xft.c text_pango.c
+@BUILD_MODULES_FALSE@MODULE_LIBS = $(ESD_LIBS) $(PA_LIBS) $(PANGO_LIBS) $(XFT_LIBS)
+@BUILD_MODULES_FALSE@MODULE_CFLAGS = $(ESD_CFLAGS) $(PA_CFLAGS) $(PANGO_CFLAGS) $(XFT_CFLAGS)
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @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
+install-libe16LTLIBRARIES: $(libe16_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libe16dir)" || $(MKDIR_P) "$(DESTDIR)$(libe16dir)"
+ @list='$(libe16_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libe16LTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libe16dir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libe16LTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libe16dir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-libe16LTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libe16_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libe16dir)/$$p'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libe16dir)/$$p"; \
+ done
+
+clean-libe16LTLIBRARIES:
+ -test -z "$(libe16_LTLIBRARIES)" || rm -f $(libe16_LTLIBRARIES)
+ @list='$(libe16_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libfont_ift.la: $(libfont_ift_la_OBJECTS) $(libfont_ift_la_DEPENDENCIES)
+ $(libfont_ift_la_LINK) $(am_libfont_ift_la_rpath) $(libfont_ift_la_OBJECTS) $(libfont_ift_la_LIBADD) $(LIBS)
+libfont_pango.la: $(libfont_pango_la_OBJECTS) $(libfont_pango_la_DEPENDENCIES)
+ $(libfont_pango_la_LINK) $(am_libfont_pango_la_rpath) $(libfont_pango_la_OBJECTS) $(libfont_pango_la_LIBADD) $(LIBS)
+libfont_xft.la: $(libfont_xft_la_OBJECTS) $(libfont_xft_la_DEPENDENCIES)
+ $(libfont_xft_la_LINK) $(am_libfont_xft_la_rpath) $(libfont_xft_la_OBJECTS) $(libfont_xft_la_LIBADD) $(LIBS)
+libsound_esd.la: $(libsound_esd_la_OBJECTS) $(libsound_esd_la_DEPENDENCIES)
+ $(libsound_esd_la_LINK) $(am_libsound_esd_la_rpath) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS)
+libsound_pa.la: $(libsound_pa_la_OBJECTS) $(libsound_pa_la_DEPENDENCIES)
+ $(libsound_pa_la_LINK) $(am_libsound_pa_la_rpath) $(libsound_pa_la_OBJECTS) $(libsound_pa_la_LIBADD) $(LIBS)
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(bindir)/$$f"; \
+ done
+
+clean-binPROGRAMS:
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+e16$(EXEEXT): $(e16_OBJECTS) $(e16_DEPENDENCIES)
+ @rm -f e16$(EXEEXT)
+ $(e16_LINK) $(e16_OBJECTS) $(e16_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-about.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-aclass.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-actions.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-alert.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-arrange.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-backgrounds.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-borders.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-buttons.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-comms.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-config.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-container.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-coords.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-cursors.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-desktops.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-dialog.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-dock.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-draw.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-e16-ecore_hints.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-e16-ecore_list.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-ecompmgr.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-econfig.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-edbus.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-edge.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-eglx.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-eimage.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-emodule.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-eobj.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-events.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-ewin-ops.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-ewins.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-ewmh.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-extinitwin.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-file.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-finders.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-focus.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-fonts.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-fx.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-glwin.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-gnome.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-grabs.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-groups.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-handlers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-hints.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-hiwin.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-icccm.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-iclass.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-iconify.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-icons.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-ipc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-lang.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-magwin.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-main.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-memory.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-menus-misc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-menus.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-misc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-mod-misc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-mod-trans.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-moveresize.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-mwm.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-pager.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-parse.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-piximg.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-progress.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-regex.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-screen.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-session.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-settings.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-setup.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-size.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-slideout.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-snaps.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-snprintf.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-sound.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-sound_esd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-sound_load.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-sound_pa.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-stacking.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-startup.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-string.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-systray.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-tclass.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-text.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-text_pango.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-text_xft.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-theme.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-timers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-tooltips.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-ttfont.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-user.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-warp.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-windowmatch.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-x.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/e16-zoom.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfont_ift_la-ttfont.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfont_pango_la-text_pango.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfont_xft_la-text_xft.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsound_esd_la-sound_esd.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsound_esd_la-sound_load.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsound_pa_la-sound_load.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsound_pa_la-sound_pa.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+libfont_ift_la-ttfont.lo: ttfont.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfont_ift_la_CFLAGS) $(CFLAGS) -MT libfont_ift_la-ttfont.lo -MD -MP -MF $(DEPDIR)/libfont_ift_la-ttfont.Tpo -c -o libfont_ift_la-ttfont.lo `test -f 'ttfont.c' || echo '$(srcdir)/'`ttfont.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libfont_ift_la-ttfont.Tpo $(DEPDIR)/libfont_ift_la-ttfont.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ttfont.c' object='libfont_ift_la-ttfont.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfont_ift_la_CFLAGS) $(CFLAGS) -c -o libfont_ift_la-ttfont.lo `test -f 'ttfont.c' || echo '$(srcdir)/'`ttfont.c
+
+libfont_pango_la-text_pango.lo: text_pango.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfont_pango_la_CFLAGS) $(CFLAGS) -MT libfont_pango_la-text_pango.lo -MD -MP -MF $(DEPDIR)/libfont_pango_la-text_pango.Tpo -c -o libfont_pango_la-text_pango.lo `test -f 'text_pango.c' || echo '$(srcdir)/'`text_pango.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libfont_pango_la-text_pango.Tpo $(DEPDIR)/libfont_pango_la-text_pango.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text_pango.c' object='libfont_pango_la-text_pango.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfont_pango_la_CFLAGS) $(CFLAGS) -c -o libfont_pango_la-text_pango.lo `test -f 'text_pango.c' || echo '$(srcdir)/'`text_pango.c
+
+libfont_xft_la-text_xft.lo: text_xft.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfont_xft_la_CFLAGS) $(CFLAGS) -MT libfont_xft_la-text_xft.lo -MD -MP -MF $(DEPDIR)/libfont_xft_la-text_xft.Tpo -c -o libfont_xft_la-text_xft.lo `test -f 'text_xft.c' || echo '$(srcdir)/'`text_xft.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libfont_xft_la-text_xft.Tpo $(DEPDIR)/libfont_xft_la-text_xft.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text_xft.c' object='libfont_xft_la-text_xft.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libfont_xft_la_CFLAGS) $(CFLAGS) -c -o libfont_xft_la-text_xft.lo `test -f 'text_xft.c' || echo '$(srcdir)/'`text_xft.c
+
+libsound_esd_la-sound_esd.lo: sound_esd.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_esd_la_CFLAGS) $(CFLAGS) -MT libsound_esd_la-sound_esd.lo -MD -MP -MF $(DEPDIR)/libsound_esd_la-sound_esd.Tpo -c -o libsound_esd_la-sound_esd.lo `test -f 'sound_esd.c' || echo '$(srcdir)/'`sound_esd.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libsound_esd_la-sound_esd.Tpo $(DEPDIR)/libsound_esd_la-sound_esd.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_esd.c' object='libsound_esd_la-sound_esd.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_esd_la_CFLAGS) $(CFLAGS) -c -o libsound_esd_la-sound_esd.lo `test -f 'sound_esd.c' || echo '$(srcdir)/'`sound_esd.c
+
+libsound_esd_la-sound_load.lo: sound_load.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_esd_la_CFLAGS) $(CFLAGS) -MT libsound_esd_la-sound_load.lo -MD -MP -MF $(DEPDIR)/libsound_esd_la-sound_load.Tpo -c -o libsound_esd_la-sound_load.lo `test -f 'sound_load.c' || echo '$(srcdir)/'`sound_load.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libsound_esd_la-sound_load.Tpo $(DEPDIR)/libsound_esd_la-sound_load.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_load.c' object='libsound_esd_la-sound_load.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_esd_la_CFLAGS) $(CFLAGS) -c -o libsound_esd_la-sound_load.lo `test -f 'sound_load.c' || echo '$(srcdir)/'`sound_load.c
+
+libsound_pa_la-sound_pa.lo: sound_pa.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_pa_la_CFLAGS) $(CFLAGS) -MT libsound_pa_la-sound_pa.lo -MD -MP -MF $(DEPDIR)/libsound_pa_la-sound_pa.Tpo -c -o libsound_pa_la-sound_pa.lo `test -f 'sound_pa.c' || echo '$(srcdir)/'`sound_pa.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libsound_pa_la-sound_pa.Tpo $(DEPDIR)/libsound_pa_la-sound_pa.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_pa.c' object='libsound_pa_la-sound_pa.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_pa_la_CFLAGS) $(CFLAGS) -c -o libsound_pa_la-sound_pa.lo `test -f 'sound_pa.c' || echo '$(srcdir)/'`sound_pa.c
+
+libsound_pa_la-sound_load.lo: sound_load.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_pa_la_CFLAGS) $(CFLAGS) -MT libsound_pa_la-sound_load.lo -MD -MP -MF $(DEPDIR)/libsound_pa_la-sound_load.Tpo -c -o libsound_pa_la-sound_load.lo `test -f 'sound_load.c' || echo '$(srcdir)/'`sound_load.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libsound_pa_la-sound_load.Tpo $(DEPDIR)/libsound_pa_la-sound_load.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_load.c' object='libsound_pa_la-sound_load.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsound_pa_la_CFLAGS) $(CFLAGS) -c -o libsound_pa_la-sound_load.lo `test -f 'sound_load.c' || echo '$(srcdir)/'`sound_load.c
+
+e16-about.o: about.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-about.o -MD -MP -MF $(DEPDIR)/e16-about.Tpo -c -o e16-about.o `test -f 'about.c' || echo '$(srcdir)/'`about.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-about.Tpo $(DEPDIR)/e16-about.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='about.c' object='e16-about.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-about.o `test -f 'about.c' || echo '$(srcdir)/'`about.c
+
+e16-about.obj: about.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-about.obj -MD -MP -MF $(DEPDIR)/e16-about.Tpo -c -o e16-about.obj `if test -f 'about.c'; then $(CYGPATH_W) 'about.c'; else $(CYGPATH_W) '$(srcdir)/about.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-about.Tpo $(DEPDIR)/e16-about.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='about.c' object='e16-about.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-about.obj `if test -f 'about.c'; then $(CYGPATH_W) 'about.c'; else $(CYGPATH_W) '$(srcdir)/about.c'; fi`
+
+e16-aclass.o: aclass.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-aclass.o -MD -MP -MF $(DEPDIR)/e16-aclass.Tpo -c -o e16-aclass.o `test -f 'aclass.c' || echo '$(srcdir)/'`aclass.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-aclass.Tpo $(DEPDIR)/e16-aclass.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aclass.c' object='e16-aclass.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-aclass.o `test -f 'aclass.c' || echo '$(srcdir)/'`aclass.c
+
+e16-aclass.obj: aclass.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-aclass.obj -MD -MP -MF $(DEPDIR)/e16-aclass.Tpo -c -o e16-aclass.obj `if test -f 'aclass.c'; then $(CYGPATH_W) 'aclass.c'; else $(CYGPATH_W) '$(srcdir)/aclass.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-aclass.Tpo $(DEPDIR)/e16-aclass.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aclass.c' object='e16-aclass.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-aclass.obj `if test -f 'aclass.c'; then $(CYGPATH_W) 'aclass.c'; else $(CYGPATH_W) '$(srcdir)/aclass.c'; fi`
+
+e16-actions.o: actions.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-actions.o -MD -MP -MF $(DEPDIR)/e16-actions.Tpo -c -o e16-actions.o `test -f 'actions.c' || echo '$(srcdir)/'`actions.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-actions.Tpo $(DEPDIR)/e16-actions.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='actions.c' object='e16-actions.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-actions.o `test -f 'actions.c' || echo '$(srcdir)/'`actions.c
+
+e16-actions.obj: actions.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-actions.obj -MD -MP -MF $(DEPDIR)/e16-actions.Tpo -c -o e16-actions.obj `if test -f 'actions.c'; then $(CYGPATH_W) 'actions.c'; else $(CYGPATH_W) '$(srcdir)/actions.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-actions.Tpo $(DEPDIR)/e16-actions.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='actions.c' object='e16-actions.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-actions.obj `if test -f 'actions.c'; then $(CYGPATH_W) 'actions.c'; else $(CYGPATH_W) '$(srcdir)/actions.c'; fi`
+
+e16-alert.o: alert.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-alert.o -MD -MP -MF $(DEPDIR)/e16-alert.Tpo -c -o e16-alert.o `test -f 'alert.c' || echo '$(srcdir)/'`alert.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-alert.Tpo $(DEPDIR)/e16-alert.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='alert.c' object='e16-alert.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-alert.o `test -f 'alert.c' || echo '$(srcdir)/'`alert.c
+
+e16-alert.obj: alert.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-alert.obj -MD -MP -MF $(DEPDIR)/e16-alert.Tpo -c -o e16-alert.obj `if test -f 'alert.c'; then $(CYGPATH_W) 'alert.c'; else $(CYGPATH_W) '$(srcdir)/alert.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-alert.Tpo $(DEPDIR)/e16-alert.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='alert.c' object='e16-alert.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-alert.obj `if test -f 'alert.c'; then $(CYGPATH_W) 'alert.c'; else $(CYGPATH_W) '$(srcdir)/alert.c'; fi`
+
+e16-arrange.o: arrange.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-arrange.o -MD -MP -MF $(DEPDIR)/e16-arrange.Tpo -c -o e16-arrange.o `test -f 'arrange.c' || echo '$(srcdir)/'`arrange.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-arrange.Tpo $(DEPDIR)/e16-arrange.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arrange.c' object='e16-arrange.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-arrange.o `test -f 'arrange.c' || echo '$(srcdir)/'`arrange.c
+
+e16-arrange.obj: arrange.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-arrange.obj -MD -MP -MF $(DEPDIR)/e16-arrange.Tpo -c -o e16-arrange.obj `if test -f 'arrange.c'; then $(CYGPATH_W) 'arrange.c'; else $(CYGPATH_W) '$(srcdir)/arrange.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-arrange.Tpo $(DEPDIR)/e16-arrange.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arrange.c' object='e16-arrange.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-arrange.obj `if test -f 'arrange.c'; then $(CYGPATH_W) 'arrange.c'; else $(CYGPATH_W) '$(srcdir)/arrange.c'; fi`
+
+e16-backgrounds.o: backgrounds.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-backgrounds.o -MD -MP -MF $(DEPDIR)/e16-backgrounds.Tpo -c -o e16-backgrounds.o `test -f 'backgrounds.c' || echo '$(srcdir)/'`backgrounds.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-backgrounds.Tpo $(DEPDIR)/e16-backgrounds.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='backgrounds.c' object='e16-backgrounds.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-backgrounds.o `test -f 'backgrounds.c' || echo '$(srcdir)/'`backgrounds.c
+
+e16-backgrounds.obj: backgrounds.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-backgrounds.obj -MD -MP -MF $(DEPDIR)/e16-backgrounds.Tpo -c -o e16-backgrounds.obj `if test -f 'backgrounds.c'; then $(CYGPATH_W) 'backgrounds.c'; else $(CYGPATH_W) '$(srcdir)/backgrounds.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-backgrounds.Tpo $(DEPDIR)/e16-backgrounds.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='backgrounds.c' object='e16-backgrounds.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-backgrounds.obj `if test -f 'backgrounds.c'; then $(CYGPATH_W) 'backgrounds.c'; else $(CYGPATH_W) '$(srcdir)/backgrounds.c'; fi`
+
+e16-borders.o: borders.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-borders.o -MD -MP -MF $(DEPDIR)/e16-borders.Tpo -c -o e16-borders.o `test -f 'borders.c' || echo '$(srcdir)/'`borders.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-borders.Tpo $(DEPDIR)/e16-borders.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='borders.c' object='e16-borders.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-borders.o `test -f 'borders.c' || echo '$(srcdir)/'`borders.c
+
+e16-borders.obj: borders.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-borders.obj -MD -MP -MF $(DEPDIR)/e16-borders.Tpo -c -o e16-borders.obj `if test -f 'borders.c'; then $(CYGPATH_W) 'borders.c'; else $(CYGPATH_W) '$(srcdir)/borders.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-borders.Tpo $(DEPDIR)/e16-borders.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='borders.c' object='e16-borders.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-borders.obj `if test -f 'borders.c'; then $(CYGPATH_W) 'borders.c'; else $(CYGPATH_W) '$(srcdir)/borders.c'; fi`
+
+e16-buttons.o: buttons.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-buttons.o -MD -MP -MF $(DEPDIR)/e16-buttons.Tpo -c -o e16-buttons.o `test -f 'buttons.c' || echo '$(srcdir)/'`buttons.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-buttons.Tpo $(DEPDIR)/e16-buttons.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='buttons.c' object='e16-buttons.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-buttons.o `test -f 'buttons.c' || echo '$(srcdir)/'`buttons.c
+
+e16-buttons.obj: buttons.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-buttons.obj -MD -MP -MF $(DEPDIR)/e16-buttons.Tpo -c -o e16-buttons.obj `if test -f 'buttons.c'; then $(CYGPATH_W) 'buttons.c'; else $(CYGPATH_W) '$(srcdir)/buttons.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-buttons.Tpo $(DEPDIR)/e16-buttons.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='buttons.c' object='e16-buttons.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-buttons.obj `if test -f 'buttons.c'; then $(CYGPATH_W) 'buttons.c'; else $(CYGPATH_W) '$(srcdir)/buttons.c'; fi`
+
+e16-comms.o: comms.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-comms.o -MD -MP -MF $(DEPDIR)/e16-comms.Tpo -c -o e16-comms.o `test -f 'comms.c' || echo '$(srcdir)/'`comms.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-comms.Tpo $(DEPDIR)/e16-comms.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='comms.c' object='e16-comms.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-comms.o `test -f 'comms.c' || echo '$(srcdir)/'`comms.c
+
+e16-comms.obj: comms.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-comms.obj -MD -MP -MF $(DEPDIR)/e16-comms.Tpo -c -o e16-comms.obj `if test -f 'comms.c'; then $(CYGPATH_W) 'comms.c'; else $(CYGPATH_W) '$(srcdir)/comms.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-comms.Tpo $(DEPDIR)/e16-comms.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='comms.c' object='e16-comms.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-comms.obj `if test -f 'comms.c'; then $(CYGPATH_W) 'comms.c'; else $(CYGPATH_W) '$(srcdir)/comms.c'; fi`
+
+e16-config.o: config.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-config.o -MD -MP -MF $(DEPDIR)/e16-config.Tpo -c -o e16-config.o `test -f 'config.c' || echo '$(srcdir)/'`config.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-config.Tpo $(DEPDIR)/e16-config.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='config.c' object='e16-config.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-config.o `test -f 'config.c' || echo '$(srcdir)/'`config.c
+
+e16-config.obj: config.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-config.obj -MD -MP -MF $(DEPDIR)/e16-config.Tpo -c -o e16-config.obj `if test -f 'config.c'; then $(CYGPATH_W) 'config.c'; else $(CYGPATH_W) '$(srcdir)/config.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-config.Tpo $(DEPDIR)/e16-config.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='config.c' object='e16-config.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-config.obj `if test -f 'config.c'; then $(CYGPATH_W) 'config.c'; else $(CYGPATH_W) '$(srcdir)/config.c'; fi`
+
+e16-container.o: container.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-container.o -MD -MP -MF $(DEPDIR)/e16-container.Tpo -c -o e16-container.o `test -f 'container.c' || echo '$(srcdir)/'`container.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-container.Tpo $(DEPDIR)/e16-container.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='container.c' object='e16-container.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-container.o `test -f 'container.c' || echo '$(srcdir)/'`container.c
+
+e16-container.obj: container.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-container.obj -MD -MP -MF $(DEPDIR)/e16-container.Tpo -c -o e16-container.obj `if test -f 'container.c'; then $(CYGPATH_W) 'container.c'; else $(CYGPATH_W) '$(srcdir)/container.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-container.Tpo $(DEPDIR)/e16-container.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='container.c' object='e16-container.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-container.obj `if test -f 'container.c'; then $(CYGPATH_W) 'container.c'; else $(CYGPATH_W) '$(srcdir)/container.c'; fi`
+
+e16-coords.o: coords.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-coords.o -MD -MP -MF $(DEPDIR)/e16-coords.Tpo -c -o e16-coords.o `test -f 'coords.c' || echo '$(srcdir)/'`coords.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-coords.Tpo $(DEPDIR)/e16-coords.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='coords.c' object='e16-coords.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-coords.o `test -f 'coords.c' || echo '$(srcdir)/'`coords.c
+
+e16-coords.obj: coords.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-coords.obj -MD -MP -MF $(DEPDIR)/e16-coords.Tpo -c -o e16-coords.obj `if test -f 'coords.c'; then $(CYGPATH_W) 'coords.c'; else $(CYGPATH_W) '$(srcdir)/coords.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-coords.Tpo $(DEPDIR)/e16-coords.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='coords.c' object='e16-coords.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-coords.obj `if test -f 'coords.c'; then $(CYGPATH_W) 'coords.c'; else $(CYGPATH_W) '$(srcdir)/coords.c'; fi`
+
+e16-cursors.o: cursors.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-cursors.o -MD -MP -MF $(DEPDIR)/e16-cursors.Tpo -c -o e16-cursors.o `test -f 'cursors.c' || echo '$(srcdir)/'`cursors.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-cursors.Tpo $(DEPDIR)/e16-cursors.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cursors.c' object='e16-cursors.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-cursors.o `test -f 'cursors.c' || echo '$(srcdir)/'`cursors.c
+
+e16-cursors.obj: cursors.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-cursors.obj -MD -MP -MF $(DEPDIR)/e16-cursors.Tpo -c -o e16-cursors.obj `if test -f 'cursors.c'; then $(CYGPATH_W) 'cursors.c'; else $(CYGPATH_W) '$(srcdir)/cursors.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-cursors.Tpo $(DEPDIR)/e16-cursors.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cursors.c' object='e16-cursors.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-cursors.obj `if test -f 'cursors.c'; then $(CYGPATH_W) 'cursors.c'; else $(CYGPATH_W) '$(srcdir)/cursors.c'; fi`
+
+e16-desktops.o: desktops.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-desktops.o -MD -MP -MF $(DEPDIR)/e16-desktops.Tpo -c -o e16-desktops.o `test -f 'desktops.c' || echo '$(srcdir)/'`desktops.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-desktops.Tpo $(DEPDIR)/e16-desktops.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='desktops.c' object='e16-desktops.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-desktops.o `test -f 'desktops.c' || echo '$(srcdir)/'`desktops.c
+
+e16-desktops.obj: desktops.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-desktops.obj -MD -MP -MF $(DEPDIR)/e16-desktops.Tpo -c -o e16-desktops.obj `if test -f 'desktops.c'; then $(CYGPATH_W) 'desktops.c'; else $(CYGPATH_W) '$(srcdir)/desktops.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-desktops.Tpo $(DEPDIR)/e16-desktops.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='desktops.c' object='e16-desktops.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-desktops.obj `if test -f 'desktops.c'; then $(CYGPATH_W) 'desktops.c'; else $(CYGPATH_W) '$(srcdir)/desktops.c'; fi`
+
+e16-dialog.o: dialog.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-dialog.o -MD -MP -MF $(DEPDIR)/e16-dialog.Tpo -c -o e16-dialog.o `test -f 'dialog.c' || echo '$(srcdir)/'`dialog.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-dialog.Tpo $(DEPDIR)/e16-dialog.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dialog.c' object='e16-dialog.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-dialog.o `test -f 'dialog.c' || echo '$(srcdir)/'`dialog.c
+
+e16-dialog.obj: dialog.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-dialog.obj -MD -MP -MF $(DEPDIR)/e16-dialog.Tpo -c -o e16-dialog.obj `if test -f 'dialog.c'; then $(CYGPATH_W) 'dialog.c'; else $(CYGPATH_W) '$(srcdir)/dialog.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-dialog.Tpo $(DEPDIR)/e16-dialog.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dialog.c' object='e16-dialog.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-dialog.obj `if test -f 'dialog.c'; then $(CYGPATH_W) 'dialog.c'; else $(CYGPATH_W) '$(srcdir)/dialog.c'; fi`
+
+e16-dock.o: dock.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-dock.o -MD -MP -MF $(DEPDIR)/e16-dock.Tpo -c -o e16-dock.o `test -f 'dock.c' || echo '$(srcdir)/'`dock.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-dock.Tpo $(DEPDIR)/e16-dock.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dock.c' object='e16-dock.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-dock.o `test -f 'dock.c' || echo '$(srcdir)/'`dock.c
+
+e16-dock.obj: dock.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-dock.obj -MD -MP -MF $(DEPDIR)/e16-dock.Tpo -c -o e16-dock.obj `if test -f 'dock.c'; then $(CYGPATH_W) 'dock.c'; else $(CYGPATH_W) '$(srcdir)/dock.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-dock.Tpo $(DEPDIR)/e16-dock.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dock.c' object='e16-dock.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-dock.obj `if test -f 'dock.c'; then $(CYGPATH_W) 'dock.c'; else $(CYGPATH_W) '$(srcdir)/dock.c'; fi`
+
+e16-draw.o: draw.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-draw.o -MD -MP -MF $(DEPDIR)/e16-draw.Tpo -c -o e16-draw.o `test -f 'draw.c' || echo '$(srcdir)/'`draw.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-draw.Tpo $(DEPDIR)/e16-draw.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='draw.c' object='e16-draw.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-draw.o `test -f 'draw.c' || echo '$(srcdir)/'`draw.c
+
+e16-draw.obj: draw.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-draw.obj -MD -MP -MF $(DEPDIR)/e16-draw.Tpo -c -o e16-draw.obj `if test -f 'draw.c'; then $(CYGPATH_W) 'draw.c'; else $(CYGPATH_W) '$(srcdir)/draw.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-draw.Tpo $(DEPDIR)/e16-draw.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='draw.c' object='e16-draw.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-draw.obj `if test -f 'draw.c'; then $(CYGPATH_W) 'draw.c'; else $(CYGPATH_W) '$(srcdir)/draw.c'; fi`
+
+e16-e16-ecore_hints.o: e16-ecore_hints.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-e16-ecore_hints.o -MD -MP -MF $(DEPDIR)/e16-e16-ecore_hints.Tpo -c -o e16-e16-ecore_hints.o `test -f 'e16-ecore_hints.c' || echo '$(srcdir)/'`e16-ecore_hints.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-e16-ecore_hints.Tpo $(DEPDIR)/e16-e16-ecore_hints.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='e16-ecore_hints.c' object='e16-e16-ecore_hints.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-e16-ecore_hints.o `test -f 'e16-ecore_hints.c' || echo '$(srcdir)/'`e16-ecore_hints.c
+
+e16-e16-ecore_hints.obj: e16-ecore_hints.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-e16-ecore_hints.obj -MD -MP -MF $(DEPDIR)/e16-e16-ecore_hints.Tpo -c -o e16-e16-ecore_hints.obj `if test -f 'e16-ecore_hints.c'; then $(CYGPATH_W) 'e16-ecore_hints.c'; else $(CYGPATH_W) '$(srcdir)/e16-ecore_hints.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-e16-ecore_hints.Tpo $(DEPDIR)/e16-e16-ecore_hints.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='e16-ecore_hints.c' object='e16-e16-ecore_hints.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-e16-ecore_hints.obj `if test -f 'e16-ecore_hints.c'; then $(CYGPATH_W) 'e16-ecore_hints.c'; else $(CYGPATH_W) '$(srcdir)/e16-ecore_hints.c'; fi`
+
+e16-e16-ecore_list.o: e16-ecore_list.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-e16-ecore_list.o -MD -MP -MF $(DEPDIR)/e16-e16-ecore_list.Tpo -c -o e16-e16-ecore_list.o `test -f 'e16-ecore_list.c' || echo '$(srcdir)/'`e16-ecore_list.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-e16-ecore_list.Tpo $(DEPDIR)/e16-e16-ecore_list.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='e16-ecore_list.c' object='e16-e16-ecore_list.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-e16-ecore_list.o `test -f 'e16-ecore_list.c' || echo '$(srcdir)/'`e16-ecore_list.c
+
+e16-e16-ecore_list.obj: e16-ecore_list.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-e16-ecore_list.obj -MD -MP -MF $(DEPDIR)/e16-e16-ecore_list.Tpo -c -o e16-e16-ecore_list.obj `if test -f 'e16-ecore_list.c'; then $(CYGPATH_W) 'e16-ecore_list.c'; else $(CYGPATH_W) '$(srcdir)/e16-ecore_list.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-e16-ecore_list.Tpo $(DEPDIR)/e16-e16-ecore_list.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='e16-ecore_list.c' object='e16-e16-ecore_list.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-e16-ecore_list.obj `if test -f 'e16-ecore_list.c'; then $(CYGPATH_W) 'e16-ecore_list.c'; else $(CYGPATH_W) '$(srcdir)/e16-ecore_list.c'; fi`
+
+e16-econfig.o: econfig.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-econfig.o -MD -MP -MF $(DEPDIR)/e16-econfig.Tpo -c -o e16-econfig.o `test -f 'econfig.c' || echo '$(srcdir)/'`econfig.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-econfig.Tpo $(DEPDIR)/e16-econfig.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='econfig.c' object='e16-econfig.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-econfig.o `test -f 'econfig.c' || echo '$(srcdir)/'`econfig.c
+
+e16-econfig.obj: econfig.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-econfig.obj -MD -MP -MF $(DEPDIR)/e16-econfig.Tpo -c -o e16-econfig.obj `if test -f 'econfig.c'; then $(CYGPATH_W) 'econfig.c'; else $(CYGPATH_W) '$(srcdir)/econfig.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-econfig.Tpo $(DEPDIR)/e16-econfig.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='econfig.c' object='e16-econfig.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-econfig.obj `if test -f 'econfig.c'; then $(CYGPATH_W) 'econfig.c'; else $(CYGPATH_W) '$(srcdir)/econfig.c'; fi`
+
+e16-edge.o: edge.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-edge.o -MD -MP -MF $(DEPDIR)/e16-edge.Tpo -c -o e16-edge.o `test -f 'edge.c' || echo '$(srcdir)/'`edge.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-edge.Tpo $(DEPDIR)/e16-edge.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='edge.c' object='e16-edge.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-edge.o `test -f 'edge.c' || echo '$(srcdir)/'`edge.c
+
+e16-edge.obj: edge.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-edge.obj -MD -MP -MF $(DEPDIR)/e16-edge.Tpo -c -o e16-edge.obj `if test -f 'edge.c'; then $(CYGPATH_W) 'edge.c'; else $(CYGPATH_W) '$(srcdir)/edge.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-edge.Tpo $(DEPDIR)/e16-edge.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='edge.c' object='e16-edge.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-edge.obj `if test -f 'edge.c'; then $(CYGPATH_W) 'edge.c'; else $(CYGPATH_W) '$(srcdir)/edge.c'; fi`
+
+e16-eimage.o: eimage.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-eimage.o -MD -MP -MF $(DEPDIR)/e16-eimage.Tpo -c -o e16-eimage.o `test -f 'eimage.c' || echo '$(srcdir)/'`eimage.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-eimage.Tpo $(DEPDIR)/e16-eimage.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eimage.c' object='e16-eimage.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-eimage.o `test -f 'eimage.c' || echo '$(srcdir)/'`eimage.c
+
+e16-eimage.obj: eimage.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-eimage.obj -MD -MP -MF $(DEPDIR)/e16-eimage.Tpo -c -o e16-eimage.obj `if test -f 'eimage.c'; then $(CYGPATH_W) 'eimage.c'; else $(CYGPATH_W) '$(srcdir)/eimage.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-eimage.Tpo $(DEPDIR)/e16-eimage.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eimage.c' object='e16-eimage.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-eimage.obj `if test -f 'eimage.c'; then $(CYGPATH_W) 'eimage.c'; else $(CYGPATH_W) '$(srcdir)/eimage.c'; fi`
+
+e16-emodule.o: emodule.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-emodule.o -MD -MP -MF $(DEPDIR)/e16-emodule.Tpo -c -o e16-emodule.o `test -f 'emodule.c' || echo '$(srcdir)/'`emodule.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-emodule.Tpo $(DEPDIR)/e16-emodule.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='emodule.c' object='e16-emodule.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-emodule.o `test -f 'emodule.c' || echo '$(srcdir)/'`emodule.c
+
+e16-emodule.obj: emodule.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-emodule.obj -MD -MP -MF $(DEPDIR)/e16-emodule.Tpo -c -o e16-emodule.obj `if test -f 'emodule.c'; then $(CYGPATH_W) 'emodule.c'; else $(CYGPATH_W) '$(srcdir)/emodule.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-emodule.Tpo $(DEPDIR)/e16-emodule.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='emodule.c' object='e16-emodule.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-emodule.obj `if test -f 'emodule.c'; then $(CYGPATH_W) 'emodule.c'; else $(CYGPATH_W) '$(srcdir)/emodule.c'; fi`
+
+e16-eobj.o: eobj.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-eobj.o -MD -MP -MF $(DEPDIR)/e16-eobj.Tpo -c -o e16-eobj.o `test -f 'eobj.c' || echo '$(srcdir)/'`eobj.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-eobj.Tpo $(DEPDIR)/e16-eobj.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eobj.c' object='e16-eobj.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-eobj.o `test -f 'eobj.c' || echo '$(srcdir)/'`eobj.c
+
+e16-eobj.obj: eobj.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-eobj.obj -MD -MP -MF $(DEPDIR)/e16-eobj.Tpo -c -o e16-eobj.obj `if test -f 'eobj.c'; then $(CYGPATH_W) 'eobj.c'; else $(CYGPATH_W) '$(srcdir)/eobj.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-eobj.Tpo $(DEPDIR)/e16-eobj.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eobj.c' object='e16-eobj.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-eobj.obj `if test -f 'eobj.c'; then $(CYGPATH_W) 'eobj.c'; else $(CYGPATH_W) '$(srcdir)/eobj.c'; fi`
+
+e16-events.o: events.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-events.o -MD -MP -MF $(DEPDIR)/e16-events.Tpo -c -o e16-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-events.Tpo $(DEPDIR)/e16-events.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='events.c' object='e16-events.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c
+
+e16-events.obj: events.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-events.obj -MD -MP -MF $(DEPDIR)/e16-events.Tpo -c -o e16-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-events.Tpo $(DEPDIR)/e16-events.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='events.c' object='e16-events.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi`
+
+e16-ewins.o: ewins.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ewins.o -MD -MP -MF $(DEPDIR)/e16-ewins.Tpo -c -o e16-ewins.o `test -f 'ewins.c' || echo '$(srcdir)/'`ewins.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ewins.Tpo $(DEPDIR)/e16-ewins.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ewins.c' object='e16-ewins.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ewins.o `test -f 'ewins.c' || echo '$(srcdir)/'`ewins.c
+
+e16-ewins.obj: ewins.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ewins.obj -MD -MP -MF $(DEPDIR)/e16-ewins.Tpo -c -o e16-ewins.obj `if test -f 'ewins.c'; then $(CYGPATH_W) 'ewins.c'; else $(CYGPATH_W) '$(srcdir)/ewins.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ewins.Tpo $(DEPDIR)/e16-ewins.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ewins.c' object='e16-ewins.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ewins.obj `if test -f 'ewins.c'; then $(CYGPATH_W) 'ewins.c'; else $(CYGPATH_W) '$(srcdir)/ewins.c'; fi`
+
+e16-ewin-ops.o: ewin-ops.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ewin-ops.o -MD -MP -MF $(DEPDIR)/e16-ewin-ops.Tpo -c -o e16-ewin-ops.o `test -f 'ewin-ops.c' || echo '$(srcdir)/'`ewin-ops.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ewin-ops.Tpo $(DEPDIR)/e16-ewin-ops.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ewin-ops.c' object='e16-ewin-ops.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ewin-ops.o `test -f 'ewin-ops.c' || echo '$(srcdir)/'`ewin-ops.c
+
+e16-ewin-ops.obj: ewin-ops.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ewin-ops.obj -MD -MP -MF $(DEPDIR)/e16-ewin-ops.Tpo -c -o e16-ewin-ops.obj `if test -f 'ewin-ops.c'; then $(CYGPATH_W) 'ewin-ops.c'; else $(CYGPATH_W) '$(srcdir)/ewin-ops.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ewin-ops.Tpo $(DEPDIR)/e16-ewin-ops.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ewin-ops.c' object='e16-ewin-ops.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ewin-ops.obj `if test -f 'ewin-ops.c'; then $(CYGPATH_W) 'ewin-ops.c'; else $(CYGPATH_W) '$(srcdir)/ewin-ops.c'; fi`
+
+e16-ewmh.o: ewmh.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ewmh.o -MD -MP -MF $(DEPDIR)/e16-ewmh.Tpo -c -o e16-ewmh.o `test -f 'ewmh.c' || echo '$(srcdir)/'`ewmh.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ewmh.Tpo $(DEPDIR)/e16-ewmh.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ewmh.c' object='e16-ewmh.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ewmh.o `test -f 'ewmh.c' || echo '$(srcdir)/'`ewmh.c
+
+e16-ewmh.obj: ewmh.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ewmh.obj -MD -MP -MF $(DEPDIR)/e16-ewmh.Tpo -c -o e16-ewmh.obj `if test -f 'ewmh.c'; then $(CYGPATH_W) 'ewmh.c'; else $(CYGPATH_W) '$(srcdir)/ewmh.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ewmh.Tpo $(DEPDIR)/e16-ewmh.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ewmh.c' object='e16-ewmh.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ewmh.obj `if test -f 'ewmh.c'; then $(CYGPATH_W) 'ewmh.c'; else $(CYGPATH_W) '$(srcdir)/ewmh.c'; fi`
+
+e16-extinitwin.o: extinitwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-extinitwin.o -MD -MP -MF $(DEPDIR)/e16-extinitwin.Tpo -c -o e16-extinitwin.o `test -f 'extinitwin.c' || echo '$(srcdir)/'`extinitwin.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-extinitwin.Tpo $(DEPDIR)/e16-extinitwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='extinitwin.c' object='e16-extinitwin.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-extinitwin.o `test -f 'extinitwin.c' || echo '$(srcdir)/'`extinitwin.c
+
+e16-extinitwin.obj: extinitwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-extinitwin.obj -MD -MP -MF $(DEPDIR)/e16-extinitwin.Tpo -c -o e16-extinitwin.obj `if test -f 'extinitwin.c'; then $(CYGPATH_W) 'extinitwin.c'; else $(CYGPATH_W) '$(srcdir)/extinitwin.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-extinitwin.Tpo $(DEPDIR)/e16-extinitwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='extinitwin.c' object='e16-extinitwin.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-extinitwin.obj `if test -f 'extinitwin.c'; then $(CYGPATH_W) 'extinitwin.c'; else $(CYGPATH_W) '$(srcdir)/extinitwin.c'; fi`
+
+e16-file.o: file.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-file.o -MD -MP -MF $(DEPDIR)/e16-file.Tpo -c -o e16-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-file.Tpo $(DEPDIR)/e16-file.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file.c' object='e16-file.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c
+
+e16-file.obj: file.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-file.obj -MD -MP -MF $(DEPDIR)/e16-file.Tpo -c -o e16-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-file.Tpo $(DEPDIR)/e16-file.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file.c' object='e16-file.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi`
+
+e16-finders.o: finders.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-finders.o -MD -MP -MF $(DEPDIR)/e16-finders.Tpo -c -o e16-finders.o `test -f 'finders.c' || echo '$(srcdir)/'`finders.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-finders.Tpo $(DEPDIR)/e16-finders.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finders.c' object='e16-finders.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-finders.o `test -f 'finders.c' || echo '$(srcdir)/'`finders.c
+
+e16-finders.obj: finders.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-finders.obj -MD -MP -MF $(DEPDIR)/e16-finders.Tpo -c -o e16-finders.obj `if test -f 'finders.c'; then $(CYGPATH_W) 'finders.c'; else $(CYGPATH_W) '$(srcdir)/finders.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-finders.Tpo $(DEPDIR)/e16-finders.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finders.c' object='e16-finders.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-finders.obj `if test -f 'finders.c'; then $(CYGPATH_W) 'finders.c'; else $(CYGPATH_W) '$(srcdir)/finders.c'; fi`
+
+e16-focus.o: focus.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-focus.o -MD -MP -MF $(DEPDIR)/e16-focus.Tpo -c -o e16-focus.o `test -f 'focus.c' || echo '$(srcdir)/'`focus.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-focus.Tpo $(DEPDIR)/e16-focus.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='focus.c' object='e16-focus.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-focus.o `test -f 'focus.c' || echo '$(srcdir)/'`focus.c
+
+e16-focus.obj: focus.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-focus.obj -MD -MP -MF $(DEPDIR)/e16-focus.Tpo -c -o e16-focus.obj `if test -f 'focus.c'; then $(CYGPATH_W) 'focus.c'; else $(CYGPATH_W) '$(srcdir)/focus.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-focus.Tpo $(DEPDIR)/e16-focus.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='focus.c' object='e16-focus.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-focus.obj `if test -f 'focus.c'; then $(CYGPATH_W) 'focus.c'; else $(CYGPATH_W) '$(srcdir)/focus.c'; fi`
+
+e16-fonts.o: fonts.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-fonts.o -MD -MP -MF $(DEPDIR)/e16-fonts.Tpo -c -o e16-fonts.o `test -f 'fonts.c' || echo '$(srcdir)/'`fonts.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-fonts.Tpo $(DEPDIR)/e16-fonts.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fonts.c' object='e16-fonts.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-fonts.o `test -f 'fonts.c' || echo '$(srcdir)/'`fonts.c
+
+e16-fonts.obj: fonts.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-fonts.obj -MD -MP -MF $(DEPDIR)/e16-fonts.Tpo -c -o e16-fonts.obj `if test -f 'fonts.c'; then $(CYGPATH_W) 'fonts.c'; else $(CYGPATH_W) '$(srcdir)/fonts.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-fonts.Tpo $(DEPDIR)/e16-fonts.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fonts.c' object='e16-fonts.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-fonts.obj `if test -f 'fonts.c'; then $(CYGPATH_W) 'fonts.c'; else $(CYGPATH_W) '$(srcdir)/fonts.c'; fi`
+
+e16-fx.o: fx.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-fx.o -MD -MP -MF $(DEPDIR)/e16-fx.Tpo -c -o e16-fx.o `test -f 'fx.c' || echo '$(srcdir)/'`fx.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-fx.Tpo $(DEPDIR)/e16-fx.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fx.c' object='e16-fx.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-fx.o `test -f 'fx.c' || echo '$(srcdir)/'`fx.c
+
+e16-fx.obj: fx.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-fx.obj -MD -MP -MF $(DEPDIR)/e16-fx.Tpo -c -o e16-fx.obj `if test -f 'fx.c'; then $(CYGPATH_W) 'fx.c'; else $(CYGPATH_W) '$(srcdir)/fx.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-fx.Tpo $(DEPDIR)/e16-fx.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fx.c' object='e16-fx.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-fx.obj `if test -f 'fx.c'; then $(CYGPATH_W) 'fx.c'; else $(CYGPATH_W) '$(srcdir)/fx.c'; fi`
+
+e16-grabs.o: grabs.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-grabs.o -MD -MP -MF $(DEPDIR)/e16-grabs.Tpo -c -o e16-grabs.o `test -f 'grabs.c' || echo '$(srcdir)/'`grabs.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-grabs.Tpo $(DEPDIR)/e16-grabs.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='grabs.c' object='e16-grabs.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-grabs.o `test -f 'grabs.c' || echo '$(srcdir)/'`grabs.c
+
+e16-grabs.obj: grabs.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-grabs.obj -MD -MP -MF $(DEPDIR)/e16-grabs.Tpo -c -o e16-grabs.obj `if test -f 'grabs.c'; then $(CYGPATH_W) 'grabs.c'; else $(CYGPATH_W) '$(srcdir)/grabs.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-grabs.Tpo $(DEPDIR)/e16-grabs.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='grabs.c' object='e16-grabs.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-grabs.obj `if test -f 'grabs.c'; then $(CYGPATH_W) 'grabs.c'; else $(CYGPATH_W) '$(srcdir)/grabs.c'; fi`
+
+e16-groups.o: groups.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-groups.o -MD -MP -MF $(DEPDIR)/e16-groups.Tpo -c -o e16-groups.o `test -f 'groups.c' || echo '$(srcdir)/'`groups.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-groups.Tpo $(DEPDIR)/e16-groups.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='groups.c' object='e16-groups.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-groups.o `test -f 'groups.c' || echo '$(srcdir)/'`groups.c
+
+e16-groups.obj: groups.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-groups.obj -MD -MP -MF $(DEPDIR)/e16-groups.Tpo -c -o e16-groups.obj `if test -f 'groups.c'; then $(CYGPATH_W) 'groups.c'; else $(CYGPATH_W) '$(srcdir)/groups.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-groups.Tpo $(DEPDIR)/e16-groups.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='groups.c' object='e16-groups.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-groups.obj `if test -f 'groups.c'; then $(CYGPATH_W) 'groups.c'; else $(CYGPATH_W) '$(srcdir)/groups.c'; fi`
+
+e16-handlers.o: handlers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-handlers.o -MD -MP -MF $(DEPDIR)/e16-handlers.Tpo -c -o e16-handlers.o `test -f 'handlers.c' || echo '$(srcdir)/'`handlers.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-handlers.Tpo $(DEPDIR)/e16-handlers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='handlers.c' object='e16-handlers.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-handlers.o `test -f 'handlers.c' || echo '$(srcdir)/'`handlers.c
+
+e16-handlers.obj: handlers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-handlers.obj -MD -MP -MF $(DEPDIR)/e16-handlers.Tpo -c -o e16-handlers.obj `if test -f 'handlers.c'; then $(CYGPATH_W) 'handlers.c'; else $(CYGPATH_W) '$(srcdir)/handlers.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-handlers.Tpo $(DEPDIR)/e16-handlers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='handlers.c' object='e16-handlers.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-handlers.obj `if test -f 'handlers.c'; then $(CYGPATH_W) 'handlers.c'; else $(CYGPATH_W) '$(srcdir)/handlers.c'; fi`
+
+e16-hints.o: hints.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-hints.o -MD -MP -MF $(DEPDIR)/e16-hints.Tpo -c -o e16-hints.o `test -f 'hints.c' || echo '$(srcdir)/'`hints.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-hints.Tpo $(DEPDIR)/e16-hints.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hints.c' object='e16-hints.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-hints.o `test -f 'hints.c' || echo '$(srcdir)/'`hints.c
+
+e16-hints.obj: hints.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-hints.obj -MD -MP -MF $(DEPDIR)/e16-hints.Tpo -c -o e16-hints.obj `if test -f 'hints.c'; then $(CYGPATH_W) 'hints.c'; else $(CYGPATH_W) '$(srcdir)/hints.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-hints.Tpo $(DEPDIR)/e16-hints.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hints.c' object='e16-hints.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-hints.obj `if test -f 'hints.c'; then $(CYGPATH_W) 'hints.c'; else $(CYGPATH_W) '$(srcdir)/hints.c'; fi`
+
+e16-hiwin.o: hiwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-hiwin.o -MD -MP -MF $(DEPDIR)/e16-hiwin.Tpo -c -o e16-hiwin.o `test -f 'hiwin.c' || echo '$(srcdir)/'`hiwin.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-hiwin.Tpo $(DEPDIR)/e16-hiwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hiwin.c' object='e16-hiwin.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-hiwin.o `test -f 'hiwin.c' || echo '$(srcdir)/'`hiwin.c
+
+e16-hiwin.obj: hiwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-hiwin.obj -MD -MP -MF $(DEPDIR)/e16-hiwin.Tpo -c -o e16-hiwin.obj `if test -f 'hiwin.c'; then $(CYGPATH_W) 'hiwin.c'; else $(CYGPATH_W) '$(srcdir)/hiwin.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-hiwin.Tpo $(DEPDIR)/e16-hiwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hiwin.c' object='e16-hiwin.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-hiwin.obj `if test -f 'hiwin.c'; then $(CYGPATH_W) 'hiwin.c'; else $(CYGPATH_W) '$(srcdir)/hiwin.c'; fi`
+
+e16-icccm.o: icccm.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-icccm.o -MD -MP -MF $(DEPDIR)/e16-icccm.Tpo -c -o e16-icccm.o `test -f 'icccm.c' || echo '$(srcdir)/'`icccm.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-icccm.Tpo $(DEPDIR)/e16-icccm.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='icccm.c' object='e16-icccm.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-icccm.o `test -f 'icccm.c' || echo '$(srcdir)/'`icccm.c
+
+e16-icccm.obj: icccm.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-icccm.obj -MD -MP -MF $(DEPDIR)/e16-icccm.Tpo -c -o e16-icccm.obj `if test -f 'icccm.c'; then $(CYGPATH_W) 'icccm.c'; else $(CYGPATH_W) '$(srcdir)/icccm.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-icccm.Tpo $(DEPDIR)/e16-icccm.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='icccm.c' object='e16-icccm.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-icccm.obj `if test -f 'icccm.c'; then $(CYGPATH_W) 'icccm.c'; else $(CYGPATH_W) '$(srcdir)/icccm.c'; fi`
+
+e16-iclass.o: iclass.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-iclass.o -MD -MP -MF $(DEPDIR)/e16-iclass.Tpo -c -o e16-iclass.o `test -f 'iclass.c' || echo '$(srcdir)/'`iclass.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-iclass.Tpo $(DEPDIR)/e16-iclass.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iclass.c' object='e16-iclass.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-iclass.o `test -f 'iclass.c' || echo '$(srcdir)/'`iclass.c
+
+e16-iclass.obj: iclass.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-iclass.obj -MD -MP -MF $(DEPDIR)/e16-iclass.Tpo -c -o e16-iclass.obj `if test -f 'iclass.c'; then $(CYGPATH_W) 'iclass.c'; else $(CYGPATH_W) '$(srcdir)/iclass.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-iclass.Tpo $(DEPDIR)/e16-iclass.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iclass.c' object='e16-iclass.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-iclass.obj `if test -f 'iclass.c'; then $(CYGPATH_W) 'iclass.c'; else $(CYGPATH_W) '$(srcdir)/iclass.c'; fi`
+
+e16-iconify.o: iconify.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-iconify.o -MD -MP -MF $(DEPDIR)/e16-iconify.Tpo -c -o e16-iconify.o `test -f 'iconify.c' || echo '$(srcdir)/'`iconify.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-iconify.Tpo $(DEPDIR)/e16-iconify.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iconify.c' object='e16-iconify.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-iconify.o `test -f 'iconify.c' || echo '$(srcdir)/'`iconify.c
+
+e16-iconify.obj: iconify.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-iconify.obj -MD -MP -MF $(DEPDIR)/e16-iconify.Tpo -c -o e16-iconify.obj `if test -f 'iconify.c'; then $(CYGPATH_W) 'iconify.c'; else $(CYGPATH_W) '$(srcdir)/iconify.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-iconify.Tpo $(DEPDIR)/e16-iconify.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iconify.c' object='e16-iconify.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-iconify.obj `if test -f 'iconify.c'; then $(CYGPATH_W) 'iconify.c'; else $(CYGPATH_W) '$(srcdir)/iconify.c'; fi`
+
+e16-icons.o: icons.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-icons.o -MD -MP -MF $(DEPDIR)/e16-icons.Tpo -c -o e16-icons.o `test -f 'icons.c' || echo '$(srcdir)/'`icons.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-icons.Tpo $(DEPDIR)/e16-icons.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='icons.c' object='e16-icons.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-icons.o `test -f 'icons.c' || echo '$(srcdir)/'`icons.c
+
+e16-icons.obj: icons.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-icons.obj -MD -MP -MF $(DEPDIR)/e16-icons.Tpo -c -o e16-icons.obj `if test -f 'icons.c'; then $(CYGPATH_W) 'icons.c'; else $(CYGPATH_W) '$(srcdir)/icons.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-icons.Tpo $(DEPDIR)/e16-icons.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='icons.c' object='e16-icons.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-icons.obj `if test -f 'icons.c'; then $(CYGPATH_W) 'icons.c'; else $(CYGPATH_W) '$(srcdir)/icons.c'; fi`
+
+e16-ipc.o: ipc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ipc.o -MD -MP -MF $(DEPDIR)/e16-ipc.Tpo -c -o e16-ipc.o `test -f 'ipc.c' || echo '$(srcdir)/'`ipc.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ipc.Tpo $(DEPDIR)/e16-ipc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ipc.c' object='e16-ipc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ipc.o `test -f 'ipc.c' || echo '$(srcdir)/'`ipc.c
+
+e16-ipc.obj: ipc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ipc.obj -MD -MP -MF $(DEPDIR)/e16-ipc.Tpo -c -o e16-ipc.obj `if test -f 'ipc.c'; then $(CYGPATH_W) 'ipc.c'; else $(CYGPATH_W) '$(srcdir)/ipc.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ipc.Tpo $(DEPDIR)/e16-ipc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ipc.c' object='e16-ipc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ipc.obj `if test -f 'ipc.c'; then $(CYGPATH_W) 'ipc.c'; else $(CYGPATH_W) '$(srcdir)/ipc.c'; fi`
+
+e16-lang.o: lang.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-lang.o -MD -MP -MF $(DEPDIR)/e16-lang.Tpo -c -o e16-lang.o `test -f 'lang.c' || echo '$(srcdir)/'`lang.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-lang.Tpo $(DEPDIR)/e16-lang.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lang.c' object='e16-lang.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-lang.o `test -f 'lang.c' || echo '$(srcdir)/'`lang.c
+
+e16-lang.obj: lang.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-lang.obj -MD -MP -MF $(DEPDIR)/e16-lang.Tpo -c -o e16-lang.obj `if test -f 'lang.c'; then $(CYGPATH_W) 'lang.c'; else $(CYGPATH_W) '$(srcdir)/lang.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-lang.Tpo $(DEPDIR)/e16-lang.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lang.c' object='e16-lang.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-lang.obj `if test -f 'lang.c'; then $(CYGPATH_W) 'lang.c'; else $(CYGPATH_W) '$(srcdir)/lang.c'; fi`
+
+e16-main.o: main.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-main.o -MD -MP -MF $(DEPDIR)/e16-main.Tpo -c -o e16-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-main.Tpo $(DEPDIR)/e16-main.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='e16-main.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+
+e16-main.obj: main.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-main.obj -MD -MP -MF $(DEPDIR)/e16-main.Tpo -c -o e16-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-main.Tpo $(DEPDIR)/e16-main.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='e16-main.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+
+e16-memory.o: memory.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-memory.o -MD -MP -MF $(DEPDIR)/e16-memory.Tpo -c -o e16-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-memory.Tpo $(DEPDIR)/e16-memory.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='e16-memory.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
+
+e16-memory.obj: memory.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-memory.obj -MD -MP -MF $(DEPDIR)/e16-memory.Tpo -c -o e16-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-memory.Tpo $(DEPDIR)/e16-memory.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='e16-memory.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'; fi`
+
+e16-menus.o: menus.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-menus.o -MD -MP -MF $(DEPDIR)/e16-menus.Tpo -c -o e16-menus.o `test -f 'menus.c' || echo '$(srcdir)/'`menus.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-menus.Tpo $(DEPDIR)/e16-menus.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menus.c' object='e16-menus.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-menus.o `test -f 'menus.c' || echo '$(srcdir)/'`menus.c
+
+e16-menus.obj: menus.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-menus.obj -MD -MP -MF $(DEPDIR)/e16-menus.Tpo -c -o e16-menus.obj `if test -f 'menus.c'; then $(CYGPATH_W) 'menus.c'; else $(CYGPATH_W) '$(srcdir)/menus.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-menus.Tpo $(DEPDIR)/e16-menus.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menus.c' object='e16-menus.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-menus.obj `if test -f 'menus.c'; then $(CYGPATH_W) 'menus.c'; else $(CYGPATH_W) '$(srcdir)/menus.c'; fi`
+
+e16-menus-misc.o: menus-misc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-menus-misc.o -MD -MP -MF $(DEPDIR)/e16-menus-misc.Tpo -c -o e16-menus-misc.o `test -f 'menus-misc.c' || echo '$(srcdir)/'`menus-misc.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-menus-misc.Tpo $(DEPDIR)/e16-menus-misc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menus-misc.c' object='e16-menus-misc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-menus-misc.o `test -f 'menus-misc.c' || echo '$(srcdir)/'`menus-misc.c
+
+e16-menus-misc.obj: menus-misc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-menus-misc.obj -MD -MP -MF $(DEPDIR)/e16-menus-misc.Tpo -c -o e16-menus-misc.obj `if test -f 'menus-misc.c'; then $(CYGPATH_W) 'menus-misc.c'; else $(CYGPATH_W) '$(srcdir)/menus-misc.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-menus-misc.Tpo $(DEPDIR)/e16-menus-misc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='menus-misc.c' object='e16-menus-misc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-menus-misc.obj `if test -f 'menus-misc.c'; then $(CYGPATH_W) 'menus-misc.c'; else $(CYGPATH_W) '$(srcdir)/menus-misc.c'; fi`
+
+e16-misc.o: misc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-misc.o -MD -MP -MF $(DEPDIR)/e16-misc.Tpo -c -o e16-misc.o `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-misc.Tpo $(DEPDIR)/e16-misc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='misc.c' object='e16-misc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-misc.o `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
+
+e16-misc.obj: misc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-misc.obj -MD -MP -MF $(DEPDIR)/e16-misc.Tpo -c -o e16-misc.obj `if test -f 'misc.c'; then $(CYGPATH_W) 'misc.c'; else $(CYGPATH_W) '$(srcdir)/misc.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-misc.Tpo $(DEPDIR)/e16-misc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='misc.c' object='e16-misc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-misc.obj `if test -f 'misc.c'; then $(CYGPATH_W) 'misc.c'; else $(CYGPATH_W) '$(srcdir)/misc.c'; fi`
+
+e16-mod-misc.o: mod-misc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-mod-misc.o -MD -MP -MF $(DEPDIR)/e16-mod-misc.Tpo -c -o e16-mod-misc.o `test -f 'mod-misc.c' || echo '$(srcdir)/'`mod-misc.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-mod-misc.Tpo $(DEPDIR)/e16-mod-misc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mod-misc.c' object='e16-mod-misc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-mod-misc.o `test -f 'mod-misc.c' || echo '$(srcdir)/'`mod-misc.c
+
+e16-mod-misc.obj: mod-misc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-mod-misc.obj -MD -MP -MF $(DEPDIR)/e16-mod-misc.Tpo -c -o e16-mod-misc.obj `if test -f 'mod-misc.c'; then $(CYGPATH_W) 'mod-misc.c'; else $(CYGPATH_W) '$(srcdir)/mod-misc.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-mod-misc.Tpo $(DEPDIR)/e16-mod-misc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mod-misc.c' object='e16-mod-misc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-mod-misc.obj `if test -f 'mod-misc.c'; then $(CYGPATH_W) 'mod-misc.c'; else $(CYGPATH_W) '$(srcdir)/mod-misc.c'; fi`
+
+e16-mod-trans.o: mod-trans.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-mod-trans.o -MD -MP -MF $(DEPDIR)/e16-mod-trans.Tpo -c -o e16-mod-trans.o `test -f 'mod-trans.c' || echo '$(srcdir)/'`mod-trans.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-mod-trans.Tpo $(DEPDIR)/e16-mod-trans.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mod-trans.c' object='e16-mod-trans.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-mod-trans.o `test -f 'mod-trans.c' || echo '$(srcdir)/'`mod-trans.c
+
+e16-mod-trans.obj: mod-trans.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-mod-trans.obj -MD -MP -MF $(DEPDIR)/e16-mod-trans.Tpo -c -o e16-mod-trans.obj `if test -f 'mod-trans.c'; then $(CYGPATH_W) 'mod-trans.c'; else $(CYGPATH_W) '$(srcdir)/mod-trans.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-mod-trans.Tpo $(DEPDIR)/e16-mod-trans.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mod-trans.c' object='e16-mod-trans.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-mod-trans.obj `if test -f 'mod-trans.c'; then $(CYGPATH_W) 'mod-trans.c'; else $(CYGPATH_W) '$(srcdir)/mod-trans.c'; fi`
+
+e16-moveresize.o: moveresize.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-moveresize.o -MD -MP -MF $(DEPDIR)/e16-moveresize.Tpo -c -o e16-moveresize.o `test -f 'moveresize.c' || echo '$(srcdir)/'`moveresize.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-moveresize.Tpo $(DEPDIR)/e16-moveresize.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='moveresize.c' object='e16-moveresize.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-moveresize.o `test -f 'moveresize.c' || echo '$(srcdir)/'`moveresize.c
+
+e16-moveresize.obj: moveresize.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-moveresize.obj -MD -MP -MF $(DEPDIR)/e16-moveresize.Tpo -c -o e16-moveresize.obj `if test -f 'moveresize.c'; then $(CYGPATH_W) 'moveresize.c'; else $(CYGPATH_W) '$(srcdir)/moveresize.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-moveresize.Tpo $(DEPDIR)/e16-moveresize.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='moveresize.c' object='e16-moveresize.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-moveresize.obj `if test -f 'moveresize.c'; then $(CYGPATH_W) 'moveresize.c'; else $(CYGPATH_W) '$(srcdir)/moveresize.c'; fi`
+
+e16-mwm.o: mwm.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-mwm.o -MD -MP -MF $(DEPDIR)/e16-mwm.Tpo -c -o e16-mwm.o `test -f 'mwm.c' || echo '$(srcdir)/'`mwm.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-mwm.Tpo $(DEPDIR)/e16-mwm.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mwm.c' object='e16-mwm.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-mwm.o `test -f 'mwm.c' || echo '$(srcdir)/'`mwm.c
+
+e16-mwm.obj: mwm.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-mwm.obj -MD -MP -MF $(DEPDIR)/e16-mwm.Tpo -c -o e16-mwm.obj `if test -f 'mwm.c'; then $(CYGPATH_W) 'mwm.c'; else $(CYGPATH_W) '$(srcdir)/mwm.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-mwm.Tpo $(DEPDIR)/e16-mwm.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mwm.c' object='e16-mwm.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-mwm.obj `if test -f 'mwm.c'; then $(CYGPATH_W) 'mwm.c'; else $(CYGPATH_W) '$(srcdir)/mwm.c'; fi`
+
+e16-pager.o: pager.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-pager.o -MD -MP -MF $(DEPDIR)/e16-pager.Tpo -c -o e16-pager.o `test -f 'pager.c' || echo '$(srcdir)/'`pager.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-pager.Tpo $(DEPDIR)/e16-pager.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pager.c' object='e16-pager.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-pager.o `test -f 'pager.c' || echo '$(srcdir)/'`pager.c
+
+e16-pager.obj: pager.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-pager.obj -MD -MP -MF $(DEPDIR)/e16-pager.Tpo -c -o e16-pager.obj `if test -f 'pager.c'; then $(CYGPATH_W) 'pager.c'; else $(CYGPATH_W) '$(srcdir)/pager.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-pager.Tpo $(DEPDIR)/e16-pager.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pager.c' object='e16-pager.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-pager.obj `if test -f 'pager.c'; then $(CYGPATH_W) 'pager.c'; else $(CYGPATH_W) '$(srcdir)/pager.c'; fi`
+
+e16-parse.o: parse.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-parse.o -MD -MP -MF $(DEPDIR)/e16-parse.Tpo -c -o e16-parse.o `test -f 'parse.c' || echo '$(srcdir)/'`parse.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-parse.Tpo $(DEPDIR)/e16-parse.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse.c' object='e16-parse.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-parse.o `test -f 'parse.c' || echo '$(srcdir)/'`parse.c
+
+e16-parse.obj: parse.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-parse.obj -MD -MP -MF $(DEPDIR)/e16-parse.Tpo -c -o e16-parse.obj `if test -f 'parse.c'; then $(CYGPATH_W) 'parse.c'; else $(CYGPATH_W) '$(srcdir)/parse.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-parse.Tpo $(DEPDIR)/e16-parse.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse.c' object='e16-parse.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-parse.obj `if test -f 'parse.c'; then $(CYGPATH_W) 'parse.c'; else $(CYGPATH_W) '$(srcdir)/parse.c'; fi`
+
+e16-piximg.o: piximg.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-piximg.o -MD -MP -MF $(DEPDIR)/e16-piximg.Tpo -c -o e16-piximg.o `test -f 'piximg.c' || echo '$(srcdir)/'`piximg.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-piximg.Tpo $(DEPDIR)/e16-piximg.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='piximg.c' object='e16-piximg.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-piximg.o `test -f 'piximg.c' || echo '$(srcdir)/'`piximg.c
+
+e16-piximg.obj: piximg.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-piximg.obj -MD -MP -MF $(DEPDIR)/e16-piximg.Tpo -c -o e16-piximg.obj `if test -f 'piximg.c'; then $(CYGPATH_W) 'piximg.c'; else $(CYGPATH_W) '$(srcdir)/piximg.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-piximg.Tpo $(DEPDIR)/e16-piximg.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='piximg.c' object='e16-piximg.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-piximg.obj `if test -f 'piximg.c'; then $(CYGPATH_W) 'piximg.c'; else $(CYGPATH_W) '$(srcdir)/piximg.c'; fi`
+
+e16-progress.o: progress.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-progress.o -MD -MP -MF $(DEPDIR)/e16-progress.Tpo -c -o e16-progress.o `test -f 'progress.c' || echo '$(srcdir)/'`progress.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-progress.Tpo $(DEPDIR)/e16-progress.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='progress.c' object='e16-progress.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-progress.o `test -f 'progress.c' || echo '$(srcdir)/'`progress.c
+
+e16-progress.obj: progress.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-progress.obj -MD -MP -MF $(DEPDIR)/e16-progress.Tpo -c -o e16-progress.obj `if test -f 'progress.c'; then $(CYGPATH_W) 'progress.c'; else $(CYGPATH_W) '$(srcdir)/progress.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-progress.Tpo $(DEPDIR)/e16-progress.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='progress.c' object='e16-progress.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-progress.obj `if test -f 'progress.c'; then $(CYGPATH_W) 'progress.c'; else $(CYGPATH_W) '$(srcdir)/progress.c'; fi`
+
+e16-regex.o: regex.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-regex.o -MD -MP -MF $(DEPDIR)/e16-regex.Tpo -c -o e16-regex.o `test -f 'regex.c' || echo '$(srcdir)/'`regex.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-regex.Tpo $(DEPDIR)/e16-regex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regex.c' object='e16-regex.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-regex.o `test -f 'regex.c' || echo '$(srcdir)/'`regex.c
+
+e16-regex.obj: regex.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-regex.obj -MD -MP -MF $(DEPDIR)/e16-regex.Tpo -c -o e16-regex.obj `if test -f 'regex.c'; then $(CYGPATH_W) 'regex.c'; else $(CYGPATH_W) '$(srcdir)/regex.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-regex.Tpo $(DEPDIR)/e16-regex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regex.c' object='e16-regex.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-regex.obj `if test -f 'regex.c'; then $(CYGPATH_W) 'regex.c'; else $(CYGPATH_W) '$(srcdir)/regex.c'; fi`
+
+e16-screen.o: screen.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-screen.o -MD -MP -MF $(DEPDIR)/e16-screen.Tpo -c -o e16-screen.o `test -f 'screen.c' || echo '$(srcdir)/'`screen.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-screen.Tpo $(DEPDIR)/e16-screen.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='screen.c' object='e16-screen.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-screen.o `test -f 'screen.c' || echo '$(srcdir)/'`screen.c
+
+e16-screen.obj: screen.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-screen.obj -MD -MP -MF $(DEPDIR)/e16-screen.Tpo -c -o e16-screen.obj `if test -f 'screen.c'; then $(CYGPATH_W) 'screen.c'; else $(CYGPATH_W) '$(srcdir)/screen.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-screen.Tpo $(DEPDIR)/e16-screen.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='screen.c' object='e16-screen.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-screen.obj `if test -f 'screen.c'; then $(CYGPATH_W) 'screen.c'; else $(CYGPATH_W) '$(srcdir)/screen.c'; fi`
+
+e16-session.o: session.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-session.o -MD -MP -MF $(DEPDIR)/e16-session.Tpo -c -o e16-session.o `test -f 'session.c' || echo '$(srcdir)/'`session.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-session.Tpo $(DEPDIR)/e16-session.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='session.c' object='e16-session.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-session.o `test -f 'session.c' || echo '$(srcdir)/'`session.c
+
+e16-session.obj: session.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-session.obj -MD -MP -MF $(DEPDIR)/e16-session.Tpo -c -o e16-session.obj `if test -f 'session.c'; then $(CYGPATH_W) 'session.c'; else $(CYGPATH_W) '$(srcdir)/session.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-session.Tpo $(DEPDIR)/e16-session.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='session.c' object='e16-session.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-session.obj `if test -f 'session.c'; then $(CYGPATH_W) 'session.c'; else $(CYGPATH_W) '$(srcdir)/session.c'; fi`
+
+e16-settings.o: settings.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-settings.o -MD -MP -MF $(DEPDIR)/e16-settings.Tpo -c -o e16-settings.o `test -f 'settings.c' || echo '$(srcdir)/'`settings.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-settings.Tpo $(DEPDIR)/e16-settings.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='settings.c' object='e16-settings.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-settings.o `test -f 'settings.c' || echo '$(srcdir)/'`settings.c
+
+e16-settings.obj: settings.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-settings.obj -MD -MP -MF $(DEPDIR)/e16-settings.Tpo -c -o e16-settings.obj `if test -f 'settings.c'; then $(CYGPATH_W) 'settings.c'; else $(CYGPATH_W) '$(srcdir)/settings.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-settings.Tpo $(DEPDIR)/e16-settings.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='settings.c' object='e16-settings.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-settings.obj `if test -f 'settings.c'; then $(CYGPATH_W) 'settings.c'; else $(CYGPATH_W) '$(srcdir)/settings.c'; fi`
+
+e16-setup.o: setup.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-setup.o -MD -MP -MF $(DEPDIR)/e16-setup.Tpo -c -o e16-setup.o `test -f 'setup.c' || echo '$(srcdir)/'`setup.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-setup.Tpo $(DEPDIR)/e16-setup.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup.c' object='e16-setup.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-setup.o `test -f 'setup.c' || echo '$(srcdir)/'`setup.c
+
+e16-setup.obj: setup.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-setup.obj -MD -MP -MF $(DEPDIR)/e16-setup.Tpo -c -o e16-setup.obj `if test -f 'setup.c'; then $(CYGPATH_W) 'setup.c'; else $(CYGPATH_W) '$(srcdir)/setup.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-setup.Tpo $(DEPDIR)/e16-setup.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup.c' object='e16-setup.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-setup.obj `if test -f 'setup.c'; then $(CYGPATH_W) 'setup.c'; else $(CYGPATH_W) '$(srcdir)/setup.c'; fi`
+
+e16-size.o: size.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-size.o -MD -MP -MF $(DEPDIR)/e16-size.Tpo -c -o e16-size.o `test -f 'size.c' || echo '$(srcdir)/'`size.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-size.Tpo $(DEPDIR)/e16-size.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='size.c' object='e16-size.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-size.o `test -f 'size.c' || echo '$(srcdir)/'`size.c
+
+e16-size.obj: size.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-size.obj -MD -MP -MF $(DEPDIR)/e16-size.Tpo -c -o e16-size.obj `if test -f 'size.c'; then $(CYGPATH_W) 'size.c'; else $(CYGPATH_W) '$(srcdir)/size.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-size.Tpo $(DEPDIR)/e16-size.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='size.c' object='e16-size.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-size.obj `if test -f 'size.c'; then $(CYGPATH_W) 'size.c'; else $(CYGPATH_W) '$(srcdir)/size.c'; fi`
+
+e16-slideout.o: slideout.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-slideout.o -MD -MP -MF $(DEPDIR)/e16-slideout.Tpo -c -o e16-slideout.o `test -f 'slideout.c' || echo '$(srcdir)/'`slideout.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-slideout.Tpo $(DEPDIR)/e16-slideout.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='slideout.c' object='e16-slideout.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-slideout.o `test -f 'slideout.c' || echo '$(srcdir)/'`slideout.c
+
+e16-slideout.obj: slideout.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-slideout.obj -MD -MP -MF $(DEPDIR)/e16-slideout.Tpo -c -o e16-slideout.obj `if test -f 'slideout.c'; then $(CYGPATH_W) 'slideout.c'; else $(CYGPATH_W) '$(srcdir)/slideout.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-slideout.Tpo $(DEPDIR)/e16-slideout.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='slideout.c' object='e16-slideout.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-slideout.obj `if test -f 'slideout.c'; then $(CYGPATH_W) 'slideout.c'; else $(CYGPATH_W) '$(srcdir)/slideout.c'; fi`
+
+e16-snaps.o: snaps.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-snaps.o -MD -MP -MF $(DEPDIR)/e16-snaps.Tpo -c -o e16-snaps.o `test -f 'snaps.c' || echo '$(srcdir)/'`snaps.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-snaps.Tpo $(DEPDIR)/e16-snaps.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snaps.c' object='e16-snaps.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-snaps.o `test -f 'snaps.c' || echo '$(srcdir)/'`snaps.c
+
+e16-snaps.obj: snaps.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-snaps.obj -MD -MP -MF $(DEPDIR)/e16-snaps.Tpo -c -o e16-snaps.obj `if test -f 'snaps.c'; then $(CYGPATH_W) 'snaps.c'; else $(CYGPATH_W) '$(srcdir)/snaps.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-snaps.Tpo $(DEPDIR)/e16-snaps.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snaps.c' object='e16-snaps.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-snaps.obj `if test -f 'snaps.c'; then $(CYGPATH_W) 'snaps.c'; else $(CYGPATH_W) '$(srcdir)/snaps.c'; fi`
+
+e16-sound.o: sound.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound.o -MD -MP -MF $(DEPDIR)/e16-sound.Tpo -c -o e16-sound.o `test -f 'sound.c' || echo '$(srcdir)/'`sound.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound.Tpo $(DEPDIR)/e16-sound.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound.c' object='e16-sound.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound.o `test -f 'sound.c' || echo '$(srcdir)/'`sound.c
+
+e16-sound.obj: sound.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound.obj -MD -MP -MF $(DEPDIR)/e16-sound.Tpo -c -o e16-sound.obj `if test -f 'sound.c'; then $(CYGPATH_W) 'sound.c'; else $(CYGPATH_W) '$(srcdir)/sound.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound.Tpo $(DEPDIR)/e16-sound.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound.c' object='e16-sound.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound.obj `if test -f 'sound.c'; then $(CYGPATH_W) 'sound.c'; else $(CYGPATH_W) '$(srcdir)/sound.c'; fi`
+
+e16-stacking.o: stacking.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-stacking.o -MD -MP -MF $(DEPDIR)/e16-stacking.Tpo -c -o e16-stacking.o `test -f 'stacking.c' || echo '$(srcdir)/'`stacking.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-stacking.Tpo $(DEPDIR)/e16-stacking.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stacking.c' object='e16-stacking.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-stacking.o `test -f 'stacking.c' || echo '$(srcdir)/'`stacking.c
+
+e16-stacking.obj: stacking.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-stacking.obj -MD -MP -MF $(DEPDIR)/e16-stacking.Tpo -c -o e16-stacking.obj `if test -f 'stacking.c'; then $(CYGPATH_W) 'stacking.c'; else $(CYGPATH_W) '$(srcdir)/stacking.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-stacking.Tpo $(DEPDIR)/e16-stacking.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stacking.c' object='e16-stacking.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-stacking.obj `if test -f 'stacking.c'; then $(CYGPATH_W) 'stacking.c'; else $(CYGPATH_W) '$(srcdir)/stacking.c'; fi`
+
+e16-startup.o: startup.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-startup.o -MD -MP -MF $(DEPDIR)/e16-startup.Tpo -c -o e16-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-startup.Tpo $(DEPDIR)/e16-startup.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='startup.c' object='e16-startup.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-startup.o `test -f 'startup.c' || echo '$(srcdir)/'`startup.c
+
+e16-startup.obj: startup.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-startup.obj -MD -MP -MF $(DEPDIR)/e16-startup.Tpo -c -o e16-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-startup.Tpo $(DEPDIR)/e16-startup.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='startup.c' object='e16-startup.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-startup.obj `if test -f 'startup.c'; then $(CYGPATH_W) 'startup.c'; else $(CYGPATH_W) '$(srcdir)/startup.c'; fi`
+
+e16-string.o: string.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-string.o -MD -MP -MF $(DEPDIR)/e16-string.Tpo -c -o e16-string.o `test -f 'string.c' || echo '$(srcdir)/'`string.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-string.Tpo $(DEPDIR)/e16-string.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='string.c' object='e16-string.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-string.o `test -f 'string.c' || echo '$(srcdir)/'`string.c
+
+e16-string.obj: string.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-string.obj -MD -MP -MF $(DEPDIR)/e16-string.Tpo -c -o e16-string.obj `if test -f 'string.c'; then $(CYGPATH_W) 'string.c'; else $(CYGPATH_W) '$(srcdir)/string.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-string.Tpo $(DEPDIR)/e16-string.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='string.c' object='e16-string.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-string.obj `if test -f 'string.c'; then $(CYGPATH_W) 'string.c'; else $(CYGPATH_W) '$(srcdir)/string.c'; fi`
+
+e16-systray.o: systray.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-systray.o -MD -MP -MF $(DEPDIR)/e16-systray.Tpo -c -o e16-systray.o `test -f 'systray.c' || echo '$(srcdir)/'`systray.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-systray.Tpo $(DEPDIR)/e16-systray.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='systray.c' object='e16-systray.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-systray.o `test -f 'systray.c' || echo '$(srcdir)/'`systray.c
+
+e16-systray.obj: systray.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-systray.obj -MD -MP -MF $(DEPDIR)/e16-systray.Tpo -c -o e16-systray.obj `if test -f 'systray.c'; then $(CYGPATH_W) 'systray.c'; else $(CYGPATH_W) '$(srcdir)/systray.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-systray.Tpo $(DEPDIR)/e16-systray.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='systray.c' object='e16-systray.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-systray.obj `if test -f 'systray.c'; then $(CYGPATH_W) 'systray.c'; else $(CYGPATH_W) '$(srcdir)/systray.c'; fi`
+
+e16-tclass.o: tclass.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-tclass.o -MD -MP -MF $(DEPDIR)/e16-tclass.Tpo -c -o e16-tclass.o `test -f 'tclass.c' || echo '$(srcdir)/'`tclass.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-tclass.Tpo $(DEPDIR)/e16-tclass.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tclass.c' object='e16-tclass.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-tclass.o `test -f 'tclass.c' || echo '$(srcdir)/'`tclass.c
+
+e16-tclass.obj: tclass.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-tclass.obj -MD -MP -MF $(DEPDIR)/e16-tclass.Tpo -c -o e16-tclass.obj `if test -f 'tclass.c'; then $(CYGPATH_W) 'tclass.c'; else $(CYGPATH_W) '$(srcdir)/tclass.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-tclass.Tpo $(DEPDIR)/e16-tclass.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tclass.c' object='e16-tclass.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-tclass.obj `if test -f 'tclass.c'; then $(CYGPATH_W) 'tclass.c'; else $(CYGPATH_W) '$(srcdir)/tclass.c'; fi`
+
+e16-text.o: text.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-text.o -MD -MP -MF $(DEPDIR)/e16-text.Tpo -c -o e16-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-text.Tpo $(DEPDIR)/e16-text.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text.c' object='e16-text.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c
+
+e16-text.obj: text.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-text.obj -MD -MP -MF $(DEPDIR)/e16-text.Tpo -c -o e16-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-text.Tpo $(DEPDIR)/e16-text.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text.c' object='e16-text.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi`
+
+e16-theme.o: theme.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-theme.o -MD -MP -MF $(DEPDIR)/e16-theme.Tpo -c -o e16-theme.o `test -f 'theme.c' || echo '$(srcdir)/'`theme.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-theme.Tpo $(DEPDIR)/e16-theme.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='theme.c' object='e16-theme.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-theme.o `test -f 'theme.c' || echo '$(srcdir)/'`theme.c
+
+e16-theme.obj: theme.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-theme.obj -MD -MP -MF $(DEPDIR)/e16-theme.Tpo -c -o e16-theme.obj `if test -f 'theme.c'; then $(CYGPATH_W) 'theme.c'; else $(CYGPATH_W) '$(srcdir)/theme.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-theme.Tpo $(DEPDIR)/e16-theme.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='theme.c' object='e16-theme.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-theme.obj `if test -f 'theme.c'; then $(CYGPATH_W) 'theme.c'; else $(CYGPATH_W) '$(srcdir)/theme.c'; fi`
+
+e16-timers.o: timers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-timers.o -MD -MP -MF $(DEPDIR)/e16-timers.Tpo -c -o e16-timers.o `test -f 'timers.c' || echo '$(srcdir)/'`timers.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-timers.Tpo $(DEPDIR)/e16-timers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timers.c' object='e16-timers.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-timers.o `test -f 'timers.c' || echo '$(srcdir)/'`timers.c
+
+e16-timers.obj: timers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-timers.obj -MD -MP -MF $(DEPDIR)/e16-timers.Tpo -c -o e16-timers.obj `if test -f 'timers.c'; then $(CYGPATH_W) 'timers.c'; else $(CYGPATH_W) '$(srcdir)/timers.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-timers.Tpo $(DEPDIR)/e16-timers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timers.c' object='e16-timers.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-timers.obj `if test -f 'timers.c'; then $(CYGPATH_W) 'timers.c'; else $(CYGPATH_W) '$(srcdir)/timers.c'; fi`
+
+e16-tooltips.o: tooltips.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-tooltips.o -MD -MP -MF $(DEPDIR)/e16-tooltips.Tpo -c -o e16-tooltips.o `test -f 'tooltips.c' || echo '$(srcdir)/'`tooltips.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-tooltips.Tpo $(DEPDIR)/e16-tooltips.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tooltips.c' object='e16-tooltips.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-tooltips.o `test -f 'tooltips.c' || echo '$(srcdir)/'`tooltips.c
+
+e16-tooltips.obj: tooltips.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-tooltips.obj -MD -MP -MF $(DEPDIR)/e16-tooltips.Tpo -c -o e16-tooltips.obj `if test -f 'tooltips.c'; then $(CYGPATH_W) 'tooltips.c'; else $(CYGPATH_W) '$(srcdir)/tooltips.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-tooltips.Tpo $(DEPDIR)/e16-tooltips.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tooltips.c' object='e16-tooltips.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-tooltips.obj `if test -f 'tooltips.c'; then $(CYGPATH_W) 'tooltips.c'; else $(CYGPATH_W) '$(srcdir)/tooltips.c'; fi`
+
+e16-user.o: user.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-user.o -MD -MP -MF $(DEPDIR)/e16-user.Tpo -c -o e16-user.o `test -f 'user.c' || echo '$(srcdir)/'`user.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-user.Tpo $(DEPDIR)/e16-user.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='user.c' object='e16-user.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-user.o `test -f 'user.c' || echo '$(srcdir)/'`user.c
+
+e16-user.obj: user.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-user.obj -MD -MP -MF $(DEPDIR)/e16-user.Tpo -c -o e16-user.obj `if test -f 'user.c'; then $(CYGPATH_W) 'user.c'; else $(CYGPATH_W) '$(srcdir)/user.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-user.Tpo $(DEPDIR)/e16-user.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='user.c' object='e16-user.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-user.obj `if test -f 'user.c'; then $(CYGPATH_W) 'user.c'; else $(CYGPATH_W) '$(srcdir)/user.c'; fi`
+
+e16-warp.o: warp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-warp.o -MD -MP -MF $(DEPDIR)/e16-warp.Tpo -c -o e16-warp.o `test -f 'warp.c' || echo '$(srcdir)/'`warp.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-warp.Tpo $(DEPDIR)/e16-warp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='warp.c' object='e16-warp.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-warp.o `test -f 'warp.c' || echo '$(srcdir)/'`warp.c
+
+e16-warp.obj: warp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-warp.obj -MD -MP -MF $(DEPDIR)/e16-warp.Tpo -c -o e16-warp.obj `if test -f 'warp.c'; then $(CYGPATH_W) 'warp.c'; else $(CYGPATH_W) '$(srcdir)/warp.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-warp.Tpo $(DEPDIR)/e16-warp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='warp.c' object='e16-warp.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-warp.obj `if test -f 'warp.c'; then $(CYGPATH_W) 'warp.c'; else $(CYGPATH_W) '$(srcdir)/warp.c'; fi`
+
+e16-windowmatch.o: windowmatch.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-windowmatch.o -MD -MP -MF $(DEPDIR)/e16-windowmatch.Tpo -c -o e16-windowmatch.o `test -f 'windowmatch.c' || echo '$(srcdir)/'`windowmatch.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-windowmatch.Tpo $(DEPDIR)/e16-windowmatch.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='windowmatch.c' object='e16-windowmatch.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-windowmatch.o `test -f 'windowmatch.c' || echo '$(srcdir)/'`windowmatch.c
+
+e16-windowmatch.obj: windowmatch.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-windowmatch.obj -MD -MP -MF $(DEPDIR)/e16-windowmatch.Tpo -c -o e16-windowmatch.obj `if test -f 'windowmatch.c'; then $(CYGPATH_W) 'windowmatch.c'; else $(CYGPATH_W) '$(srcdir)/windowmatch.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-windowmatch.Tpo $(DEPDIR)/e16-windowmatch.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='windowmatch.c' object='e16-windowmatch.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-windowmatch.obj `if test -f 'windowmatch.c'; then $(CYGPATH_W) 'windowmatch.c'; else $(CYGPATH_W) '$(srcdir)/windowmatch.c'; fi`
+
+e16-x.o: x.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-x.o -MD -MP -MF $(DEPDIR)/e16-x.Tpo -c -o e16-x.o `test -f 'x.c' || echo '$(srcdir)/'`x.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-x.Tpo $(DEPDIR)/e16-x.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x.c' object='e16-x.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-x.o `test -f 'x.c' || echo '$(srcdir)/'`x.c
+
+e16-x.obj: x.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-x.obj -MD -MP -MF $(DEPDIR)/e16-x.Tpo -c -o e16-x.obj `if test -f 'x.c'; then $(CYGPATH_W) 'x.c'; else $(CYGPATH_W) '$(srcdir)/x.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-x.Tpo $(DEPDIR)/e16-x.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='x.c' object='e16-x.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-x.obj `if test -f 'x.c'; then $(CYGPATH_W) 'x.c'; else $(CYGPATH_W) '$(srcdir)/x.c'; fi`
+
+e16-zoom.o: zoom.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-zoom.o -MD -MP -MF $(DEPDIR)/e16-zoom.Tpo -c -o e16-zoom.o `test -f 'zoom.c' || echo '$(srcdir)/'`zoom.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-zoom.Tpo $(DEPDIR)/e16-zoom.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zoom.c' object='e16-zoom.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-zoom.o `test -f 'zoom.c' || echo '$(srcdir)/'`zoom.c
+
+e16-zoom.obj: zoom.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-zoom.obj -MD -MP -MF $(DEPDIR)/e16-zoom.Tpo -c -o e16-zoom.obj `if test -f 'zoom.c'; then $(CYGPATH_W) 'zoom.c'; else $(CYGPATH_W) '$(srcdir)/zoom.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-zoom.Tpo $(DEPDIR)/e16-zoom.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zoom.c' object='e16-zoom.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-zoom.obj `if test -f 'zoom.c'; then $(CYGPATH_W) 'zoom.c'; else $(CYGPATH_W) '$(srcdir)/zoom.c'; fi`
+
+e16-sound_esd.o: sound_esd.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound_esd.o -MD -MP -MF $(DEPDIR)/e16-sound_esd.Tpo -c -o e16-sound_esd.o `test -f 'sound_esd.c' || echo '$(srcdir)/'`sound_esd.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound_esd.Tpo $(DEPDIR)/e16-sound_esd.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_esd.c' object='e16-sound_esd.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound_esd.o `test -f 'sound_esd.c' || echo '$(srcdir)/'`sound_esd.c
+
+e16-sound_esd.obj: sound_esd.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound_esd.obj -MD -MP -MF $(DEPDIR)/e16-sound_esd.Tpo -c -o e16-sound_esd.obj `if test -f 'sound_esd.c'; then $(CYGPATH_W) 'sound_esd.c'; else $(CYGPATH_W) '$(srcdir)/sound_esd.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound_esd.Tpo $(DEPDIR)/e16-sound_esd.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_esd.c' object='e16-sound_esd.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound_esd.obj `if test -f 'sound_esd.c'; then $(CYGPATH_W) 'sound_esd.c'; else $(CYGPATH_W) '$(srcdir)/sound_esd.c'; fi`
+
+e16-sound_pa.o: sound_pa.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound_pa.o -MD -MP -MF $(DEPDIR)/e16-sound_pa.Tpo -c -o e16-sound_pa.o `test -f 'sound_pa.c' || echo '$(srcdir)/'`sound_pa.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound_pa.Tpo $(DEPDIR)/e16-sound_pa.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_pa.c' object='e16-sound_pa.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound_pa.o `test -f 'sound_pa.c' || echo '$(srcdir)/'`sound_pa.c
+
+e16-sound_pa.obj: sound_pa.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound_pa.obj -MD -MP -MF $(DEPDIR)/e16-sound_pa.Tpo -c -o e16-sound_pa.obj `if test -f 'sound_pa.c'; then $(CYGPATH_W) 'sound_pa.c'; else $(CYGPATH_W) '$(srcdir)/sound_pa.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound_pa.Tpo $(DEPDIR)/e16-sound_pa.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_pa.c' object='e16-sound_pa.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound_pa.obj `if test -f 'sound_pa.c'; then $(CYGPATH_W) 'sound_pa.c'; else $(CYGPATH_W) '$(srcdir)/sound_pa.c'; fi`
+
+e16-sound_load.o: sound_load.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound_load.o -MD -MP -MF $(DEPDIR)/e16-sound_load.Tpo -c -o e16-sound_load.o `test -f 'sound_load.c' || echo '$(srcdir)/'`sound_load.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound_load.Tpo $(DEPDIR)/e16-sound_load.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_load.c' object='e16-sound_load.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound_load.o `test -f 'sound_load.c' || echo '$(srcdir)/'`sound_load.c
+
+e16-sound_load.obj: sound_load.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-sound_load.obj -MD -MP -MF $(DEPDIR)/e16-sound_load.Tpo -c -o e16-sound_load.obj `if test -f 'sound_load.c'; then $(CYGPATH_W) 'sound_load.c'; else $(CYGPATH_W) '$(srcdir)/sound_load.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-sound_load.Tpo $(DEPDIR)/e16-sound_load.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sound_load.c' object='e16-sound_load.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-sound_load.obj `if test -f 'sound_load.c'; then $(CYGPATH_W) 'sound_load.c'; else $(CYGPATH_W) '$(srcdir)/sound_load.c'; fi`
+
+e16-ttfont.o: ttfont.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ttfont.o -MD -MP -MF $(DEPDIR)/e16-ttfont.Tpo -c -o e16-ttfont.o `test -f 'ttfont.c' || echo '$(srcdir)/'`ttfont.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ttfont.Tpo $(DEPDIR)/e16-ttfont.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ttfont.c' object='e16-ttfont.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ttfont.o `test -f 'ttfont.c' || echo '$(srcdir)/'`ttfont.c
+
+e16-ttfont.obj: ttfont.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ttfont.obj -MD -MP -MF $(DEPDIR)/e16-ttfont.Tpo -c -o e16-ttfont.obj `if test -f 'ttfont.c'; then $(CYGPATH_W) 'ttfont.c'; else $(CYGPATH_W) '$(srcdir)/ttfont.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ttfont.Tpo $(DEPDIR)/e16-ttfont.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ttfont.c' object='e16-ttfont.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ttfont.obj `if test -f 'ttfont.c'; then $(CYGPATH_W) 'ttfont.c'; else $(CYGPATH_W) '$(srcdir)/ttfont.c'; fi`
+
+e16-text_xft.o: text_xft.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-text_xft.o -MD -MP -MF $(DEPDIR)/e16-text_xft.Tpo -c -o e16-text_xft.o `test -f 'text_xft.c' || echo '$(srcdir)/'`text_xft.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-text_xft.Tpo $(DEPDIR)/e16-text_xft.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text_xft.c' object='e16-text_xft.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-text_xft.o `test -f 'text_xft.c' || echo '$(srcdir)/'`text_xft.c
+
+e16-text_xft.obj: text_xft.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-text_xft.obj -MD -MP -MF $(DEPDIR)/e16-text_xft.Tpo -c -o e16-text_xft.obj `if test -f 'text_xft.c'; then $(CYGPATH_W) 'text_xft.c'; else $(CYGPATH_W) '$(srcdir)/text_xft.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-text_xft.Tpo $(DEPDIR)/e16-text_xft.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text_xft.c' object='e16-text_xft.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-text_xft.obj `if test -f 'text_xft.c'; then $(CYGPATH_W) 'text_xft.c'; else $(CYGPATH_W) '$(srcdir)/text_xft.c'; fi`
+
+e16-text_pango.o: text_pango.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-text_pango.o -MD -MP -MF $(DEPDIR)/e16-text_pango.Tpo -c -o e16-text_pango.o `test -f 'text_pango.c' || echo '$(srcdir)/'`text_pango.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-text_pango.Tpo $(DEPDIR)/e16-text_pango.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text_pango.c' object='e16-text_pango.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-text_pango.o `test -f 'text_pango.c' || echo '$(srcdir)/'`text_pango.c
+
+e16-text_pango.obj: text_pango.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-text_pango.obj -MD -MP -MF $(DEPDIR)/e16-text_pango.Tpo -c -o e16-text_pango.obj `if test -f 'text_pango.c'; then $(CYGPATH_W) 'text_pango.c'; else $(CYGPATH_W) '$(srcdir)/text_pango.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-text_pango.Tpo $(DEPDIR)/e16-text_pango.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='text_pango.c' object='e16-text_pango.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-text_pango.obj `if test -f 'text_pango.c'; then $(CYGPATH_W) 'text_pango.c'; else $(CYGPATH_W) '$(srcdir)/text_pango.c'; fi`
+
+e16-gnome.o: gnome.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-gnome.o -MD -MP -MF $(DEPDIR)/e16-gnome.Tpo -c -o e16-gnome.o `test -f 'gnome.c' || echo '$(srcdir)/'`gnome.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-gnome.Tpo $(DEPDIR)/e16-gnome.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gnome.c' object='e16-gnome.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-gnome.o `test -f 'gnome.c' || echo '$(srcdir)/'`gnome.c
+
+e16-gnome.obj: gnome.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-gnome.obj -MD -MP -MF $(DEPDIR)/e16-gnome.Tpo -c -o e16-gnome.obj `if test -f 'gnome.c'; then $(CYGPATH_W) 'gnome.c'; else $(CYGPATH_W) '$(srcdir)/gnome.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-gnome.Tpo $(DEPDIR)/e16-gnome.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gnome.c' object='e16-gnome.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-gnome.obj `if test -f 'gnome.c'; then $(CYGPATH_W) 'gnome.c'; else $(CYGPATH_W) '$(srcdir)/gnome.c'; fi`
+
+e16-eglx.o: eglx.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-eglx.o -MD -MP -MF $(DEPDIR)/e16-eglx.Tpo -c -o e16-eglx.o `test -f 'eglx.c' || echo '$(srcdir)/'`eglx.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-eglx.Tpo $(DEPDIR)/e16-eglx.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eglx.c' object='e16-eglx.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-eglx.o `test -f 'eglx.c' || echo '$(srcdir)/'`eglx.c
+
+e16-eglx.obj: eglx.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-eglx.obj -MD -MP -MF $(DEPDIR)/e16-eglx.Tpo -c -o e16-eglx.obj `if test -f 'eglx.c'; then $(CYGPATH_W) 'eglx.c'; else $(CYGPATH_W) '$(srcdir)/eglx.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-eglx.Tpo $(DEPDIR)/e16-eglx.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eglx.c' object='e16-eglx.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-eglx.obj `if test -f 'eglx.c'; then $(CYGPATH_W) 'eglx.c'; else $(CYGPATH_W) '$(srcdir)/eglx.c'; fi`
+
+e16-glwin.o: glwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-glwin.o -MD -MP -MF $(DEPDIR)/e16-glwin.Tpo -c -o e16-glwin.o `test -f 'glwin.c' || echo '$(srcdir)/'`glwin.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-glwin.Tpo $(DEPDIR)/e16-glwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='glwin.c' object='e16-glwin.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-glwin.o `test -f 'glwin.c' || echo '$(srcdir)/'`glwin.c
+
+e16-glwin.obj: glwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-glwin.obj -MD -MP -MF $(DEPDIR)/e16-glwin.Tpo -c -o e16-glwin.obj `if test -f 'glwin.c'; then $(CYGPATH_W) 'glwin.c'; else $(CYGPATH_W) '$(srcdir)/glwin.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-glwin.Tpo $(DEPDIR)/e16-glwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='glwin.c' object='e16-glwin.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-glwin.obj `if test -f 'glwin.c'; then $(CYGPATH_W) 'glwin.c'; else $(CYGPATH_W) '$(srcdir)/glwin.c'; fi`
+
+e16-ecompmgr.o: ecompmgr.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ecompmgr.o -MD -MP -MF $(DEPDIR)/e16-ecompmgr.Tpo -c -o e16-ecompmgr.o `test -f 'ecompmgr.c' || echo '$(srcdir)/'`ecompmgr.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ecompmgr.Tpo $(DEPDIR)/e16-ecompmgr.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ecompmgr.c' object='e16-ecompmgr.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ecompmgr.o `test -f 'ecompmgr.c' || echo '$(srcdir)/'`ecompmgr.c
+
+e16-ecompmgr.obj: ecompmgr.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-ecompmgr.obj -MD -MP -MF $(DEPDIR)/e16-ecompmgr.Tpo -c -o e16-ecompmgr.obj `if test -f 'ecompmgr.c'; then $(CYGPATH_W) 'ecompmgr.c'; else $(CYGPATH_W) '$(srcdir)/ecompmgr.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-ecompmgr.Tpo $(DEPDIR)/e16-ecompmgr.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ecompmgr.c' object='e16-ecompmgr.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-ecompmgr.obj `if test -f 'ecompmgr.c'; then $(CYGPATH_W) 'ecompmgr.c'; else $(CYGPATH_W) '$(srcdir)/ecompmgr.c'; fi`
+
+e16-magwin.o: magwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-magwin.o -MD -MP -MF $(DEPDIR)/e16-magwin.Tpo -c -o e16-magwin.o `test -f 'magwin.c' || echo '$(srcdir)/'`magwin.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-magwin.Tpo $(DEPDIR)/e16-magwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='magwin.c' object='e16-magwin.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-magwin.o `test -f 'magwin.c' || echo '$(srcdir)/'`magwin.c
+
+e16-magwin.obj: magwin.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-magwin.obj -MD -MP -MF $(DEPDIR)/e16-magwin.Tpo -c -o e16-magwin.obj `if test -f 'magwin.c'; then $(CYGPATH_W) 'magwin.c'; else $(CYGPATH_W) '$(srcdir)/magwin.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-magwin.Tpo $(DEPDIR)/e16-magwin.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='magwin.c' object='e16-magwin.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-magwin.obj `if test -f 'magwin.c'; then $(CYGPATH_W) 'magwin.c'; else $(CYGPATH_W) '$(srcdir)/magwin.c'; fi`
+
+e16-edbus.o: edbus.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-edbus.o -MD -MP -MF $(DEPDIR)/e16-edbus.Tpo -c -o e16-edbus.o `test -f 'edbus.c' || echo '$(srcdir)/'`edbus.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-edbus.Tpo $(DEPDIR)/e16-edbus.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='edbus.c' object='e16-edbus.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-edbus.o `test -f 'edbus.c' || echo '$(srcdir)/'`edbus.c
+
+e16-edbus.obj: edbus.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-edbus.obj -MD -MP -MF $(DEPDIR)/e16-edbus.Tpo -c -o e16-edbus.obj `if test -f 'edbus.c'; then $(CYGPATH_W) 'edbus.c'; else $(CYGPATH_W) '$(srcdir)/edbus.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-edbus.Tpo $(DEPDIR)/e16-edbus.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='edbus.c' object='e16-edbus.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-edbus.obj `if test -f 'edbus.c'; then $(CYGPATH_W) 'edbus.c'; else $(CYGPATH_W) '$(srcdir)/edbus.c'; fi`
+
+e16-snprintf.o: snprintf.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-snprintf.o -MD -MP -MF $(DEPDIR)/e16-snprintf.Tpo -c -o e16-snprintf.o `test -f 'snprintf.c' || echo '$(srcdir)/'`snprintf.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-snprintf.Tpo $(DEPDIR)/e16-snprintf.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snprintf.c' object='e16-snprintf.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-snprintf.o `test -f 'snprintf.c' || echo '$(srcdir)/'`snprintf.c
+
+e16-snprintf.obj: snprintf.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT e16-snprintf.obj -MD -MP -MF $(DEPDIR)/e16-snprintf.Tpo -c -o e16-snprintf.obj `if test -f 'snprintf.c'; then $(CYGPATH_W) 'snprintf.c'; else $(CYGPATH_W) '$(srcdir)/snprintf.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/e16-snprintf.Tpo $(DEPDIR)/e16-snprintf.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snprintf.c' object='e16-snprintf.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(e16_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o e16-snprintf.obj `if test -f 'snprintf.c'; then $(CYGPATH_W) 'snprintf.c'; else $(CYGPATH_W) '$(srcdir)/snprintf.c'; fi`
+
+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.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(libe16dir)" "$(DESTDIR)$(bindir)"; 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:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-binPROGRAMS clean-generic clean-libe16LTLIBRARIES \
+ 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
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-libe16LTLIBRARIES
+
+install-dvi: install-dvi-recursive
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+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-binPROGRAMS uninstall-libe16LTLIBRARIES
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-binPROGRAMS \
+ clean-generic clean-libe16LTLIBRARIES clean-libtool ctags \
+ ctags-recursive distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-binPROGRAMS \
+ 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-libe16LTLIBRARIES \
+ 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-recursive uninstall uninstall-am \
+ uninstall-binPROGRAMS uninstall-libe16LTLIBRARIES
+
+# 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:
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "dialog.h"
+
+#if ENABLE_DIALOGS
+
+static void
+_DlgFillAbout(Dialog * d, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+ char buf[1024];
+
+ Esnprintf(buf, sizeof(buf), _("About Enlightenment e16 version %s"),
+ e_wm_version);
+ DialogSetTitle(d, buf);
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_IMAGE);
+ DialogItemImageSetFile(di, "pix/about.png");
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ Esnprintf(buf, sizeof(buf),
+ _("Welcome to Enlightenment e16\n" "version %s.\n"
+ "If you find a bug, please do not\n"
+ "hesitate to send in a bug report.\n"
+ "We hope you enjoy the software.\n" "\n"
+ "The Rasterman - raster@rasterman.com\n"
+ "Mandrake - mandrake@mandrake.net\n"
+ "Kim Woelders - kim@woelders.dk\n"), e_wm_version);
+ DialogItemSetText(di, buf);
+
+ DialogBindKey(d, "Return", DialogCallbackClose, 0, NULL);
+ DialogBindKey(d, "Escape", DialogCallbackClose, 0, NULL);
+}
+
+static const DialogDef DlgAbout = {
+ "ABOUT_ENLIGHTENMENT",
+ NULL,
+ NULL,
+ SOUND_NONE,
+ NULL,
+ NULL,
+ _DlgFillAbout,
+ DLG_OK | DLG_NO_SEPARATOR, DialogCallbackClose,
+};
+
+void
+About(void)
+{
+ DialogShowSimple(&DlgAbout, NULL);
+}
+
+#endif /* ENABLE_DIALOGS */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "conf.h"
+#include "cursors.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "ewins.h"
+#include "file.h"
+#include "grabs.h"
+#include "timers.h"
+#include <ctype.h>
+
+typedef struct _actiontype {
+ char *params;
+ struct _actiontype *next;
+} ActionType;
+
+struct _action {
+ char event;
+ char anymodifier;
+ int modifiers;
+ char anybutton;
+ int button;
+ char anykey;
+ KeyCode key;
+ char *key_str;
+ char *tooltipstring;
+ ActionType *action;
+};
+
+struct _actionclass {
+ char *name;
+ int num;
+ Action **list;
+ char *tooltipstring;
+ unsigned int ref_count;
+ char global;
+};
+
+static void UnGrabActionKey(Action * aa);
+static void GrabActionKey(Action * aa);
+
+static Ecore_List *aclass_list = NULL;
+static Ecore_List *aclass_list_global = NULL;
+
+static char mode_action_destroy = 0;
+
+static void
+RemoveActionType(ActionType * ActionTypeToRemove)
+{
+ ActionType *ptr, *pp;
+
+ ptr = ActionTypeToRemove;
+ while (ptr)
+ {
+ Efree(ptr->params);
+ pp = ptr;
+ ptr = ptr->next;
+ Efree(pp);
+ }
+}
+
+Action *
+ActionCreate(char event, char anymod, int mod, int anybut, int but,
+ char anykey, const char *key, const char *tooltipstring)
+{
+ Action *aa;
+
+ aa = EMALLOC(Action, 1);
+ aa->action = NULL;
+ aa->event = event;
+ aa->anymodifier = anymod;
+ aa->modifiers = mod;
+ aa->anybutton = anybut;
+ aa->button = but;
+ aa->anykey = anykey;
+ if (!key || !key[0] || (event != EVENT_KEY_DOWN && event != EVENT_KEY_UP))
+ aa->key = 0;
+ else
+ aa->key = EKeynameToKeycode(key);
+ aa->key_str = (aa->key) ? Estrdup(key) : NULL;
+ aa->tooltipstring =
+ (tooltipstring) ? Estrdup((tooltipstring[0]) ? tooltipstring : "?!?") :
+ NULL;
+
+ return aa;
+}
+
+static void
+ActionDestroy(Action * aa)
+{
+ if (!aa)
+ return;
+
+ if ((aa->event == EVENT_KEY_DOWN) || (aa->event == EVENT_KEY_UP))
+ UnGrabActionKey(aa);
+ if (aa->action)
+ RemoveActionType(aa->action);
+ Efree(aa->tooltipstring);
+ Efree(aa->key_str);
+ Efree(aa);
+}
+
+void
+ActionAddTo(Action * aa, const char *params)
+{
+ ActionType *pptr, *ptr, *at;
+
+ at = EMALLOC(ActionType, 1);
+ if (!at)
+ return;
+
+ at->next = NULL;
+ at->params = (params && *params) ? Estrdup(params) : NULL;
+ if (!aa->action)
+ {
+ aa->action = at;
+ }
+ else
+ {
+ pptr = NULL;
+ ptr = aa->action;
+ while (ptr)
+ {
+ pptr = ptr;
+ ptr = ptr->next;
+ }
+ if (pptr)
+ pptr->next = at;
+ }
+}
+
+void
+ActionclassAddAction(ActionClass * ac, Action * aa)
+{
+ ac->num++;
+ ac->list = EREALLOC(Action *, ac->list, ac->num);
+ ac->list[ac->num - 1] = aa;
+}
+
+ActionClass *
+ActionclassCreate(const char *name, int global)
+{
+ ActionClass *ac;
+
+ ac = ECALLOC(ActionClass, 1);
+ ac->name = Estrdup(name);
+
+ if (global)
+ {
+ if (!aclass_list_global)
+ aclass_list_global = ecore_list_new();
+ ecore_list_prepend(aclass_list_global, ac);
+ ac->global = 1;
+ }
+ else
+ {
+ if (!aclass_list)
+ aclass_list = ecore_list_new();
+ ecore_list_prepend(aclass_list, ac);
+ }
+
+ return ac;
+}
+
+static void
+ActionclassEmpty(ActionClass * ac)
+{
+ int i;
+
+ for (i = 0; i < ac->num; i++)
+ ActionDestroy(ac->list[i]);
+ ac->num = 0;
+ _EFREE(ac->list);
+ _EFREE(ac->tooltipstring);
+}
+
+static void
+ActionclassDestroy(ActionClass * ac)
+{
+ if (!ac)
+ return;
+
+ if (ac->ref_count > 0)
+ {
+ DialogOK("ActionClass Error!", _("%u references remain\n"),
+ ac->ref_count);
+ return;
+ }
+
+ ecore_list_node_remove(aclass_list, ac);
+
+ ActionclassEmpty(ac);
+ Efree(ac->name);
+
+ Efree(ac);
+ mode_action_destroy = 1;
+}
+
+static int
+_ActionclassMatchName(const void *data, const void *match)
+{
+ return strcmp(((const ActionClass *)data)->name, (const char *)match);
+}
+
+static ActionClass *
+ActionclassFindGlobal(const char *name)
+{
+ return (ActionClass *) ecore_list_find(aclass_list_global,
+ _ActionclassMatchName, name);
+}
+
+ActionClass *
+ActionclassFind(const char *name)
+{
+ if (!name)
+ return NULL;
+ return (ActionClass *) ecore_list_find(aclass_list, _ActionclassMatchName,
+ name);
+}
+
+static ActionClass *
+ActionclassFindAny(const char *name)
+{
+ ActionClass *ac;
+
+ ac = (ActionClass *) ecore_list_find(aclass_list_global,
+ _ActionclassMatchName, name);
+ if (ac)
+ return ac;
+ return (ActionClass *) ecore_list_find(aclass_list, _ActionclassMatchName,
+ name);
+}
+
+int
+AclassConfigLoad(FILE * fs)
+{
+ int err = 0;
+ ActionClass *ac = NULL;
+ Action *aa = NULL;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char *p2;
+ int i1, i2;
+ char event = 0;
+ char anymod = 0;
+ int mod = 0;
+ int anybut = 0;
+ int but = 0;
+ int first = 1;
+ char anykey = 0;
+ char key[64];
+ char *aclass_tooltipstring = NULL;
+ char *action_tooltipstring = NULL;
+ char global = 0;
+
+ key[0] = '\0';
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, &p2, NULL);
+ i2 = atoi(s2);
+ switch (i1)
+ {
+ case CONFIG_VERSION:
+ break;
+ case CONFIG_ACTIONCLASS:
+ err = -1;
+ if (i2 != CONFIG_OPEN)
+ goto done;
+ ac = NULL;
+ aa = NULL;
+ event = 0;
+ anymod = anybut = anykey = 0;
+ mod = 0;
+ but = 0;
+ first = 1;
+ key[0] = '\0';
+ break;
+ case CONFIG_CLOSE:
+ ac->tooltipstring =
+ (aclass_tooltipstring) ? Estrdup((aclass_tooltipstring[0]) ?
+ aclass_tooltipstring :
+ "?!?") : NULL;
+ err = 0;
+ goto done;
+
+ case CONFIG_CLASSNAME:
+ case ACLASS_NAME:
+ ac = ActionclassFindAny(s2);
+ if (ac)
+ {
+ if (!strcmp(s2, "KEYBINDINGS"))
+ Mode.keybinds_changed = 1;
+ ActionclassEmpty(ac);
+ }
+ else
+ {
+ ac = ActionclassCreate(s2, 0);
+ }
+ break;
+ case CONFIG_TYPE:
+ case ACLASS_TYPE:
+ if (i2 == ACLASS_TYPE_ACLASS)
+ break;
+ ecore_list_node_remove(aclass_list, ActionclassFind(s2));
+ ecore_list_prepend(aclass_list_global, ac);
+ global = 1;
+
+ break;
+ case CONFIG_MODIFIER:
+ case ACLASS_MODIFIER:
+ /* These are the defines that I have listed...
+ * These, therefore, are the ones that I am
+ * going to accept by default.
+ * REMINDER: add and'ing in future!!!!
+ * #define ShiftMask (1<<0)
+ * #define LockMask (1<<1)
+ * #define ControlMask (1<<2)
+ * #define Mod1Mask (1<<3)
+ * #define Mod2Mask (1<<4)
+ * #define Mod3Mask (1<<5)
+ * #define Mod4Mask (1<<6)
+ * #define Mod5Mask (1<<7)
+ */
+ switch (i2)
+ {
+ case MASK_NONE:
+ mod = 0;
+ break;
+ case MASK_SHIFT:
+ mod |= ShiftMask;
+ break;
+ case MASK_LOCK:
+ mod |= LockMask;
+ break;
+ case MASK_CTRL:
+ mod |= ControlMask;
+ break;
+ case MASK_MOD1:
+ mod |= Mod1Mask;
+ break;
+ case MASK_MOD2:
+ mod |= Mod2Mask;
+ break;
+ case MASK_MOD3:
+ mod |= Mod3Mask;
+ break;
+ case MASK_MOD4:
+ mod |= Mod4Mask;
+ break;
+ case MASK_MOD5:
+ mod |= Mod5Mask;
+ break;
+ case MASK_CTRL_ALT:
+ mod |= ControlMask | Mod1Mask;
+ break;
+ case MASK_SHIFT_ALT:
+ mod |= ShiftMask | Mod1Mask;
+ break;
+ case MASK_CTRL_SHIFT:
+ mod |= ShiftMask | ControlMask;
+ break;
+ case MASK_CTRL_SHIFT_ALT:
+ mod |= ShiftMask | ControlMask | Mod1Mask;
+ break;
+ case MASK_SHIFT_META4:
+ mod |= Mod4Mask | ShiftMask;
+ break;
+ case MASK_CTRL_META4:
+ mod |= Mod4Mask | ControlMask;
+ break;
+ case MASK_CTRL_META4_SHIFT:
+ mod |= Mod4Mask | ControlMask | ShiftMask;
+ break;
+ case MASK_SHIFT_META5:
+ mod |= Mod5Mask | ShiftMask;
+ break;
+ case MASK_CTRL_META5:
+ mod |= Mod5Mask | ControlMask;
+ break;
+ case MASK_CTRL_META5_SHIFT:
+ mod |= Mod5Mask | ControlMask | ShiftMask;
+ break;
+ case MASK_WINDOWS_SHIFT:
+ mod |= Mod2Mask | ShiftMask;
+ break;
+ case MASK_WINDOWS_CTRL:
+ mod |= Mod2Mask | ControlMask;
+ break;
+ case MASK_WINDOWS_ALT:
+ mod |= Mod2Mask | Mod1Mask;
+ break;
+ default:
+ break;
+ }
+ break;
+ case CONFIG_ANYMOD:
+ case ACLASS_ANYMOD:
+ anymod = i2;
+ break;
+ case CONFIG_ANYBUT:
+ case ACLASS_ANYBUT:
+ anybut = i2;
+ break;
+ case CONFIG_BUTTON:
+ case ACLASS_BUT:
+ but = i2;
+ break;
+ case CONFIG_ANYKEY:
+ case ACLASS_ANYKEY:
+ anykey = i2;
+ break;
+ case ACLASS_KEY:
+ STRCPY(key, s2);
+ break;
+ case ACLASS_EVENT_TRIGGER:
+ event = i2;
+ break;
+ case CONFIG_NEXT:
+ mod = 0;
+ anymod = 0;
+ anybut = 0;
+ first = 1;
+ break;
+ case CONFIG_ACTION:
+ if (first)
+ {
+ aa = ActionCreate(event, anymod, mod, anybut, but, anykey,
+ key, action_tooltipstring);
+ /* the correct place to grab an action key */
+ Efree(action_tooltipstring);
+ action_tooltipstring = NULL;
+ key[0] = '\0';
+ if (global)
+ GrabActionKey(aa);
+ ActionclassAddAction(ac, aa);
+ first = 0;
+ }
+ ActionAddTo(aa, p2);
+ break;
+ case CONFIG_ACTION_TOOLTIP:
+ action_tooltipstring = Estrdupcat2(action_tooltipstring, "\n", p2);
+ break;
+ case CONFIG_TOOLTIP:
+ aclass_tooltipstring = Estrdupcat2(aclass_tooltipstring, "\n", p2);
+ break;
+ default:
+ ConfigParseError("ActionClass", s);
+ break;
+ }
+ }
+
+ if (ac && err)
+ ActionclassDestroy(ac);
+
+ done:
+ Efree(aclass_tooltipstring);
+ Efree(action_tooltipstring);
+
+ return err;
+}
+
+static Action *
+ActionDecode(const char *line)
+{
+ Action *aa;
+ char ev[16], mod[16], key[128], *s;
+ int len, event, modifiers, button;
+ char anymod, anybut, anykey;
+
+ len = -1;
+ sscanf(line, "%15s %15s %127s %n", ev, mod, key, &len);
+ if (len <= 0)
+ return NULL;
+
+ event = -1;
+ if (!strcmp(ev, "KeyDown"))
+ event = EVENT_KEY_DOWN;
+ else if (!strcmp(ev, "MouseDown"))
+ event = EVENT_MOUSE_DOWN;
+ else if (!strcmp(ev, "KeyUp"))
+ event = EVENT_KEY_UP;
+ else if (!strcmp(ev, "MouseUp"))
+ event = EVENT_MOUSE_UP;
+ else if (!strcmp(ev, "MouseDouble"))
+ event = EVENT_DOUBLE_DOWN;
+ else if (!strcmp(ev, "MouseIn"))
+ event = EVENT_MOUSE_ENTER;
+ else if (!strcmp(ev, "MouseOut"))
+ event = EVENT_MOUSE_LEAVE;
+ else if (!strcmp(ev, "FocusIn"))
+ event = EVENT_FOCUS_IN;
+ else if (!strcmp(ev, "FocusOut"))
+ event = EVENT_FOCUS_OUT;
+
+ anymod = anybut = anykey = 0;
+ button = 0;
+
+ modifiers = 0;
+ for (s = mod; *s; s++)
+ {
+ switch (*s)
+ {
+ case '*':
+ anymod = 1;
+ break;
+ case 'C':
+ modifiers |= ControlMask;
+ break;
+ case 'S':
+ modifiers |= ShiftMask;
+ break;
+ case 'A':
+ modifiers |= Mod1Mask;
+ break;
+ case '1':
+ modifiers |= Mod1Mask;
+ break;
+ case '2':
+ modifiers |= Mod2Mask;
+ break;
+ case '3':
+ modifiers |= Mod3Mask;
+ break;
+ case '4':
+ modifiers |= Mod4Mask;
+ break;
+ case '5':
+ modifiers |= Mod5Mask;
+ break;
+ }
+ }
+
+ switch (event)
+ {
+ case EVENT_MOUSE_DOWN:
+ case EVENT_MOUSE_UP:
+ case EVENT_DOUBLE_DOWN:
+ case EVENT_MOUSE_ENTER:
+ case EVENT_MOUSE_LEAVE:
+ if (key[0] == '*')
+ anybut = 1;
+ else if (isdigit(key[0]))
+ button = atoi(key);
+ if (!anybut && button == 0)
+ return NULL; /* Invalid */
+ key[0] = '\0';
+ break;
+ }
+
+ aa =
+ ActionCreate(event, anymod, modifiers, anybut, button, anykey, key, NULL);
+ ActionAddTo(aa, line + len);
+
+ return aa;
+}
+
+static int
+ActionEncode(Action * aa, char *buf, int len)
+{
+ const char *event;
+ char *p, mod[32], btn[32];
+
+ if (!aa || !aa->action)
+ return 0;
+
+ p = mod;
+ if (aa->anymodifier)
+ *p++ = '*';
+ if (aa->modifiers & ControlMask)
+ *p++ = 'C';
+ if (aa->modifiers & ShiftMask)
+ *p++ = 'S';
+ if (aa->modifiers & Mod1Mask)
+ *p++ = 'A';
+ if (aa->modifiers & Mod2Mask)
+ *p++ = '2';
+ if (aa->modifiers & Mod3Mask)
+ *p++ = '3';
+ if (aa->modifiers & Mod4Mask)
+ *p++ = '4';
+ if (aa->modifiers & Mod5Mask)
+ *p++ = '5';
+ if (p == mod)
+ *p++ = '-';
+ *p++ = '\0';
+
+ switch (aa->event)
+ {
+ default:
+ return 0;
+ case EVENT_KEY_DOWN:
+ event = "KeyDown";
+ goto encode_kb;
+ case EVENT_KEY_UP:
+ event = "KeyUp";
+ goto encode_kb;
+ encode_kb:
+ if (!aa->key_str)
+ return 0;
+ len = Esnprintf(buf, len, "%-7s %4s %8s %s\n", event, mod, aa->key_str,
+ (aa->action->params) ? aa->action->params : "");
+ break;
+
+ case EVENT_MOUSE_DOWN:
+ event = "MouseDown";
+ goto encode_mb;
+ case EVENT_MOUSE_UP:
+ event = "MouseUp";
+ goto encode_mb;
+ case EVENT_DOUBLE_DOWN:
+ event = "MouseDouble";
+ goto encode_mb;
+ case EVENT_MOUSE_ENTER:
+ event = "MouseIn";
+ goto encode_mb;
+ case EVENT_MOUSE_LEAVE:
+ event = "MouseOut";
+ goto encode_mb;
+ encode_mb:
+ if (aa->anybutton)
+ strcpy(btn, "*");
+ else
+ sprintf(btn, "%u", aa->button);
+ len = Esnprintf(buf, len, "%-11s %4s %s %s\n", event, mod, btn,
+ (aa->action->params) ? aa->action->params : "");
+ break;
+
+ case EVENT_FOCUS_IN:
+ event = "FocusIn";
+ goto encode_fc;
+ case EVENT_FOCUS_OUT:
+ event = "FocusOut";
+ goto encode_fc;
+ encode_fc:
+ break;
+ }
+
+ return len;
+}
+
+static int
+AclassEncodeTT(const char *str, char *buf, int len)
+{
+ char **lst;
+ int i, num, l, nw;
+
+ lst = StrlistFromString(str, '\n', &num);
+ nw = 0;
+ for (i = 0; i < num; i++)
+ {
+ l = Esnprintf(buf, len, "Tooltip %s\n", lst[i]);
+ nw += l;
+ len -= l;
+ buf += l;
+ }
+ StrlistFree(lst, num);
+ return nw;
+}
+
+static void
+AclassConfigLoad2(FILE * fs)
+{
+ char s[FILEPATH_LEN_MAX], *ss;
+ char prm1[128], prm2[128], prm3[128];
+ ActionClass *ac = NULL;
+ Action *aa = NULL;
+ int len, len2;
+
+ for (;;)
+ {
+ ss = fgets(s, sizeof(s), fs);
+ if (!ss)
+ break;
+
+ len = strcspn(s, "#\r\n");
+ if (len <= 0)
+ continue;
+ s[len] = '\0';
+
+ prm3[0] = '\0';
+ len2 = 0;
+ len = sscanf(s, "%16s %n%128s %16s", prm1, &len2, prm2, prm3);
+ if (len < 2)
+ continue;
+
+ if (!strcmp(prm1, "Aclass"))
+ {
+ if (!strcmp(prm2, "KEYBINDINGS_UNCHANGABLE"))
+ {
+ /* No more "unchangable" keybindings. */
+ ac = ActionclassFindGlobal("KEYBINDINGS");
+ prm2[11] = '\0';
+ }
+ else
+ {
+ ac = ActionclassFindAny(prm2);
+ if (ac)
+ ActionclassEmpty(ac);
+ }
+
+ if (!ac)
+ ac = ActionclassCreate(prm2, prm3[0] == 'g');
+
+ aa = NULL;
+ }
+ else if (!strncmp(prm1, "Key", 3) || !strncmp(prm1, "Mouse", 5))
+ {
+ if (!ac)
+ continue;
+
+ aa = ActionDecode(s);
+ if (!aa)
+ continue;
+
+ ActionclassAddAction(ac, aa);
+ GrabActionKey(aa);
+ }
+ else if (!strcmp(prm1, "Tooltip"))
+ {
+ /* FIXME - Multiple line strings may break */
+ if (aa)
+ {
+ aa->tooltipstring =
+ Estrdupcat2(aa->tooltipstring, "\n", s + len2);
+ }
+ else if (ac)
+ {
+ ac->tooltipstring =
+ Estrdupcat2(ac->tooltipstring, "\n", s + len2);
+ }
+ }
+ }
+}
+
+static void
+AclassConfigLoadConfig(const char *name)
+{
+ char *file;
+ FILE *fs;
+
+ file = ConfigFileFind(name, NULL, 0);
+ if (!file)
+ return;
+
+ fs = fopen(file, "r");
+ Efree(file);
+ if (!fs)
+ return;
+
+ AclassConfigLoad2(fs);
+
+ fclose(fs);
+}
+
+static void
+AclassConfigWrite(const ActionClass * ac, void (*prf) (const char *fmt, ...))
+{
+ char s[FILEPATH_LEN_MAX];
+ Action *aa;
+ int i, len;
+
+ if (!ac || ac->num <= 0)
+ return;
+
+ prf("Aclass %s %s\n", ac->name, (ac->global)? "global" : "normal");
+ if (ac->tooltipstring)
+ {
+ len = AclassEncodeTT(ac->tooltipstring, s, sizeof(s));
+ prf(s);
+ }
+ for (i = 0; i < ac->num; i++)
+ {
+ aa = ac->list[i];
+ len = ActionEncode(aa, s, sizeof(s));
+ if (len <= 0)
+ continue;
+ prf(s);
+ if (aa->tooltipstring)
+ {
+ len = AclassEncodeTT(aa->tooltipstring, s, sizeof(s));
+ prf(s);
+ }
+ }
+}
+
+static FILE *_ac_fs = NULL; /* Ugly! Yeah well... */
+
+static void
+_ac_prf(const char *fmt, ...)
+{
+ va_list args;
+ int len;
+
+ va_start(args, fmt);
+ len = vfprintf(_ac_fs, fmt, args);
+ va_end(args);
+}
+
+static void
+BindingsSave(void)
+{
+ char s[FILEPATH_LEN_MAX], ss[FILEPATH_LEN_MAX];
+ FILE *fs;
+
+ if (!Mode.keybinds_changed)
+ return;
+
+ Etmp(ss);
+ fs = fopen(ss, "w");
+ if (!fs)
+ return;
+ _ac_fs = fs;
+
+ AclassConfigWrite(ActionclassFind("BUTTONBINDINGS"), _ac_prf);
+ AclassConfigWrite(ActionclassFind("DESKBINDINGS"), _ac_prf);
+ AclassConfigWrite(ActionclassFindGlobal("KEYBINDINGS"), _ac_prf);
+ AclassConfigWrite(ActionclassFindGlobal("KEYBINDINGS_UNCHANGABLE"), _ac_prf);
+
+ fclose(fs);
+ _ac_fs = NULL;
+
+ Esnprintf(s, sizeof(s), "%s/bindings.cfg", EDirUser());
+ E_mv(ss, s);
+}
+
+void
+ActionclassSetTooltipString(ActionClass * ac, const char *tts)
+{
+ _EFDUP(ac->tooltipstring, tts);
+}
+
+ActionClass *
+ActionclassAlloc(const char *name)
+{
+ ActionClass *ac;
+
+ if (!name || !name[0])
+ return NULL;
+
+ ac = ActionclassFind(name);
+ if (ac)
+ ac->ref_count++;
+
+ return ac;
+}
+
+void
+ActionclassFree(ActionClass * ac)
+{
+ if (ac)
+ ac->ref_count--;
+}
+
+const char *
+ActionclassGetName(ActionClass * ac)
+{
+ return (ac) ? ac->name : NULL;
+}
+
+const char *
+ActionclassGetTooltipString(ActionClass * ac)
+{
+ return (ac) ? ac->tooltipstring : NULL;
+}
+
+int
+ActionclassGetActionCount(ActionClass * ac)
+{
+ return (ac) ? ac->num : 0;
+}
+
+Action *
+ActionclassGetAction(ActionClass * ac, int ix)
+{
+ return (ac && ix < ac->num) ? ac->list[ix] : NULL;
+}
+
+const char *
+ActionGetTooltipString(Action * aa)
+{
+ return (aa) ? aa->tooltipstring : NULL;
+}
+
+int
+ActionGetEvent(Action * aa)
+{
+ return (aa) ? aa->event : 0;
+}
+
+int
+ActionGetAnybutton(Action * aa)
+{
+ return (aa) ? aa->anybutton : 0;
+}
+
+int
+ActionGetButton(Action * aa)
+{
+ return (aa) ? aa->button : 0;
+}
+
+int
+ActionGetModifiers(Action * aa)
+{
+ return (aa) ? aa->modifiers : 0;
+}
+
+static void
+handleAction(EWin * ewin, ActionType * action)
+{
+ if (ewin)
+ ewin->state.in_action = 1;
+ EFunc(ewin, action->params);
+ if (ewin)
+ ewin->state.in_action = 0;
+
+ /* Did we just hose ourselves? if so, we'd best not stick around here */
+ if (mode_action_destroy)
+ return;
+
+ /* If there is another action in this series, (now that
+ * we're sure we didn't already die) perform it
+ */
+ if (action->next)
+ handleAction(ewin, action->next);
+}
+
+int
+ActionclassEvent(ActionClass * ac, XEvent * ev, EWin * ewin)
+{
+ KeyCode key;
+ int i, type, button, modifiers, ok, mouse, mask, val = 0;
+ Action *aa;
+
+ if (Mode.action_inhibit || (ewin && ewin->state.inhibit_actions))
+ return 0;
+
+ key = type = button = modifiers = mouse = 0;
+
+ mask = Mode.masks.mod_key_mask;
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ type = EVENT_KEY_DOWN;
+ key = ev->xkey.keycode;
+ modifiers = ev->xbutton.state & mask;
+ mouse = 0;
+ break;
+ case KeyRelease:
+ type = EVENT_KEY_UP;
+ key = ev->xkey.keycode;
+ modifiers = ev->xbutton.state & mask;
+ mouse = 0;
+ break;
+ case ButtonPress:
+ if (Mode.events.double_click)
+ type = EVENT_DOUBLE_DOWN;
+ else
+ type = EVENT_MOUSE_DOWN;
+ button = ev->xbutton.button;
+ modifiers = ev->xbutton.state & mask;
+ mouse = 1;
+ break;
+ case ButtonRelease:
+ type = EVENT_MOUSE_UP;
+ button = ev->xbutton.button;
+ modifiers = ev->xbutton.state & mask;
+ mouse = 1;
+ break;
+ case EnterNotify:
+ type = EVENT_MOUSE_ENTER;
+ button = -1;
+ modifiers = ev->xcrossing.state & mask;
+ mouse = 1;
+ break;
+ case LeaveNotify:
+ /* If frame window, quit if pointer is still inside */
+ if (ewin && ev->xcrossing.window == EoGetXwin(ewin) &&
+ (ev->xcrossing.x >= 0 && ev->xcrossing.x < EoGetW(ewin) &&
+ ev->xcrossing.y >= 0 && ev->xcrossing.y < EoGetH(ewin)))
+ return 0;
+ type = EVENT_MOUSE_LEAVE;
+ button = -1;
+ modifiers = ev->xcrossing.state & mask;
+ mouse = 1;
+ break;
+ case FocusIn:
+ type = EVENT_FOCUS_IN;
+ button = -1;
+ mouse = 1;
+ break;
+ case FocusOut:
+ type = EVENT_FOCUS_OUT;
+ button = -1;
+ mouse = 1;
+ break;
+ default:
+ break;
+ }
+
+ mode_action_destroy = 0;
+
+ for (i = 0; i < ac->num; i++)
+ {
+ if (!mode_action_destroy)
+ {
+ aa = ac->list[i];
+ ok = 0;
+ if ((aa->event == type) && (aa->action))
+ {
+ if (mouse)
+ {
+ if (button < 0)
+ {
+ if (aa->anymodifier)
+ ok = 1;
+ else if (aa->modifiers == modifiers)
+ ok = 1;
+ }
+ else
+ {
+ if (aa->anymodifier)
+ {
+ if (aa->anybutton)
+ ok = 1;
+ else if (aa->button == button)
+ ok = 1;
+ }
+ else if (aa->modifiers == modifiers)
+ {
+ if (aa->anybutton)
+ ok = 1;
+ else if (aa->button == button)
+ ok = 1;
+ }
+ }
+ }
+ else
+ {
+ if (aa->anymodifier)
+ {
+ if (aa->anykey)
+ ok = 1;
+ else if (aa->key == key)
+ ok = 1;
+ }
+ else if (aa->modifiers == modifiers)
+ {
+ if (aa->anykey)
+ ok = 1;
+ else if (aa->key == key)
+ ok = 1;
+ }
+ }
+ if (ok)
+ {
+ handleAction(ewin, aa->action);
+ val = 1;
+ }
+ }
+ }
+ if (mode_action_destroy)
+ break;
+ }
+
+ mode_action_destroy = 0;
+
+ return val;
+}
+
+int
+ActionclassesGlobalEvent(XEvent * ev)
+{
+ ActionClass *ac;
+ int match;
+
+ match = 0;
+ ECORE_LIST_FOR_EACH(aclass_list_global, ac)
+ match |= ActionclassEvent(ac, ev, GetFocusEwin());
+
+ return match;
+}
+
+static Timer *ac_reload_timer = NULL;
+
+static int
+_ac_reload(void *data __UNUSED__)
+{
+ AclassConfigLoadConfig("bindings.cfg");
+ ac_reload_timer = NULL;
+ return 0;
+}
+
+void
+ActionclassesReload(void)
+{
+ TIMER_DEL(ac_reload_timer);
+ TIMER_ADD(ac_reload_timer, 0.2, _ac_reload, NULL);
+}
+
+/*
+ * Actions module
+ */
+
+static void
+AclassSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ AclassConfigLoadConfig("bindings.cfg");
+ break;
+ }
+}
+
+static void
+AclassIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+ ActionClass *ac;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '\0' || cmd[0] == '?')
+ {
+ }
+ else if (!strncmp(cmd, "kb", 2))
+ {
+ AclassConfigWrite(ActionclassFindGlobal("KEYBINDINGS"), IpcPrintf);
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ if (prm[0] == '\0')
+ {
+ IpcPrintf("Normal:\n");
+ ECORE_LIST_FOR_EACH(aclass_list, ac) IpcPrintf("%s\n", ac->name);
+ IpcPrintf("Global:\n");
+ ECORE_LIST_FOR_EACH(aclass_list_global, ac) IpcPrintf("%s\n",
+ ac->name);
+ }
+ else if (!strcmp(prm, "all"))
+ {
+ ECORE_LIST_FOR_EACH(aclass_list, ac)
+ {
+ IpcPrintf("\n");
+ AclassConfigWrite(ac, IpcPrintf);
+ }
+ ECORE_LIST_FOR_EACH(aclass_list_global, ac)
+ {
+ IpcPrintf("\n");
+ AclassConfigWrite(ac, IpcPrintf);
+ }
+ }
+ else
+ {
+ AclassConfigWrite(ActionclassFindAny(prm), IpcPrintf);
+ }
+ }
+ else if (!strcmp(cmd, "load"))
+ {
+ if (*prm == '\0')
+ AclassConfigLoadConfig("bindings.cfg");
+ else
+ AclassConfigLoadConfig(prm);
+ }
+}
+
+/* Should only be used via e16keyedit */
+static void
+IPC_KeybindingsGet(const char *params __UNUSED__)
+{
+ ActionClass *ac;
+ Action *aa;
+ int i, mod;
+
+ ac = ActionclassFindGlobal("KEYBINDINGS");
+ if (!ac)
+ return;
+
+ for (i = 0; i < ac->num; i++)
+ {
+ aa = ac->list[i];
+ if ((aa) && (aa->action) && (aa->event == EVENT_KEY_DOWN))
+ {
+ const char *key;
+
+ key = EKeycodeToString(aa->key, 0);
+ if (!key)
+ continue;
+
+ mod = 0;
+ if (aa->modifiers == (ControlMask))
+ mod = 1;
+ else if (aa->modifiers == (Mod1Mask))
+ mod = 2;
+ else if (aa->modifiers == (ShiftMask))
+ mod = 3;
+ else if (aa->modifiers == (ControlMask | Mod1Mask))
+ mod = 4;
+ else if (aa->modifiers == (ShiftMask | ControlMask))
+ mod = 5;
+ else if (aa->modifiers == (ShiftMask | Mod1Mask))
+ mod = 6;
+ else if (aa->modifiers == (ShiftMask | ControlMask | Mod1Mask))
+ mod = 7;
+ else if (aa->modifiers == (Mod2Mask))
+ mod = 8;
+ else if (aa->modifiers == (Mod3Mask))
+ mod = 9;
+ else if (aa->modifiers == (Mod4Mask))
+ mod = 10;
+ else if (aa->modifiers == (Mod5Mask))
+ mod = 11;
+ else if (aa->modifiers == (Mod2Mask | ShiftMask))
+ mod = 12;
+ else if (aa->modifiers == (Mod2Mask | ControlMask))
+ mod = 13;
+ else if (aa->modifiers == (Mod2Mask | Mod1Mask))
+ mod = 14;
+ else if (aa->modifiers == (Mod4Mask | ShiftMask))
+ mod = 15;
+ else if (aa->modifiers == (Mod4Mask | ControlMask))
+ mod = 16;
+ else if (aa->modifiers == (Mod4Mask | ControlMask | ShiftMask))
+ mod = 17;
+ else if (aa->modifiers == (Mod5Mask | ShiftMask))
+ mod = 18;
+ else if (aa->modifiers == (Mod5Mask | ControlMask))
+ mod = 19;
+ else if (aa->modifiers == (Mod5Mask | ControlMask | ShiftMask))
+ mod = 20;
+
+ if (aa->action->params)
+ IpcPrintf("%s %i %i %s\n", key, mod, 0, aa->action->params);
+ else
+ IpcPrintf("%s %i %i\n", key, mod, 0);
+ }
+ }
+}
+
+/* Should only be used via e16keyedit */
+static void
+IPC_KeybindingsSet(const char *params)
+{
+ ActionClass *ac;
+ Action *aa;
+ int i, l;
+ char buf[FILEPATH_LEN_MAX];
+ const char *sp, *ss;
+
+ ss = params;
+ if (!ss || !ss[0])
+ return;
+
+ Mode.keybinds_changed = 1;
+
+ ac = ActionclassFindGlobal("KEYBINDINGS");
+ if (ac)
+ ActionclassEmpty(ac);
+ else
+ ac = ActionclassCreate("KEYBINDINGS", 1);
+ if (!ac)
+ return;
+
+ i = 0;
+ l = strlen(ss);
+ while (i < l)
+ {
+ char key[256];
+ int mod = 0;
+ int act_id = 0;
+ int j = 0, len;
+
+ /* put line in buf */
+ sp = &(ss[i]);
+ while ((sp[j]) && (sp[j] != '\n'))
+ {
+ buf[j] = sp[j];
+ j++;
+ }
+ buf[j] = 0;
+ if (sp[j] == '\n')
+ j++;
+ i += j;
+
+ /* parse the line */
+ len = 0;
+ sscanf(buf, "%250s %i %i %n", key, &mod, &act_id, &len);
+ if (mod == 0)
+ mod = 0;
+ else if (mod == 1)
+ mod = ControlMask;
+ else if (mod == 2)
+ mod = Mod1Mask;
+ else if (mod == 3)
+ mod = ShiftMask;
+ else if (mod == 4)
+ mod = ControlMask | Mod1Mask;
+ else if (mod == 5)
+ mod = ShiftMask | ControlMask;
+ else if (mod == 6)
+ mod = ShiftMask | Mod1Mask;
+ else if (mod == 7)
+ mod = ShiftMask | ControlMask | Mod1Mask;
+ else if (mod == 8)
+ mod = Mod2Mask;
+ else if (mod == 9)
+ mod = Mod3Mask;
+ else if (mod == 10)
+ mod = Mod4Mask;
+ else if (mod == 11)
+ mod = Mod5Mask;
+ else if (mod == 12)
+ mod = Mod2Mask | ShiftMask;
+ else if (mod == 13)
+ mod = Mod2Mask | ControlMask;
+ else if (mod == 14)
+ mod = Mod2Mask | Mod1Mask;
+ else if (mod == 15)
+ mod = Mod4Mask | ShiftMask;
+ else if (mod == 16)
+ mod = Mod4Mask | ControlMask;
+ else if (mod == 17)
+ mod = Mod4Mask | ControlMask | ShiftMask;
+ else if (mod == 18)
+ mod = Mod5Mask | ShiftMask;
+ else if (mod == 19)
+ mod = Mod5Mask | ControlMask;
+ else if (mod == 20)
+ mod = Mod5Mask | ControlMask | ShiftMask;
+
+ aa = ActionCreate(4, 0, mod, 0, 0, 0, key, NULL);
+ ActionclassAddAction(ac, aa);
+ ActionAddTo(aa, buf + len);
+ GrabActionKey(aa);
+ }
+
+ BindingsSave();
+}
+
+static const IpcItem AclassIpcArray[] = {
+ {
+ AclassIpc,
+ "aclass", "ac",
+ "Action class functions",
+ " aclass kb List key bindings\n"
+ " aclass list [name/all] List action class[es]\n"
+ " aclass load [name] Reload action classes (default is bindings.cfg)\n"}
+ ,
+ {
+ IPC_KeybindingsGet, "get_keybindings", NULL,
+ "List keybindings (deprecated)", NULL}
+ ,
+ {
+ IPC_KeybindingsSet, "set_keybindings", NULL, "Set keybindings (deprecated)",
+ NULL}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(AclassIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModAclass;
+const EModule ModAclass = {
+ "aclass", "ac",
+ AclassSighan,
+ {N_IPC_FUNCS, AclassIpcArray},
+ {0, NULL}
+};
+
+void
+GrabButtonGrabs(Win win)
+{
+ ActionClass *ac;
+ int j;
+ Action *aa;
+ unsigned int mod, button, mask;
+
+ ac = ActionclassFind("BUTTONBINDINGS");
+ if (!ac)
+ return;
+
+ ac->ref_count++;
+ for (j = 0; j < ac->num; j++)
+ {
+ aa = ac->list[j];
+ if ((!aa) || ((aa->event != EVENT_MOUSE_DOWN) &&
+ (aa->event != EVENT_MOUSE_UP)))
+ continue;
+
+ mod = (aa->anymodifier) ? AnyModifier : aa->modifiers;
+ button = (aa->anybutton) ? AnyButton : aa->button;
+ mask = ButtonPressMask | ButtonReleaseMask;
+
+ GrabButtonSet(button, mod, win, mask, ECSR_PGRAB, 1);
+ }
+}
+
+void
+UnGrabButtonGrabs(Win win)
+{
+ ActionClass *ac;
+ int j;
+ Action *aa;
+ unsigned int mod, button;
+
+ ac = ActionclassFind("BUTTONBINDINGS");
+ if (!ac)
+ return;
+
+ ac->ref_count--;
+ for (j = 0; j < ac->num; j++)
+ {
+ aa = ac->list[j];
+ if ((!aa) || ((aa->event != EVENT_MOUSE_DOWN)
+ && (aa->event != EVENT_MOUSE_UP)))
+ continue;
+
+ mod = (aa->anymodifier) ? AnyModifier : aa->modifiers;
+ button = (aa->anybutton) ? AnyButton : aa->button;
+
+ GrabButtonRelease(button, mod, win);
+ }
+}
+
+static void
+GrabActionKey(Action * aa)
+{
+ int mod;
+
+ if (!aa->key)
+ return;
+
+ mod = (aa->anymodifier) ? AnyModifier : aa->modifiers;
+
+ GrabKeySet(aa->key, mod, VROOT);
+}
+
+static void
+UnGrabActionKey(Action * aa)
+{
+ int mod;
+
+ if (!aa->key)
+ return;
+
+ mod = (aa->anymodifier) ? AnyModifier : aa->modifiers;
+
+ GrabKeyRelease(aa->key, mod, VROOT);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ACLASS_H
+#define _ACLASS_H
+
+#include <X11/Xlib.h>
+#include "etypes.h"
+
+/* aclass.c */
+int AclassConfigLoad(FILE * fs);
+ActionClass *ActionclassCreate(const char *name, int global);
+Action *ActionCreate(char event, char anymod, int mod, int anybut,
+ int but, char anykey, const char *key,
+ const char *tooltipstring);
+void ActionAddTo(Action * aa, const char *params);
+void ActionclassAddAction(ActionClass * ac, Action * aa);
+void ActionclassSetTooltipString(ActionClass * ac,
+ const char *tts);
+ActionClass *ActionclassFind(const char *name);
+ActionClass *ActionclassAlloc(const char *name);
+void ActionclassFree(ActionClass * ac);
+const char *ActionclassGetName(ActionClass * ac);
+const char *ActionclassGetTooltipString(ActionClass * ac);
+int ActionclassGetActionCount(ActionClass * ac);
+Action *ActionclassGetAction(ActionClass * ac, int ix);
+int ActionclassEvent(ActionClass * ac, XEvent * ev,
+ EWin * ewin);
+int ActionclassesGlobalEvent(XEvent * ev);
+void ActionclassesReload(void);
+
+const char *ActionGetTooltipString(Action * aa);
+int ActionGetAnybutton(Action * aa);
+int ActionGetEvent(Action * aa);
+int ActionGetButton(Action * aa);
+int ActionGetModifiers(Action * aa);
+
+void GrabButtonGrabs(Win win);
+void UnGrabButtonGrabs(Win win);
+
+#endif /* _ACLASS_H */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "file.h"
+#include "user.h"
+
+static void
+StartupIdExport(void)
+{
+ char buf[128];
+ Desk *dsk;
+ int ax, ay;
+
+ dsk = DesksGetCurrent();
+ DeskGetArea(dsk, &ax, &ay);
+
+ Esnprintf(buf, sizeof(buf), "e16/%d:%d:%d,%d", Mode.apps.startup_id,
+ dsk->num, ax, ay);
+ Esetenv("DESKTOP_STARTUP_ID", buf);
+}
+
+static void
+ExecSetupEnv(int flags)
+{
+ int fd;
+
+ setsid();
+
+ /* Close all file descriptors except the std 3 */
+ for (fd = 3; fd < 1024; fd++)
+ close(fd);
+
+ /* Set up env stuff */
+ if (flags & EXEC_SET_LANG)
+ LangExport();
+ if (flags & EXEC_SET_STARTUP_ID)
+ StartupIdExport();
+
+#if USE_ROOTHACKLIB
+ if (Mode.wm.window)
+ Esetenv("LD_PRELOAD", ENLIGHTENMENT_LIB "/libhack.so");
+#endif
+}
+
+int
+execApplication(const char *params, int flags)
+{
+ char exe[FILEPATH_LEN_MAX];
+ char *sh;
+ char *path;
+ char *real_exec;
+
+ if (!params)
+ return -1;
+
+ sscanf(params, "%4000s", exe);
+ if (exe[0] == '\0')
+ return -1;
+
+ Mode.apps.startup_id++;
+ if (fork())
+ return 0;
+
+ ExecSetupEnv(flags);
+
+ sh = usershell(getuid());
+
+ if (path_canexec(exe))
+ {
+ real_exec = EMALLOC(char, strlen(params) + 6);
+
+ if (!real_exec)
+ return -1;
+ sprintf(real_exec, "exec %s", params);
+
+ execl(sh, sh, "-c", real_exec, NULL);
+ /* We should not get here - invalid shell? */
+ }
+
+ if (!Mode.wm.startup)
+ {
+ path = path_test(exe, EFILE_ANY);
+ if (!path)
+ {
+ /* absolute path */
+ if (isabspath(exe))
+ AlertOK(_("There was an error running the program:\n"
+ "%s\n"
+ "This program could not be executed.\n"
+ "This is because the file does not exist.\n"), exe);
+ /* relative path */
+ else
+ AlertOK(_("There was an error running the program:\n"
+ "%s\n"
+ "This program could not be executed.\n"
+ "This is most probably because this "
+ "program is not in the\n"
+ "path for your shell which is %s. "
+ "I suggest you read the manual\n"
+ "page for that shell and read up how to "
+ "change or add to your\n"
+ "execution path.\n"), exe, sh);
+ }
+ else
+ /* it is a node on the filing sys */
+ {
+ /* it's a file */
+ if (isfile(path))
+ {
+ /* can execute it */
+ if (canexec(path))
+ AlertOK(_("There was an error running the program:\n"
+ "%s\n"
+ "This program could not be executed.\n"
+ "I am unsure as to why you could not "
+ "do this. The file exists,\n"
+ "is a file, and you are allowed to "
+ "execute it. I suggest you look\n"
+ "into this.\n"), path);
+ /* not executable file */
+ else
+ AlertOK(_("There was an error running the program:\n"
+ "%s\n"
+ "This program could not be executed.\n"
+ "This is because the file exists, is a "
+ "file, but you are unable\n"
+ "to execute it because you do not "
+ "have execute " "access to this file.\n"), path);
+ }
+ /* it's not a file */
+ else
+ {
+ /* its a dir */
+ if (isdir(path))
+ AlertOK(_("There was an error running the program:\n"
+ "%s\n"
+ "This program could not be executed.\n"
+ "This is because the file is in fact "
+ "a directory.\n"), path);
+ /* its not a file or a dir */
+ else
+ AlertOK(_("There was an error running the program:\n"
+ "%s\n"
+ "This program could not be executed.\n"
+ "This is because the file is not a "
+ "regular file.\n"), path);
+ }
+ Efree(path);
+ }
+ }
+ exit(100);
+}
+
+void
+Espawn(int argc __UNUSED__, char **argv)
+{
+ if (!argv || !argv[0])
+ return;
+
+ if (fork())
+ return;
+
+ ExecSetupEnv(EXEC_SET_LANG);
+
+ execvp(argv[0], argv);
+
+ AlertOK(_("There was an error running the program:\n%s\n"), argv[0]);
+ exit(100);
+}
+
+void
+EspawnCmd(const char *cmd)
+{
+ int argc;
+ char **argv;
+
+ argv = StrlistDecodeEscaped(cmd, &argc);
+ Espawn(argc, argv);
+ StrlistFree(argv, argc);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <X11/Xlib.h>
+#include <X11/keysym.h>
+#include "alert.h"
+#include "lang.h"
+#include "session.h"
+#include "sounds.h"
+#include "util.h"
+
+#define ExTextExtents XmbTextExtents
+#define ExDrawString XmbDrawString
+
+#define ExSetColor(pxc, r, g, b) \
+ do { \
+ (pxc)->red = (r << 8) | r; (pxc)->green = (g << 8) | g; (pxc)->blue = (b << 8) | b; \
+ } while (0)
+
+static XFontSet xfs = NULL;
+
+#define DRAW_BOX_OUT(mdd, mgc, mwin, mx, my, mw, mh) \
+ AlertDrawBox(mdd, mgc, mwin, mx, my, mw, mh, \
+ colorful, cols[0], cols[2], cols[3])
+#define DRAW_BOX_IN(mdd, mgc, mwin, mx, my, mw, mh) \
+ AlertDrawBox(mdd, mgc, mwin, mx, my, mw, mh, \
+ colorful, cols[2], cols[0], cols[3])
+static void
+AlertDrawBox(Display * mdd, GC mgc, Window mwin, int mx, int my, int mw, int mh,
+ int colorful, unsigned long c1, unsigned long c2, unsigned long cb)
+{
+ if (colorful)
+ {
+ XSetForeground(mdd, mgc, cb);
+ XDrawRectangle(mdd, mwin, mgc, mx, my, mw - 1, mh - 1);
+ XSetForeground(mdd, mgc, c1);
+ XDrawLine(mdd, mwin, mgc, mx + 1, my + 1, mx + mw - 3, my + 1);
+ XDrawLine(mdd, mwin, mgc, mx + 1, my + 1, mx + 1, my + mh - 3);
+ XSetForeground(mdd, mgc, c2);
+ XDrawLine(mdd, mwin, mgc, mx + 2, my + mh - 2, mx + mw - 2,
+ my + mh - 2);
+ XDrawLine(mdd, mwin, mgc, mx + mw - 2, my + 2, mx + mw - 2,
+ my + mh - 2);
+ }
+ else
+ {
+ XDrawRectangle(mdd, mwin, mgc, mx, my, mw - 1, mh - 1);
+ }
+}
+
+#define DRAW_THIN_BOX_IN(mdd, mgc, mwin, mx, my, mw, mh) \
+ AlertDrawThinBoxIn(mdd, mgc, mwin, mx, my, mw, mh, \
+ colorful, cols[2], cols[0])
+static void
+AlertDrawThinBoxIn(Display * mdd, GC mgc, Window mwin, int mx, int my, int mw,
+ int mh, int colorful, unsigned long c1, unsigned long c2)
+{
+ if (colorful)
+ {
+ XSetForeground(mdd, mgc, c1);
+ XDrawLine(mdd, mwin, mgc, mx + 1, my + 1, mx + mw - 3, my + 1);
+ XDrawLine(mdd, mwin, mgc, mx + 1, my + 1, mx + 1, my + mh - 3);
+ XSetForeground(mdd, mgc, c2);
+ XDrawLine(mdd, mwin, mgc, mx + 2, my + mh - 2, mx + mw - 2,
+ my + mh - 2);
+ XDrawLine(mdd, mwin, mgc, mx + mw - 2, my + 2, mx + mw - 2,
+ my + mh - 2);
+ }
+}
+
+#define DRAW_HEADER(mdd, mgc, mwin, mx, my, mstr) \
+ AlertDrawHeader(mdd, mgc, mwin, mx, my, mstr, \
+ colorful, cols[2], cols[3], cols[4])
+static void
+AlertDrawHeader(Display * mdd, GC mgc, Window mwin, int mx, int my,
+ const char *mstr, int colorful, unsigned long cb,
+ unsigned long ct1, unsigned long ct2)
+{
+ int len = strlen(mstr);
+
+ if (colorful)
+ {
+ XSetForeground(mdd, mgc, cb);
+ ExDrawString(mdd, mwin, xfs, mgc, mx + 1, my + 1, mstr, len);
+ ExDrawString(mdd, mwin, xfs, mgc, mx + 2, my + 1, mstr, len);
+ ExDrawString(mdd, mwin, xfs, mgc, mx + 2, my + 2, mstr, len);
+ ExDrawString(mdd, mwin, xfs, mgc, mx + 1, my + 2, mstr, len);
+ XSetForeground(mdd, mgc, ct1);
+ ExDrawString(mdd, mwin, xfs, mgc, mx - 1, my, mstr, len);
+ ExDrawString(mdd, mwin, xfs, mgc, mx, my - 1, mstr, len);
+ ExDrawString(mdd, mwin, xfs, mgc, mx + 1, my, mstr, len);
+ ExDrawString(mdd, mwin, xfs, mgc, mx, my + 1, mstr, len);
+ XSetForeground(mdd, mgc, ct2);
+ ExDrawString(mdd, mwin, xfs, mgc, mx, my, mstr, len);
+ }
+ else
+ {
+ ExDrawString(mdd, mwin, xfs, mgc, mx, my, mstr, len);
+ }
+}
+
+#define DRAW_STRING(mdd, mgc, mwin, mx, my, mstr) \
+ AlertDrawString(mdd, mgc, mwin, mx, my, mstr, \
+ colorful, cols[3])
+static void
+AlertDrawString(Display * mdd, GC mgc, Window mwin, int mx, int my,
+ const char *mstr, int colorful, unsigned long ct1)
+{
+ int len = strlen(mstr);
+
+ if (colorful)
+ {
+ XSetForeground(mdd, mgc, ct1);
+ ExDrawString(mdd, mwin, xfs, mgc, mx, my, mstr, len);
+ }
+ else
+ {
+ ExDrawString(mdd, mwin, xfs, mgc, mx, my, mstr, len);
+ }
+}
+
+static char *
+AlertButtonText(int btn, const char *text)
+{
+ char *s;
+
+ if (!text)
+ return NULL;
+
+ s = EMALLOC(char, strlen(text) + 6);
+ if (!s)
+ return NULL;
+
+ sprintf(s, "(F%d) %s", btn, text);
+
+ return s;
+}
+
+static void
+ShowAlert(const char *title,
+ const char *ignore, const char *restart, const char *quit, char *text)
+{
+ Window win = 0, b1 = 0, b2 = 0, b3 = 0;
+ Display *dd;
+ int wid, hih, w, h, i, j, k, mask;
+ XGCValues gcv;
+ GC gc;
+ char line[1024];
+ XEvent ev;
+ XSetWindowAttributes att;
+ XRectangle rect1, rect2;
+ char colorful;
+ unsigned long cols[5];
+ XColor xcl;
+ Colormap cmap;
+ int cnum, fh, x, y, ww, hh, mh;
+ char *str1, *str2, *str3;
+ KeyCode key;
+ int button;
+ char **missing_charset_list_return, *def_string_return;
+ int missing_charset_count_return;
+ XFontStruct **font_struct_list_return;
+ char **font_name_list_return;
+
+ SoundPlay(SOUND_ALERT);
+
+ if (!text)
+ return;
+
+ /*
+ * We may get here from obscure places like an X-error or signal handler
+ * and things seem to work properly only if we do a new XOpenDisplay().
+ */
+ dd = XOpenDisplay(NULL);
+ if (!dd)
+ {
+ fprintf(stderr, "%s", text);
+ fflush(stderr);
+ return;
+ }
+
+ cmap = DefaultColormap(dd, DefaultScreen(dd));
+
+ if (!title)
+ title = _("Enlightenment Error");
+ str1 = AlertButtonText(1, ignore);
+ str2 = AlertButtonText(2, restart);
+ str3 = AlertButtonText(3, quit);
+
+ cnum = 0;
+ colorful = 0;
+ cols[0] = cols[1] = cols[2] = cols[3] = cols[4] = 0;
+ if (DefaultDepth(dd, DefaultScreen(dd)) > 4)
+ {
+ ExSetColor(&xcl, 220, 220, 220);
+ if (!XAllocColor(dd, cmap, &xcl))
+ goto CN;
+ cols[cnum++] = xcl.pixel;
+ ExSetColor(&xcl, 160, 160, 160);
+ if (!XAllocColor(dd, cmap, &xcl))
+ goto CN;
+ cols[cnum++] = xcl.pixel;
+ ExSetColor(&xcl, 100, 100, 100);
+ if (!XAllocColor(dd, cmap, &xcl))
+ goto CN;
+ cols[cnum++] = xcl.pixel;
+ ExSetColor(&xcl, 0, 0, 0);
+ if (!XAllocColor(dd, cmap, &xcl))
+ goto CN;
+ cols[cnum++] = xcl.pixel;
+ ExSetColor(&xcl, 255, 255, 255);
+ if (!XAllocColor(dd, cmap, &xcl))
+ goto CN;
+ cols[cnum++] = xcl.pixel;
+ colorful = 1;
+ }
+ CN:
+
+ if (colorful)
+ att.background_pixel = cols[1];
+ else
+ att.background_pixel = BlackPixel(dd, DefaultScreen(dd));
+ if (colorful)
+ att.border_pixel = cols[3];
+ else
+ att.border_pixel = WhitePixel(dd, DefaultScreen(dd));
+ att.backing_store = Always;
+ att.save_under = True;
+ att.override_redirect = True;
+ mask = CWBackPixel | CWBorderPixel | CWOverrideRedirect | CWSaveUnder |
+ CWBackingStore;
+ win = XCreateWindow(dd, DefaultRootWindow(dd), -100, -100, 1, 1, 0,
+ CopyFromParent, InputOutput, CopyFromParent, mask, &att);
+
+ if (str1 && sscanf(str1, "%s", line) > 0)
+ {
+ b1 = XCreateWindow(dd, win, -100, -100, 1, 1, 0, CopyFromParent,
+ InputOutput, CopyFromParent, mask, &att);
+ XMapWindow(dd, b1);
+ }
+ if (str2 && sscanf(str2, "%s", line) > 0)
+ {
+ b2 = XCreateWindow(dd, win, -100, -100, 1, 1, 0, CopyFromParent,
+ InputOutput, CopyFromParent, mask, &att);
+ XMapWindow(dd, b2);
+ }
+ if (str3 && sscanf(str3, "%s", line) > 0)
+ {
+ b3 = XCreateWindow(dd, win, -100, -100, 1, 1, 0, CopyFromParent,
+ InputOutput, CopyFromParent, mask, &att);
+ XMapWindow(dd, b3);
+ }
+
+ gc = XCreateGC(dd, win, 0, &gcv);
+ if (colorful)
+ XSetForeground(dd, gc, cols[3]);
+ else
+ XSetForeground(dd, gc, att.border_pixel);
+
+ xfs = XCreateFontSet(dd, "-*-sans unicode-*-r-*-*-12-*-*-*-*-*-*-*,"
+ "-*-helvetica-*-r-*-*-12-*-*-*-*-*-*-*,fixed",
+ &missing_charset_list_return,
+ &missing_charset_count_return, &def_string_return);
+ if (!xfs)
+ goto done;
+
+ if (missing_charset_list_return)
+ XFreeStringList(missing_charset_list_return);
+
+ k = XFontsOfFontSet(xfs, &font_struct_list_return, &font_name_list_return);
+ fh = 0;
+ for (i = 0; i < k; i++)
+ {
+ h = font_struct_list_return[i]->ascent +
+ font_struct_list_return[i]->descent;
+ if (fh < h)
+ fh = h;
+ }
+
+ XSelectInput(dd, win, KeyPressMask | KeyReleaseMask | ExposureMask);
+ XMapWindow(dd, win);
+ XGrabPointer(dd, win, True, ButtonPressMask | ButtonReleaseMask,
+ GrabModeAsync, GrabModeAsync, None, None, CurrentTime);
+ XGrabKeyboard(dd, win, False, GrabModeAsync, GrabModeAsync, CurrentTime);
+ XSetInputFocus(dd, win, RevertToPointerRoot, CurrentTime);
+
+ XGrabServer(dd);
+ XSync(dd, False);
+
+ wid = DisplayWidth(dd, DefaultScreen(dd));
+ hih = DisplayHeight(dd, DefaultScreen(dd));
+ ww = (wid >= 600) ? 600 : (wid / 40) * 40;
+ hh = (hih >= 440) ? 440 : (hih / 40) * 40;
+
+ for (i = 40; i < ww; i += 40)
+ {
+ w = i;
+ h = (i * hh) / ww;
+ x = (wid - w) >> 1;
+ y = (hih - h) >> 1;
+ XMoveResizeWindow(dd, win, x, y, w, h);
+ DRAW_BOX_OUT(dd, gc, win, 0, 0, w, h);
+ XSync(dd, False);
+ }
+ x = (wid - ww) >> 1;
+ y = (hih - hh) >> 1;
+ XMoveResizeWindow(dd, win, x, y, ww, hh);
+ XUngrabServer(dd);
+ XSync(dd, False);
+
+ mh = 0;
+ if (str1)
+ {
+ ExTextExtents(xfs, str1, strlen(str1), &rect1, &rect2);
+ mh = (rect2.width > mh) ? rect2.width : mh;
+ }
+ if (str2)
+ {
+ ExTextExtents(xfs, str2, strlen(str2), &rect1, &rect2);
+ mh = (rect2.width > mh) ? rect2.width : mh;
+ }
+ if (str3)
+ {
+ ExTextExtents(xfs, str3, strlen(str3), &rect1, &rect2);
+ mh = (rect2.width > mh) ? rect2.width : mh;
+ }
+ mh += 10;
+
+ w = (wid - ww) / 2;
+ h = (hih - hh) / 2;
+ if (str1 && sscanf(str1, "%s", line) > 0)
+ {
+ w = 5 + (((ww - 20 - mh) * 0) / 4);
+ XMoveResizeWindow(dd, b1, w, hh - 15 - fh, mh + 10, fh + 10);
+ XSelectInput(dd, b1,
+ ButtonPressMask | ButtonReleaseMask | ExposureMask);
+ }
+ if (str2 && sscanf(str2, "%s", line) > 0)
+ {
+ w = 5 + (((ww - 20 - mh) * 1) / 2);
+ XMoveResizeWindow(dd, b2, w, hh - 15 - fh, mh + 10, fh + 10);
+ XSelectInput(dd, b2,
+ ButtonPressMask | ButtonReleaseMask | ExposureMask);
+ }
+ if (str3 && sscanf(str3, "%s", line) > 0)
+ {
+ w = 5 + (((ww - 20 - mh) * 2) / 2);
+ XMoveResizeWindow(dd, b3, w, hh - 15 - fh, mh + 10, fh + 10);
+ XSelectInput(dd, b3,
+ ButtonPressMask | ButtonReleaseMask | ExposureMask);
+ }
+ XSync(dd, False);
+
+ button = 0;
+ for (; button == 0;)
+ {
+ XNextEvent(dd, &ev);
+ switch (ev.type)
+ {
+ case KeyPress:
+ key = XKeysymToKeycode(dd, XK_F1);
+ if (key == ev.xkey.keycode)
+ {
+ DRAW_BOX_IN(dd, gc, b1, 0, 0, mh + 10, fh + 10);
+ XSync(dd, False);
+ sleep(1);
+ DRAW_BOX_OUT(dd, gc, b1, 0, 0, mh + 10, fh + 10);
+ button = 1;
+ break;
+ }
+ key = XKeysymToKeycode(dd, XK_F2);
+ if (key == ev.xkey.keycode)
+ {
+ DRAW_BOX_IN(dd, gc, b2, 0, 0, mh + 10, fh + 10);
+ XSync(dd, False);
+ sleep(1);
+ DRAW_BOX_OUT(dd, gc, b2, 0, 0, mh + 10, fh + 10);
+ button = 2;
+ break;
+ }
+ key = XKeysymToKeycode(dd, XK_F3);
+ if (key == ev.xkey.keycode)
+ {
+ DRAW_BOX_IN(dd, gc, b3, 0, 0, mh + 10, fh + 10);
+ XSync(dd, False);
+ sleep(1);
+ DRAW_BOX_OUT(dd, gc, b3, 0, 0, mh + 10, fh + 10);
+ button = 3;
+ break;
+ }
+ XSync(dd, False);
+ break;
+
+ case ButtonPress:
+ if (ev.xbutton.window == b1)
+ {
+ DRAW_BOX_IN(dd, gc, b1, 0, 0, mh + 10, fh + 10);
+ }
+ else if (ev.xbutton.window == b2)
+ {
+ DRAW_BOX_IN(dd, gc, b2, 0, 0, mh + 10, fh + 10);
+ }
+ else if (ev.xbutton.window == b3)
+ {
+ DRAW_BOX_IN(dd, gc, b3, 0, 0, mh + 10, fh + 10);
+ }
+ XSync(dd, False);
+ break;
+
+ case ButtonRelease:
+ if (ev.xbutton.window == b1)
+ {
+ DRAW_BOX_OUT(dd, gc, b1, 0, 0, mh + 10, fh + 10);
+ button = 1;
+ }
+ else if (ev.xbutton.window == b2)
+ {
+ DRAW_BOX_OUT(dd, gc, b2, 0, 0, mh + 10, fh + 10);
+ button = 2;
+ }
+ else if (ev.xbutton.window == b3)
+ {
+ DRAW_BOX_OUT(dd, gc, b3, 0, 0, mh + 10, fh + 10);
+ button = 3;
+ }
+ XSync(dd, False);
+ break;
+
+ case Expose:
+ /* Flush all other Expose events */
+ while (XCheckTypedWindowEvent(dd, ev.xexpose.window, Expose, &ev))
+ ;
+
+ ExTextExtents(xfs, title, strlen(title), &rect1, &rect2);
+ w = rect2.width;
+
+ DRAW_HEADER(dd, gc, win, (ww - w) / 2, 5 - rect2.y, title);
+ DRAW_BOX_OUT(dd, gc, win, 0, 0, ww, fh + 10);
+ DRAW_BOX_OUT(dd, gc, win, 0, fh + 10 - 1, ww,
+ hh - fh - fh - 30 + 2);
+ DRAW_BOX_OUT(dd, gc, win, 0, hh - fh - 20, ww, fh + 20);
+ i = 0;
+ j = 0;
+ k = fh + 10;
+ while (text[i])
+ {
+ line[j++] = text[i++];
+ if (line[j - 1] == '\n')
+ {
+ line[j - 1] = 0;
+ j = 0;
+ DRAW_STRING(dd, gc, win, 6, 6 + k + fh, line);
+ k += fh + 2;
+ }
+ }
+ if (str1 && sscanf(str1, "%s", line) > 0)
+ {
+ ExTextExtents(xfs, str1, strlen(str1), &rect1, &rect2);
+ h = rect2.width;
+ w = 3 + (((ww - 20 - mh) * 0) / 4);
+ DRAW_HEADER(dd, gc, b1, 5 + (mh - h) / 2, 5 - rect2.y, str1);
+ DRAW_BOX_OUT(dd, gc, b1, 0, 0, mh + 10, fh + 10);
+ DRAW_THIN_BOX_IN(dd, gc, win, w, hh - 17 - fh, mh + 14,
+ fh + 14);
+ }
+ if (str2 && sscanf(str2, "%s", line) > 0)
+ {
+ ExTextExtents(xfs, str2, strlen(str2), &rect1, &rect2);
+ h = rect2.width;
+ w = 3 + (((ww - 20 - mh) * 1) / 2);
+ DRAW_HEADER(dd, gc, b2, 5 + (mh - h) / 2, 5 - rect2.y, str2);
+ DRAW_BOX_OUT(dd, gc, b2, 0, 0, mh + 10, fh + 10);
+ DRAW_THIN_BOX_IN(dd, gc, win, w, hh - 17 - fh, mh + 14,
+ fh + 14);
+ }
+ if (str3 && sscanf(str3, "%s", line) > 0)
+ {
+ ExTextExtents(xfs, str3, strlen(str3), &rect1, &rect2);
+ h = rect2.width;
+ w = 3 + (((ww - 20 - mh) * 2) / 2);
+ DRAW_HEADER(dd, gc, b3, 5 + (mh - h) / 2, 5 - rect2.y, str3);
+ DRAW_BOX_OUT(dd, gc, b3, 0, 0, mh + 10, fh + 10);
+ DRAW_THIN_BOX_IN(dd, gc, win, w, hh - 17 - fh, mh + 14,
+ fh + 14);
+ }
+ XSync(dd, False);
+ break;
+
+ default:
+ break;
+ }
+ }
+
+ XDestroyWindow(dd, win);
+ XFreeGC(dd, gc);
+ XFreeFontSet(dd, xfs);
+ if (cnum > 0)
+ XFreeColors(dd, cmap, cols, cnum, 0);
+ XCloseDisplay(dd);
+
+ switch (button)
+ {
+ default:
+ case 1:
+ break;
+ case 2:
+ SessionExit(EEXIT_RESTART, NULL);
+ break;
+ case 3:
+ SessionExit(EEXIT_EXIT, NULL);
+ break;
+ }
+
+ done:
+ Efree(str1);
+ Efree(str2);
+ Efree(str3);
+}
+
+void
+AlertX(const char *title, const char *ignore,
+ const char *restart, const char *quit, const char *fmt, ...)
+{
+ char text[10240];
+ va_list args;
+
+ va_start(args, fmt);
+ Evsnprintf(text, sizeof(text), fmt, args);
+ va_end(args);
+
+ ShowAlert(title, ignore, restart, quit, text);
+}
+
+void
+Alert(const char *fmt, ...)
+{
+ char text[10240];
+ va_list args;
+
+ va_start(args, fmt);
+ Evsnprintf(text, sizeof(text), fmt, args);
+ va_end(args);
+
+ ShowAlert(_("Enlightenment Message Dialog"), _("Ignore this"),
+ _("Restart Enlightenment"), _("Quit Enlightenment"), text);
+}
+
+void
+AlertOK(const char *fmt, ...)
+{
+ char text[10240];
+ va_list args;
+
+ va_start(args, fmt);
+ Evsnprintf(text, 10240, fmt, args);
+ va_end(args);
+
+ ShowAlert(_("Attention !!!"), _("OK"), NULL, NULL, text);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ALERT_H_
+#define _ALERT_H_
+
+#include "util.h"
+
+/* alert.c */
+void __PRINTF__ Alert(const char *fmt, ...);
+void __PRINTF__ AlertOK(const char *fmt, ...);
+void __PRINTF_5__ AlertX(const char *title, const char *ignore,
+ const char *restart, const char *quit,
+ const char *fmt, ...);
+
+#endif /* _ALERT_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "ewins.h"
+#include "groups.h"
+#include "screen.h"
+
+#define DEBUG_ARRANGE 0
+
+typedef struct {
+ void *data;
+ int x, y, w, h;
+ int p;
+} RectBox;
+
+typedef struct {
+ int x, y;
+ int p, q;
+} RectInfo;
+
+static int
+ArrangeAddToList(int *array, int current_size, int value)
+{
+ int i, j;
+
+ if (current_size >= 2 &&
+ (value <= array[0] || value >= array[current_size - 1]))
+ return current_size;
+
+ for (i = 0; i < current_size; i++)
+ {
+ if (value < array[i])
+ {
+ for (j = current_size; j > i; j--)
+ array[j] = array[j - 1];
+ array[i] = value;
+ return current_size + 1;
+ }
+ else if (value == array[i])
+ return current_size;
+ }
+ array[current_size] = value;
+ return current_size + 1;
+}
+
+static void
+ArrangeMakeXYArrays(int tx1, int tx2, int ty1, int ty2, int fitw, int fith,
+ const RectBox * sorted, int num_sorted,
+ int *xarray, int *nx, int *yarray, int *ny)
+{
+ int j, x1, x2, y1, y2;
+ int xsize, ysize;
+
+ xsize = 0;
+ ysize = 0;
+
+ /* put all the sorted rects into the xy arrays */
+ xsize = ArrangeAddToList(xarray, xsize, tx1);
+ xsize = ArrangeAddToList(xarray, xsize, tx2);
+ xsize = ArrangeAddToList(xarray, xsize, tx2 - fitw);
+ ysize = ArrangeAddToList(yarray, ysize, ty1);
+ ysize = ArrangeAddToList(yarray, ysize, ty2);
+ ysize = ArrangeAddToList(yarray, ysize, ty2 - fith);
+
+ for (j = 0; j < num_sorted; j++)
+ {
+ x1 = sorted[j].x;
+ x2 = x1 + sorted[j].w;
+ xsize = ArrangeAddToList(xarray, xsize, x1);
+ xsize = ArrangeAddToList(xarray, xsize, x2);
+ xsize = ArrangeAddToList(xarray, xsize, x1 - fitw);
+ xsize = ArrangeAddToList(xarray, xsize, x2 - fitw);
+ y1 = sorted[j].y;
+ y2 = y1 + sorted[j].h;
+ ysize = ArrangeAddToList(yarray, ysize, y1);
+ ysize = ArrangeAddToList(yarray, ysize, y2);
+ ysize = ArrangeAddToList(yarray, ysize, y1 - fith);
+ ysize = ArrangeAddToList(yarray, ysize, y2 - fith);
+ }
+#if DEBUG_ARRANGE
+ for (j = 0; j < xsize; j++)
+ Eprintf("xarray[%d] = %d\n", j, xarray[j]);
+ for (j = 0; j < ysize; j++)
+ Eprintf("yarray[%d] = %d\n", j, yarray[j]);
+#endif
+
+ *nx = xsize;
+ *ny = ysize;
+}
+
+#define Filled(x,y) (filled[(y * (xsize - 1)) + x])
+
+static void
+ArrangeMakeFillLists(const RectBox * sorted, int num_sorted,
+ int *xarray, int xsize, int *yarray, int ysize,
+ unsigned char *filled)
+{
+ int j, x1, x2, y1, y2, k, y, x;
+
+ /* fill the allocation array */
+ for (j = 0; j < (xsize - 1) * (ysize - 1); filled[j++] = 0)
+ ;
+ for (j = 0; j < num_sorted; j++)
+ {
+ x1 = -1;
+ x2 = -1;
+ y1 = -1;
+ y2 = -1;
+ for (k = 0; k < xsize - 1; k++)
+ if (sorted[j].x == xarray[k])
+ {
+ x1 = x2 = k;
+ break;
+ }
+ for (k++; k < xsize - 1; k++)
+ if (sorted[j].x + sorted[j].w > xarray[k])
+ x2 = k;
+ for (k = 0; k < ysize - 1; k++)
+ if (sorted[j].y == yarray[k])
+ {
+ y1 = y2 = k;
+ break;
+ }
+ for (k++; k < ysize - 1; k++)
+ if (sorted[j].y + sorted[j].h > yarray[k])
+ y2 = k;
+#if DEBUG_ARRANGE
+ Eprintf("Fill %4d,%4d %4dx%4d: (%2d)%4d->(%2d)%4d,(%2d)%4d->(%2d)%4d\n",
+ sorted[j].x, sorted[j].y, sorted[j].w, sorted[j].h,
+ x1, xarray[x1], x2, xarray[x2], y1, yarray[y1], y2, yarray[y2]);
+#endif
+ if ((x1 >= 0) && (x2 >= 0) && (y1 >= 0) && (y2 >= 0))
+ {
+ for (y = y1; y <= y2; y++)
+ {
+ for (x = x1; x <= x2; x++)
+ {
+ Filled(x, y) += sorted[j].p;
+ }
+ }
+ }
+ }
+
+#if DEBUG_ARRANGE
+ Eprintf("Filled[%2d,%2d] =\n", xsize, ysize);
+ for (k = 0; k < ysize - 1; k++)
+ {
+ for (j = 0; j < xsize - 1; j++)
+ printf(" %2d", Filled(j, k));
+ printf("\n");
+ }
+#endif
+}
+
+static void
+ArrangeFindSpace(const int *xarray, int xsize, const int *yarray, int ysize,
+ unsigned char *filled, RectInfo * spaces, int *ns,
+ int wx, int wy, int ww, int wh)
+{
+ int i, j, w, h, fw, fh, z1, z2;
+ int cost, desk;
+ int num_spaces = *ns;
+
+ if (wx < xarray[0] || (wx != xarray[0] && wx + ww > xarray[xsize - 1]))
+ return;
+ if (wy < yarray[0] || (wy != yarray[0] && wy + wh > yarray[ysize - 1]))
+ return;
+
+ cost = desk = 0;
+ fh = wh;
+#if DEBUG_ARRANGE > 1
+ Eprintf("Check-A %d,%d %dx%d\n", wx, wy, ww, wh);
+#endif
+ for (j = 0; j < ysize - 1; j++)
+ {
+ z2 = yarray[j + 1];
+ if (z2 <= wy)
+ continue;
+
+ z1 = wy > yarray[j] ? wy : yarray[j];
+ z2 = wy + wh < z2 ? wy + wh : z2;
+ h = z2 - z1;
+ fw = ww;
+ for (i = 0; i < xsize - 1; i++)
+ {
+ z2 = xarray[i + 1];
+ if (z2 <= wx)
+ continue;
+
+ z1 = wx > xarray[i] ? wx : xarray[i];
+ z2 = wx + ww < z2 ? wx + ww : z2;
+ w = z2 - z1;
+#if DEBUG_ARRANGE > 1
+ Eprintf("Add [%d,%d] %3dx%3d: %2d\n", i, j, w, h, Filled(i, j));
+#endif
+ if (Filled(i, j) == 0)
+ desk += w * h;
+ else
+ cost += w * h * Filled(i, j);
+ fw -= w;
+ if (fw <= 0)
+ break;
+ }
+ fh -= h;
+ if (fh <= 0)
+ break;
+ }
+
+#if DEBUG_ARRANGE
+ Eprintf("Check %4d,%4d %3dx%3d cost=%d desk=%d\n", wx, wy, ww, wh,
+ cost, desk);
+#endif
+ spaces[num_spaces].x = wx;
+ spaces[num_spaces].y = wy;
+ spaces[num_spaces].p = cost;
+ spaces[num_spaces].q = desk;
+ num_spaces++;
+ *ns = num_spaces;
+}
+
+static void
+ArrangeFindSpaces(const int *xarray, int xsize, const int *yarray, int ysize,
+ unsigned char *filled, RectInfo * spaces, int max_spaces,
+ int *ns, RectBox * fit)
+{
+ int ix, iy, fx, fy, fw, fh;
+
+ /* create list of all "spaces" */
+ *ns = 0;
+ fw = fit->w;
+ fh = fit->h;
+ for (iy = 0; iy < ysize; iy++)
+ {
+ fy = yarray[iy];
+
+ for (ix = 0; ix < xsize; ix++)
+ {
+ fx = xarray[ix];
+
+ ArrangeFindSpace(xarray, xsize, yarray, ysize, filled, spaces, ns,
+ fx, fy, fw, fh);
+ if (*ns >= max_spaces)
+ goto done;
+ }
+ }
+
+ done:
+ ;
+}
+
+static void
+ArrangeSwapList(RectBox * list, int a, int b)
+{
+ RectBox bb;
+
+ bb.data = list[a].data;
+ bb.x = list[a].x;
+ bb.y = list[a].y;
+ bb.w = list[a].w;
+ bb.h = list[a].h;
+ list[a].data = list[b].data;
+ list[a].x = list[b].x;
+ list[a].y = list[b].y;
+ list[a].w = list[b].w;
+ list[a].h = list[b].h;
+ list[b].data = bb.data;
+ list[b].x = bb.x;
+ list[b].y = bb.y;
+ list[b].w = bb.w;
+ list[b].h = bb.h;
+}
+
+static void
+ArrangeRects(const RectBox * fixed, int fixed_count, RectBox * floating,
+ int floating_count, RectBox * sorted, int startx, int starty,
+ int width, int height, int policy, char initial_window)
+{
+ int num_sorted;
+ int tx1, ty1, tx2, ty2;
+ int xsize = 0, ysize = 0;
+ int *xarray, *yarray;
+ int i, j, k;
+ unsigned char *filled;
+ RectInfo *spaces;
+ int num_spaces, alloc_spaces;
+ int sort;
+ int a1, a2;
+
+ tx1 = startx;
+ ty1 = starty;
+ tx2 = startx + width;
+ ty2 = starty + height;
+ if (initial_window)
+ {
+ int xx1, yy1, xx2, yy2;
+
+ ScreenGetAvailableAreaByPointer(&xx1, &yy1, &xx2, &yy2);
+ xx2 += xx1;
+ yy2 += yy1;
+ if (tx1 < xx1)
+ tx1 = xx1;
+ if (tx2 > xx2)
+ tx2 = xx2;
+ if (ty1 < yy1)
+ ty1 = yy1;
+ if (ty2 > yy2)
+ ty2 = yy2;
+ }
+#if DEBUG_ARRANGE
+ Eprintf("Target area %d,%d -> %d,%d\n", tx1, ty1, tx2, ty2);
+#endif
+
+ switch (policy)
+ {
+ case ARRANGE_VERBATIM:
+ break;
+ case ARRANGE_BY_SIZE:
+ sort = 0;
+ while (!sort)
+ {
+ sort = 1;
+ for (i = 0; i < floating_count - 1; i++)
+ {
+ a1 = floating[i].w * floating[i].h;
+ a2 = floating[i + 1].w * floating[i + 1].h;
+ if (a2 > a1)
+ {
+ sort = 0;
+ ArrangeSwapList(floating, i, i + 1);
+ }
+ }
+ }
+ break;
+ case ARRANGE_BY_POSITION:
+ sort = 0;
+ while (!sort)
+ {
+ sort = 1;
+ for (i = 0; i < floating_count - 1; i++)
+ {
+ a1 = floating[i].x + floating[i].y;
+ a2 = (floating[i + 1].x + (floating[i + 1].w >> 1)) +
+ (floating[i + 1].y + (floating[i + 1].h >> 1));
+ if (a2 < a1)
+ {
+ sort = 0;
+ ArrangeSwapList(floating, i, i + 1);
+ }
+ }
+ }
+ break;
+ default:
+ break;
+ }
+
+ /* for every floating rect in order, "fit" it into the sorted list */
+ i = ((fixed_count + floating_count) * 4) + 2;
+ xarray = EMALLOC(int, i);
+ yarray = EMALLOC(int, i);
+
+ filled = NULL;
+ spaces = NULL;
+ alloc_spaces = 0;
+
+ if (!xarray || !yarray)
+ goto done;
+
+ /* copy "fixed" rects into the sorted list */
+ memcpy(sorted, fixed, fixed_count * sizeof(RectBox));
+ num_sorted = fixed_count;
+
+ /* go through each floating rect in order and "fit" it in */
+ for (i = 0; i < floating_count; i++)
+ {
+ ArrangeMakeXYArrays(tx1, tx2, ty1, ty2, floating[i].w, floating[i].h,
+ sorted, num_sorted, xarray, &xsize, yarray, &ysize);
+ num_spaces = xsize * ysize;
+ if (alloc_spaces < num_spaces)
+ {
+ unsigned char *ptr_f;
+ RectInfo *ptr_s;
+
+ ptr_f = EREALLOC(unsigned char, filled, num_spaces);
+
+ if (ptr_f)
+ filled = ptr_f;
+ ptr_s = EREALLOC(RectInfo, spaces, num_spaces);
+ if (ptr_s)
+ spaces = ptr_s;
+ if (!ptr_f || !ptr_s)
+ goto done;
+ alloc_spaces = num_spaces;
+ }
+ ArrangeMakeFillLists(sorted, num_sorted,
+ xarray, xsize, yarray, ysize, filled);
+
+ /* create list of all "spaces" */
+ ArrangeFindSpaces(xarray, xsize, yarray, ysize, filled,
+ spaces, alloc_spaces, &num_spaces, floating + i);
+
+ /* find the first space that fits */
+ k = 0;
+ sort = 0x7fffffff; /* NB! Break at 0 == free space */
+ for (j = 0; j < num_spaces; j++)
+ {
+ a1 = spaces[j].p - spaces[j].q * 4;
+ if (a1 >= sort)
+ continue;
+ sort = a1;
+ k = j;
+ if (sort == 0)
+ break;
+ }
+ if (spaces[k].q == 0 && Conf.place.center_if_desk_full)
+ {
+ sorted[num_sorted].x = (tx1 + tx2 - floating[i].w) / 2;
+ sorted[num_sorted].y = (ty1 + ty2 - floating[i].h) / 2;
+ }
+ else
+ {
+ sorted[num_sorted].x = spaces[k].x;
+ sorted[num_sorted].y = spaces[k].y;
+ }
+ sorted[num_sorted].data = floating[i].data;
+ sorted[num_sorted].w = floating[i].w;
+ sorted[num_sorted].h = floating[i].h;
+ sorted[num_sorted].p = floating[i].p;
+ num_sorted++;
+ }
+
+#if DEBUG_ARRANGE
+ for (i = 0; i < num_sorted; i++)
+ Eprintf("Sorted: x,y=%4d,%4d wxh=%3dx%3d p=%2d: %s\n",
+ sorted[i].x, sorted[i].y, sorted[i].w, sorted[i].h, sorted[i].p,
+ (sorted[i].data) ? EobjGetName((EObj *) sorted[i].data) : "?");
+#endif
+
+ done:
+ /* free up memory */
+ Efree(xarray);
+ Efree(yarray);
+ Efree(filled);
+ Efree(spaces);
+}
+
+void
+SnapEwin(EWin * ewin, int dx, int dy, int *new_dx, int *new_dy)
+{
+ EWin *const *lst1;
+ EWin **lst, **gwins;
+ int gnum, num, i, j, screen_snap_dist, odx, ody;
+ static char last_res = 0;
+ int top_bound, bottom_bound, left_bound, right_bound, w, h;
+
+ if (!ewin)
+ return;
+
+ if (!Conf.snap.enable)
+ {
+ *new_dx = dx;
+ *new_dy = dy;
+ return;
+ }
+
+ ScreenGetGeometry(ewin->shape_x, ewin->shape_y,
+ &left_bound, &top_bound, &w, &h);
+ right_bound = left_bound + w;
+ bottom_bound = top_bound + h;
+ screen_snap_dist = Mode.constrained ? (w + h) : Conf.snap.screen_snap_dist;
+
+ lst = NULL;
+ lst1 = EwinListOrderGet(&num);
+ if (lst1)
+ {
+ lst = EMALLOC(EWin *, num);
+ if (!lst)
+ return;
+ memcpy(lst, lst1, num * sizeof(EWin *));
+ }
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE, Mode.nogroup
+ || Mode.move.swap, &gnum);
+ if (gwins)
+ {
+ for (i = 0; i < gnum; i++)
+ {
+ for (j = 0; j < num; j++)
+ {
+ if ((lst[j] == gwins[i]) || (lst[j] == ewin))
+ lst[j] = NULL;
+ }
+ }
+ Efree(gwins);
+ }
+
+ odx = dx;
+ ody = dy;
+ if (dx < 0)
+ {
+ if (IN_BELOW(ewin->shape_x + dx, left_bound, screen_snap_dist)
+ && (ewin->shape_x >= left_bound))
+ {
+ dx = left_bound - ewin->shape_x;
+ }
+ else if (lst)
+ {
+ for (i = 0; i < num; i++)
+ {
+ if (lst[i] == NULL)
+ continue;
+
+ if ((EoGetDesk(ewin) == EoGetDesk(lst[i]) ||
+ EoIsSticky(lst[i])) && !(EoIsFloating(lst[i])) &&
+ !lst[i]->state.iconified && !lst[i]->props.ignorearrange)
+ {
+ if (IN_BELOW
+ (ewin->shape_x + dx,
+ EoGetX(lst[i]) + EoGetW(lst[i]) - 1,
+ Conf.snap.edge_snap_dist)
+ && SPANS_COMMON(ewin->shape_y, EoGetH(ewin),
+ EoGetY(lst[i]), EoGetH(lst[i]))
+ && (ewin->shape_x >=
+ (EoGetX(lst[i]) + EoGetW(lst[i]))))
+ {
+ dx =
+ (EoGetX(lst[i]) + EoGetW(lst[i])) -
+ ewin->shape_x;
+ break;
+ }
+ }
+ }
+ }
+ if ((ewin->req_x - ewin->shape_x) > 0)
+ dx = 0;
+ }
+ else if (dx > 0)
+ {
+ if (IN_ABOVE
+ (ewin->shape_x + EoGetW(ewin) + dx, right_bound, screen_snap_dist)
+ && ((ewin->shape_x + EoGetW(ewin)) <= right_bound))
+ {
+ dx = right_bound - (ewin->shape_x + EoGetW(ewin));
+ }
+ else if (lst)
+ {
+ for (i = 0; i < num; i++)
+ {
+ if (lst[i] == NULL)
+ continue;
+
+ if ((EoGetDesk(ewin) == EoGetDesk(lst[i]) ||
+ EoIsSticky(lst[i])) && !(EoIsFloating(lst[i])) &&
+ !lst[i]->state.iconified && !lst[i]->props.ignorearrange)
+ {
+ if (IN_ABOVE
+ (ewin->shape_x + EoGetW(ewin) + dx - 1,
+ EoGetX(lst[i]), Conf.snap.edge_snap_dist)
+ && SPANS_COMMON(ewin->shape_y, EoGetH(ewin),
+ EoGetY(lst[i]), EoGetH(lst[i]))
+ && ((ewin->shape_x + EoGetW(ewin)) <=
+ EoGetX(lst[i])))
+ {
+ dx =
+ EoGetX(lst[i]) - (ewin->shape_x + EoGetW(ewin));
+ break;
+ }
+ }
+ }
+ }
+ if ((ewin->req_x - ewin->shape_x) < 0)
+ dx = 0;
+ }
+
+ if (dy < 0)
+ {
+ if (IN_BELOW(ewin->shape_y + dy, top_bound, screen_snap_dist)
+ && (ewin->shape_y >= top_bound))
+ {
+ dy = top_bound - ewin->shape_y;
+ }
+ else if (lst)
+ {
+ for (i = 0; i < num; i++)
+ {
+ if (lst[i] == NULL)
+ continue;
+
+ if ((EoGetDesk(ewin) == EoGetDesk(lst[i]) ||
+ EoIsSticky(lst[i])) && !(EoIsFloating(lst[i])) &&
+ !lst[i]->state.iconified && !lst[i]->props.ignorearrange)
+ {
+ if (IN_BELOW
+ (ewin->shape_y + dy,
+ EoGetY(lst[i]) + EoGetH(lst[i]) - 1,
+ Conf.snap.edge_snap_dist)
+ && SPANS_COMMON(ewin->shape_x, EoGetW(ewin),
+ EoGetX(lst[i]), EoGetW(lst[i]))
+ && (ewin->shape_y >=
+ (EoGetY(lst[i]) + EoGetH(lst[i]))))
+ {
+ dy =
+ (EoGetY(lst[i]) + EoGetH(lst[i])) -
+ ewin->shape_y;
+ break;
+ }
+ }
+ }
+ }
+ if ((ewin->req_y - ewin->shape_y) > 0)
+ dy = 0;
+ }
+ else if (dy > 0)
+ {
+ if (IN_ABOVE
+ (ewin->shape_y + EoGetH(ewin) + dy, bottom_bound,
+ screen_snap_dist)
+ && ((ewin->shape_y + EoGetH(ewin)) <= bottom_bound))
+ {
+ dy = bottom_bound - (ewin->shape_y + EoGetH(ewin));
+ }
+ else if (lst)
+ {
+ for (i = 0; i < num; i++)
+ {
+ if (lst[i] == NULL)
+ continue;
+
+ if ((EoGetDesk(ewin) == EoGetDesk(lst[i]) ||
+ EoIsSticky(lst[i])) && !(EoIsFloating(lst[i])) &&
+ !lst[i]->state.iconified && !lst[i]->props.ignorearrange)
+ {
+ if (IN_ABOVE
+ (ewin->shape_y + EoGetH(ewin) + dy - 1,
+ EoGetY(lst[i]), Conf.snap.edge_snap_dist)
+ && SPANS_COMMON(ewin->shape_x, EoGetW(ewin),
+ EoGetX(lst[i]), EoGetW(lst[i]))
+ && ((ewin->shape_y + EoGetH(ewin)) <=
+ EoGetY(lst[i])))
+ {
+ dy =
+ EoGetY(lst[i]) - (ewin->shape_y + EoGetH(ewin));
+ break;
+ }
+ }
+ }
+ }
+ if ((ewin->req_y - ewin->shape_y) < 0)
+ dy = 0;
+ }
+
+ Efree(lst);
+
+ if ((odx != dx) || (ody != dy))
+ {
+ if (!last_res)
+ {
+ /* SoundPlay(SOUND_MOVE_RESIST); */
+ last_res = 1;
+ }
+ }
+ else
+ {
+ last_res = 0;
+ }
+ *new_dx = dx;
+ *new_dy = dy;
+}
+
+void
+ArrangeEwin(EWin * ewin)
+{
+ int x, y;
+
+ ArrangeEwinXY(ewin, &x, &y);
+ EwinMove(ewin, x, y);
+}
+
+void
+ArrangeEwinCentered(EWin * ewin)
+{
+ int x, y;
+
+ ArrangeEwinCenteredXY(ewin, &x, &y);
+ EwinMove(ewin, x, y);
+}
+
+static void
+ArrangeGetRectList(RectBox ** pfixed, int *nfixed, RectBox ** pfloating,
+ int *nfloating, EWin * ewin)
+{
+ RectBox *rb, *fixed, *floating;
+ int x, y, w, h, i, nfix, nflt, num;
+ EObj *const *lst, *eo;
+ Desk *dsk;
+
+ fixed = floating = NULL;
+ nfix = nflt = 0;
+
+ lst = EobjListStackGet(&num);
+ if (!lst)
+ goto done;
+
+ fixed = EMALLOC(RectBox, num);
+ if (!fixed)
+ goto done;
+ rb = fixed;
+
+ dsk = (ewin) ? EoGetDesk(ewin) : DesksGetCurrent();
+
+ for (i = 0; i < num; i++)
+ {
+ rb = fixed + nfix;
+ eo = lst[i];
+
+ if (!eo->shown)
+ continue;
+
+ if (eo->type == EOBJ_TYPE_EWIN)
+ {
+ EWin *ew = (EWin *) eo;
+
+ if (ew == ewin)
+ continue;
+ if (eo->desk != dsk)
+ continue;
+
+ if (ew->props.ignorearrange || EoGetLayer(ew) == 0)
+ continue;
+
+ if (pfloating)
+ {
+ int ax, ay;
+
+ DeskGetArea(EoGetDesk(ew), &ax, &ay);
+
+ if (!EoIsSticky(ew) && !EoIsFloating(ew) &&
+ ew->area_x == ax && ew->area_y == ay)
+ {
+ floating = EREALLOC(RectBox, floating, nflt + 1);
+ rb = floating + nflt++;
+ rb->data = ew;
+ rb->x = EoGetX(ew);
+ rb->y = EoGetY(ew);
+ rb->w = EoGetW(ew);
+ rb->h = EoGetH(ew);
+ rb->p = EoGetLayer(ew);
+#if DEBUG_ARRANGE
+ Eprintf("Add float: x,y=%4d,%4d wxh=%3dx%3d p=%2d: %s\n",
+ rb->x, rb->y, rb->w, rb->h, rb->p,
+ EobjGetName(eo));
+#endif
+ continue;
+ }
+ }
+
+ rb->data = ew;
+
+ if (ew->props.never_use_area)
+ rb->p = 100;
+ else
+ rb->p = EoGetLayer(ew);
+ }
+ else if (eo->type == EOBJ_TYPE_BUTTON)
+ {
+ if (!eo->sticky && eo->desk != dsk)
+ continue;
+
+ rb->data = NULL;
+ rb->p = (eo->sticky) ? 1 : 0;
+ }
+ else
+ {
+ continue;
+ }
+
+ x = EobjGetX(eo);
+ y = EobjGetY(eo);
+ w = EobjGetW(eo);
+ h = EobjGetH(eo);
+
+ if (x < 0)
+ {
+ w += x;
+ x = 0;
+ }
+ if ((x + w) > WinGetW(VROOT))
+ w = WinGetW(VROOT) - x;
+
+ if (y < 0)
+ {
+ h += y;
+ y = 0;
+ }
+ if ((y + h) > WinGetH(VROOT))
+ h = WinGetH(VROOT) - y;
+
+ if ((w <= 0) || (h <= 0))
+ continue;
+
+ rb->x = x;
+ rb->y = y;
+ rb->w = w;
+ rb->h = h;
+#if DEBUG_ARRANGE
+ Eprintf("Add fixed: x,y=%4d,%4d wxh=%3dx%3d p=%2d: %s\n", rb->x, rb->y,
+ rb->w, rb->h, rb->p, EobjGetName(eo));
+#endif
+
+ nfix++;
+ }
+
+ done:
+#if DEBUG_ARRANGE
+ Eprintf("Fixed: %p/%d Floating: %p/%d\n", fixed, nfix, floating, nflt);
+#endif
+ *pfixed = fixed;
+ *nfixed = nfix;
+ if (pfloating)
+ *pfloating = floating;
+ if (nfloating)
+ *nfloating = nflt;
+}
+
+void
+ArrangeEwinXY(EWin * ewin, int *px, int *py)
+{
+ EWin *const *lst;
+ int i, num;
+ RectBox *fixed, *ret, newrect;
+
+ fixed = NULL;
+ ret = NULL;
+
+ lst = EwinListGetAll(&num);
+ if (num <= 1)
+ {
+ ArrangeEwinCenteredXY(ewin, px, py);
+ return;
+ }
+
+ ArrangeGetRectList(&fixed, &num, NULL, NULL, ewin);
+
+ newrect.data = ewin;
+ newrect.x = 0;
+ newrect.y = 0;
+ newrect.w = EoGetW(ewin);
+ newrect.h = EoGetH(ewin);
+ newrect.p = EoGetLayer(ewin);
+
+ ret = ECALLOC(RectBox, num + 1);
+ ArrangeRects(fixed, num, &newrect, 1, ret, 0, 0,
+ WinGetW(VROOT), WinGetH(VROOT), ARRANGE_BY_SIZE, 1);
+
+ for (i = 0; i < num + 1; i++)
+ {
+ if (ret[i].data == ewin)
+ {
+ *px = ret[i].x;
+ *py = ret[i].y;
+ break;
+ }
+ }
+ Efree(ret);
+ Efree(fixed);
+}
+
+void
+ArrangeEwinCenteredXY(EWin * ewin, int *px, int *py)
+{
+ int x, y, w, h;
+
+ ScreenGetAvailableAreaByPointer(&x, &y, &w, &h);
+ *px = (w - EoGetW(ewin)) / 2 + x;
+ *py = (h - EoGetH(ewin)) / 2 + y;
+}
+
+void
+ArrangeEwins(const char *params)
+{
+ const char *type;
+ int method;
+ int i, nfix, nflt, num;
+ RectBox *fixed, *ret, *floating;
+ EWin *const *lst, *ewin;
+
+ type = params;
+ method = ARRANGE_BY_SIZE;
+
+ if (params)
+ {
+ if (!strcmp("order", type))
+ {
+ method = ARRANGE_VERBATIM;
+ }
+ else if (!strcmp("place", type))
+ {
+ method = ARRANGE_BY_POSITION;
+ }
+ }
+
+ lst = EwinListGetAll(&num);
+ if (!lst)
+ goto done;
+
+ ArrangeGetRectList(&fixed, &nfix, &floating, &nflt, NULL);
+
+ ret = ECALLOC(RectBox, nflt + nfix);
+ ArrangeRects(fixed, nfix, floating, nflt, ret, 0, 0,
+ WinGetW(VROOT), WinGetH(VROOT), method, 1);
+
+ for (i = nfix; i < nflt + nfix; i++)
+ {
+ if (!ret[i].data)
+ continue;
+
+ ewin = (EWin *) ret[i].data;
+ if ((EoGetX(ewin) == ret[i].x) && (EoGetY(ewin) == ret[i].y))
+ continue;
+
+ if (Conf.place.cleanupslide)
+ SlideEwinTo(ewin, EoGetX(ewin), EoGetY(ewin),
+ ret[i].x, ret[i].y, Conf.place.slidespeedcleanup,
+ Conf.place.slidemode);
+ else
+ EwinMove(ewin, ret[i].x, ret[i].y);
+ }
+
+ Efree(fixed);
+ Efree(ret);
+ Efree(floating);
+
+ done:
+ return;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include <time.h>
+#include "E.h"
+#include "backgrounds.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "file.h"
+#include "iclass.h"
+#include "settings.h"
+#include "tclass.h"
+#include "timers.h"
+#include "xwin.h"
+
+typedef struct {
+ char *file;
+ char *real_file;
+ EImage *im;
+ char keep_aspect;
+ int xjust, yjust;
+ int xperc, yperc;
+} BgPart;
+
+struct _background {
+ char *name;
+ Pixmap pmap;
+ time_t last_viewed;
+ EColor bg_solid;
+ char bg_tile;
+ BgPart bg;
+ BgPart top;
+ char external;
+ char keepim;
+ char referenced;
+ unsigned int ref_count;
+ unsigned int seq_no;
+};
+
+static Ecore_List *bg_list = NULL;
+static Timer *bg_timer = NULL;
+static unsigned int bg_seq_no = 0;
+
+#define N_BG_ASSIGNED 32
+static Background *bg_assigned[N_BG_ASSIGNED];
+
+char *
+BackgroundGetUniqueString(const Background * bg)
+{
+ char s[256];
+ const char *chmap =
+ "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
+ int r, g, b;
+ int n1, n2, n3, n4, n5, f1, f2, f3, f4, f5, f6;
+
+ GET_COLOR(&(bg->bg_solid), r, g, b);
+ n1 = (r << 24) | (g << 16) | (b << 8) | (bg->bg_tile << 7)
+ | (bg->bg.keep_aspect << 6) | (bg->top.keep_aspect << 5);
+ n2 = (bg->bg.xjust << 16) | (bg->bg.yjust);
+ n3 = (bg->bg.xperc << 16) | (bg->bg.yperc);
+ n4 = (bg->top.xjust << 16) | (bg->top.yjust);
+ n5 = (bg->top.xperc << 16) | (bg->top.yperc);
+ f1 = 0;
+ f2 = 0;
+ f3 = 0;
+ f4 = 0;
+ f5 = 0;
+ f6 = 0;
+ if (bg->bg.file)
+ {
+ char *f;
+
+ f = ThemeFileFind(bg->bg.file);
+ if (f)
+ {
+ f1 = fileinode(f);
+ f2 = filedev(f);
+ f3 = (int)moddate(f);
+ Efree(f);
+ }
+ }
+ if (bg->top.file)
+ {
+ char *f;
+
+ f = ThemeFileFind(bg->top.file);
+ if (f)
+ {
+ f4 = fileinode(f);
+ f5 = filedev(f);
+ f6 = (int)moddate(f);
+ Efree(f);
+ }
+ }
+ Esnprintf(s, sizeof(s),
+ "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c"
+ "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c"
+ "%c%c%c%c%c%c" "%c%c%c%c%c%c" "%c%c%c%c%c%c",
+ chmap[(n1 >> 0) & 0x3f], chmap[(n1 >> 6) & 0x3f],
+ chmap[(n1 >> 12) & 0x3f], chmap[(n1 >> 18) & 0x3f],
+ chmap[(n1 >> 24) & 0x3f], chmap[(n1 >> 28) & 0x3f],
+ chmap[(n2 >> 0) & 0x3f], chmap[(n2 >> 6) & 0x3f],
+ chmap[(n2 >> 12) & 0x3f], chmap[(n2 >> 18) & 0x3f],
+ chmap[(n2 >> 24) & 0x3f], chmap[(n2 >> 28) & 0x3f],
+ chmap[(n3 >> 0) & 0x3f], chmap[(n3 >> 6) & 0x3f],
+ chmap[(n3 >> 12) & 0x3f], chmap[(n3 >> 18) & 0x3f],
+ chmap[(n3 >> 24) & 0x3f], chmap[(n3 >> 28) & 0x3f],
+ chmap[(n4 >> 0) & 0x3f], chmap[(n4 >> 6) & 0x3f],
+ chmap[(n4 >> 12) & 0x3f], chmap[(n4 >> 18) & 0x3f],
+ chmap[(n4 >> 24) & 0x3f], chmap[(n4 >> 28) & 0x3f],
+ chmap[(n5 >> 0) & 0x3f], chmap[(n5 >> 6) & 0x3f],
+ chmap[(n5 >> 12) & 0x3f], chmap[(n5 >> 18) & 0x3f],
+ chmap[(n5 >> 24) & 0x3f], chmap[(n5 >> 28) & 0x3f],
+ chmap[(f1 >> 0) & 0x3f], chmap[(f1 >> 6) & 0x3f],
+ chmap[(f1 >> 12) & 0x3f], chmap[(f1 >> 18) & 0x3f],
+ chmap[(f1 >> 24) & 0x3f], chmap[(f1 >> 28) & 0x3f],
+ chmap[(f2 >> 0) & 0x3f], chmap[(f2 >> 6) & 0x3f],
+ chmap[(f2 >> 12) & 0x3f], chmap[(f2 >> 18) & 0x3f],
+ chmap[(f2 >> 24) & 0x3f], chmap[(f2 >> 28) & 0x3f],
+ chmap[(f3 >> 0) & 0x3f], chmap[(f3 >> 6) & 0x3f],
+ chmap[(f3 >> 12) & 0x3f], chmap[(f3 >> 18) & 0x3f],
+ chmap[(f3 >> 24) & 0x3f], chmap[(f3 >> 28) & 0x3f],
+ chmap[(f4 >> 0) & 0x3f], chmap[(f4 >> 6) & 0x3f],
+ chmap[(f4 >> 12) & 0x3f], chmap[(f4 >> 18) & 0x3f],
+ chmap[(f4 >> 24) & 0x3f], chmap[(f4 >> 28) & 0x3f],
+ chmap[(f5 >> 0) & 0x3f], chmap[(f5 >> 6) & 0x3f],
+ chmap[(f5 >> 12) & 0x3f], chmap[(f5 >> 18) & 0x3f],
+ chmap[(f5 >> 24) & 0x3f], chmap[(f5 >> 28) & 0x3f],
+ chmap[(f6 >> 0) & 0x3f], chmap[(f6 >> 6) & 0x3f],
+ chmap[(f6 >> 12) & 0x3f], chmap[(f6 >> 18) & 0x3f],
+ chmap[(f6 >> 24) & 0x3f], chmap[(f6 >> 28) & 0x3f]);
+ return Estrdup(s);
+}
+
+void
+BackgroundPixmapSet(Background * bg, Pixmap pmap)
+{
+ if (bg->pmap != None && bg->pmap != pmap)
+ Eprintf("*** BackgroundPixmapSet %s: pmap was set %#lx/%#lx\n",
+ bg->name, bg->pmap, pmap);
+ bg->pmap = pmap;
+}
+
+static void
+BackgroundPixmapFree(Background * bg)
+{
+ if (bg->pmap)
+ {
+ EImagePixmapsFree(bg->pmap, None);
+ bg->pmap = None;
+ }
+}
+
+static void
+BackgroundImagesFree(Background * bg)
+{
+ if (bg->bg.im)
+ {
+ EImageFree(bg->bg.im);
+ bg->bg.im = NULL;
+ }
+ if (bg->top.im)
+ {
+ EImageFree(bg->top.im);
+ bg->top.im = NULL;
+ }
+}
+
+#if ENABLE_DIALOGS
+static void
+BackgroundImagesKeep(Background * bg, int onoff)
+{
+ if (onoff)
+ {
+ bg->keepim = 1;
+ }
+ else
+ {
+ bg->keepim = 0;
+ BackgroundImagesFree(bg);
+ }
+}
+#endif /* ENABLE_DIALOGS */
+
+static void
+BackgroundFilesRemove(Background * bg)
+{
+ Efree(bg->bg.file);
+ bg->bg.file = NULL;
+
+ Efree(bg->bg.real_file);
+ bg->bg.real_file = NULL;
+
+ Efree(bg->top.file);
+ bg->top.file = NULL;
+
+ Efree(bg->top.real_file);
+ bg->top.real_file = NULL;
+
+ BackgroundImagesFree(bg);
+
+ bg->keepim = 0;
+}
+
+static int
+BackgroundDestroy(Background * bg)
+{
+ if (!bg)
+ return -1;
+
+ if (bg->ref_count > 0)
+ {
+ DialogOK("Background Error!", _("%u references remain\n"),
+ bg->ref_count);
+ return -1;
+ }
+
+ ecore_list_node_remove(bg_list, bg);
+
+ BackgroundFilesRemove(bg);
+ BackgroundPixmapFree(bg);
+
+ Efree(bg->name);
+
+ Efree(bg);
+
+ return 0;
+}
+
+#if ENABLE_DIALOGS
+static void
+BackgroundDelete(Background * bg)
+{
+ char *f;
+
+ if (BackgroundDestroy(bg))
+ return;
+
+ /* And delete the actual image files */
+ if (bg->bg.file)
+ {
+ f = ThemeFileFind(bg->bg.file);
+ if (f)
+ {
+ E_rm(f);
+ Efree(f);
+ }
+ }
+ if (bg->top.file)
+ {
+ f = ThemeFileFind(bg->top.file);
+ if (f)
+ {
+ E_rm(f);
+ Efree(f);
+ }
+ }
+}
+#endif /* ENABLE_DIALOGS */
+
+static Background *
+BackgroundCreate(const char *name, EColor * solid, const char *bgn, char tile,
+ char keep_aspect, int xjust, int yjust, int xperc,
+ int yperc, const char *top, char tkeep_aspect, int txjust,
+ int tyjust, int txperc, int typerc)
+{
+ Background *bg;
+
+ bg = ECALLOC(Background, 1);
+ if (!bg)
+ return NULL;
+
+ bg->name = Estrdup(name);
+
+ SET_COLOR(&(bg->bg_solid), 160, 160, 160);
+ if (solid)
+ bg->bg_solid = *solid;
+ else
+ bg->external = 1;
+ if (bgn)
+ bg->bg.file = Estrdup(bgn);
+ bg->bg_tile = tile;
+ bg->bg.keep_aspect = keep_aspect;
+ bg->bg.xjust = xjust;
+ bg->bg.yjust = yjust;
+ bg->bg.xperc = xperc;
+ bg->bg.yperc = yperc;
+
+ if (top)
+ bg->top.file = Estrdup(top);
+ bg->top.keep_aspect = tkeep_aspect;
+ bg->top.xjust = txjust;
+ bg->top.yjust = tyjust;
+ bg->top.xperc = txperc;
+ bg->top.yperc = typerc;
+
+ bg->seq_no = ++bg_seq_no;
+
+ if (!bg_list)
+ bg_list = ecore_list_new();
+ ecore_list_prepend(bg_list, bg);
+
+ return bg;
+}
+
+static int
+BackgroundCmp(Background * bg, Background * bgx)
+{
+ if (*bgx->name != '.') /* Discard only generated backgrounds */
+ return 1;
+
+ if (bg->bg.file && bgx->bg.file)
+ {
+ if ((strcmp(bg->bg.file, bgx->bg.file)) ||
+ (bg->bg.keep_aspect != bgx->bg.keep_aspect) ||
+ (bg->bg.xjust != bgx->bg.xjust || bg->bg.xjust != bgx->bg.xjust) ||
+ (bg->bg.xperc != bgx->bg.xperc || bg->bg.xperc != bgx->bg.xperc))
+ return 1;
+ }
+ else if (bg->bg.file || bgx->bg.file)
+ return 1;
+
+ if (bg->top.file && bgx->top.file)
+ {
+ if ((strcmp(bg->top.file, bgx->top.file)) ||
+ (bg->top.keep_aspect != bgx->top.keep_aspect) ||
+ (bg->top.xjust != bgx->top.xjust ||
+ bg->top.xjust != bgx->top.xjust) ||
+ (bg->top.xperc != bgx->top.xperc ||
+ bg->top.xperc != bgx->top.xperc))
+ return 1;
+ }
+ else if (bg->top.file || bgx->top.file)
+ return 1;
+
+ if ((bg->bg_solid.red != bgx->bg_solid.red) ||
+ (bg->bg_solid.green != bgx->bg_solid.green) ||
+ (bg->bg_solid.blue != bgx->bg_solid.blue))
+ return 1;
+ if (bg->bg_tile != bgx->bg_tile)
+ return 1;
+
+ return 0;
+}
+
+static int
+_BackgroundMatchName(const void *data, const void *match)
+{
+ return strcmp(((const Background *)data)->name, (const char *)match);
+}
+
+Background *
+BackgroundFind(const char *name)
+{
+ return (Background *) ecore_list_find(bg_list, _BackgroundMatchName, name);
+}
+
+static Background *
+BackgroundCheck(Background * bg)
+{
+ return (Background *) ecore_list_goto(bg_list, bg);
+}
+
+void
+BackgroundDestroyByName(const char *name)
+{
+ BackgroundDestroy(BackgroundFind(name));
+}
+
+static void
+BackgroundInvalidate(Background * bg, int refresh)
+{
+ BackgroundPixmapFree(bg);
+ bg->seq_no = ++bg_seq_no;
+ if (bg->ref_count && refresh)
+ DesksBackgroundRefresh(bg, DESK_BG_REFRESH);
+}
+
+static int
+BackgroundModify(Background * bg, EColor * solid, const char *bgn, char tile,
+ char keep_aspect, int xjust, int yjust, int xperc,
+ int yperc, const char *top, char tkeep_aspect, int txjust,
+ int tyjust, int txperc, int typerc)
+{
+ int updated = 0;
+
+ if (solid->red != bg->bg_solid.red)
+ updated = 1;
+ if (solid->green != bg->bg_solid.green)
+ updated = 1;
+ if (solid->blue != bg->bg_solid.blue)
+ updated = 1;
+ bg->bg_solid = *solid;
+
+ if ((bg->bg.file) && (bgn))
+ {
+ if (strcmp(bg->bg.file, bgn))
+ updated = 1;
+ }
+ else
+ updated = 1;
+ Efree(bg->bg.file);
+ bg->bg.file = (bgn[0]) ? Estrdup(bgn) : NULL;
+ if ((int)tile != bg->bg_tile)
+ updated = 1;
+ if ((int)keep_aspect != bg->bg.keep_aspect)
+ updated = 1;
+ if (xjust != bg->bg.xjust)
+ updated = 1;
+ if (yjust != bg->bg.yjust)
+ updated = 1;
+ if (xperc != bg->bg.xperc)
+ updated = 1;
+ if (yperc != bg->bg.yperc)
+ updated = 1;
+ bg->bg_tile = (char)tile;
+ bg->bg.keep_aspect = (char)keep_aspect;
+ bg->bg.xjust = xjust;
+ bg->bg.yjust = yjust;
+ bg->bg.xperc = xperc;
+ bg->bg.yperc = yperc;
+
+ if ((bg->top.file) && (top))
+ {
+ if (strcmp(bg->top.file, top))
+ updated = 1;
+ }
+ else
+ updated = 1;
+ Efree(bg->top.file);
+ bg->top.file = (top[0]) ? Estrdup(top) : NULL;
+ if ((int)tkeep_aspect != bg->top.keep_aspect)
+ updated = 1;
+ if (txjust != bg->top.xjust)
+ updated = 1;
+ if (tyjust != bg->top.yjust)
+ updated = 1;
+ if (txperc != bg->top.xperc)
+ updated = 1;
+ if (typerc != bg->top.yperc)
+ updated = 1;
+ bg->top.keep_aspect = (char)tkeep_aspect;
+ bg->top.xjust = txjust;
+ bg->top.yjust = tyjust;
+ bg->top.xperc = txperc;
+ bg->top.yperc = typerc;
+
+ if (updated)
+ BackgroundInvalidate(bg, 1);
+
+ return updated;
+}
+
+static void
+BgFindImageSize(BgPart * bgp, unsigned int rw, unsigned int rh,
+ unsigned int *pw, unsigned int *ph)
+{
+ int w, h, iw, ih;
+
+ EImageGetSize(bgp->im, &iw, &ih);
+
+#if 0 /* FIXME - Remove? */
+ if (bgp->keep_aspect)
+ bgp->xperc = bgp->yperc;
+#endif
+
+ if (bgp->xperc > 0)
+ w = (rw * bgp->xperc) >> 10;
+ else
+ w = (iw * rw) / WinGetW(VROOT);
+
+ if (bgp->yperc > 0)
+ h = (rh * bgp->yperc) >> 10;
+ else
+ h = (ih * rh) / WinGetH(VROOT);
+
+ if (w <= 0)
+ w = 1;
+ if (h <= 0)
+ h = 1;
+
+ if (bgp->keep_aspect)
+ {
+ if (bgp->yperc <= 0)
+ {
+ if (((w << 10) / h) != ((iw << 10) / ih))
+ h = ((w * ih) / iw);
+ }
+ else
+ {
+ if (((h << 10) / w) != ((ih << 10) / iw))
+ w = ((h * iw) / ih);
+ }
+ }
+
+ *pw = (unsigned int)w;
+ *ph = (unsigned int)h;
+}
+
+static Pixmap
+BackgroundCreatePixmap(Win win, unsigned int w, unsigned int h)
+{
+ Pixmap pmap;
+
+ /*
+ * Stupid hack to avoid that a new root pixmap has the same ID as the now
+ * invalid one from a previous session.
+ */
+ pmap = ECreatePixmap(win, w, h, 0);
+ if (win == RROOT && pmap == Mode.root.ext_pmap)
+ {
+ EFreePixmap(pmap);
+ pmap = ECreatePixmap(win, w, h, 0);
+ Mode.root.ext_pmap = None;
+ Mode.root.ext_pmap_valid = 0;
+ }
+ return pmap;
+}
+
+void
+BackgroundRealize(Background * bg, Win win, Drawable draw, unsigned int rw,
+ unsigned int rh, int is_win, Pixmap * ppmap,
+ unsigned long *ppixel)
+{
+ Pixmap pmap;
+ GC gc;
+ int x, y, ww, hh;
+ unsigned int w, h;
+ char hasbg, hasfg;
+ EImage *im;
+
+ if (bg->bg.file && !bg->bg.im)
+ {
+ if (!bg->bg.real_file)
+ bg->bg.real_file = ThemeFileFind(bg->bg.file);
+ if (bg->bg.real_file)
+ bg->bg.im = EImageLoad(bg->bg.real_file);
+ }
+
+ if (bg->top.file && !bg->top.im)
+ {
+ if (!bg->top.real_file)
+ bg->top.real_file = ThemeFileFind(bg->top.file);
+ if (bg->top.real_file)
+ bg->top.im = EImageLoad(bg->top.real_file);
+ }
+
+ if (!draw)
+ draw = WinGetXwin(win);
+
+ hasbg = bg->bg.im != NULL;
+ hasfg = bg->top.im != NULL;
+
+ if (!hasbg && !hasfg)
+ {
+ /* Solid color only */
+ EAllocColor(WinGetCmap(VROOT), &bg->bg_solid);
+
+ if (!is_win)
+ {
+ gc = EXCreateGC(draw, 0, NULL);
+ XSetClipMask(disp, gc, 0);
+ XSetFillStyle(disp, gc, FillSolid);
+ XSetForeground(disp, gc, bg->bg_solid.pixel);
+ XFillRectangle(disp, draw, gc, 0, 0, rw, rh);
+ EXFreeGC(gc);
+ }
+ if (ppmap)
+ *ppmap = None;
+ if (ppixel)
+ *ppixel = bg->bg_solid.pixel;
+ return;
+ }
+
+ /* Has either bg or fg image */
+
+ w = h = x = y = 0;
+
+ if (hasbg)
+ {
+ BgFindImageSize(&(bg->bg), rw, rh, &w, &h);
+ x = ((int)(rw - w) * bg->bg.xjust) >> 10;
+ y = ((int)(rh - h) * bg->bg.yjust) >> 10;
+ }
+
+ if (is_win && hasbg && !hasfg && x == 0 && y == 0 &&
+ ((w == rw && h == rh) || (bg->bg_tile && !TransparencyEnabled())))
+ {
+ /* Window, no fg, no offset, and scale to 100%, or tiled, no trans */
+ pmap = BackgroundCreatePixmap(win, w, h);
+ EImageRenderOnDrawable(bg->bg.im, win, pmap, EIMAGE_ANTI_ALIAS,
+ 0, 0, w, h);
+
+#if 0 /* FIXME - Remove? */
+ if (x == 0 && y == 0) /* Hmmm. Always true. */
+ {
+ ESetWindowBackgroundPixmap(draw, pmap);
+ }
+ else
+ {
+ gc = EXCreateGC(draw, 0, NULL);
+ XSetTile(disp, gc, pmap);
+ XSetTSOrigin(disp, gc, x, y);
+ XSetFillStyle(disp, gc, FillTiled);
+ XFillRectangle(disp, draw, gc, 0, 0, rw, rh);
+ EXFreeGC(gc);
+ }
+#endif
+ goto done;
+ }
+
+ /* The rest that require some more work */
+ if (is_win)
+ pmap = BackgroundCreatePixmap(win, rw, rh);
+ else
+ pmap = draw;
+
+ if (hasbg && !hasfg && x == 0 && y == 0 && w == rw && h == rh)
+ {
+ im = bg->bg.im;
+ }
+ else
+ {
+ /* Create full size image */
+ im = EImageCreate(rw, rh);
+ EImageSetHasAlpha(im, 0);
+ if (!hasbg || !bg->bg_tile)
+ {
+ /* Fill solid */
+ EImageFill(im, 0, 0, rw, rh, bg->bg_solid.red, bg->bg_solid.green,
+ bg->bg_solid.blue, 255);
+ }
+ if (hasbg)
+ {
+ if (bg->bg_tile)
+ {
+ EImageTile(im, bg->bg.im, 0, w, h, 0, 0, rw, rh, x, y);
+ }
+ else
+ {
+ EImageGetSize(bg->bg.im, &ww, &hh);
+ EImageBlend(im, bg->bg.im, EIMAGE_ANTI_ALIAS, 0, 0, ww, hh,
+ x, y, w, h, 1);
+ }
+ }
+ }
+
+ if (hasfg)
+ {
+ EImageGetSize(bg->top.im, &ww, &hh);
+
+ BgFindImageSize(&(bg->top), rw, rh, &w, &h);
+ x = ((rw - w) * bg->top.xjust) >> 10;
+ y = ((rh - h) * bg->top.yjust) >> 10;
+
+ EImageBlend(im, bg->top.im, EIMAGE_BLEND | EIMAGE_ANTI_ALIAS,
+ 0, 0, ww, hh, x, y, w, h, 0);
+ }
+
+ EImageRenderOnDrawable(im, win, pmap, EIMAGE_ANTI_ALIAS, 0, 0, rw, rh);
+ if (im != bg->bg.im)
+ EImageFree(im);
+
+ done:
+ if (!bg->keepim)
+ BackgroundImagesFree(bg);
+
+ if (ppmap)
+ *ppmap = pmap;
+ if (ppixel)
+ *ppixel = 0;
+}
+
+void
+BackgroundApplyPmap(Background * bg, Win win, Drawable draw,
+ unsigned int w, unsigned int h)
+{
+ BackgroundRealize(bg, win, draw, w, h, 0, NULL, NULL);
+}
+
+static void
+BackgroundApplyWin(Background * bg, Win win)
+{
+ int w, h;
+ Pixmap pmap;
+ unsigned long pixel;
+
+ if (!EGetGeometry(win, NULL, NULL, NULL, &w, &h, NULL, NULL))
+ return;
+
+ BackgroundRealize(bg, win, None, w, h, 1, &pmap, &pixel);
+ if (pmap != None)
+ {
+ ESetWindowBackgroundPixmap(win, pmap);
+ EImagePixmapsFree(pmap, None);
+ }
+ else
+ {
+ ESetWindowBackground(win, pixel);
+ }
+ EClearWindow(win);
+}
+
+/*
+ * Apply a background to window.
+ * The BG pixmap is stored in bg->pmap.
+ */
+void
+BackgroundSet(Background * bg, Win win, unsigned int w, unsigned int h)
+{
+ Pixmap pmap = None;
+ unsigned long pixel = 0;
+
+ if (bg->pmap)
+ pmap = bg->pmap;
+ else
+ BackgroundRealize(bg, win, None, w, h, 1, &pmap, &pixel);
+
+ bg->pmap = pmap;
+ if (pmap != None)
+ ESetWindowBackgroundPixmap(win, pmap);
+ else
+ ESetWindowBackground(win, pixel);
+ EClearWindow(win);
+}
+
+Background *
+BrackgroundCreateFromImage(const char *bgid, const char *file,
+ char *thumb, int thlen)
+{
+ Background *bg;
+ EImage *im, *im2;
+ EColor color;
+ char tile = 1, keep_asp = 0;
+ int width, height;
+ int scalex = 0, scaley = 0;
+ int scr_asp, im_asp;
+ int w2, h2;
+ int maxw = 48, maxh = 48;
+ int justx = 512, justy = 512;
+
+ bg = BackgroundFind(bgid);
+
+ if (thumb)
+ {
+ Esnprintf(thumb, thlen, "%s/cached/img/%s.png", EDirUserCache(), bgid);
+ if (bg && exists(thumb) && moddate(thumb) > moddate(file))
+ return bg;
+ /* The thumbnail is gone or outdated - regererate */
+ }
+ else
+ {
+ if (bg)
+ return bg;
+ }
+
+ im = EImageLoad(file);
+ if (!im)
+ return NULL;
+
+ EImageGetSize(im, &width, &height);
+
+ if (thumb)
+ {
+ h2 = maxh;
+ w2 = (width * h2) / height;
+ if (w2 > maxw)
+ {
+ w2 = maxw;
+ h2 = (height * w2) / width;
+ }
+ im2 = EImageCreateScaled(im, 0, 0, width, height, w2, h2);
+ EImageSave(im2, thumb);
+ EImageDecache(im2);
+ }
+
+ EImageDecache(im);
+
+ /* Quit if the background itself already exists */
+ if (bg)
+ return bg;
+
+ scr_asp = (WinGetW(VROOT) << 16) / WinGetH(VROOT);
+ im_asp = (width << 16) / height;
+ if (width == height)
+ {
+ justx = 0;
+ justy = 0;
+ scalex = 0;
+ scaley = 0;
+ tile = 1;
+ keep_asp = 0;
+ }
+ else if ((!(IN_RANGE(scr_asp, im_asp, 16000)))
+ && ((width < 480) && (height < 360)))
+ {
+ justx = 0;
+ justy = 0;
+ scalex = 0;
+ scaley = 0;
+ tile = 1;
+ keep_asp = 0;
+ }
+ else if (IN_RANGE(scr_asp, im_asp, 16000))
+ {
+ justx = 0;
+ justy = 0;
+ scalex = 1024;
+ scaley = 1024;
+ tile = 0;
+ keep_asp = 0;
+ }
+ else if (im_asp > scr_asp)
+ {
+ justx = 512;
+ justy = 512;
+ scalex = 1024;
+ scaley = 0;
+ tile = 0;
+ keep_asp = 1;
+ }
+ else
+ {
+ justx = 512;
+ justy = 512;
+ scalex = 0;
+ scaley = 1024;
+ tile = 0;
+ keep_asp = 1;
+ }
+
+ SET_COLOR(&color, 0, 0, 0);
+
+ bg = BackgroundCreate(bgid, &color, file, tile,
+ keep_asp, justx, justy,
+ scalex, scaley, NULL, 0, 0, 0, 0, 0);
+
+ return bg;
+}
+
+void
+BackgroundIncRefcount(Background * bg)
+{
+ if (bg == NULL)
+ return;
+ bg->ref_count++;
+}
+
+void
+BackgroundDecRefcount(Background * bg)
+{
+ if (bg == NULL)
+ return;
+ bg->ref_count--;
+ if (bg->ref_count <= 0)
+ bg->last_viewed = 0; /* Clean out asap */
+}
+
+void
+BackgroundTouch(Background * bg)
+{
+ if (bg == NULL)
+ return;
+ bg->last_viewed = time(NULL);
+}
+
+const char *
+BackgroundGetName(const Background * bg)
+{
+ return bg->name;
+}
+
+#if ENABLE_DIALOGS
+static const char *
+BackgroundGetBgFile(const Background * bg)
+{
+ return bg->bg.file;
+}
+
+static const char *
+BackgroundGetFgFile(const Background * bg)
+{
+ return bg->top.file;
+}
+#endif /* ENABLE_DIALOGS */
+
+Pixmap
+BackgroundGetPixmap(const Background * bg)
+{
+ return (bg) ? bg->pmap : None;
+}
+
+unsigned int
+BackgroundGetSeqNo(const Background * bg)
+{
+ return bg->seq_no;
+}
+
+int
+BackgroundIsNone(const Background * bg)
+{
+ return (bg) ? bg->external : 1;
+}
+
+#if ENABLE_DIALOGS
+static EImage *
+BackgroundCacheMini(Background * bg, int keep, int nuke)
+{
+ char s[4096];
+ EImage *im;
+ Pixmap pmap;
+
+ Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s.png", EDirUserCache(),
+ BackgroundGetName(bg));
+
+ im = EImageLoad(s);
+ if (im)
+ {
+ if (nuke)
+ EImageDecache(im);
+ else
+ goto done;
+ }
+
+ /* Create new cached bg mini image */
+ pmap = ECreatePixmap(VROOT, 64, 48, 0);
+ BackgroundApplyPmap(bg, VROOT, pmap, 64, 48);
+ im = EImageGrabDrawable(pmap, None, 0, 0, 64, 48, 0);
+ EImageSave(im, s);
+ EFreePixmap(pmap);
+
+ done:
+ if (keep)
+ return im;
+ EImageFree(im);
+ return NULL;
+}
+#endif /* ENABLE_DIALOGS */
+
+#define S(str) ((str) ? str : "(null)")
+static void
+BackgroundGetInfoString1(const Background * bg, char *buf, int len)
+{
+ int r, g, b;
+
+ GET_COLOR(&(bg->bg_solid), r, g, b);
+ Esnprintf(buf, len,
+ "%s ref_count %u keepim %u\n"
+ " bg.solid\t %i %i %i \n"
+ " bg.file\t %s\n"
+ " top.file\t %s \n"
+ " bg.tile\t %i \n"
+ " bg.keep_aspect\t %i \ttop.keep_aspect\t %i \n"
+ " bg.xjust\t %i \ttop.xjust\t %i \n"
+ " bg.yjust\t %i \ttop.yjust\t %i \n"
+ " bg.xperc\t %i \ttop.xperc\t %i \n"
+ " bg.yperc\t %i \ttop.yperc\t %i \n", bg->name,
+ bg->ref_count, bg->keepim, r, g, b,
+ bg->bg.file, bg->top.file, bg->bg_tile,
+ bg->bg.keep_aspect, bg->top.keep_aspect,
+ bg->bg.xjust, bg->top.xjust, bg->bg.yjust,
+ bg->top.yjust, bg->bg.xperc, bg->top.xperc,
+ bg->bg.yperc, bg->top.yperc);
+}
+
+static void
+BackgroundGetInfoString2(const Background * bg, char *buf, int len)
+{
+ int r, g, b;
+
+ GET_COLOR(&(bg->bg_solid), r, g, b);
+ Esnprintf(buf, len,
+ "%s %i %i %i %s %i %i %i %i %i %i %s %i %i %i %i %i",
+ bg->name, r, g, b, S(bg->bg.file), bg->bg_tile,
+ bg->bg.keep_aspect, bg->bg.xjust, bg->bg.yjust,
+ bg->bg.xperc, bg->bg.yperc, S(bg->top.file),
+ bg->top.keep_aspect, bg->top.xjust, bg->top.yjust,
+ bg->top.xperc, bg->top.yperc);
+}
+
+void
+BackgroundsInvalidate(int refresh)
+{
+ Background *bg;
+
+ ECORE_LIST_FOR_EACH(bg_list, bg) BackgroundInvalidate(bg, refresh);
+}
+
+static Background *
+BackgroundGetRandom(void)
+{
+ Background *bg;
+ int num;
+ unsigned int rnd;
+
+ num = ecore_list_count(bg_list);
+ for (;;)
+ {
+ rnd = rand();
+ bg = (Background *) ecore_list_index_goto(bg_list, rnd % num);
+ if (num <= 1 || !BackgroundIsNone(bg))
+ break;
+ }
+
+ return bg;
+}
+
+void
+BackgroundSetForDesk(Background * bg, unsigned int desk)
+{
+ if (desk >= N_BG_ASSIGNED)
+ return;
+
+ bg_assigned[desk] = bg;
+}
+
+Background *
+BackgroundGetForDesk(unsigned int desk)
+{
+ Background *bg;
+
+ if (desk >= N_BG_ASSIGNED)
+ return NULL;
+
+ bg = bg_assigned[desk];
+ if (bg)
+ bg = BackgroundCheck(bg);
+ if (!bg)
+ bg = BackgroundGetRandom();
+
+ return bg;
+}
+
+/*
+ * Config load/save
+ */
+#include "conf.h"
+
+int
+BackgroundsConfigLoad(FILE * fs)
+{
+ int err = 0;
+ Background *bg = 0;
+ EColor color;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int ii1;
+ int r, g, b;
+ int i1 = 0, i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0;
+ int j1 = 0, j2 = 0, j3 = 0, j4 = 0, j5 = 0;
+ char *bg1 = 0;
+ char *bg2 = 0;
+ char *name = 0;
+ char ignore = 0;
+ int desk;
+
+ SET_COLOR(&color, 0, 0, 0);
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ ii1 = ConfigParseline1(s, s2, NULL, NULL);
+ switch (ii1)
+ {
+ case CONFIG_CLOSE:
+ if (!ignore && !bg && name)
+ bg = BackgroundCreate(name, &color, bg1, i1, i2, i3, i4, i5,
+ i6, bg2, j1, j2, j3, j4, j5);
+ goto done;
+
+ case CONFIG_COLORMOD:
+ case ICLASS_COLORMOD:
+ break;
+
+ case CONFIG_CLASSNAME:
+ case BG_NAME:
+ bg = BackgroundFind(s2);
+ if (bg)
+ {
+ ignore = 1;
+ }
+ else
+ {
+ Efree(name);
+ name = Estrdup(s2);
+ }
+ break;
+
+ case BG_DESKNUM:
+ if (!ignore && !bg && name)
+ bg = BackgroundCreate(name, &color, bg1, i1, i2, i3, i4, i5,
+ i6, bg2, j1, j2, j3, j4, j5);
+ if (!bg)
+ break;
+ desk = atoi(s2);
+ if (desk >= N_BG_ASSIGNED)
+ break;
+ if (desk >= 0)
+ {
+ if (!bg_assigned[desk] || Conf.backgrounds.user)
+ {
+ bg_assigned[desk] = bg;
+ bg->referenced = 1;
+ }
+ }
+ else
+ {
+ bg->referenced = 1;
+ for (ii1 = 0; ii1 < N_BG_ASSIGNED; ii1++)
+ {
+ if (!bg_assigned[ii1])
+ bg_assigned[ii1] = bg;
+ }
+ }
+ break;
+
+ case BG_RGB:
+ r = g = b = 0;
+ sscanf(s, "%*s %d %d %d", &r, &g, &b);
+ SET_COLOR(&color, r, g, b);
+ if (ignore)
+ bg->bg_solid = color;
+ break;
+
+ case BG_BG1:
+ sscanf(s, "%*s %4000s %d %d %d %d %d %d", s2, &i1, &i2,
+ &i3, &i4, &i5, &i6);
+ if (!ignore)
+ {
+ Efree(bg1);
+ bg1 = Estrdup(s2);
+ }
+ else
+ {
+ Efree(bg->bg.file);
+ Efree(bg->top.file);
+ bg->top.file = NULL;
+ bg->bg.file = Estrdup(s2);
+ bg->bg_tile = i1;
+ bg->bg.keep_aspect = i2;
+ bg->bg.xjust = i3;
+ bg->bg.yjust = i4;
+ bg->bg.xperc = i5;
+ bg->bg.yperc = i6;
+ }
+ break;
+
+ case BG_BG2:
+ sscanf(s, "%*s %4000s %d %d %d %d %d", s2, &j1, &j2, &j3,
+ &j4, &j5);
+ if (!ignore)
+ {
+ Efree(bg2);
+ bg2 = Estrdup(s2);
+ }
+ else
+ {
+ bg->top.file = Estrdup(s2);
+ bg->top.keep_aspect = j1;
+ bg->top.xjust = j2;
+ bg->top.yjust = j3;
+ bg->top.xperc = j4;
+ bg->top.yperc = j5;
+ }
+ break;
+
+ default:
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ Efree(name);
+ Efree(bg1);
+ Efree(bg2);
+
+ return err;
+}
+
+static void
+BackgroundsConfigLoadUser(void)
+{
+ char s[4096];
+
+ Esnprintf(s, sizeof(s), "%s.backgrounds", EGetSavePrefix());
+ if (!exists(s))
+ Mode.backgrounds.force_scan = 1;
+ ConfigFileLoad(s, NULL, ConfigFileRead, 0);
+}
+
+static void
+BackgroundsConfigSave(void)
+{
+ char s[FILEPATH_LEN_MAX], st[FILEPATH_LEN_MAX];
+ FILE *fs;
+ Background *bg;
+ unsigned int j;
+ int i, num, r, g, b;
+
+ num = ecore_list_count(bg_list);
+ if (num <= 0)
+ return;
+
+ Etmp(st);
+ fs = fopen(st, "w");
+ if (!fs)
+ return;
+
+ for (i = num - 1; i >= 0; i--)
+ {
+ bg = (Background *) ecore_list_index_goto(bg_list, i);
+ if (!bg)
+ continue;
+
+ fprintf(fs, "5 999\n");
+
+ fprintf(fs, "100 %s\n", bg->name);
+ GET_COLOR(&(bg->bg_solid), r, g, b);
+ fprintf(fs, "560 %d %d %d\n", r, g, b);
+
+ if ((bg->bg.file) && (!bg->bg.real_file))
+ bg->bg.real_file = ThemeFileFind(bg->bg.file);
+
+ if ((bg->top.file) && (!bg->top.real_file))
+ bg->top.real_file = ThemeFileFind(bg->top.file);
+
+ if ((bg->bg.file) && (bg->bg.real_file))
+ {
+ fprintf(fs, "561 %s %d %d %d %d %d %d\n",
+ bg->bg.real_file, bg->bg_tile,
+ bg->bg.keep_aspect, bg->bg.xjust,
+ bg->bg.yjust, bg->bg.xperc, bg->bg.yperc);
+ }
+ else if (bg->bg.file)
+ {
+ fprintf(fs, "561 %s %d %d %d %d %d %d\n",
+ bg->bg.file, bg->bg_tile,
+ bg->bg.keep_aspect, bg->bg.xjust,
+ bg->bg.yjust, bg->bg.xperc, bg->bg.yperc);
+ }
+
+ if ((bg->top.file) && (bg->top.real_file))
+ {
+ fprintf(fs, "562 %s %d %d %d %d %d\n",
+ bg->top.real_file,
+ bg->top.keep_aspect, bg->top.xjust,
+ bg->top.yjust, bg->top.xperc, bg->top.yperc);
+ }
+ else if (bg->top.file)
+ {
+ fprintf(fs, "562 %s %d %d %d %d %d\n",
+ bg->top.file, bg->top.keep_aspect,
+ bg->top.xjust, bg->top.yjust, bg->top.xperc,
+ bg->top.yperc);
+ }
+
+ for (j = 0; j < N_BG_ASSIGNED; j++)
+ {
+ if (bg == bg_assigned[j])
+ fprintf(fs, "564 %d\n", j);
+ }
+
+ fprintf(fs, "1000\n");
+ }
+
+ fclose(fs);
+
+ Esnprintf(s, sizeof(s), "%s.backgrounds", EGetSavePrefix());
+ E_mv(st, s);
+}
+
+/*
+ * Backgrounds module
+ */
+
+static void
+BackgroundsCheckDups(void)
+{
+ int ix;
+ Background *bg, *bgx;
+
+ for (ix = 0;; ix++)
+ {
+ ecore_list_index_goto(bg_list, ix);
+ bg = (Background *) ecore_list_next(bg_list);
+ if (!bg)
+ break;
+ for (; (bgx = (Background *) ecore_list_next(bg_list)) != NULL;)
+ {
+ if (bgx->ref_count > 0 || bgx->referenced)
+ continue;
+
+ if (BackgroundCmp(bg, bgx))
+ continue;
+#if 1 /* Remove? */
+ Eprintf("Remove duplicate background %s (==%s)\n", bgx->name,
+ bg->name);
+#endif
+ BackgroundDestroy(bgx);
+ }
+ }
+}
+
+static void
+BackgroundsAccounting(void)
+{
+ Background *bg;
+ time_t now;
+
+ DesksBackgroundRefresh(NULL, DESK_BG_TIMEOUT);
+
+ now = time(NULL);
+ ECORE_LIST_FOR_EACH(bg_list, bg)
+ {
+ /* Skip if no pixmap or not timed out */
+ if (bg->pmap == None ||
+ ((now - bg->last_viewed) <= Conf.backgrounds.timeout))
+ continue;
+
+ DesksBackgroundRefresh(bg, DESK_BG_FREE);
+ BackgroundPixmapFree(bg);
+ }
+}
+
+static int
+BackgroundsTimeout(void *data __UNUSED__)
+{
+ if (Conf.backgrounds.timeout <= 0)
+ Conf.backgrounds.timeout = 1;
+
+ BackgroundsAccounting();
+
+ TimerSetInterval(bg_timer, 1.0 * Conf.backgrounds.timeout);
+
+ return 1;
+}
+
+static void
+BackgroundsSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ EDirMake(EDirUserCache(), "cached/bgsel");
+ EDirMake(EDirUserCache(), "cached/img");
+ /* create a fallback background in case no background is found */
+ BackgroundCreate("NONE", NULL, NULL, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 0,
+ 0);
+ break;
+
+ case ESIGNAL_CONFIGURE:
+ BackgroundsConfigLoadUser();
+ BackgroundsCheckDups();
+ StartupBackgroundsDestroy();
+ break;
+
+ case ESIGNAL_START:
+ TIMER_ADD(bg_timer, 30.0, BackgroundsTimeout, NULL);
+ break;
+
+ case ESIGNAL_EXIT:
+ if (Mode.wm.save_ok)
+ BackgroundsConfigSave();
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+static Dialog *bg_sel_dialog;
+static DItem *bg_sel;
+static DItem *bg_sel_slider;
+static DItem *bg_mini_disp;
+static DItem *bg_filename;
+static DItem *tmp_w[10];
+
+static Background *tmp_bg; /* The background being configured */
+static int tmp_bg_sel_sliderval;
+static int tmp_bg_sel_sliderval_old;
+static int tmp_bg_r;
+static int tmp_bg_g;
+static int tmp_bg_b;
+static char tmp_bg_image;
+static char tmp_bg_tile;
+static char tmp_bg_keep_aspect;
+static int tmp_bg_xjust;
+static int tmp_bg_yjust;
+static int tmp_bg_xperc;
+static int tmp_bg_yperc;
+static char tmp_hiq;
+static char tmp_userbg;
+static char tmp_root_hint;
+static int tmp_bg_timeout;
+
+static void BG_RedrawView(void);
+static void BGSettingsGoTo(Background * bg);
+
+static void
+CB_ConfigureBG(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val == 2)
+ {
+ bg_sel = bg_sel_slider = bg_mini_disp = bg_filename = NULL;
+ memset(tmp_w, 0, sizeof(tmp_w));
+ BackgroundImagesKeep(tmp_bg, 0);
+ tmp_bg = NULL;
+ return;
+ }
+
+ if (val < 2)
+ {
+ Conf.backgrounds.timeout = tmp_bg_timeout;
+ Conf.backgrounds.hiquality = tmp_hiq;
+ Conf.backgrounds.user = tmp_userbg;
+ Conf.hints.set_xroot_info_on_root_window = tmp_root_hint;
+
+ SET_COLOR(&(tmp_bg->bg_solid), tmp_bg_r, tmp_bg_g, tmp_bg_b);
+ tmp_bg->bg_tile = tmp_bg_tile;
+ tmp_bg->bg.keep_aspect = tmp_bg_keep_aspect;
+ tmp_bg->bg.xjust = tmp_bg_xjust;
+ tmp_bg->bg.yjust = tmp_bg_yjust;
+ tmp_bg->bg.xperc = tmp_bg_xperc;
+ tmp_bg->bg.yperc = tmp_bg_yperc;
+ if (!tmp_bg_image)
+ BackgroundFilesRemove(tmp_bg);
+
+ BackgroundInvalidate(tmp_bg, 1);
+
+ BackgroundCacheMini(tmp_bg, 0, 1);
+ BG_RedrawView();
+ }
+
+ autosave();
+}
+
+/* Draw the background preview image */
+static void
+CB_DesktopMiniDisplayRedraw(Dialog * d __UNUSED__, int val __UNUSED__,
+ void *data)
+{
+ Background *bg;
+ Pixmap pmap;
+ int w, h;
+ DItem *di;
+ Win win;
+ EColor color;
+ const char *fbg, *ffg;
+
+ if (!tmp_bg)
+ return;
+
+ di = (DItem *) data;
+ win = DialogItemAreaGetWindow(di);
+ DialogItemAreaGetSize(di, &w, &h);
+
+ pmap = EGetWindowBackgroundPixmap(win);
+ fbg = (tmp_bg_image) ? BackgroundGetBgFile(tmp_bg) : NULL;
+ ffg = (tmp_bg_image) ? BackgroundGetFgFile(tmp_bg) : NULL;
+ SET_COLOR(&color, tmp_bg_r, tmp_bg_g, tmp_bg_b);
+ bg = BackgroundCreate("TEMP", &color,
+ fbg, tmp_bg_tile, tmp_bg_keep_aspect,
+ tmp_bg_xjust, tmp_bg_yjust,
+ tmp_bg_xperc, tmp_bg_yperc,
+ ffg, tmp_bg->top.keep_aspect,
+ tmp_bg->top.xjust, tmp_bg->top.yjust,
+ tmp_bg->top.xperc, tmp_bg->top.yperc);
+
+ BackgroundApplyPmap(bg, win, pmap, w, h);
+ BackgroundDestroy(bg);
+ EClearWindow(win);
+}
+
+/* Update tmp vars according to the current tmp_bg */
+static void
+BG_GetValues(void)
+{
+ tmp_bg_image = (tmp_bg->bg.file) ? 1 : 0;
+
+ GET_COLOR(&(tmp_bg->bg_solid), tmp_bg_r, tmp_bg_g, tmp_bg_b);
+ tmp_bg_tile = tmp_bg->bg_tile;
+ tmp_bg_keep_aspect = tmp_bg->bg.keep_aspect;
+ tmp_bg_xjust = tmp_bg->bg.xjust;
+ tmp_bg_yjust = tmp_bg->bg.yjust;
+ tmp_bg_xperc = tmp_bg->bg.xperc;
+ tmp_bg_yperc = tmp_bg->bg.yperc;
+}
+
+static void
+BG_DialogSetFileName(DItem * di)
+{
+ const char *stmp;
+ char s[1024];
+
+ stmp = fullfileof(BackgroundGetBgFile(tmp_bg));
+ Esnprintf(s, sizeof(s),
+ _("Background definition information:\nName: %s\nFile: %s\n"),
+ BackgroundGetName(tmp_bg), (stmp) ? stmp : _("-NONE-"));
+ DialogItemSetText(di, s);
+}
+
+static void
+BgDialogSetNewCurrent(Background * bg)
+{
+ int i;
+
+ if (tmp_bg && tmp_bg != bg)
+ BackgroundImagesKeep(tmp_bg, 0);
+ tmp_bg = bg;
+ BackgroundImagesKeep(tmp_bg, 1);
+
+ /* Fetch new BG values */
+ BG_GetValues();
+
+ /* Update dialog items */
+ BG_DialogSetFileName(bg_filename);
+ DialogDrawItems(bg_sel_dialog, bg_filename, 0, 0, 99999, 99999);
+
+ DialogItemCheckButtonSetState(tmp_w[0], tmp_bg_image);
+ DialogItemCheckButtonSetState(tmp_w[1], tmp_bg_keep_aspect);
+ DialogItemCheckButtonSetState(tmp_w[2], tmp_bg_tile);
+ DialogItemSliderSetVal(tmp_w[3], tmp_bg_r);
+ DialogItemSliderSetVal(tmp_w[4], tmp_bg_g);
+ DialogItemSliderSetVal(tmp_w[5], tmp_bg_b);
+ DialogItemSliderSetVal(tmp_w[6], tmp_bg_xjust);
+ DialogItemSliderSetVal(tmp_w[7], tmp_bg_yjust);
+ DialogItemSliderSetVal(tmp_w[8], tmp_bg_yperc);
+ DialogItemSliderSetVal(tmp_w[9], tmp_bg_xperc);
+
+ /* Redraw mini BG display */
+ CB_DesktopMiniDisplayRedraw(NULL, 0, bg_mini_disp);
+
+ /* Redraw scrolling BG list */
+ BG_RedrawView();
+
+ for (i = 0; i < 10; i++)
+ DialogDrawItems(bg_sel_dialog, tmp_w[i], 0, 0, 99999, 99999);
+}
+
+/* Duplicate current (tmp_bg) to new */
+static void
+CB_ConfigureNewBG(Dialog * d __UNUSED__, int val __UNUSED__,
+ void *data __UNUSED__)
+{
+ char s[1024];
+ EColor color;
+ int lower, upper;
+
+ Esnprintf(s, sizeof(s), "__NEWBG_%i", (unsigned)time(NULL));
+
+ SET_COLOR(&color, tmp_bg_r, tmp_bg_g, tmp_bg_b);
+
+ tmp_bg = BackgroundCreate(s, &color,
+ tmp_bg->bg.file, tmp_bg_tile, tmp_bg_keep_aspect,
+ tmp_bg_xjust, tmp_bg_yjust,
+ tmp_bg_xperc, tmp_bg_yperc,
+ tmp_bg->top.file, tmp_bg->top.keep_aspect,
+ tmp_bg->top.xjust, tmp_bg->top.yjust,
+ tmp_bg->top.xperc, tmp_bg->top.yperc);
+
+ DialogItemSliderGetBounds(bg_sel_slider, &lower, &upper);
+ upper += 4;
+ DialogItemSliderSetBounds(bg_sel_slider, lower, upper);
+
+ DialogItemSliderSetVal(bg_sel_slider, 0);
+ DialogDrawItems(bg_sel_dialog, bg_sel_slider, 0, 0, 99999, 99999);
+
+ DeskBackgroundSet(DesksGetCurrent(), tmp_bg);
+
+ BG_RedrawView();
+
+ autosave();
+}
+
+static void
+CB_ConfigureDelBG(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ Background *bg;
+ int i, num;
+ int slider, lower, upper;
+
+ num = ecore_list_count(bg_list);
+ if (num <= 1)
+ return;
+
+ bg = (Background *) ecore_list_goto(bg_list, tmp_bg);
+ if (!bg)
+ return;
+
+ i = ecore_list_index(bg_list);
+ bg =
+ (Background *) ecore_list_index_goto(bg_list,
+ (i < num - 1) ? i + 1 : i - 1);
+
+ DeskBackgroundSet(DesksGetCurrent(), bg);
+
+ if (val == 0)
+ BackgroundDestroy(tmp_bg);
+ else
+ BackgroundDelete(tmp_bg);
+ tmp_bg = NULL;
+
+ DialogItemSliderGetBounds(bg_sel_slider, &lower, &upper);
+ slider = DialogItemSliderGetVal(bg_sel_slider);
+ upper -= 4;
+ DialogItemSliderSetBounds(bg_sel_slider, lower, upper);
+ if (slider > upper)
+ DialogItemSliderSetVal(bg_sel_slider, upper);
+
+ BgDialogSetNewCurrent(bg);
+
+ autosave();
+}
+
+/* Move current background to first position in list */
+static void
+CB_ConfigureFrontBG(Dialog * d __UNUSED__, int val __UNUSED__,
+ void *data __UNUSED__)
+{
+ ecore_list_prepend(bg_list, ecore_list_node_remove(bg_list, tmp_bg));
+ BGSettingsGoTo(tmp_bg);
+ BG_RedrawView();
+ autosave();
+}
+
+/* Draw the scrolling background image window */
+static void
+BG_RedrawView(void)
+{
+ Background *bg;
+ int x, w, h, num;
+ Win win;
+ Pixmap pmap;
+ ImageClass *ic_button;
+
+ num = ecore_list_count(bg_list);
+ if (num <= 0)
+ return;
+
+ win = DialogItemAreaGetWindow(bg_sel);
+ DialogItemAreaGetSize(bg_sel, &w, &h);
+
+ pmap = EGetWindowBackgroundPixmap(win);
+
+ ic_button = ImageclassFind("DIALOG_BUTTON", 1);
+
+ ImageclassApplySimple(ic_button, win, pmap, STATE_NORMAL, 0, 0, w, h);
+
+ x = -(num * (64 + 8) - w) * tmp_bg_sel_sliderval / (4 * num);
+
+ ECORE_LIST_FOR_EACH(bg_list, bg)
+ {
+ if (((x + 64 + 8) >= 0) && (x < w))
+ {
+ EImage *im;
+
+ ImageclassApplySimple(ic_button, win, pmap,
+ (bg == tmp_bg) ? STATE_CLICKED : STATE_NORMAL,
+ x, 0, 64 + 8, 48 + 8);
+
+ if (BackgroundIsNone(bg))
+ {
+ TextClass *tc;
+
+ tc = TextclassFind("DIALOG", 1);
+ if (tc)
+ {
+ int tw, th;
+
+ TextSize(tc, 0, 0, STATE_NORMAL,
+ _("No\nBackground"), &tw, &th, 17);
+ TextDraw(tc, win, pmap, 0, 0, STATE_NORMAL,
+ _("No\nBackground"), x + 4,
+ 4 + ((48 - th) / 2), 64, 48, 17, 512);
+ }
+ }
+ else
+ {
+ im = BackgroundCacheMini(bg, 1, 0);
+ if (im)
+ {
+ EImageRenderOnDrawable(im, win, pmap, 0, x + 4, 4, 64, 48);
+ EImageFree(im);
+ }
+ }
+ }
+ x += (64 + 8);
+ }
+
+ EClearWindow(win);
+}
+
+static void
+CB_BGAreaSlide(Dialog * d __UNUSED__, int val __UNUSED__, void *data __UNUSED__)
+{
+ if (tmp_bg_sel_sliderval == tmp_bg_sel_sliderval_old)
+ return;
+ BG_RedrawView();
+ tmp_bg_sel_sliderval_old = tmp_bg_sel_sliderval;
+}
+
+static void
+CB_BGScan(Dialog * d, int val __UNUSED__, void *data __UNUSED__)
+{
+ int num;
+
+ SoundPlay(SOUND_WAIT);
+
+ /* Forcing re-scan should not be necessary but provides the progress bars
+ * so it actually looks like something is going on */
+ Mode.backgrounds.force_scan = 1;
+ ScanBackgroundMenu();
+
+ num = ecore_list_count(bg_list);
+ DialogItemSliderSetBounds(bg_sel_slider, 0, num * 4);
+ DialogDrawItems(d, bg_sel_slider, 0, 0, 99999, 99999);
+ DialogItemCallCallback(d, bg_sel_slider);
+}
+
+static void
+CB_BGAreaEvent(DItem * di __UNUSED__, int val __UNUSED__, void *data)
+{
+ int x, num, w, h;
+ Background *bg;
+ XEvent *ev = (XEvent *) data;
+
+ DialogItemAreaGetSize(bg_sel, &w, &h);
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ switch (ev->xbutton.button)
+ {
+ case 1:
+ num = ecore_list_count(bg_list);
+ x = (num * (64 + 8) - w) * tmp_bg_sel_sliderval / (4 * num) +
+ ev->xbutton.x;
+ bg = (Background *) ecore_list_index_goto(bg_list, x / (64 + 8));
+ if (!bg || bg == DeskBackgroundGet(DesksGetCurrent()))
+ break;
+ BgDialogSetNewCurrent(bg);
+ DeskBackgroundSet(DesksGetCurrent(), bg);
+ autosave();
+ break;
+ case 4:
+ tmp_bg_sel_sliderval += 4;
+ goto do_slide;
+ case 5:
+ tmp_bg_sel_sliderval -= 4;
+ goto do_slide;
+ do_slide:
+ DialogItemSliderSetVal(bg_sel_slider, tmp_bg_sel_sliderval);
+ CB_BGAreaSlide(NULL, 0, NULL);
+ DialogDrawItems(bg_sel_dialog, bg_sel_slider, 0, 0, 99999, 99999);
+ break;
+ }
+ }
+}
+
+static void
+CB_DesktopTimeout(Dialog * d __UNUSED__, int val __UNUSED__, void *data)
+{
+ DItem *di;
+ char s[256];
+
+ di = (DItem *) data;
+ Esnprintf(s, sizeof(s), _("Unused backgrounds freed after %2i:%02i:%02i"),
+ tmp_bg_timeout / 3600,
+ (tmp_bg_timeout / 60) - (60 * (tmp_bg_timeout / 3600)),
+ (tmp_bg_timeout) - (60 * (tmp_bg_timeout / 60)));
+ DialogItemSetText(di, s);
+ DialogDrawItems(bg_sel_dialog, di, 0, 0, 99999, 99999);
+}
+
+static void
+BGSettingsGoTo(Background * bg)
+{
+ int i, num;
+
+ if (!bg_sel_slider)
+ return;
+
+ bg = (Background *) ecore_list_goto(bg_list, bg);
+ if (!bg)
+ return;
+
+ i = ecore_list_index(bg_list);
+ num = ecore_list_count(bg_list);
+ i = ((4 * num + 20) * i) / num - 8;
+ if (i < 0)
+ i = 0;
+ else if (i > 4 * num)
+ i = 4 * num;
+ DialogItemSliderSetVal(bg_sel_slider, i);
+ DialogDrawItems(bg_sel_dialog, bg_sel_slider, 0, 0, 99999, 99999);
+ BgDialogSetNewCurrent(bg);
+}
+
+static void
+CB_BGNext(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ Background *bg;
+
+ bg = (Background *) ecore_list_goto(bg_list, tmp_bg);
+ if (!bg)
+ return;
+
+ bg =
+ (Background *) ecore_list_index_goto(bg_list,
+ ecore_list_index(bg_list) + val);
+ if (!bg)
+ return;
+
+ BGSettingsGoTo(bg);
+ DeskBackgroundSet(DesksGetCurrent(), bg);
+}
+
+static int
+BG_SortFileCompare(void *_bg1, void *_bg2)
+{
+ Background *bg1 = (Background *) _bg1;
+ Background *bg2 = (Background *) _bg2;
+ const char *name1, *name2;
+
+ /* return < 0 is b1 < b2 */
+ /* return > 0 is b1 > b2 */
+ /* return 0 is b1 == b2 */
+
+ name1 = BackgroundGetBgFile(bg1);
+ name2 = BackgroundGetBgFile(bg2);
+ if (name1 && name2)
+ return strcmp(name1, name2);
+ if (name1)
+ return 1;
+ if (name2)
+ return -1;
+ return (bg1 < bg2) ? -1 : 1;
+}
+
+static void
+CB_BGSortFile(Dialog * d __UNUSED__, int val __UNUSED__, void *data __UNUSED__)
+{
+ Background **bglist;
+ int i, num;
+
+ bglist = (Background **) ecore_list_items_get(bg_list, &num);
+ if (!bglist)
+ return;
+
+ /* remove them all from the list */
+ for (i = 0; i < num; i++)
+ ecore_list_node_remove(bg_list, bglist[i]);
+ Quicksort((void **)bglist, 0, num - 2, BG_SortFileCompare);
+ for (i = 0; i < num; i++)
+ ecore_list_append(bg_list, bglist[i]);
+ Efree(bglist);
+
+ BGSettingsGoTo(tmp_bg);
+
+ autosave();
+}
+
+static void
+CB_BGSortAttrib(Dialog * d __UNUSED__, int val __UNUSED__,
+ void *data __UNUSED__)
+{
+ Background **bglist;
+ int i, num;
+
+ bglist = (Background **) ecore_list_items_get(bg_list, &num);
+ if (!bglist)
+ return;
+
+ /* remove them all from the list */
+ for (i = 0; i < num; i++)
+ ecore_list_node_remove(bg_list, bglist[i]);
+ for (i = 0; i < num; i++)
+ {
+ Background *bg;
+
+ bg = bglist[i];
+ if ((bg) && (bg->bg_tile) && (bg->bg.xperc == 0) && (bg->bg.yperc == 0))
+ {
+ ecore_list_prepend(bg_list, bg);
+ bglist[i] = NULL;
+ }
+ }
+ for (i = 0; i < num; i++)
+ {
+ Background *bg;
+
+ bg = bglist[i];
+ if (bg)
+ {
+ ecore_list_prepend(bg_list, bg);
+ bglist[i] = NULL;
+ }
+ }
+ Efree(bglist);
+
+ BGSettingsGoTo(tmp_bg);
+
+ autosave();
+}
+
+#if 0 /* Doesn't do anything useful */
+static void
+CB_BGSortContent(Dialog * d __UNUSED__, int val __UNUSED__,
+ void *data __UNUSED__)
+{
+ Background **bglist;
+ int i, num;
+
+ bglist = (Background **) ecore_list_items_get(bg_list, &num);
+ if (!bglist)
+ return;
+
+ /* remove them all from the list */
+ for (i = 0; i < num; i++)
+ ecore_list_node_remove(bg_list, bglist[i]);
+ for (i = 0; i < num; i++)
+ ecore_list_prepend(bg_list, bglist[i]);
+ Efree(bglist);
+
+ autosave();
+}
+#endif
+
+#if 0 /* Remove? */
+static void
+CB_DesktopMiniDisplayAreaInit(DItem * di, int val __UNUSED__,
+ void *data __UNUSED__)
+{
+ CB_DesktopMiniDisplayRedraw(DialogItemGetDialog(di), 1, di);
+}
+#endif
+
+static void
+CB_InitView(DItem * di __UNUSED__, int val __UNUSED__, void *data __UNUSED__)
+{
+ tmp_bg_sel_sliderval_old = tmp_bg_sel_sliderval = -1;
+ BGSettingsGoTo(tmp_bg);
+}
+
+static void
+_DlgFillBackground(Dialog * d, DItem * table, void *data)
+{
+ Background *bg = (Background *) data;
+ DItem *di, *table2, *table3, *area, *label;
+ int i, num;
+ char s[1024];
+
+ if (!Conf.backgrounds.no_scan)
+ ScanBackgroundMenu();
+
+ if (!bg)
+ bg = DeskBackgroundGet(DesksGetCurrent());
+ if (!bg)
+ bg = BackgroundFind("NONE");
+ tmp_bg = bg;
+
+ BG_GetValues();
+
+ tmp_hiq = Conf.backgrounds.hiquality;
+ tmp_userbg = Conf.backgrounds.user;
+ tmp_root_hint = Conf.hints.set_xroot_info_on_root_window;
+ tmp_bg_timeout = Conf.backgrounds.timeout;
+
+ bg_sel_dialog = d;
+
+ DialogItemTableSetOptions(table, 1, 0, 0, 0);
+
+ table2 = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table2, 2, 0, 1, 0);
+
+ di = bg_filename = DialogAddItem(table2, DITEM_TEXT);
+ DialogItemSetFill(di, 1, 0);
+ BG_DialogSetFileName(bg_filename);
+
+ table3 = DialogAddItem(table2, DITEM_TABLE);
+
+ di = tmp_w[0] = DialogAddItem(table3, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Use background image"));
+ DialogItemCheckButtonSetPtr(di, &tmp_bg_image);
+
+ di = tmp_w[1] = DialogAddItem(table3, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Keep aspect on scale"));
+ DialogItemCheckButtonSetPtr(di, &tmp_bg_keep_aspect);
+
+ di = tmp_w[2] = DialogAddItem(table3, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Tile image across background"));
+ DialogItemCheckButtonSetPtr(di, &tmp_bg_tile);
+
+ table2 = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table2, 4, 0, 1, 0);
+ DialogItemSetFill(table2, 0, 0);
+ DialogItemSetAlign(table2, 512, 0);
+
+ di = DialogAddItem(table2, DITEM_BUTTON);
+ DialogItemSetText(di, _("Move to Front\n"));
+ DialogItemSetCallback(di, CB_ConfigureFrontBG, 0, NULL);
+ DialogBindKey(d, "F", CB_ConfigureFrontBG, 0, NULL);
+
+ di = DialogAddItem(table2, DITEM_BUTTON);
+ DialogItemSetText(di, _("Duplicate\n"));
+ DialogItemSetCallback(di, CB_ConfigureNewBG, 0, NULL);
+
+ di = DialogAddItem(table2, DITEM_BUTTON);
+ DialogItemSetText(di, _("Unlist\n"));
+ DialogItemSetCallback(di, CB_ConfigureDelBG, 0, NULL);
+ DialogBindKey(d, "D", CB_ConfigureDelBG, 0, NULL);
+
+ di = DialogAddItem(table2, DITEM_BUTTON);
+ DialogItemSetText(di, _("Delete File\n"));
+ DialogItemSetCallback(di, CB_ConfigureDelBG, 1, NULL);
+ DialogBindKey(d, "Delete", CB_ConfigureDelBG, 1, NULL);
+
+ table2 = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table2, 3, 0, 1, 0);
+
+ di = DialogAddItem(table2, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 512, 512);
+ DialogItemSetText(di,
+ _("Background\n" "Image\n" "Scaling\n" "and\n"
+ "Alignment\n"));
+
+ table3 = DialogAddItem(table2, DITEM_TABLE);
+ DialogItemTableSetOptions(table3, 3, 0, 0, 0);
+
+ di = DialogAddItem(table3, DITEM_NONE);
+
+ di = tmp_w[6] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetBounds(di, 0, 1024);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 64);
+ DialogItemSliderSetValPtr(di, &tmp_bg_xjust);
+
+ di = DialogAddItem(table3, DITEM_NONE);
+
+ di = tmp_w[7] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetOrientation(di, 0);
+ DialogItemSetFill(di, 0, 1);
+ DialogItemSliderSetBounds(di, 0, 1024);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 64);
+ DialogItemSliderSetValPtr(di, &tmp_bg_yjust);
+
+ di = bg_mini_disp = area = DialogAddItem(table3, DITEM_AREA);
+ DialogItemAreaSetSize(di, 64, 48);
+#if 0 /* Remove? */
+ DialogItemAreaSetInitFunc(di, CB_DesktopMiniDisplayAreaInit);
+#endif
+
+ di = tmp_w[8] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetOrientation(di, 0);
+ DialogItemSetFill(di, 0, 1);
+ DialogItemSliderSetBounds(di, 0, 1024);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 64);
+ DialogItemSliderSetValPtr(di, &tmp_bg_yperc);
+
+ di = DialogAddItem(table3, DITEM_NONE);
+
+ di = tmp_w[9] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetBounds(di, 0, 1024);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 64);
+ DialogItemSliderSetValPtr(di, &tmp_bg_xperc);
+
+ table3 = DialogAddItem(table2, DITEM_TABLE);
+ DialogItemTableSetOptions(table3, 2, 0, 0, 0);
+
+ di = DialogAddItem(table3, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 512, 512);
+ DialogItemSetText(di, _("BG Colour\n"));
+
+ di = DialogAddItem(table3, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Red:\n"));
+
+ di = tmp_w[3] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 255);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 16);
+ DialogItemSliderSetValPtr(di, &tmp_bg_r);
+
+ di = DialogAddItem(table3, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Green:\n"));
+
+ di = tmp_w[4] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 255);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 16);
+ DialogItemSliderSetValPtr(di, &tmp_bg_g);
+
+ di = DialogAddItem(table3, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Blue:\n"));
+
+ di = tmp_w[5] = DialogAddItem(table3, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 255);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 16);
+ DialogItemSliderSetValPtr(di, &tmp_bg_b);
+
+ for (i = 0; i < 10; i++)
+ DialogItemSetCallback(tmp_w[i], CB_DesktopMiniDisplayRedraw, 0, area);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ table2 = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table2, 3, 0, 0, 0);
+
+ table3 = DialogAddItem(table2, DITEM_TABLE);
+ DialogItemTableSetOptions(table3, 2, 0, 0, 0);
+
+ di = DialogAddItem(table3, DITEM_BUTTON);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetText(di, "<-");
+ DialogItemSetCallback(di, CB_BGNext, -1, NULL);
+ DialogBindKey(d, "Left", CB_BGNext, -1, NULL);
+
+ di = DialogAddItem(table3, DITEM_BUTTON);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetText(di, "->");
+ DialogItemSetCallback(di, CB_BGNext, 1, NULL);
+ DialogBindKey(d, "Right", CB_BGNext, 1, NULL);
+
+ di = DialogAddItem(table2, DITEM_BUTTON);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetText(di, _("Pre-scan BG's"));
+ DialogItemSetCallback(di, CB_BGScan, 0, NULL);
+
+ table3 = DialogAddItem(table2, DITEM_TABLE);
+ DialogItemTableSetOptions(table3, 3, 0, 0, 0);
+
+ di = DialogAddItem(table3, DITEM_BUTTON);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetText(di, _("Sort by File"));
+ DialogItemSetCallback(di, CB_BGSortFile, 0, NULL);
+
+ di = DialogAddItem(table3, DITEM_BUTTON);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetText(di, _("Sort by Attr."));
+ DialogItemSetCallback(di, CB_BGSortAttrib, 0, NULL);
+
+#if 0 /* Doesn't do anything useful */
+ di = DialogAddItem(table3, DITEM_BUTTON);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetText(di, _("Sort by Image"));
+ DialogItemSetCallback(di, CB_BGSortContent, 0, NULL);
+#endif
+
+ di = bg_sel = DialogAddItem(table, DITEM_AREA);
+ DialogItemAreaSetSize(di, 160, 56);
+ DialogItemAreaSetEventFunc(di, CB_BGAreaEvent);
+ DialogItemAreaSetInitFunc(di, CB_InitView);
+
+ num = ecore_list_count(bg_list);
+ di = bg_sel_slider = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, num * 4);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 9);
+ DialogItemSliderSetValPtr(di, &tmp_bg_sel_sliderval);
+ DialogItemSetCallback(bg_sel_slider, CB_BGAreaSlide, 0, NULL);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Use dithering in Hi-Colour"));
+ DialogItemCheckButtonSetPtr(di, &tmp_hiq);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Background overrides theme"));
+ DialogItemCheckButtonSetPtr(di, &tmp_userbg);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di,
+ _("Enable background transparency compatibility mode"));
+ DialogItemCheckButtonSetPtr(di, &tmp_root_hint);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ di = label = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 512, 512);
+ Esnprintf(s, sizeof(s), _("Unused backgrounds freed after %2i:%02i:%02i"),
+ tmp_bg_timeout / 3600,
+ (tmp_bg_timeout / 60) - (60 * (tmp_bg_timeout / 3600)),
+ (tmp_bg_timeout) - (60 * (tmp_bg_timeout / 60)));
+ DialogItemSetText(di, s);
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetBounds(di, 0, 60 * 60 * 4);
+ DialogItemSliderSetUnits(di, 30);
+ DialogItemSliderSetJump(di, 60);
+ DialogItemSliderSetValPtr(di, &tmp_bg_timeout);
+ DialogItemSetCallback(di, CB_DesktopTimeout, 0, label);
+}
+
+const DialogDef DlgBackground = {
+ "CONFIGURE_BG",
+ N_("Background"),
+ N_("Desktop Background Settings"),
+ SOUND_SETTINGS_BG,
+ "pix/bg.png",
+ N_("Enlightenment Desktop\n" "Background Settings Dialog\n"),
+ _DlgFillBackground,
+ DLG_OAC, CB_ConfigureBG,
+};
+
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * IPC functions
+ */
+
+static void
+BackgroundSet1(const char *name, const char *params)
+{
+ const char *p = params;
+ char type[FILEPATH_LEN_MAX];
+ int len, value;
+ Background *bg;
+ EColor color;
+
+ if (!p || !p[0])
+ return;
+
+ bg = BackgroundFind(name);
+ if (!bg)
+ {
+ SET_COLOR(&color, 0, 0, 0);
+ bg = BackgroundCreate(name, &color, NULL, 0, 0, 0,
+ 0, 0, 0, NULL, 0, 0, 0, 0, 0);
+ if (!bg)
+ {
+ IpcPrintf("Error: could not create background '%s'.", name);
+ return;
+ }
+ }
+
+ type[0] = '\0';
+ len = 0;
+ sscanf(p, "%400s %n", type, &len);
+ p += len;
+ value = atoi(p);
+
+ if (!strcmp(type, "bg.solid"))
+ {
+ int r, b, g;
+
+ r = g = b = 0;
+ sscanf(p, "%i %i %i", &r, &g, &b);
+ SET_COLOR(&(bg->bg_solid), r, g, b);
+ }
+ else if (!strcmp(type, "bg.file"))
+ {
+ Efree(bg->bg.file);
+ bg->bg.file = Estrdup(p);
+ }
+ else if (!strcmp(type, "bg.tile"))
+ {
+ bg->bg_tile = value;
+ }
+ else if (!strcmp(type, "bg.keep_aspect"))
+ {
+ bg->bg.keep_aspect = value;
+ }
+ else if (!strcmp(type, "bg.xjust"))
+ {
+ bg->bg.xjust = value;
+ }
+ else if (!strcmp(type, "bg.yjust"))
+ {
+ bg->bg.yjust = value;
+ }
+ else if (!strcmp(type, "bg.xperc"))
+ {
+ bg->bg.xperc = value;
+ }
+ else if (!strcmp(type, "bg.yperc"))
+ {
+ bg->bg.yperc = value;
+ }
+ else if (!strcmp(type, "top.file"))
+ {
+ Efree(bg->top.file);
+ bg->top.file = Estrdup(p);
+ }
+ else if (!strcmp(type, "top.keep_aspect"))
+ {
+ bg->top.keep_aspect = value;
+ }
+ else if (!strcmp(type, "top.xjust"))
+ {
+ bg->top.xjust = value;
+ }
+ else if (!strcmp(type, "top.yjust"))
+ {
+ bg->top.yjust = value;
+ }
+ else if (!strcmp(type, "top.xperc"))
+ {
+ bg->top.xperc = value;
+ }
+ else if (!strcmp(type, "top.yperc"))
+ {
+ bg->top.yperc = value;
+ }
+ else
+ {
+ IpcPrintf("Error: unknown background value type '%s'.", type);
+ }
+ autosave();
+}
+
+static void
+BackgroundSet2(const char *name, const char *params)
+{
+ Background *bg;
+ EColor color;
+ unsigned int i;
+ int r, g, b;
+ char bgf[FILEPATH_LEN_MAX], topf[FILEPATH_LEN_MAX];
+ int tile, keep_aspect, tkeep_aspect;
+ int xjust, yjust, xperc, yperc;
+ int txjust, tyjust, txperc, typerc;
+
+ if (params == NULL)
+ return;
+
+ bgf[0] = topf[0] = '\0';
+ r = g = b = 99;
+ i = sscanf(params,
+ "%i %i %i %4000s %i %i %i %i %i %i %4000s %i %i %i %i %i",
+ &r, &g, &b,
+ bgf, &tile, &keep_aspect, &xjust, &yjust, &xperc, &yperc,
+ topf, &tkeep_aspect, &txjust, &tyjust, &txperc, &typerc);
+ SET_COLOR(&color, r, g, b);
+
+ bg = BackgroundFind(name);
+ if (bg)
+ {
+ BackgroundModify(bg, &color, bgf, tile, keep_aspect, xjust,
+ yjust, xperc, yperc, topf, tkeep_aspect,
+ txjust, tyjust, txperc, typerc);
+ }
+ else
+ {
+ bg = BackgroundCreate(name, &color, bgf, tile, keep_aspect, xjust,
+ yjust, xperc, yperc, topf, tkeep_aspect,
+ txjust, tyjust, txperc, typerc);
+ }
+}
+
+static void
+BackgroundsIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[128], buf[4096];
+ int i, len, num, len2;
+ Background *bg;
+
+ len = len2 = 0;
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ sscanf(p, "%100s %n%100s %n", cmd, &len2, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ for (i = 0; i < (int)DesksGetNumber(); i++)
+ {
+ bg = DeskBackgroundGet(DeskGet(i));
+ if (bg)
+ IpcPrintf("%i %s\n", i, BackgroundGetName(bg));
+ else
+ IpcPrintf("%i %s\n", i, "-NONE-");
+ }
+ }
+ else if (!strncmp(cmd, "apply", 2))
+ {
+ Window xwin;
+ Win win;
+
+ bg = BackgroundFind(prm);
+ if (!bg)
+ return;
+
+ xwin = None;
+ sscanf(p, "%lx", &xwin);
+
+ win = ECreateWinFromXwin(xwin);
+ if (!win)
+ return;
+ BackgroundApplyWin(bg, win);
+ EDestroyWin(win);
+ }
+ else if (!strncmp(cmd, "del", 2))
+ {
+ BackgroundDestroyByName(prm);
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ ECORE_LIST_FOR_EACH(bg_list, bg) IpcPrintf("%s\n", bg->name);
+ }
+ else if (!strncmp(cmd, "load", 2))
+ {
+ bg = BackgroundFind(prm);
+ if (bg)
+ {
+ IpcPrintf("Background already defined\n");
+ }
+ else
+ {
+ bg = BrackgroundCreateFromImage(prm, p, NULL, 0);
+ }
+ }
+ else if (!strncmp(cmd, "set", 2))
+ {
+ BackgroundSet1(prm, p);
+ }
+ else if (!strncmp(cmd, "show", 2))
+ {
+ bg = BackgroundFind(prm);
+
+ if (bg)
+ {
+ BackgroundGetInfoString1(bg, buf, sizeof(buf));
+ IpcPrintf("%s\n", buf);
+ }
+ else
+ IpcPrintf("Error: background '%s' does not exist.", prm);
+ }
+ else if (!strcmp(cmd, "use"))
+ {
+ if (!strcmp(prm, "-"))
+ bg = NULL;
+ else
+ bg = BackgroundFind(prm);
+
+ num = DesksGetCurrentNum();
+ sscanf(p, "%d %n", &num, &len);
+ DeskBackgroundSet(DeskGet(num), bg);
+ autosave();
+ }
+ else if (!strncmp(cmd, "xget", 2))
+ {
+ bg = BackgroundFind(prm);
+
+ if (bg)
+ {
+ BackgroundGetInfoString2(bg, buf, sizeof(buf));
+ IpcPrintf("%s\n", buf);
+ }
+ else
+ IpcPrintf("Error: background '%s' does not exist.", prm);
+ }
+ else if (!strncmp(cmd, "xset", 2))
+ {
+ BackgroundSet2(prm, p);
+ }
+ else
+ {
+ /* Compatibility with pre- 0.16.8 clients */
+ BackgroundSet1(cmd, params + len2);
+ }
+}
+
+static void
+IPC_BackgroundUse(const char *params)
+{
+ char name[1024];
+ const char *p;
+ Background *bg;
+ int i, l;
+
+ p = params;
+ name[0] = '\0';
+ l = 0;
+ sscanf(p, "%1000s %n", name, &l);
+ p += l;
+
+ bg = BackgroundFind(name);
+ if (!bg)
+ return;
+
+ for (;;)
+ {
+ i = l = -1;
+ sscanf(p, "%d %n", &i, &l);
+ p += l;
+ if (i < 0)
+ break;
+ DeskBackgroundSet(DeskGet(i), bg);
+ }
+
+ autosave();
+}
+
+static const IpcItem BackgroundsIpcArray[] = {
+ {
+ BackgroundsIpc,
+ "background", "bg",
+ "Background commands",
+ " background Show current background\n"
+ " background apply <name> <win> Apply background to window\n"
+ " background del <name> Delete background\n"
+ " background list Show all background\n"
+ " background load <name> <file> Load new wallpaper from file\n"
+ " background set <name> ... Set background parameters\n"
+ " background show <name> Show background info\n"
+ " background use <name> <desks...> Switch to background <name>\n"
+ " background xget <name> Special show background parameters\n"
+ " background xset <name> ... Special set background parameters\n"}
+ ,
+ {
+ IPC_BackgroundUse, "use_bg", NULL, "Deprecated - do not use", NULL}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(BackgroundsIpcArray)/sizeof(IpcItem))
+
+/*
+ * Configuration items
+ */
+static const CfgItem BackgroundsCfgItems[] = {
+ CFG_ITEM_BOOL(Conf.backgrounds, hiquality, 1),
+ CFG_ITEM_BOOL(Conf.backgrounds, user, 1),
+ CFG_ITEM_BOOL(Conf.backgrounds, no_scan, 0),
+ CFG_ITEM_INT(Conf.backgrounds, timeout, 240),
+};
+#define N_CFG_ITEMS (sizeof(BackgroundsCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModBackgrounds;
+const EModule ModBackgrounds = {
+ "backgrounds", "bg",
+ BackgroundsSighan,
+ {N_IPC_FUNCS, BackgroundsIpcArray},
+ {N_CFG_ITEMS, BackgroundsCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _BACKGROUNDS_H_
+#define _BACKGROUNDS_H_
+
+/* backgrounds.c */
+Background *BackgroundFind(const char *name);
+
+char *BackgroundGetUniqueString(const Background * bg);
+void BackgroundPixmapSet(Background * bg, Pixmap pmap);
+void BackgroundDestroyByName(const char *name);
+void BackgroundRealize(Background * bg, Win win, Drawable draw,
+ unsigned int rw, unsigned int rh,
+ int is_win, Pixmap * ppmap,
+ unsigned long *ppixel);
+void BackgroundApplyPmap(Background * bg, Win win, Drawable draw,
+ unsigned int rw, unsigned int rh);
+void BackgroundSet(Background * bg, Win win, unsigned int rw,
+ unsigned int rh);
+void BackgroundIncRefcount(Background * bg);
+void BackgroundDecRefcount(Background * bg);
+
+void BackgroundTouch(Background * bg);
+const char *BackgroundGetName(const Background * bg);
+Pixmap BackgroundGetPixmap(const Background * bg);
+unsigned int BackgroundGetSeqNo(const Background * bg);
+int BackgroundIsNone(const Background * bg);
+Background *BrackgroundCreateFromImage(const char *bgid,
+ const char *file, char *thumb,
+ int thlen);
+
+void BackgroundSetForDesk(Background * bg, unsigned int desk);
+Background *BackgroundGetForDesk(unsigned int desk);
+
+void BackgroundsInvalidate(int refresh);
+int BackgroundsConfigLoad(FILE * fs);
+
+void ScanBackgroundMenu(void);
+
+#endif /* _BACKGROUNDS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "borders.h"
+#include "cursors.h"
+#include "e16-ecore_list.h"
+#include "ewins.h"
+#include "focus.h"
+#include "grabs.h"
+#include "hints.h"
+#include "iclass.h"
+#include "snaps.h"
+#include "tclass.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "windowmatch.h"
+#include "xwin.h"
+
+#define EWIN_BORDER_PART_EVENT_MASK \
+ (KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | \
+ EnterWindowMask | LeaveWindowMask | PointerMotionMask)
+#define EWIN_BORDER_TITLE_EVENT_MASK \
+ (EWIN_BORDER_PART_EVENT_MASK)
+
+static Ecore_List *border_list = NULL;
+
+static void BorderDestroy(const Border * b);
+static void BorderWinpartHandleEvents(Win win, XEvent * ev, void *prm);
+static void BorderFrameHandleEvents(Win win, XEvent * ev, void *prm);
+static Border *BorderGetFallback(void);
+
+static void
+BorderWinpartRealise(EWin * ewin, int i)
+{
+ EWinBit *ewb = &ewin->bits[i];
+
+ if ((ewb->cx != ewb->x) || (ewb->cy != ewb->y) ||
+ (ewb->cw != ewb->w) || (ewb->ch != ewb->h))
+ {
+ if ((ewb->w <= 0) || (ewb->h <= 0))
+ {
+ EUnmapWindow(ewb->win);
+ }
+ else
+ {
+ EMapWindow(ewb->win);
+ EMoveResizeWindow(ewb->win, ewb->x, ewb->y, ewb->w, ewb->h);
+ }
+ }
+}
+
+static void
+BorderWinpartITclassApply(EWin * ewin, int i, int force)
+{
+ EWinBit *ewb = &ewin->bits[i];
+ ImageState *is;
+ TextState *ts;
+ const char *txt;
+
+ if (ewb->win == None)
+ return;
+
+#if 0 /* Debug */
+ Eprintf("BorderWpITApply: %#lx %#lx %2d %d %s\n",
+ EwinGetClientXwin(ewin), EoGetWin(ewin), i, force,
+ EwinGetTitle(ewin));
+#endif
+
+ is = ImageclassGetImageState(ewin->border->part[i].iclass, ewb->state,
+ ewin->state.active, EoIsSticky(ewin));
+
+ ts = NULL;
+ txt = NULL;
+ switch (ewin->border->part[i].flags)
+ {
+ case FLAG_TITLE:
+ txt = EwinGetTitle(ewin);
+ if (txt && ewin->border->part[i].tclass)
+ ts = TextclassGetTextState(ewin->border->part[i].tclass, ewb->state,
+ ewin->state.active, EoIsSticky(ewin));
+ break;
+ case FLAG_MINIICON:
+ break;
+ default:
+ break;
+ }
+
+ if (!force && ewb->is == is && ewb->ts == ts)
+ return;
+ ewb->is = is;
+ ewb->ts = ts;
+
+ ITApply(ewb->win, ewin->border->part[i].iclass, is,
+ ewb->state, ewin->state.active, EoIsSticky(ewin),
+ ST_BORDER, ewin->border->part[i].tclass, ts, txt, 1);
+}
+
+static int
+BorderWinpartDraw(EWin * ewin, int i)
+{
+ EWinBit *ewb = &ewin->bits[i];
+ int move = 0, resize = 0, ret = 0;
+
+ if ((ewb->x != ewb->cx) || (ewb->y != ewb->cy))
+ {
+ move = 1;
+ ewb->cx = ewb->x;
+ ewb->cy = ewb->y;
+ ret = 1;
+ }
+
+ if ((ewb->w != ewb->cw) || (ewb->h != ewb->ch))
+ {
+ resize = 1;
+ ewb->cw = ewb->w;
+ ewb->ch = ewb->h;
+ }
+
+ if ((resize) || (ewb->expose))
+ {
+ BorderWinpartITclassApply(ewin, i, 1);
+ ewb->expose = 0;
+ ret = 1;
+ }
+
+ return ret;
+}
+
+static void
+BorderWinpartChange(EWin * ewin, int i, int force)
+{
+ BorderWinpartITclassApply(ewin, i, force);
+
+ if (ewin->update.shape || ewin->border->changes_shape)
+ EwinPropagateShapes(ewin);
+}
+
+void
+EwinBorderDraw(EWin * ewin, int do_shape, int do_paint)
+{
+ int i;
+
+ if (!ewin)
+ return;
+
+#if 0 /* Debug */
+ Eprintf("EwinBorderDraw %#lx %s d=%d s=%d p=%d\n",
+ EwinGetClientXwin(ewin), EoGetName(ewin), EoGetDeskNum(ewin),
+ do_shape, do_paint);
+#endif
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ BorderWinpartITclassApply(ewin, i, do_shape || do_paint);
+
+ if (do_shape || ewin->update.shape || ewin->border->changes_shape)
+ EwinPropagateShapes(ewin);
+}
+
+void
+EwinBorderUpdateInfo(EWin * ewin)
+{
+ int i;
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ if (ewin->border->part[i].flags == FLAG_TITLE)
+ BorderWinpartITclassApply(ewin, i, 1);
+ }
+}
+
+static void
+BorderWinpartCalc(EWin * ewin, int i, int ww, int hh)
+{
+ int x, y, w, h, ox, oy, max, min;
+ int topleft, bottomright;
+
+ topleft = ewin->border->part[i].geom.topleft.originbox;
+ bottomright = ewin->border->part[i].geom.bottomright.originbox;
+ if (topleft >= 0)
+ BorderWinpartCalc(ewin, topleft, ww, hh);
+ if (bottomright >= 0)
+ BorderWinpartCalc(ewin, bottomright, ww, hh);
+
+ x = y = 0;
+ if (topleft == -1)
+ {
+ x = ((ewin->border->part[i].geom.topleft.x.percent * ww) >> 10) +
+ ewin->border->part[i].geom.topleft.x.absolute;
+ y = ((ewin->border->part[i].geom.topleft.y.percent * hh) >> 10) +
+ ewin->border->part[i].geom.topleft.y.absolute;
+ }
+ else if (topleft >= 0)
+ {
+ x = ((ewin->border->part[i].geom.topleft.x.percent *
+ ewin->bits[topleft].w) >> 10) +
+ ewin->border->part[i].geom.topleft.x.absolute +
+ ewin->bits[topleft].x;
+ y = ((ewin->border->part[i].geom.topleft.y.percent *
+ ewin->bits[topleft].h) >> 10) +
+ ewin->border->part[i].geom.topleft.y.absolute +
+ ewin->bits[topleft].y;
+ }
+
+ ox = oy = 0;
+ if (bottomright == -1)
+ {
+ ox = ((ewin->border->part[i].geom.bottomright.x.percent * ww) >> 10) +
+ ewin->border->part[i].geom.bottomright.x.absolute;
+ oy = ((ewin->border->part[i].geom.bottomright.y.percent * hh) >> 10) +
+ ewin->border->part[i].geom.bottomright.y.absolute;
+ }
+ else if (bottomright >= 0)
+ {
+ ox = ((ewin->border->part[i].geom.bottomright.x.percent *
+ ewin->bits[bottomright].w) >> 10) +
+ ewin->border->part[i].geom.bottomright.x.absolute +
+ ewin->bits[bottomright].x;
+ oy = ((ewin->border->part[i].geom.bottomright.y.percent *
+ ewin->bits[bottomright].h) >> 10) +
+ ewin->border->part[i].geom.bottomright.y.absolute +
+ ewin->bits[bottomright].y;
+ }
+
+ /*
+ * calculate height before width, because we may need it in order to
+ * determine the font size. But we might do it the other way around for
+ * side borders :-)
+ */
+
+ h = (oy - y) + 1;
+ max = ewin->border->part[i].geom.height.max;
+ min = ewin->border->part[i].geom.height.min;
+
+ /*
+ * If the title bar max size is set to zero, then set the title bar size to
+ * just a little bit more than the size of the title text.
+ */
+
+ if (max == 0 && ewin->border->part[i].flags == FLAG_TITLE)
+ {
+ int dummywidth, wmax, wmin;
+ ImageClass *iclass;
+ TextClass *tclass;
+ EImageBorder *pad;
+
+ /*
+ * calculate width before height, because we need it in order to
+ * determine the font size.
+ */
+
+ w = (ox - x) + 1;
+ wmax = ewin->border->part[i].geom.width.max;
+ wmin = ewin->border->part[i].geom.width.min;
+ if (w > wmax)
+ {
+ w = wmax;
+ x = ((x + ox) - w) >> 1;
+ }
+ else if (w < wmin)
+ {
+ w = wmin;
+ }
+ iclass = ewin->border->part[i].iclass;
+ tclass = ewin->border->part[i].tclass;
+ pad = ImageclassGetPadding(iclass);
+ TextSize(tclass, ewin->state.active, EoIsSticky(ewin),
+ ewin->bits[i].state, EwinGetTitle(ewin), &max, &dummywidth,
+ w - (pad->top + pad->bottom));
+ max += pad->left + pad->right;
+ if (h > max)
+ {
+ y = y + (((h - max) * TextclassGetJustification(tclass)) >> 10);
+ h = max;
+ }
+ if (h < min)
+ {
+ h = min;
+ }
+ }
+ else
+ {
+ if (h > max)
+ {
+ h = max;
+ y = ((y + oy) - h) >> 1;
+ }
+ else if (h < min)
+ {
+ h = min;
+ }
+ /*
+ * and now the width.
+ */
+
+ w = (ox - x) + 1;
+ max = ewin->border->part[i].geom.width.max;
+ min = ewin->border->part[i].geom.width.min;
+
+ /*
+ * If the title bar max size is set to zero, then set the title bar
+ * size to just a little bit more than the size of the title text.
+ */
+
+ if (max == 0 && ewin->border->part[i].flags == FLAG_TITLE)
+ {
+ int dummyheight;
+ ImageClass *iclass;
+ TextClass *tclass;
+ EImageBorder *pad;
+
+ iclass = ewin->border->part[i].iclass;
+ tclass = ewin->border->part[i].tclass;
+ pad = ImageclassGetPadding(iclass);
+ TextSize(tclass, ewin->state.active, EoIsSticky(ewin),
+ ewin->bits[i].state, EwinGetTitle(ewin), &max,
+ &dummyheight, h - (pad->top + pad->bottom));
+ max += pad->left + pad->right;
+
+ if (w > max)
+ {
+ x = x +
+ (((w - max) * TextclassGetJustification(tclass)) >> 10);
+ w = max;
+ }
+ }
+ if (w > max)
+ {
+ w = max;
+ x = ((x + ox) - w) >> 1;
+ }
+ else if (w < min)
+ {
+ w = min;
+ }
+ }
+ if ((ewin->state.shaded) && (!ewin->border->part[i].keep_for_shade))
+ {
+ ewin->bits[i].x = -100;
+ ewin->bits[i].y = -100;
+ ewin->bits[i].w = -1;
+ ewin->bits[i].h = -1;
+ }
+ else
+ {
+ ewin->bits[i].x = x;
+ ewin->bits[i].y = y;
+ ewin->bits[i].w = w;
+ ewin->bits[i].h = h;
+ }
+}
+
+void
+EwinBorderCalcSizes(EWin * ewin, int propagate)
+{
+ int i, ww, hh;
+ char reshape;
+
+ if (!ewin)
+ return;
+ if (!ewin->border)
+ return;
+
+ ww = EoGetW(ewin);
+ hh = EoGetH(ewin);
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ ewin->bits[i].w = -2;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ if (ewin->bits[i].w == -2)
+ BorderWinpartCalc(ewin, i, ww, hh);
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ BorderWinpartRealise(ewin, i);
+
+ reshape = 0;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ reshape |= BorderWinpartDraw(ewin, i);
+ }
+
+#if 0 /* Debug */
+ Eprintf("EwinBorderCalcSizes prop=%d reshape=%d\n", propagate, reshape);
+#endif
+ if (reshape)
+ ewin->update.shape = 1;
+ if (propagate && ewin->update.shape)
+ EwinPropagateShapes(ewin);
+}
+
+static void
+BorderIncRefcount(const Border * b)
+{
+ ((Border *) b)->ref_count++;
+}
+
+static void
+BorderDecRefcount(const Border * b)
+{
+ ((Border *) b)->ref_count--;
+}
+
+const char *
+BorderGetName(const Border * b)
+{
+ return (b) ? b->name : NULL;
+}
+
+void
+EwinBorderSelect(EWin * ewin)
+{
+ const Border *b;
+
+ if (ewin->inh_wm.b.border)
+ {
+ b = BorderFind("BORDERLESS");
+ goto done;
+ }
+
+ /* Quit if we already have a border that isn't an internal one */
+ b = ewin->border;
+ if (b && strncmp(b->name, "__", 2))
+ goto done;
+
+ b = NULL;
+
+ if (ewin->props.no_border)
+ b = BorderFind("BORDERLESS");
+
+ if (!b)
+ b = WindowMatchEwinBorder(ewin);
+
+ if (!b)
+ b = BorderFind("DEFAULT");
+
+ if (!b)
+ b = BorderGetFallback();
+
+ done:
+ ewin->normal_border = ewin->border = b;
+}
+
+void
+EwinBorderDetach(EWin * ewin)
+{
+ const Border *b = ewin->border;
+ int i;
+
+ if (!b)
+ return;
+
+ TooltipsSetPending(0, NULL, NULL);
+
+ EventCallbackUnregister(EoGetWin(ewin), 0, BorderFrameHandleEvents, ewin);
+ for (i = 0; i < b->num_winparts; i++)
+ {
+ EventCallbackUnregister(ewin->bits[i].win, 0,
+ BorderWinpartHandleEvents, &ewin->bits[i]);
+ if (ewin->bits[i].win)
+ EDestroyWindow(ewin->bits[i].win);
+ }
+ Efree(ewin->bits);
+ ewin->bits = NULL;
+ BorderDecRefcount(b);
+
+ ewin->border = NULL;
+
+ if (b->throwaway)
+ BorderDestroy((Border *) b);
+}
+
+void
+EwinBorderSetTo(EWin * ewin, const Border * b)
+{
+ int i;
+
+ if (ewin->border == b)
+ return;
+
+ if (b == NULL)
+ {
+ b = ewin->border;
+ ewin->border = NULL;
+ }
+
+ if (ewin->border)
+ EwinBorderDetach(ewin);
+
+ ewin->border = b;
+ BorderIncRefcount(b);
+ HintsSetWindowBorder(ewin);
+
+ ewin->state.no_border = b->num_winparts <= 0;
+
+ EventCallbackRegister(EoGetWin(ewin), 0, BorderFrameHandleEvents, ewin);
+
+ if (b->num_winparts > 0)
+ ewin->bits = EMALLOC(EWinBit, b->num_winparts);
+
+ for (i = 0; i < b->num_winparts; i++)
+ {
+ ewin->bits[i].ewin = ewin; /* Reference to associated Ewin */
+
+ ewin->bits[i].win = ECreateWindow(EoGetWin(ewin), -10, -10, 1, 1, 0);
+ ECursorApply(b->part[i].ec, ewin->bits[i].win);
+ EMapWindow(ewin->bits[i].win);
+ EventCallbackRegister(ewin->bits[i].win, 0,
+ BorderWinpartHandleEvents, &ewin->bits[i]);
+ if (b->part[i].flags & FLAG_TITLE)
+ ESelectInput(ewin->bits[i].win, EWIN_BORDER_TITLE_EVENT_MASK);
+ else
+ ESelectInput(ewin->bits[i].win, EWIN_BORDER_PART_EVENT_MASK);
+ ewin->bits[i].x = -10;
+ ewin->bits[i].y = -10;
+ ewin->bits[i].w = -10;
+ ewin->bits[i].h = -10;
+ ewin->bits[i].cx = -99;
+ ewin->bits[i].cy = -99;
+ ewin->bits[i].cw = -99;
+ ewin->bits[i].ch = -99;
+ ewin->bits[i].state = 0;
+ ewin->bits[i].expose = 0;
+ ewin->bits[i].left = 0;
+ ewin->bits[i].is = NULL;
+ }
+
+ {
+ Window *wl;
+ int j = 0;
+
+ wl = EMALLOC(Window, b->num_winparts + 1);
+ for (i = b->num_winparts - 1; i >= 0; i--)
+ {
+ if (b->part[i].ontop)
+ wl[j++] = WinGetXwin(ewin->bits[i].win);
+ }
+ wl[j++] = WinGetXwin(ewin->win_container);
+ for (i = b->num_winparts - 1; i >= 0; i--)
+ {
+ if (!b->part[i].ontop)
+ wl[j++] = WinGetXwin(ewin->bits[i].win);
+ }
+ EXRestackWindows(wl, j);
+ Efree(wl);
+ }
+
+ if (!ewin->state.shaded)
+ EMoveWindow(ewin->win_container, b->border.left, b->border.top);
+
+ ewin->update.shape = 1;
+ EwinBorderCalcSizes(ewin, 0);
+ EwinStateUpdate(ewin);
+
+ SnapshotEwinUpdate(ewin, SNAP_USE_BORDER);
+}
+
+void
+EwinBorderChange(EWin * ewin, const Border * b, int normal)
+{
+ if (!b || ewin->border == b ||
+ ewin->inh_wm.b.border || ewin->state.fullscreen)
+ return;
+
+ EwinBorderSetTo(ewin, b);
+ EwinMoveResize(ewin, EoGetX(ewin), EoGetY(ewin),
+ ewin->client.w, ewin->client.h);
+
+ if (normal)
+ ewin->normal_border = b;
+}
+
+static void
+EwinBorderAssign(EWin * ewin, const Border * b)
+{
+ if (!b || ewin->border == b || ewin->inh_wm.b.border)
+ return;
+
+ if (ewin->border)
+ BorderDecRefcount(ewin->border);
+ BorderIncRefcount(b);
+
+ ewin->border = ewin->normal_border = b;
+}
+
+void
+EwinBorderSetInitially(EWin * ewin, const char *name)
+{
+ EwinBorderAssign(ewin, BorderFind(name));
+}
+
+static Border *
+BorderCreate(const char *name)
+{
+ Border *b;
+
+ b = ECALLOC(Border, 1);
+ if (!b)
+ return NULL;
+
+ if (!border_list)
+ border_list = ecore_list_new();
+ ecore_list_prepend(border_list, b);
+
+ b->name = Estrdup(name);
+ b->group_border_name = NULL;
+ b->shadedir = 2;
+
+ return b;
+}
+
+static void
+BorderDestroy(const Border * b)
+{
+ int i;
+
+ if (!b)
+ return;
+
+ if (b->ref_count > 0)
+ {
+ DialogOK("Border Error!", _("%u references remain\n"), b->ref_count);
+ return;
+ }
+
+ ecore_list_node_remove(border_list, (Border *) b);
+
+ for (i = 0; i < b->num_winparts; i++)
+ {
+ ImageclassFree(b->part[i].iclass);
+ ActionclassFree(b->part[i].aclass);
+ TextclassFree(b->part[i].tclass);
+ ECursorFree(b->part[i].ec);
+ }
+
+ Efree(b->part);
+ Efree(b->name);
+ Efree(b->group_border_name);
+ ActionclassFree(b->aclass);
+}
+
+static int
+_BorderMatchName(const void *data, const void *match)
+{
+ return strcmp(((const Border *)data)->name, (const char *)match);
+}
+
+Border *
+BorderFind(const char *name)
+{
+ if (!name)
+ return NULL;
+ return (Border *) ecore_list_find(border_list, _BorderMatchName, name);
+}
+
+static void
+BorderWinpartAdd(Border * b, const char *iclass, const char *aclass,
+ const char *tclass, const char *cclass, char ontop, int flags,
+ char isregion __UNUSED__, int wmin, int wmax, int hmin,
+ int hmax, int torigin, int txp, int txa, int typ, int tya,
+ int borigin, int bxp, int bxa, int byp, int bya,
+ char keep_for_shade)
+{
+ int n;
+
+ b->num_winparts++;
+ n = b->num_winparts;
+
+ b->part = EREALLOC(WinPart, b->part, n);
+
+ b->part[n - 1].iclass = (iclass) ? ImageclassAlloc(iclass, 1) : NULL;
+ b->part[n - 1].aclass = (aclass) ? ActionclassAlloc(aclass) : NULL;
+ b->part[n - 1].tclass = (tclass) ? TextclassAlloc(tclass, 1) : NULL;
+ b->part[n - 1].ec = (cclass) ? ECursorAlloc(cclass) : NULL;
+
+ b->part[n - 1].ontop = ontop;
+ b->part[n - 1].flags = flags;
+ b->part[n - 1].keep_for_shade = keep_for_shade;
+ b->part[n - 1].geom.width.min = wmin;
+ b->part[n - 1].geom.width.max = wmax;
+ b->part[n - 1].geom.height.min = hmin;
+ b->part[n - 1].geom.height.max = hmax;
+ b->part[n - 1].geom.topleft.originbox = torigin;
+ b->part[n - 1].geom.topleft.x.percent = txp;
+ b->part[n - 1].geom.topleft.x.absolute = txa;
+ b->part[n - 1].geom.topleft.y.percent = typ;
+ b->part[n - 1].geom.topleft.y.absolute = tya;
+ b->part[n - 1].geom.bottomright.originbox = borigin;
+ b->part[n - 1].geom.bottomright.x.percent = bxp;
+ b->part[n - 1].geom.bottomright.x.absolute = bxa;
+ b->part[n - 1].geom.bottomright.y.percent = byp;
+ b->part[n - 1].geom.bottomright.y.absolute = bya;
+}
+
+void
+EwinBorderMinShadeSize(EWin * ewin, int *mw, int *mh)
+{
+ int i, pw, ph, w, h, min_w, min_h;
+ int leftborderwidth, rightborderwidth;
+ int topborderwidth, bottomborderwidth;
+
+ min_w = 32;
+ min_h = 32;
+
+ if (!ewin)
+ goto done;
+
+ pw = EoGetW(ewin);
+ ph = EoGetH(ewin);
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ ewin->bits[i].w = -2;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ if (ewin->bits[i].w == -2)
+ BorderWinpartCalc(ewin, i, pw, ph);
+
+ switch (ewin->border->shadedir)
+ {
+ case 0:
+ case 1:
+ /* get the correct width, based on the borderparts that */
+ /*are remaining visible */
+ leftborderwidth = rightborderwidth = 0;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ if (!ewin->border->part[i].keep_for_shade)
+ continue;
+
+ w = ewin->border->border.left - ewin->bits[i].x;
+ if (leftborderwidth < w)
+ leftborderwidth = w;
+
+ w = ewin->bits[i].x + ewin->bits[i].w -
+ (EoGetW(ewin) - ewin->border->border.right);
+ if (rightborderwidth < w)
+ rightborderwidth = w;
+ }
+ pw = rightborderwidth + leftborderwidth;
+ break;
+ case 2:
+ case 3:
+ topborderwidth = bottomborderwidth = 0;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ if (!ewin->border->part[i].keep_for_shade)
+ continue;
+
+ h = ewin->border->border.top - ewin->bits[i].y;
+ if (topborderwidth < h)
+ topborderwidth = h;
+
+ h = ewin->bits[i].y + ewin->bits[i].h -
+ (EoGetH(ewin) - ewin->border->border.bottom);
+ if (bottomborderwidth < h)
+ bottomborderwidth = h;
+ }
+ ph = bottomborderwidth + topborderwidth;
+ break;
+ default:
+ break;
+ }
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ ewin->bits[i].w = -2;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ if (ewin->bits[i].w == -2)
+ BorderWinpartCalc(ewin, i, pw, ph);
+
+ min_w = 0;
+ min_h = 0;
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ if (!ewin->border->part[i].keep_for_shade)
+ continue;
+
+ w = ewin->bits[i].x + ewin->bits[i].w;
+ if (min_w < w)
+ min_w = w;
+
+ h = ewin->bits[i].y + ewin->bits[i].h;
+ if (min_h < h)
+ min_h = h;
+ }
+
+ done:
+ *mw = min_w;
+ *mh = min_h;
+}
+
+int
+BorderWinpartIndex(EWin * ewin, Win win)
+{
+ int i;
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ if (win == ewin->bits[i].win)
+ return i;
+ }
+
+ return -1; /* Not found */
+}
+
+/*
+ * Border event handlers
+ */
+#define DEBUG_BORDER_EVENTS 0
+
+static void
+BorderWinpartEventMouseDown(EWinBit * wbit, XEvent * ev)
+{
+ EWin *ewin = wbit->ewin;
+ int part = wbit - ewin->bits;
+
+ GrabPointerSet(wbit->win, 0, 0);
+
+ wbit->state = STATE_CLICKED;
+#if DEBUG_BORDER_EVENTS
+ Eprintf("BorderWinpartEventMouseDown %#lx %d\n", WinGetXwin(wbit->win),
+ wbit->state);
+#endif
+ BorderWinpartChange(ewin, part, 0);
+
+ FocusHandleClick(ewin, wbit->win);
+
+ if (ewin->border->part[part].aclass)
+ ActionclassEvent(ewin->border->part[part].aclass, ev, ewin);
+}
+
+static void
+BorderWinpartEventMouseUp(EWinBit * wbit, XEvent * ev)
+{
+ EWin *ewin = wbit->ewin;
+ int part = wbit - ewin->bits;
+ int left = wbit->left;
+
+ if (ev)
+ {
+ GrabPointerRelease();
+ ActionsEnd(ewin);
+ }
+
+ if ((wbit->state == STATE_CLICKED) && (!wbit->left))
+ wbit->state = STATE_HILITED;
+ else
+ wbit->state = STATE_NORMAL;
+#if DEBUG_BORDER_EVENTS
+ Eprintf("BorderWinpartEventMouseUp %#lx %d\n", WinGetXwin(wbit->win),
+ wbit->state);
+#endif
+ BorderWinpartChange(ewin, part, 0);
+
+ /* Beware! Actions may destroy the current border */
+ wbit->left = 0;
+
+ if (ev && WinGetXwin(wbit->win) == Mode.events.last_bpress && !left &&
+ ewin->border->part[part].aclass)
+ ActionclassEvent(ewin->border->part[part].aclass, ev, ewin);
+}
+
+static void
+BorderWinpartEventEnter(EWinBit * wbit, XEvent * ev)
+{
+ EWin *ewin = wbit->ewin;
+ int part = wbit - ewin->bits;
+
+#if DEBUG_BORDER_EVENTS
+ Eprintf("BorderWinpartEventEnter %#lx %d\n", WinGetXwin(wbit->win),
+ wbit->state);
+#endif
+ if (wbit->state == STATE_CLICKED)
+ wbit->left = 0;
+#if 0 /* Hmmm.. */
+ else
+#endif
+ {
+ wbit->state = STATE_HILITED;
+ BorderWinpartChange(ewin, part, 0);
+ if (ewin->border->part[part].aclass)
+ ActionclassEvent(ewin->border->part[part].aclass, ev, ewin);
+ }
+}
+
+static void
+BorderWinpartEventLeave(EWinBit * wbit, XEvent * ev)
+{
+ EWin *ewin = wbit->ewin;
+ int part = wbit - ewin->bits;
+
+#if DEBUG_BORDER_EVENTS
+ Eprintf("BorderWinpartEventLeave %#lx %d\n", WinGetXwin(wbit->win),
+ wbit->state);
+#endif
+ if (wbit->state == STATE_CLICKED)
+ wbit->left = 1;
+ else
+ {
+ wbit->state = STATE_NORMAL;
+ BorderWinpartChange(ewin, part, 0);
+ if (ewin->border->part[part].aclass)
+ ActionclassEvent(ewin->border->part[part].aclass, ev, ewin);
+ }
+}
+
+void
+BorderCheckState(EWin * ewin, XEvent * ev)
+{
+ int i;
+
+ for (i = 0; i < ewin->border->num_winparts; i++)
+ {
+ switch (ev->type)
+ {
+ default:
+ break;
+
+ case ButtonRelease:
+ BorderWinpartEventMouseUp(ewin->bits + i, NULL);
+ break;
+ }
+ }
+}
+
+static int
+_BorderAutoshadeTimeout(void *data)
+{
+ EWin *ewin = (EWin *) data;
+
+ if (!EwinFindByPtr(ewin)) /* Check, window may be gone */
+ return 0;
+
+ ewin->timer = NULL;
+ EwinOpShade(ewin, OPSRC_USER, 1);
+
+ return 0;
+}
+
+static void
+BorderFrameHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ EWin *ewin = (EWin *) prm;
+ int x, y;
+
+ switch (ev->type)
+ {
+ case EnterNotify:
+ if (ewin->props.autoshade)
+ {
+ EwinOpShade(ewin, OPSRC_USER, 0);
+ }
+ if (ewin->border->aclass)
+ ActionclassEvent(ewin->border->aclass, ev, ewin);
+ break;
+ case LeaveNotify:
+ if (ewin->props.autoshade && !ewin->state.shaded)
+ {
+ EQueryPointer(EoGetWin(ewin), &x, &y, NULL, NULL);
+ if (x >= 4 && x < EoGetW(ewin) - 4 &&
+ y >= 4 && y < EoGetH(ewin) - 4)
+ break;
+ TIMER_DEL(ewin->timer);
+ TIMER_ADD(ewin->timer, .5, _BorderAutoshadeTimeout, ewin);
+ }
+ if (ewin->border->aclass)
+ ActionclassEvent(ewin->border->aclass, ev, ewin);
+ break;
+ }
+}
+
+static ActionClass *
+BorderWinpartGetAclass(void *data)
+{
+ EWinBit *wbit = (EWinBit *) data;
+ EWin *ewin;
+ int part;
+
+ /* Validate border part */
+ ewin = Mode.mouse_over_ewin;
+ if (!ewin)
+ return NULL;
+
+ part = wbit - ewin->bits;
+ if (part < 0 || part >= ewin->border->num_winparts)
+ return NULL;
+
+ return ewin->border->part[part].aclass;
+}
+
+static void
+BorderWinpartHandleTooltip(EWinBit * wbit)
+{
+ EWin *ewin = wbit->ewin;
+ int part = wbit - ewin->bits;
+
+ if (!ewin->border->part[part].aclass)
+ return;
+ TooltipsSetPending(0, BorderWinpartGetAclass, wbit);
+}
+
+static void
+BorderWinpartHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ EWinBit *wbit = (EWinBit *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ BorderWinpartEventMouseDown(wbit, ev);
+ break;
+ case ButtonRelease:
+ BorderWinpartEventMouseUp(wbit, ev);
+ break;
+ case EnterNotify:
+ /* Beware! Actions may destroy the current border */
+ BorderWinpartHandleTooltip(wbit);
+ BorderWinpartEventEnter(wbit, ev);
+ break;
+ case LeaveNotify:
+ BorderWinpartEventLeave(wbit, ev);
+ break;
+ case MotionNotify:
+ BorderWinpartHandleTooltip(wbit);
+ break;
+ }
+}
+
+/*
+ * Configuration load/save
+ */
+#include "conf.h"
+
+static int
+BorderPartLoad(FILE * fs, char type __UNUSED__, Border * b)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1, i2;
+ char iclass[64], aclass[64], tclass[64], cclass[64];
+ char *piclass, *paclass, *ptclass, *pcclass;
+ char ontop = 1;
+ int flags = FLAG_BUTTON;
+ char isregion = 0, keepshade = 1;
+ int wmin = 0, wmax = 0, hmin = 0, hmax = 0, torigin =
+ 0, txp = 0, txa = 0, typ = 0, tya = 0, borigin = 0;
+ int bxp = 0, bxa = 0, byp = 0, bya = 0;
+
+ piclass = paclass = ptclass = pcclass = NULL;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ i2 = atoi(s2);
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ BorderWinpartAdd(b, piclass, paclass, ptclass, pcclass, ontop,
+ flags, isregion, wmin, wmax, hmin, hmax,
+ torigin, txp, txa, typ, tya,
+ borigin, bxp, bxa, byp, bya, keepshade);
+ goto done;
+ case CONFIG_IMAGECLASS:
+ case BORDERPART_ICLASS:
+ STRCPY(iclass, s2);
+ piclass = iclass;
+ break;
+ case CONFIG_ACTIONCLASS:
+ case BORDERPART_ACLASS:
+ STRCPY(aclass, s2);
+ paclass = aclass;
+ break;
+ case CONFIG_TEXT:
+ case BORDERPART_TEXTCLASS:
+ STRCPY(tclass, s2);
+ ptclass = tclass;
+ break;
+ case CONFIG_CURSOR:
+ STRCPY(cclass, s2);
+ pcclass = cclass;
+ break;
+ case BORDERPART_ONTOP:
+ ontop = i2;
+ break;
+ case BORDERPART_FLAGS:
+ flags = i2;
+ break;
+ case BORDERPART_ISREGION:
+ isregion = i2;
+ break;
+ case BORDERPART_WMIN:
+ wmin = i2;
+ if (!wmax)
+ wmax = wmin;
+ break;
+ case BORDERPART_WMAX:
+ wmax = i2;
+ break;
+ case BORDERPART_HMIN:
+ hmin = i2;
+ if (!hmax)
+ hmax = hmin;
+ break;
+ case BORDERPART_HMAX:
+ hmax = i2;
+ break;
+ case BORDERPART_TORIGIN:
+ torigin = i2;
+ break;
+ case BORDERPART_TXP:
+ txp = i2;
+ break;
+ case BORDERPART_TXA:
+ txa = i2;
+ break;
+ case BORDERPART_TYP:
+ typ = i2;
+ break;
+ case BORDERPART_TYA:
+ tya = i2;
+ break;
+ case BORDERPART_BORIGIN:
+ borigin = i2;
+ break;
+ case BORDERPART_BXP:
+ bxp = i2;
+ break;
+ case BORDERPART_BXA:
+ bxa = i2;
+ break;
+ case BORDERPART_BYP:
+ byp = i2;
+ break;
+ case BORDERPART_BYA:
+ bya = i2;
+ break;
+ case BORDERPART_KEEPSHADE:
+ keepshade = i2;
+ break;
+ default:
+ break;
+ }
+ }
+ err = -1;
+ done:
+ return err;
+}
+
+int
+BorderConfigLoad(FILE * fs)
+{
+ int err = 0;
+ Border *b = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1, i2;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ i2 = atoi(s2);
+
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ goto done;
+ case CONFIG_CLASSNAME:
+ case BORDER_NAME:
+ if (BorderFind(s2))
+ {
+ SkipTillEnd(fs);
+ goto done;
+ }
+ b = BorderCreate(s2);
+ continue;
+ }
+
+ if (!b)
+ break;
+
+ switch (i1)
+ {
+ default:
+ break;
+ case BORDER_INIT:
+ if (i2 != CONFIG_OPEN)
+ break;
+ err = BorderPartLoad(fs, i1, b);
+ if (err)
+ break;
+ break;
+ case BORDER_GROUP_NAME:
+ b->group_border_name = Estrdup(s2);
+ break;
+ case BORDER_LEFT:
+ b->border.left = i2;
+ break;
+ case BORDER_RIGHT:
+ b->border.right = i2;
+ break;
+ case BORDER_TOP:
+ b->border.top = i2;
+ break;
+ case BORDER_BOTTOM:
+ b->border.bottom = i2;
+ break;
+ case BORDER_SHADEDIR:
+ b->shadedir = i2;
+ break;
+ case BORDER_CHANGES_SHAPE:
+ b->changes_shape = i2;
+ break;
+ case CONFIG_ACTIONCLASS:
+ b->aclass = ActionclassFind(s2);
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ return err;
+}
+
+Border *
+BorderCreateFiller(int left, int right, int top, int bottom)
+{
+ Border *b;
+
+ b = BorderCreate("__FILLER");
+ if (!b)
+ return b;
+
+ b->throwaway = 1;
+
+ b->border.left = left;
+ b->border.right = right;
+ b->border.top = top;
+ b->border.bottom = bottom;
+
+ ImageclassGetBlack(); /* Creates the __BLACK ImageClass */
+
+ if (top)
+ BorderWinpartAdd(b, "__BLACK", NULL, NULL, NULL, 1, FLAG_BUTTON, 0,
+ 1, 99999, 1, 99999,
+ -1, 0, 0, 0, 0, -1, 1024, -1, 0, top - 1, 1);
+ if (bottom)
+ BorderWinpartAdd(b, "__BLACK", NULL, NULL, NULL, 1, FLAG_BUTTON, 0,
+ 1, 99999, 1, 99999,
+ -1, 0, 0, 1024, -bottom, -1, 1024, -1, 1024, -1, 1);
+ if (left)
+ BorderWinpartAdd(b, "__BLACK", NULL, NULL, NULL, 1, FLAG_BUTTON, 0,
+ 1, 99999, 1, 99999,
+ -1, 0, 0, 0, top,
+ -1, 0, left - 1, 1024, -(bottom + 1), 1);
+ if (right)
+ BorderWinpartAdd(b, "__BLACK", NULL, NULL, NULL, 1, FLAG_BUTTON, 0,
+ 1, 99999, 1, 99999,
+ -1, 1024, -right, 0, top,
+ -1, 1024, -1, 1024, -(bottom + 1), 1);
+
+ return b;
+}
+
+void
+BordersForeach(void (*func) (Border * b, void *data), void *data)
+{
+ ecore_list_for_each(border_list, (Ecore_For_Each) func, data);
+}
+
+Border **
+BordersGetList(int *pnum)
+{
+ return (Border **) ecore_list_items_get(border_list, pnum);
+}
+
+static ActionClass *
+BorderGetFallbackAclass(void)
+{
+ ActionClass *ac;
+ Action *aa;
+
+ ac = ActionclassFind("__fb_bd_ac");
+ if (ac)
+ return ac;
+
+ /* Create fallback actionclass for the fallback border */
+ ac = ActionclassCreate("__fb_bd_ac", 0);
+ if (!ac)
+ return ac;
+
+ aa = ActionCreate(EVENT_MOUSE_DOWN, 1, 0, 0, 1, 0, NULL, NULL);
+ ActionclassAddAction(ac, aa);
+ ActionAddTo(aa, "wop * mo ptr");
+
+ aa = ActionCreate(EVENT_MOUSE_DOWN, 1, 0, 0, 2, 0, NULL, NULL);
+ ActionclassAddAction(ac, aa);
+ ActionAddTo(aa, "wop * close");
+
+ aa = ActionCreate(EVENT_MOUSE_DOWN, 1, 0, 0, 3, 0, NULL, NULL);
+ ActionclassAddAction(ac, aa);
+ ActionAddTo(aa, "wop * sz ptr");
+
+ return ac;
+}
+
+static Border *
+BorderGetFallback(void)
+{
+ /*
+ * This function creates simple internal data members to be used in
+ * emergencies - ie when all else fails - ie a button is told to use an
+ * imageclass that doesn't exist, or no DEFAULT border is defined... at
+ * least E won't barf on us then.
+ */
+ Border *b;
+ ActionClass *ac;
+
+ b = BorderFind("__fb_bd");
+ if (b)
+ return b;
+
+ ac = BorderGetFallbackAclass(); /* Creates the fallback ac */
+
+ /* Create fallback border */
+ b = BorderCreate("__fb_bd");
+ if (!b)
+ return b;
+
+ b->border.left = 8;
+ b->border.right = 8;
+ b->border.top = 8;
+ b->border.bottom = 8;
+ BorderWinpartAdd(b, "__fb_ic", "__fb_bd_ac", NULL, NULL,
+ 1, FLAG_BUTTON, 0, 8, 99999, 8, 99999, -1, 0, 0, 0, 0,
+ -1, 1024, -1, 0, 7, 1);
+ BorderWinpartAdd(b, "__fb_ic", "__fb_bd_ac", NULL, NULL,
+ 1, FLAG_BUTTON, 0, 8, 99999, 8, 99999, -1, 0, 0, 1024,
+ -8, -1, 1024, -1, 1024, -1, 1);
+ BorderWinpartAdd(b, "__fb_ic", "__fb_bd_ac", NULL, NULL,
+ 1, FLAG_BUTTON, 0, 8, 99999, 8, 99999, -1, 0, 0, 0, 8,
+ -1, 0, 7, 1024, -9, 1);
+ BorderWinpartAdd(b, "__fb_ic", "__fb_bd_ac", NULL, NULL,
+ 1, FLAG_BUTTON, 0, 8, 99999, 8, 99999, -1, 1024, -8, 0,
+ 8, -1, 1024, -1, 1024, -9, 1);
+
+ return b;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _BORDERS_H_
+#define _BORDERS_H_
+
+#include <X11/Xlib.h>
+#include "eimage.h"
+#include "etypes.h"
+
+typedef struct {
+ int min, max;
+} WinLimit;
+
+typedef struct {
+ int originbox;
+ struct {
+ int percent;
+ int absolute;
+ } x , y;
+} WinPoint;
+
+typedef struct {
+ WinLimit width, height;
+ WinPoint topleft, bottomright;
+} Geometry;
+
+typedef struct {
+ Geometry geom;
+ ImageClass *iclass;
+ ActionClass *aclass;
+ TextClass *tclass;
+ ECursor *ec;
+ signed char ontop;
+ int flags;
+ char keep_for_shade;
+} WinPart;
+
+struct _border {
+ char *name;
+ char *group_border_name;
+ EImageBorder border;
+ int num_winparts;
+ WinPart *part;
+ char changes_shape;
+ char shadedir;
+ char throwaway;
+ unsigned int ref_count;
+ ActionClass *aclass;
+};
+
+struct _ewinbit {
+ EWin *ewin; /* Belongs to */
+ Win win;
+ int x, y, w, h;
+ int cx, cy, cw, ch;
+ int state;
+ char expose;
+ char left;
+ ImageState *is;
+ TextState *ts;
+};
+
+/* borders.c */
+Border *BorderFind(const char *name);
+const char *BorderGetName(const Border * b);
+int BorderConfigLoad(FILE * fs);
+void EwinBorderSelect(EWin * ewin);
+void EwinBorderDetach(EWin * ewin);
+void EwinBorderSetTo(EWin * ewin, const Border * b);
+void EwinBorderDraw(EWin * ewin, int do_shape, int do_paint);
+void EwinBorderCalcSizes(EWin * ewin, int propagate);
+void EwinBorderMinShadeSize(EWin * ewin, int *mw, int *mh);
+void EwinBorderUpdateInfo(EWin * ewin);
+void EwinBorderChange(EWin * ewin, const Border * b, int normal);
+void EwinBorderSetInitially(EWin * ewin, const char *name);
+int BorderWinpartIndex(EWin * ewin, Win win);
+void BorderCheckState(EWin * ewin, XEvent * ev);
+Border *BorderCreateFiller(int left, int right, int top,
+ int bottom);
+void BordersForeach(void (*func) (Border * b, void *data),
+ void *data);
+Border **BordersGetList(int *pnum);
+
+#endif /* _BORDERS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "buttons.h"
+#include "cursors.h"
+#include "desktops.h"
+#include "e16-ecore_list.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "file.h"
+#include "grabs.h"
+#include "iclass.h"
+#include "tclass.h"
+#include "tooltips.h"
+#include "xwin.h"
+
+#define BUTTON_EVENT_MASK \
+ (KeyPressMask | KeyReleaseMask | \
+ ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | \
+ PointerMotionMask)
+
+typedef struct {
+ int width_min, width_max;
+ int height_min, height_max;
+ int xorigin, yorigin;
+ int xabs, xrel;
+ int yabs, yrel;
+ int xsizerel, xsizeabs;
+ int ysizerel, ysizeabs;
+ char size_from_image;
+} BGeometry;
+
+struct _button {
+ EObj o;
+ BGeometry geom;
+ ImageClass *iclass;
+ ActionClass *aclass;
+ TextClass *tclass;
+ char *label;
+ int id;
+ int flags;
+ char internal;
+ char default_show;
+ EObj *owner;
+ ButtonCbFunc *func;
+
+ int state;
+ Window inside_win;
+ Window event_win;
+ char left;
+ unsigned int ref_count;
+};
+
+static Ecore_List *button_list = NULL;
+
+static struct {
+ Button *button;
+ char loading_user;
+ char move_pending;
+ char action_inhibit;
+ int start_x, start_y;
+} Mode_buttons;
+
+static void ButtonHandleEvents(Win win, XEvent * ev, void *btn);
+
+#if 0 /* Unused */
+void
+ButtonIncRefcount(Button * b)
+{
+ b->ref_count++;
+}
+
+void
+ButtonDecRefcount(Button * b)
+{
+ b->ref_count--;
+}
+#endif
+
+static int
+ButtonIsFixed(const Button * b)
+{
+ return b->flags & FLAG_FIXED;
+}
+
+static int
+ButtonIsInternal(const Button * b)
+{
+ return b->internal;
+}
+
+Button *
+ButtonCreate(const char *name, int id, const char *iclass,
+ const char *aclass, const char *tclass, const char *label,
+ int ontop, int flags, int minw, int maxw, int minh, int maxh,
+ int xo, int yo, int xa, int xr, int ya, int yr, int xsr, int xsa,
+ int ysr, int ysa, char simg, int desk, char sticky)
+{
+ Button *b;
+
+ if (desk < 0 || desk >= (int)DesksGetNumber())
+ return NULL;
+
+ if (sticky && ontop == 1)
+ desk = 0;
+
+ b = ECALLOC(Button, 1);
+
+ if (!button_list)
+ button_list = ecore_list_new();
+ ecore_list_append(button_list, b);
+
+ b->id = id;
+ b->label = Estrdup(label);
+
+ b->iclass = ImageclassAlloc(iclass, 1);
+ b->aclass = ActionclassAlloc(aclass);
+ if (b->label)
+ b->tclass = TextclassAlloc(tclass, 1);
+
+ b->flags = flags;
+ b->geom.width_min = minw;
+ b->geom.width_max = maxw;
+ b->geom.height_min = minh;
+ b->geom.height_max = maxh;
+ b->geom.xorigin = xo;
+ b->geom.yorigin = yo;
+ b->geom.xabs = xa;
+ b->geom.xrel = xr;
+ b->geom.yabs = ya;
+ b->geom.yrel = yr;
+ b->geom.xsizeabs = xsa;
+ b->geom.xsizerel = xsr;
+ b->geom.ysizeabs = ysa;
+ b->geom.ysizerel = ysr;
+ b->geom.size_from_image = simg;
+ b->default_show = 1;
+
+ EoSetSticky(b, sticky);
+ EoSetDesk(b, DeskGet(desk));
+ EoInit(b, EOBJ_TYPE_BUTTON, None, -100, -100, 50, 50, 0, name);
+ EoSetLayer(b, ontop);
+ EoSetFade(b, 1);
+
+ ESelectInput(EoGetWin(b), BUTTON_EVENT_MASK);
+ EventCallbackRegister(EoGetWin(b), 0, ButtonHandleEvents, b);
+
+ return b;
+}
+
+void
+ButtonDestroy(Button * b)
+{
+ if (!b)
+ return;
+
+ if (b->ref_count > 0)
+ {
+ DialogOK("Button Error!", _("%u references remain\n"), b->ref_count);
+ return;
+ }
+
+ ecore_list_node_remove(button_list, b);
+
+ EoFini(b);
+
+ ImageclassFree(b->iclass);
+ ActionclassFree(b->aclass);
+ TextclassFree(b->tclass);
+ Efree(b->label);
+
+ Efree(b);
+}
+
+static int
+_ButtonMatchName(const void *data, const void *match)
+{
+ return strcmp(EoGetName((const Button *)data), (const char *)match);
+}
+
+Button *
+ButtonFind(const char *name)
+{
+ return (Button *) ecore_list_find(button_list, _ButtonMatchName, name);
+}
+
+static void
+ButtonCalc(Button * b)
+{
+ int w, h, x, y, xo, yo;
+ EImage *im;
+
+ x = 0;
+ y = 0;
+ w = 32;
+ h = 32;
+ if (b->geom.size_from_image)
+ {
+ im = ImageclassGetImage(b->iclass, 0, 0, 0);
+ if (im)
+ {
+ EImageGetSize(im, &w, &h);
+ EImageFree(im);
+ }
+ else
+ {
+ if (!b->iclass)
+ b->iclass = ImageclassAlloc(NULL, 1);
+ w = 32;
+ h = 32;
+ }
+ }
+ else
+ {
+ w = ((b->geom.xsizerel * WinGetW(VROOT)) >> 10) + b->geom.xsizeabs;
+ h = ((b->geom.ysizerel * WinGetH(VROOT)) >> 10) + b->geom.ysizeabs;
+ }
+ if (w > b->geom.width_max)
+ w = b->geom.width_max;
+ else if (w < b->geom.width_min)
+ w = b->geom.width_min;
+ if (h > b->geom.height_max)
+ h = b->geom.height_max;
+ else if (h < b->geom.height_min)
+ h = b->geom.height_min;
+ xo = (w * b->geom.xorigin) >> 10;
+ yo = (h * b->geom.yorigin) >> 10;
+ x = ((b->geom.xrel * WinGetW(VROOT)) >> 10) + b->geom.xabs - xo;
+ y = ((b->geom.yrel * WinGetH(VROOT)) >> 10) + b->geom.yabs - yo;
+
+ EoMoveResize(b, x, y, w, h);
+}
+
+static void
+ButtonDraw(Button * b)
+{
+ ITApply(EoGetWin(b), b->iclass, NULL,
+ b->state, 0, 0, ST_BUTTON, b->tclass, NULL, b->label, 0);
+ EoShapeUpdate(b, 0);
+}
+
+#if 0 /* Unused */
+void
+ButtonDrawWithState(Button * b, int state)
+{
+ b->state = state;
+ ButtonDraw(b);
+}
+#endif
+
+void
+ButtonShow(Button * b)
+{
+ ButtonCalc(b);
+ ButtonDraw(b);
+ EoMap(b, 0);
+}
+
+void
+ButtonSwallowInto(Button * b, EObj * eo)
+{
+ b->internal = 1;
+ b->default_show = 0;
+ b->flags |= FLAG_FIXED;
+ b->owner = eo;
+ b->ref_count++;
+ EobjReparent(EoObj(b), eo, 0, 0);
+ ButtonCalc(b);
+ ButtonDraw(b);
+ EMapWindow(EoGetWin(b));
+}
+
+void
+ButtonSetCallback(Button * b, ButtonCbFunc * func, EObj * eo)
+{
+ b->owner = eo;
+ b->func = func;
+}
+
+static void
+ButtonMoveToDesktop(Button * b, Desk * dsk)
+{
+ if (EoIsSticky(b) && EoGetLayer(b) == 1)
+ dsk = DeskGet(0);
+
+ if (!dsk)
+ return;
+
+ if (EoGetDesk(b) != dsk)
+ EoReparent(b, EoObj(dsk), EoGetX(b), EoGetY(b));
+}
+
+void
+ButtonHide(Button * b)
+{
+ EoUnmap(b);
+}
+
+static void
+ButtonToggle(Button * b)
+{
+ if (b->internal)
+ return;
+
+ if (EoIsShown(b))
+ ButtonHide(b);
+ else
+ ButtonShow(b);
+}
+
+void
+ButtonMoveToCoord(Button * b, int x, int y)
+{
+ int rx, ry, relx, rely, absx, absy;
+
+ if (ButtonIsFixed(b))
+ return;
+
+ if ((x + (EoGetW(b) >> 1)) < (WinGetW(VROOT) / 3))
+ relx = 0;
+ else if ((x + (EoGetW(b) >> 1)) > ((WinGetW(VROOT) * 2) / 3))
+ relx = 1024;
+ else
+ relx = 512;
+ rx = (relx * WinGetW(VROOT)) >> 10;
+ absx = x - rx;
+ if ((y + (EoGetH(b) >> 1)) < (WinGetH(VROOT) / 3))
+ rely = 0;
+ else if ((y + (EoGetH(b) >> 1)) > ((WinGetH(VROOT) * 2) / 3))
+ rely = 1024;
+ else
+ rely = 512;
+ ry = (rely * WinGetH(VROOT)) >> 10;
+ absy = y - ry;
+ if (!(b->flags & FLAG_FIXED_HORIZ))
+ {
+ b->geom.xorigin = 0;
+ b->geom.xabs = absx;
+ b->geom.xrel = relx;
+ }
+ if (!(b->flags & FLAG_FIXED_VERT))
+ {
+ b->geom.yorigin = 0;
+ b->geom.yabs = absy;
+ b->geom.yrel = rely;
+ }
+
+ ButtonCalc(b);
+}
+
+void
+ButtonMoveRelative(Button * b, int dx, int dy)
+{
+ ButtonMoveToCoord(b, EoGetX(b) + dx, EoGetY(b) + dy);
+}
+
+int
+ButtonDoShowDefault(const Button * b)
+{
+ return !b->internal && b->default_show;
+}
+
+#if 0 /* Unused */
+int
+ButtonEmbedWindow(Button * b, Window WindowToEmbed)
+{
+
+ int w, h;
+
+ EReparentWindow(WindowToEmbed, EoGetWin(b), 0, 0);
+ b->inside_win = WindowToEmbed;
+ EGetGeometry(WindowToEmbed, NULL, NULL, NULL, &w, &h, NULL, NULL);
+ EMoveWindow(b->inside_win, (EoGetW(b) - w) >> 1, (EoGetH(b) - h) >> 1);
+ b->event_win = ECreateEventWindow(EoGetWin(b), 0, 0, w, h);
+ EventCallbackRegister(b->event_win, 0, ButtonHandleEvents, b);
+
+ ESelectInput(b->event_win,
+ ButtonPressMask | ButtonReleaseMask | EnterWindowMask |
+ LeaveWindowMask | ButtonMotionMask);
+
+ EMoveWindow(b->event_win, (EoGetW(b) - w) >> 1, (EoGetH(b) - h) >> 1);
+ EMapRaised(b->event_win);
+
+ return 0;
+}
+#endif
+
+static void
+ButtonDragStart(Button * b)
+{
+ if (ButtonIsFixed(b))
+ return;
+
+ GrabPointerSet(EoGetWin(b), ECSR_GRAB, 0);
+ Mode.mode = MODE_BUTTONDRAG;
+ Mode_buttons.move_pending = 1;
+ Mode_buttons.start_x = Mode.events.cx;
+ Mode_buttons.start_y = Mode.events.cy;
+}
+
+static void
+ButtonDragEnd(Button * b)
+{
+ Desk *dsk;
+
+ Mode.mode = MODE_NONE;
+
+ if (!Mode_buttons.move_pending)
+ {
+ dsk = DesktopAt(Mode.events.mx, Mode.events.my);
+ ButtonMoveToDesktop(b, dsk);
+ dsk = EoGetDesk(b);
+ ButtonMoveRelative(b, -EoGetX(dsk), -EoGetY(dsk));
+ }
+ else
+ Mode_buttons.move_pending = 0;
+
+ autosave();
+}
+
+void
+ButtonsForeach(int id, Desk * dsk, void (*func) (Button * b))
+{
+ Button *b;
+
+ ECORE_LIST_FOR_EACH(button_list, b)
+ {
+ if (id >= 0 && id != b->id)
+ continue;
+ if (dsk && dsk != EoGetDesk(b))
+ continue;
+ func(b);
+ }
+}
+
+void
+ButtonsMoveStickyToDesk(Desk * dsk)
+{
+ Button *b;
+
+ ECORE_LIST_FOR_EACH(button_list, b)
+ {
+ if (!EoIsSticky(b) || ButtonIsInternal(b))
+ continue;
+
+ ButtonMoveToDesktop(b, dsk);
+ }
+}
+
+/*
+ * Button event handlers
+ */
+
+static void
+ButtonDoAction(Button * b, XEvent * ev)
+{
+ if (b->owner && b->func)
+ b->func(b->owner, ev, b->aclass);
+ else
+ ActionclassEvent(b->aclass, ev, NULL);
+}
+
+static void
+ButtonEventMouseDown(Button * b, XEvent * ev)
+{
+ Mode_buttons.button = b;
+
+ GrabPointerSet(EoGetWin(b), ECSR_GRAB, 0);
+
+ if (b->inside_win)
+ {
+ Window win = ev->xbutton.window;
+
+ ev->xbutton.window = b->inside_win;
+ EXSendEvent(b->inside_win, ButtonPressMask, ev);
+ ev->xbutton.window = win;
+ }
+
+ b->state = STATE_CLICKED;
+ ButtonDraw(b);
+
+ if (!ButtonIsInternal(b))
+ {
+ ActionClass *ac;
+
+ ac = ActionclassFind("ACTION_BUTTON_DRAG");
+ if (ac && !Mode_buttons.action_inhibit)
+ ActionclassEvent(ac, ev, NULL);
+ }
+
+ if (b->aclass && !Mode_buttons.action_inhibit)
+ ButtonDoAction(b, ev);
+}
+
+static void
+ButtonEventMouseUp(Button * b, XEvent * ev)
+{
+ if (b->inside_win && !Mode_buttons.action_inhibit)
+ {
+ Window win = ev->xbutton.window;
+
+ ev->xbutton.window = b->inside_win;
+ EXSendEvent(b->inside_win, ButtonReleaseMask, ev);
+ ev->xbutton.window = win;
+ }
+
+ if ((b->state == STATE_CLICKED) && (!b->left))
+ b->state = STATE_HILITED;
+ else
+ b->state = STATE_NORMAL;
+ ButtonDraw(b);
+
+ GrabPointerRelease();
+
+ b->left = 0;
+
+ if (Mode.mode == MODE_BUTTONDRAG)
+ ButtonDragEnd(Mode_buttons.button);
+ Mode_buttons.button = NULL;
+
+ if (b->aclass && !b->left && !Mode_buttons.action_inhibit)
+ ButtonDoAction(b, ev);
+ Mode_buttons.action_inhibit = 0;
+}
+
+static void
+ButtonEventMotion(Button * b, XEvent * ev __UNUSED__)
+{
+ int dx, dy;
+
+ if (Mode.mode != MODE_BUTTONDRAG)
+ return;
+
+ dx = Mode.events.mx - Mode.events.px;
+ dy = Mode.events.my - Mode.events.py;
+
+ if (Mode_buttons.move_pending)
+ {
+ int x, y;
+
+ x = Mode.events.mx - Mode_buttons.start_x;
+ y = Mode.events.my - Mode_buttons.start_y;
+ if (x < 0)
+ x = -x;
+ if (y < 0)
+ y = -y;
+ if ((x > Conf.buttons.move_resistance) ||
+ (y > Conf.buttons.move_resistance))
+ Mode_buttons.move_pending = 0;
+ Mode_buttons.action_inhibit = 1;
+ }
+ if (!Mode_buttons.move_pending)
+ ButtonMoveRelative(b, dx, dy);
+}
+
+static void
+ButtonEventMouseIn(Button * b, XEvent * ev)
+{
+ if (b->state == STATE_CLICKED)
+ b->left = 0;
+ else
+ {
+ b->state = STATE_HILITED;
+ ButtonDraw(b);
+ if (b->aclass && !Mode_buttons.action_inhibit)
+ ActionclassEvent(b->aclass, ev, NULL);
+ }
+}
+
+static void
+ButtonEventMouseOut(Button * b, XEvent * ev)
+{
+ if (b->state == STATE_CLICKED)
+ b->left = 1;
+ else
+ {
+ b->state = STATE_NORMAL;
+ ButtonDraw(b);
+ if (b->aclass && !Mode_buttons.action_inhibit)
+ ActionclassEvent(b->aclass, ev, NULL);
+ }
+}
+
+static ActionClass *
+ButtonGetAclass(void *data)
+{
+ Button *b = (Button *) data;
+
+ /* Validate button */
+ if (!ecore_list_goto(button_list, b))
+ return NULL;
+
+ return b->aclass;
+}
+
+static void
+ButtonHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Button *b = (Button *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ ButtonEventMouseDown(b, ev);
+ break;
+ case ButtonRelease:
+ ButtonEventMouseUp(b, ev);
+ break;
+ case MotionNotify:
+ ButtonEventMotion(b, ev);
+ if (b->aclass)
+ TooltipsSetPending(0, ButtonGetAclass, b);
+ break;
+ case EnterNotify:
+ ButtonEventMouseIn(b, ev);
+ break;
+ case LeaveNotify:
+ ButtonEventMouseOut(b, ev);
+ break;
+ }
+
+ if (b->func)
+ b->func(b->owner, ev, NULL);
+}
+
+/*
+ * Configuration load/save
+ */
+#include "conf.h"
+
+int
+ButtonsConfigLoad(FILE * fs)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char *p2;
+ int i1, i2;
+ char name[64], label[64];
+ char iclass[64], aclass[64], tclass[64];
+ Button *bt = NULL;
+ Button *pbt = NULL;
+ int ontop = 0;
+ int flags = 0, minw = 1, maxw = 99999, minh = 1;
+ int maxh = 99999, xo = 0, yo = 0, xa = 0;
+ int xr = 0, ya = 0, yr = 0;
+ int xsr = 0, xsa = 0, ysr = 0, ysa = 0;
+ char simg = 0;
+ int desk = 0;
+ char sticky = 0;
+ char show = 1;
+ char internal = 0;
+
+ name[0] = label[0] = '\0';
+ iclass[0] = aclass[0] = tclass[0] = '\0';
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, &p2, NULL);
+ i2 = atoi(s2);
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ if (!pbt && !Mode_buttons.loading_user)
+ {
+ bt = ButtonCreate(name, 0, iclass, aclass, tclass, label,
+ ontop, flags, minw, maxw, minh, maxh,
+ xo, yo, xa, xr, ya, yr, xsr, xsa, ysr, ysa,
+ simg, desk, sticky);
+ bt->default_show = show;
+ bt->internal = internal;
+ }
+ else if (pbt)
+ {
+ _EFDUP(pbt->label, label);
+ EoSetLayer(pbt, ontop);
+ EoSetSticky(pbt, sticky);
+ ButtonMoveToDesktop(pbt, DeskGet(desk));
+ pbt->iclass = ImageclassFind(iclass, 1);
+ pbt->aclass = ActionclassFind(aclass);
+ pbt->tclass = TextclassFind(tclass, 1);
+ pbt->flags = flags;
+ pbt->internal = internal;
+ pbt->default_show = show;
+ pbt->geom.width_min = minw;
+ pbt->geom.width_max = maxw;
+ pbt->geom.height_min = minh;
+ pbt->geom.height_max = maxh;
+ pbt->geom.xorigin = xo;
+ pbt->geom.yorigin = yo;
+ pbt->geom.xabs = xa;
+ pbt->geom.xrel = xr;
+ pbt->geom.yabs = ya;
+ pbt->geom.yrel = yr;
+ pbt->geom.xsizerel = xsr;
+ pbt->geom.xsizeabs = xsa;
+ pbt->geom.ysizerel = ysr;
+ pbt->geom.ysizeabs = ysa;
+ pbt->geom.size_from_image = simg;
+ }
+ goto done;
+ case CONFIG_CLASSNAME:
+ case BUTTON_NAME:
+ STRCPY(name, s2);
+ pbt = ButtonFind(name);
+ break;
+ case BUTTON_LABEL:
+ STRCPY(label, s2);
+ break;
+ case CONFIG_IMAGECLASS:
+ case BUTTON_ICLASS:
+ STRCPY(iclass, s2);
+ break;
+ case CONFIG_ACTIONCLASS:
+ case BUTTON_ACLASS:
+ STRCPY(aclass, s2);
+ break;
+ case CONFIG_TEXT:
+ STRCPY(tclass, s2);
+ break;
+ case BORDERPART_ONTOP:
+ ontop = i2;
+ break;
+ case BORDERPART_WMIN:
+ minw = i2;
+ break;
+ case BORDERPART_WMAX:
+ maxw = i2;
+ break;
+ case BORDERPART_HMIN:
+ minh = i2;
+ break;
+ case BORDERPART_FLAGS:
+ flags = i2;
+ break;
+ case BORDERPART_HMAX:
+ maxh = i2;
+ break;
+ case BUTTON_XO:
+ xo = i2;
+ break;
+ case BUTTON_YO:
+ yo = i2;
+ break;
+ case BUTTON_XA:
+ xa = i2;
+ break;
+ case BUTTON_XR:
+ xr = i2;
+ break;
+ case BUTTON_YA:
+ ya = i2;
+ break;
+ case BUTTON_YR:
+ yr = i2;
+ break;
+ case BUTTON_XSR:
+ xsr = i2;
+ break;
+ case BUTTON_XSA:
+ xsa = i2;
+ break;
+ case BUTTON_YSR:
+ ysr = i2;
+ break;
+ case BUTTON_YSA:
+ ysa = i2;
+ break;
+ case BUTTON_SIMG:
+ simg = i2;
+ break;
+ case BUTTON_DESK:
+ desk = i2;
+ break;
+ case BUTTON_STICKY:
+ sticky = i2;
+ break;
+ case BUTTON_INTERNAL:
+ internal = i2;
+ break;
+ case BUTTON_SHOW:
+ show = i2;
+ break;
+ default:
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ return err;
+}
+
+static void
+ButtonsConfigLoadUser(void)
+{
+ char s[4096];
+
+ Esnprintf(s, sizeof(s), "%s.buttons", EGetSavePrefix());
+
+ Mode_buttons.loading_user = 1;
+ ConfigFileLoad(s, NULL, ConfigFileRead, 0);
+ Mode_buttons.loading_user = 0;
+}
+
+static void
+ButtonsConfigSave(void)
+{
+ char s[FILEPATH_LEN_MAX], st[FILEPATH_LEN_MAX];
+ FILE *fs;
+ Button *b;
+ int flags;
+
+ if (ecore_list_count(button_list) <= 0)
+ return;
+
+ Etmp(st);
+ fs = fopen(st, "w");
+ if (!fs)
+ return;
+
+ ECORE_LIST_FOR_EACH(button_list, b)
+ {
+ if (b->id != 0 || b->internal)
+ continue;
+
+ fprintf(fs, "4 999\n");
+ fprintf(fs, "100 %s\n", EoGetName(b));
+ if (b->iclass)
+ fprintf(fs, "12 %s\n", ImageclassGetName(b->iclass));
+ if (b->aclass)
+ fprintf(fs, "11 %s\n", ActionclassGetName(b->aclass));
+ if (EoGetLayer(b) >= 0)
+ fprintf(fs, "453 %i\n", EoGetLayer(b));
+ fprintf(fs, "456 %i\n", b->geom.width_min);
+ fprintf(fs, "457 %i\n", b->geom.width_max);
+ fprintf(fs, "468 %i\n", b->geom.height_min);
+ fprintf(fs, "469 %i\n", b->geom.height_max);
+ fprintf(fs, "528 %i\n", b->geom.xorigin);
+ fprintf(fs, "529 %i\n", b->geom.yorigin);
+ fprintf(fs, "530 %i\n", b->geom.xabs);
+ fprintf(fs, "531 %i\n", b->geom.xrel);
+ fprintf(fs, "532 %i\n", b->geom.yabs);
+ fprintf(fs, "533 %i\n", b->geom.yrel);
+ fprintf(fs, "534 %i\n", b->geom.xsizerel);
+ fprintf(fs, "535 %i\n", b->geom.xsizeabs);
+ fprintf(fs, "536 %i\n", b->geom.ysizerel);
+ fprintf(fs, "537 %i\n", b->geom.ysizeabs);
+ fprintf(fs, "538 %i\n", b->geom.size_from_image);
+ fprintf(fs, "539 %i\n", EoGetDeskNum(b));
+ fprintf(fs, "540 %i\n", EoIsSticky(b));
+ fprintf(fs, "542 %i\n", EoIsShown(b));
+
+ if (b->flags)
+ {
+ flags = 0;
+ if (((b->flags & FLAG_FIXED_HORIZ) &&
+ (b->flags & FLAG_FIXED_VERT)) || (b->flags & FLAG_FIXED))
+ flags = 2;
+ else if (b->flags & FLAG_FIXED_HORIZ)
+ flags = 3;
+ else if (b->flags & FLAG_FIXED_VERT)
+ flags = 4;
+ else if (b->flags & FLAG_TITLE)
+ flags = 0;
+ else if (b->flags & FLAG_MINIICON)
+ flags = 1;
+ fprintf(fs, "454 %i\n", flags);
+ }
+ fprintf(fs, "1000\n");
+ }
+
+ fclose(fs);
+
+ Esnprintf(s, sizeof(s), "%s.buttons", EGetSavePrefix());
+ E_mv(st, s);
+}
+
+/*
+ * Buttons Module
+ */
+
+static void
+ButtonsSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ memset(&Mode_buttons, 0, sizeof(Mode_buttons));
+ break;
+
+ case ESIGNAL_CONFIGURE:
+ ButtonsConfigLoadUser();
+ break;
+
+ case ESIGNAL_EXIT:
+ if (Mode.wm.save_ok)
+ ButtonsConfigSave();
+ break;
+ }
+}
+
+typedef struct {
+ int id;
+ int match;
+ const char *regex;
+} button_match_data;
+
+static void
+_ButtonHideShow(void *data, void *prm)
+{
+ Button *b = (Button *) data;
+ button_match_data *bmd = (button_match_data *) prm;
+ int match;
+
+ if (bmd->id >= 0 && bmd->id != b->id)
+ return;
+
+ if (bmd->regex)
+ {
+ match = matchregexp(bmd->regex, EoGetName(b));
+ if ((match && !bmd->match) || (!match && bmd->match))
+ return;
+#if ENABLE_DESKRAY
+ if (!strcmp(EoGetName(b), "_DESKTOP_DESKRAY_DRAG_CONTROL"))
+ return;
+#endif
+ }
+
+ ButtonToggle(b);
+}
+
+static void
+doHideShowButton(const char *params)
+{
+ char s[1024];
+ const char *ss;
+ int len;
+ button_match_data bmd = { -1, 1, NULL };
+ Button *b;
+
+ if (!params)
+ {
+ bmd.id = 0;
+ ecore_list_for_each(button_list, _ButtonHideShow, &bmd);
+ goto done;
+ }
+
+ s[0] = '\0';
+ len = 0;
+ sscanf(params, "%1000s %n", s, &len);
+ ss = (len > 0) ? params + len : NULL;
+
+ if (!strcmp(s, "button"))
+ {
+ sscanf(params, "%*s %1000s", s);
+ b = ButtonFind(s);
+ if (b)
+ ButtonToggle(b);
+ }
+ else if (!strcmp(s, "buttons"))
+ {
+ if (!ss)
+ return;
+
+ bmd.regex = ss;
+ ecore_list_for_each(button_list, _ButtonHideShow, &bmd);
+ }
+ else if (!strcmp(s, "all_buttons_except"))
+ {
+ if (!ss)
+ return;
+
+ bmd.id = 0;
+ bmd.match = 0;
+ bmd.regex = ss;
+ ecore_list_for_each(button_list, _ButtonHideShow, &bmd);
+ }
+ else if (!strcmp(s, "all"))
+ {
+ ecore_list_for_each(button_list, _ButtonHideShow, &bmd);
+ }
+
+ done:
+ autosave();
+}
+
+static void
+ButtonsIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+ Button *b;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ IpcPrintf("Win d s l x y w h name\n");
+ ECORE_LIST_FOR_EACH(button_list, b)
+ IpcPrintf("%#lx %2d %2d %2d %5d+%5d %5dx%5d %s\n",
+ EoGetXwin(b), EoGetDeskNum(b), EoIsSticky(b),
+ EoGetLayer(b), EoGetX(b), EoGetY(b), EoGetW(b), EoGetH(b),
+ EoGetName(b));
+ }
+ else if (!strncmp(cmd, "move", 2))
+ {
+ if (Mode_buttons.button)
+ ButtonDragStart(Mode_buttons.button);
+ }
+}
+
+static void
+IPC_ButtonShow(const char *params)
+{
+ doHideShowButton(params);
+}
+
+static const IpcItem ButtonsIpcArray[] = {
+ {
+ ButtonsIpc,
+ "button", "btn",
+ "Button functions",
+ " button list List buttons\n"},
+ {
+ IPC_ButtonShow,
+ "button_show", NULL,
+ "Show or Hide buttons on desktop",
+ "use \"button_show <button/buttons/all_buttons_except/all> "
+ "<BUTTON_STRING>\"\nexamples: \"button_show buttons all\" "
+ "(removes all buttons and the dragbar)\n\"button_show\" "
+ "(removes all buttons)\n \"button_show buttons CONFIG*\" "
+ "(removes all buttons with CONFIG in the start)\n"},
+};
+#define N_IPC_FUNCS (sizeof(ButtonsIpcArray)/sizeof(IpcItem))
+
+#if 0
+static const CfgItem ButtonsCfgItems[] = {
+ CFG_ITEM_BOOL(Conf.buttons, enable, 1),
+};
+#define N_CFG_ITEMS (sizeof(ButtonsCfgItems)/sizeof(CfgItem))
+#endif
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModButtons;
+const EModule ModButtons = {
+ "buttons", "btn",
+ ButtonsSighan,
+ {N_IPC_FUNCS, ButtonsIpcArray},
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _BUTTONS_H_
+#define _BUTTONS_H_
+
+#include <X11/Xlib.h>
+#include "eobj.h"
+#include "etypes.h"
+
+typedef void (ButtonCbFunc) (EObj * eo, XEvent * ev, ActionClass * ac);
+
+/* buttons.c */
+Button *ButtonCreate(const char *name, int id, const char *iclass,
+ const char *aclass, const char *tclass,
+ const char *label, int ontop, int flags,
+ int minw, int maxw, int minh, int maxh, int xo,
+ int yo, int xa, int xr, int ya, int yr,
+ int xsr, int xsa, int ysr, int ysa, char simg,
+ int desk, char sticky);
+void ButtonDestroy(Button * b);
+Button *ButtonFind(const char *name);
+void ButtonShow(Button * b);
+void ButtonHide(Button * b);
+void ButtonMoveToCoord(Button * b, int x, int y);
+void ButtonMoveRelative(Button * b, int dx, int dy);
+void ButtonSwallowInto(Button * b, EObj * eo);
+void ButtonSetCallback(Button * b, ButtonCbFunc * func,
+ EObj * eo);
+int ButtonDoShowDefault(const Button * b);
+int ButtonEmbedWindow(Button * ButtonToUse,
+ Window WindowToEmbed);
+
+void ButtonsForeach(int id, Desk * dsk,
+ void (*func) (Button * b));
+void ButtonsMoveStickyToDesk(Desk * d);
+int ButtonsConfigLoad(FILE * fs);
+
+#endif /* _BUTTONS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "comms.h"
+#include "hints.h"
+#include "ipc.h"
+#include "e16-ecore_hints.h"
+#include "e16-ecore_list.h"
+#include "xwin.h"
+
+typedef struct {
+ char *name;
+ Window xwin;
+ char *msg;
+ char *clientname;
+ char *version;
+ char *info;
+ char replied;
+} Client;
+
+static void CommsSend(Client * c, const char *s);
+
+static Ecore_List *client_list = NULL;
+
+static Win comms_win = NULL;
+
+static Client *
+ClientCreate(Window xwin)
+{
+ Client *c;
+ char st[32];
+
+ c = ECALLOC(Client, 1);
+ if (!c)
+ return NULL;
+
+ Esnprintf(st, sizeof(st), "%8x", (int)xwin);
+ c->name = Estrdup(st);
+ c->xwin = xwin;
+
+ if (!client_list)
+ client_list = ecore_list_new();
+ ecore_list_prepend(client_list, c);
+
+ return c;
+}
+
+static void
+ClientDestroy(Client * c)
+{
+ if (!c)
+ return;
+
+ ecore_list_node_remove(client_list, c);
+
+ Efree(c->name);
+ Efree(c->msg);
+ Efree(c->clientname);
+ Efree(c->version);
+ Efree(c->info);
+
+ Efree(c);
+}
+
+static int
+ClientConfigure(Client * c, const char *str)
+{
+ char param[64];
+ const char *value;
+ int len;
+
+ len = 0;
+ sscanf(str, "%*s %60s %n", param, &len);
+ value = str + len;
+
+ if (!strcmp(param, "clientname"))
+ {
+ Efree(c->clientname);
+ c->clientname = Estrdup(value);
+ }
+ else if (!strcmp(param, "version"))
+ {
+ Efree(c->version);
+ c->version = Estrdup(value);
+ }
+ else if (!strcmp(param, "author"))
+ {
+ }
+ else if (!strcmp(param, "email"))
+ {
+ }
+ else if (!strcmp(param, "web"))
+ {
+ }
+ else if (!strcmp(param, "address"))
+ {
+ }
+ else if (!strcmp(param, "info"))
+ {
+ Efree(c->info);
+ c->info = Estrdup(value);
+ }
+ else if (!strcmp(param, "pixmap"))
+ {
+ }
+ else
+ {
+ return -1;
+ }
+
+ return 0;
+}
+
+static int
+ClientMatchWindow(const void *data, const void *match)
+{
+ return ((const Client *)data)->xwin != (Window) match;
+}
+
+static Client *
+ClientFind(Window xwin)
+{
+ return (Client *) ecore_list_find(client_list, ClientMatchWindow,
+ (void *)xwin);
+}
+
+static char *
+ClientCommsGet(Client ** c, XClientMessageEvent * ev)
+{
+ char s[13], s2[9], *msg;
+ unsigned int i;
+ Window xwin;
+ Client *cl;
+
+ if ((!ev) || (!c))
+ return NULL;
+ if (ev->message_type != E16_ATOM_COMMS_MSG)
+ return NULL;
+
+ s[12] = 0;
+ s2[8] = 0;
+ for (i = 0; i < 8; i++)
+ s2[i] = ev->data.b[i];
+ for (i = 0; i < 12; i++)
+ s[i] = ev->data.b[i + 8];
+ xwin = None;
+ sscanf(s2, "%lx", &xwin);
+ if (xwin == None)
+ return NULL;
+ cl = ClientFind(xwin);
+ if (!cl)
+ {
+ cl = ClientCreate(xwin);
+ if (!cl)
+ return NULL;
+ }
+
+ /* append text to end of msg */
+ i = (cl->msg) ? strlen(cl->msg) : 0;
+ cl->msg = EREALLOC(char, cl->msg, i + strlen(s) + 1);
+ if (!cl->msg)
+ return NULL;
+ strcpy(cl->msg + i, s);
+
+ msg = NULL;
+ if (strlen(s) < 12)
+ {
+ msg = cl->msg;
+ cl->msg = NULL;
+ *c = cl;
+ }
+
+ return msg;
+}
+
+static void
+ClientIpcReply(void *data, const char *str)
+{
+ Client *c = (Client *) data;
+
+ if (!str)
+ {
+ /* Don't send empty replies (ack's) if we ever have replied to this
+ * client. Without this hack communication with e.g. epplets fails. */
+ if (c->replied)
+ return;
+ str = "";
+ }
+ CommsSend(c, str);
+ c->replied = 1;
+}
+
+static void
+ClientHandleComms(XClientMessageEvent * ev)
+{
+ Client *c;
+ char *s;
+
+ s = ClientCommsGet(&c, ev);
+ if (!s)
+ return;
+
+ if (EDebug(EDBUG_TYPE_IPC))
+ Eprintf("ClientHandleComms: %s\n", s);
+
+ if (!strncmp(s, "set ", 4))
+ {
+ /* The old Client set command (used by epplets) */
+ if (ClientConfigure(c, s) == 0)
+ goto done;
+ }
+
+ if (!IpcExecReply(s, ClientIpcReply, c))
+ {
+ const char *s1, *s2;
+
+ s1 = (c->clientname) ? c->clientname : "UNKNOWN";
+ s2 = (c->version) ? c->version : "UNKNOWN";
+ DialogOK(_("E IPC Error"),
+ _("Received Unknown Client Message.\n"
+ "Client Name: %s\n" "Client Version: %s\n"
+ "Message Contents:\n\n" "%s\n"), s1, s2, s);
+ SoundPlay(SOUND_ERROR_IPC);
+ }
+
+ done:
+ Efree(s);
+}
+
+static void
+ClientHandleRootEvents(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
+{
+ Client *c;
+
+#if 0
+ Eprintf("ClientHandleRootEvents: type=%d win=%#lx\n", ev->type,
+ ev->xany.window);
+#endif
+ switch (ev->type)
+ {
+ case DestroyNotify:
+ c = ClientFind(ev->xdestroywindow.window);
+ if (!c)
+ break;
+ ClientDestroy(c);
+ break;
+ }
+}
+
+static void
+ClientHandleCommsEvents(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
+{
+#if 0
+ Eprintf("ClientHandleCommsEvents: type=%d win=%#lx\n", ev->type,
+ ev->xany.window);
+#endif
+ switch (ev->type)
+ {
+ case ClientMessage:
+ ClientHandleComms(&(ev->xclient));
+ break;
+ }
+}
+
+void
+CommsInit(void)
+{
+ char s[1024];
+
+ comms_win = ECreateEventWindow(VROOT, -100, -100, 5, 5);
+ ESelectInput(comms_win, StructureNotifyMask | SubstructureNotifyMask);
+ EventCallbackRegister(comms_win, 0, ClientHandleCommsEvents, NULL);
+ EventCallbackRegister(VROOT, 0, ClientHandleRootEvents, NULL);
+
+ Esnprintf(s, sizeof(s), "WINID %8lx", WinGetXwin(comms_win));
+ ecore_x_window_prop_string_set(WinGetXwin(comms_win), E16_ATOM_COMMS_WIN, s);
+ ecore_x_window_prop_string_set(WinGetXwin(VROOT), E16_ATOM_COMMS_WIN, s);
+}
+
+static void
+CommsDoSend(Window win, const char *s)
+{
+ char ss[21];
+ int i, j, k, len;
+ XEvent ev;
+
+ if ((!win) || (!s))
+ return;
+
+ len = strlen(s);
+ ev.xclient.type = ClientMessage;
+ ev.xclient.serial = 0;
+ ev.xclient.send_event = True;
+ ev.xclient.window = win;
+ ev.xclient.message_type = E16_ATOM_COMMS_MSG;
+ ev.xclient.format = 8;
+ for (i = 0; i < len + 1; i += 12)
+ {
+ Esnprintf(ss, sizeof(ss), "%8lx", WinGetXwin(comms_win));
+ for (j = 0; j < 12; j++)
+ {
+ ss[8 + j] = s[i + j];
+ if (!s[i + j])
+ j = 12;
+ }
+ ss[20] = 0;
+ for (k = 0; k < 20; k++)
+ ev.xclient.data.b[k] = ss[k];
+ EXSendEvent(win, 0, (XEvent *) & ev);
+ }
+}
+
+static void
+CommsSend(Client * c, const char *s)
+{
+ if (!c)
+ return;
+
+ CommsDoSend(c->xwin, s);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _COMMS_H_
+#define _COMMS_H_
+
+void CommsInit(void);
+
+#endif /* _COMMS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#define CONFIG_TEXT 1
+#define CONFIG_MENU 2
+#define CONFIG_BORDER 3
+#define CONFIG_BUTTON 4
+#define CONFIG_DESKTOP 5
+#define CONFIG_ICONBOX 6
+#define CONFIG_KEYBIND 8
+#define CONFIG_SOUND 9
+#define CONFIG_ACTIONCLASS 11
+#define CONFIG_IMAGECLASS 12
+#define CONFIG_WINDOWMATCH 14
+#define CONFIG_COLORMOD 15
+#define CONFIG_SLIDEOUT 16
+#define CONFIG_TOOLTIP 17
+#define CONFIG_IBOX 19
+
+#define CONFIG_CLASSNAME 100
+#define CONFIG_MODIFIER 101
+#define CONFIG_TYPE 102
+#define CONFIG_ANYMOD 103
+#define CONFIG_ACTION 104
+#define CONFIG_NEXT 105
+#define CONFIG_INHERIT 106
+#define CONFIG_ACTION_TOOLTIP 107
+
+#define TEXT_ORIENTATION 200
+#define TEXT_JUSTIFICATION 201
+#define TEXT_MODE 202
+#define TEXT_FONTNAME 203
+#define TEXT_EFFECT 204
+#define TEXT_FG_COL 205
+#define TEXT_BG_COL 206
+
+#define ICLASS_NAME 350
+#define ICLASS_NORMAL 351
+#define ICLASS_CLICKED 352
+#define ICLASS_HILITED 353
+#define ICLASS_ACTIVE_NORMAL 354
+#define ICLASS_ACTIVE_CLICKED 355
+#define ICLASS_ACTIVE_HILITED 356
+#define ICLASS_LRTB 357
+#define ICLASS_PADDING 358
+#define ICLASS_STICKY_NORMAL 359
+#define ICLASS_STICKY_CLICKED 360
+#define ICLASS_STICKY_HILITED 361
+#define ICLASS_STICKY_ACTIVE_NORMAL 362
+#define ICLASS_STICKY_ACTIVE_CLICKED 363
+#define ICLASS_STICKY_ACTIVE_HILITED 364
+#define ICLASS_DISABLED 366
+#define ICLASS_ACTIVE_DISABLED 367
+#define ICLASS_STICKY_DISABLED 368
+#define ICLASS_STICKY_ACTIVE_DISABLED 369
+#define ICLASS_COLORMOD 370
+#define ICLASS_FILLRULE 371
+#define ICLASS_TRANSPARENT 372
+#define ICLASS_ROTATE 373
+#define ICLASS_BEVEL 374
+
+#define DESKTOP_DRAGDIR 400
+#define DESKTOP_DRAGBAR_WIDTH 401
+#define DESKTOP_DRAGBAR_ORDERING 402
+#define DESKTOP_DRAGBAR_LENGTH 403
+#define DESKTOP_SLIDEIN 404
+#define DESKTOP_SLIDESPEED 405
+#define DESKTOP_HIQUALITYBG 406
+#define DESKTOP_AREA_SIZE 407
+
+#define ACLASS_NAME 420
+#define ACLASS_TYPE 421
+#define ACLASS_MODIFIER 422
+#define ACLASS_ANYMOD 423
+#define ACLASS_ANYBUT 424
+#define ACLASS_BUT 425
+#define ACLASS_ANYKEY 426
+#define ACLASS_KEY 427
+#define ACLASS_EVENT_TRIGGER 428
+#define ACLASS_ACTION 429
+
+#define ACLASS_TYPE_ACLASS 5
+
+#define BORDERPART_ICLASS 450
+#define BORDERPART_ACLASS 451
+#define BORDERPART_TEXTCLASS 452
+#define BORDERPART_ONTOP 453
+#define BORDERPART_FLAGS 454
+#define BORDERPART_ISREGION 455
+#define BORDERPART_WMIN 456
+#define BORDERPART_WMAX 457
+#define BORDERPART_TXP 458
+#define BORDERPART_TXA 459
+#define BORDERPART_TYP 460
+#define BORDERPART_TYA 461
+#define BORDERPART_BORIGIN 462
+#define BORDERPART_BXP 463
+#define BORDERPART_BXA 464
+#define BORDERPART_BYP 465
+#define BORDERPART_BYA 466
+#define BORDERPART_TORIGIN 467
+#define BORDERPART_HMIN 468
+#define BORDERPART_HMAX 469
+#define BORDERPART_KEEPSHADE 470
+
+#define WINDOWMATCH_USEBORDER 480
+#define WINDOWMATCH_MATCHNAME 481
+#define WINDOWMATCH_MATCHCLASS 482
+#define WINDOWMATCH_MATCHTITLE 483
+#define WINDOWMATCH_WIDTH 484
+#define WINDOWMATCH_HEIGHT 485
+#define WINDOWMATCH_TRANSIENT 486
+#define WINDOWMATCH_NO_RESIZE_H 487
+#define WINDOWMATCH_NO_RESIZE_V 488
+#define WINDOWMATCH_SHAPED 489
+#define WINDOWMATCH_ICON 490
+#define WINDOWMATCH_DESKTOP 491
+#define WINDOWMATCH_MAKESTICKY 492
+
+#define BORDER_NAME 500
+#define BORDER_LEFT 501
+#define BORDER_RIGHT 502
+#define BORDER_TOP 503
+#define BORDER_BOTTOM 504
+#define BORDER_INIT 505
+#define BORDER_SHADEDIR 506
+#define BORDER_CHANGES_SHAPE 507
+#define BORDER_GROUP_NAME 508
+
+#define BUTTON_NAME 520
+#define BUTTON_ACLASS 521
+#define BUTTON_ICLASS 522
+#define BUTTON_MINW 523
+#define BUTTON_MAXW 524
+#define BUTTON_FLAGS 525
+#define BUTTON_MAXH 526
+#define BUTTON_MINH 527
+#define BUTTON_XO 528
+#define BUTTON_YO 529
+#define BUTTON_XA 530
+#define BUTTON_XR 531
+#define BUTTON_YA 532
+#define BUTTON_YR 533
+#define BUTTON_XSR 534
+#define BUTTON_YSR 535
+#define BUTTON_XSA 536
+#define BUTTON_YSA 537
+#define BUTTON_SIMG 538
+#define BUTTON_DESK 539
+#define BUTTON_STICKY 540
+#define BUTTON_INTERNAL 541
+#define BUTTON_SHOW 542
+#define BUTTON_LABEL 543
+
+#define BG_RGB 560
+#define BG_BG1 561
+#define BG_BG2 562
+#define BG_NAME 563
+#define BG_DESKNUM 564
+
+#define KEY_CLASSNAME 580
+#define KEY_MODIFIER 581
+#define KEY_MOD 582
+#define KEY_ANYBUT 583
+#define KEY_BUT 584
+#define KEY_ANYKEY 585
+#define KEY_KEY 586
+#define KEY_BINDACLASS 587
+
+#define COLORMOD_RED 600
+#define COLORMOD_GREEN 601
+#define COLORMOD_BLUE 602
+
+#define SLIDEOUT_DIRECTION 620
+
+#define TOOLTIP_DRAWICLASS 640
+#define TOOLTIP_BUBBLE1 641
+#define TOOLTIP_BUBBLE2 642
+#define TOOLTIP_BUBBLE3 643
+#define TOOLTIP_BUBBLE4 644
+#define TOOLTIP_DISTANCE 645
+#define TOOLTIP_HELP_PIC 646
+
+#define MENU_STYLE 699
+#define MENU_BG_ICLASS 700
+#define MENU_ITEM_ICLASS 701
+#define MENU_SUBMENU_ICLASS 702
+#define MENU_USE_ITEM_BACKGROUND 703
+#define MENU_MAX_COLUMNS 704
+#define MENU_MAX_ROWS 705
+#define MENU_USE_STYLE 706
+#define MENU_ITEM 707
+#define MENU_SUBMENU 708
+#define MENU_ACTION 709
+#define MENU_PREBUILT 710
+#define MENU_TITLE 711
+
+#define MASK_NONE 0
+#define MASK_SHIFT 900
+#define MASK_LOCK 901
+#define MASK_CTRL 902
+#define MASK_MOD1 903
+#define MASK_MOD2 904
+#define MASK_MOD3 905
+#define MASK_MOD4 906
+#define MASK_MOD5 907
+#define MASK_CTRL_ALT 910
+#define MASK_CTRL_SHIFT 911
+#define MASK_SHIFT_ALT 912
+#define MASK_CTRL_SHIFT_ALT 913
+#define MASK_CTRL_META4 914
+#define MASK_SHIFT_META4 915
+#define MASK_CTRL_META4_SHIFT 916
+#define MASK_CTRL_META5 917
+#define MASK_SHIFT_META5 918
+#define MASK_CTRL_META5_SHIFT 919
+#define MASK_WINDOWS_SHIFT 920
+#define MASK_WINDOWS_CTRL 921
+#define MASK_WINDOWS_ALT 922
+
+#define CONFIG_ANYBUT 930
+#define CONFIG_ANYKEY 931
+#define CONFIG_OPEN 999
+#define CONFIG_CLOSE 1000
+
+#define CONFIG_CURSOR 800
+#define CURS_BG_RGB 801
+#define CURS_FG_RGB 802
+#define XBM_FILE 803
+#define NATIVE_ID 804
+
+#define CONFIG_VERSION 1001
+#define CONFIG_INVALID 9999
+
+#define CONFIG_TRANSPARENCY 2001
+#define CONFIG_SHOW_NAMES 2002
+#define CONFIG_ICON_SIZE 2003
+#define CONFIG_ICON_MODE 2004
+#define CONFIG_SCROLLBAR_SIDE 2005
+#define CONFIG_SCROLLBAR_ARROWS 2006
+#define CONFIG_AUTOMATIC_RESIZE 2007
+#define CONFIG_SHOW_ICON_BASE 2008
+#define CONFIG_SCROLLBAR_AUTOHIDE 2009
+#define CONFIG_COVER_HIDE 2010
+#define CONFIG_RESIZE_ANCHOR 2011
+#define CONFIG_IB_ANIMATE 2012
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "backgrounds.h"
+#include "borders.h"
+#include "buttons.h"
+#include "conf.h"
+#include "file.h"
+#include "iclass.h"
+#include "menus.h"
+#include "progress.h"
+#include "session.h"
+#include "tclass.h"
+#include "tooltips.h"
+#include "user.h"
+#include "windowmatch.h"
+
+#define MAX_E_CFG_VERSION 2 /* Max. supported configuration version */
+
+void
+SkipTillEnd(FILE * fs)
+{
+ char s[FILEPATH_LEN_MAX];
+ int i1, i2, fields;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = i2 = 0;
+ fields = sscanf(s, "%i %i", &i1, &i2);
+ if (i1 == CONFIG_CLOSE)
+ return;
+ if (i2 == CONFIG_OPEN)
+ SkipTillEnd(fs);
+ }
+}
+
+#define LINE_BUFFER_SIZE 1024
+/*
+ * This function will get a single line from the file
+ * The string will be null terminated.
+ * Size must be >= 2.
+ */
+char *
+GetLine(char *s, int size, FILE * f)
+{
+ static char *buffer = NULL;
+ static const char *bufptr = NULL;
+ char *so, ch, quote, escape;
+ const char *si;
+ size_t nr;
+
+ if (buffer == NULL)
+ {
+ buffer = EMALLOC(char, LINE_BUFFER_SIZE);
+
+ if (buffer == NULL)
+ return NULL;
+ buffer[LINE_BUFFER_SIZE - 1] = '\0';
+ }
+
+ si = bufptr;
+ so = s;
+ quote = '\0';
+ escape = '\0';
+ for (;;)
+ {
+ /* Get a line from the input file */
+ if (si == NULL)
+ {
+ nr = fread(buffer, 1, LINE_BUFFER_SIZE - 1, f);
+ if (nr == 0)
+ break;
+ buffer[nr] = '\0';
+ si = buffer;
+ }
+
+ /* Split on ';' or '\n', handle quoting */
+ ch = *si++;
+ switch (ch)
+ {
+ case '\0':
+ si = NULL;
+ break;
+ case ';': /* Line separator */
+ if (escape || quote)
+ goto case_char;
+ case '\n':
+ if (so == s) /* Skip empty lines */
+ break;
+ *so = '\0'; /* Terminate and return */
+ goto done;
+ case '\r': /* Ignore */
+ break;
+ case '\\': /* Escape */
+ if (escape)
+ goto case_char;
+ escape = ch;
+ break;
+ case '"': /* Quoting */
+/* case '\'': */
+ if (escape)
+ goto case_char;
+ if (quote == '\0')
+ quote = ch;
+ else if (quote == ch)
+ quote = '\0';
+ else
+ goto case_char;
+ break;
+ case ' ': /* Whitespace */
+ case '\t':
+ if (so == s) /* Skip leading whitespace */
+ break;
+ case_char: /* Normal character */
+ default:
+ *so++ = ch;
+ escape = '\0';
+ if (--size > 1)
+ break;
+ *so = '\0';
+ goto done;
+ }
+ }
+
+ done:
+ bufptr = si;
+ if (si == NULL)
+ {
+ /* EOF */
+ Efree(buffer);
+ buffer = NULL;
+ if (so == s)
+ return NULL;
+ }
+
+ /* Strip trailing whitespace */
+ si = so;
+ for (; so > s; so--)
+ {
+ ch = so[-1];
+ if (ch != ' ' && ch != '\t')
+ break;
+ }
+ if (so != si)
+ *so = '\0';
+
+ if (EDebug(EDBUG_TYPE_CONFIG) > 1)
+ Eprintf("GetLine %s\n", s);
+
+ return s;
+}
+
+int
+ConfigParseline1(char *str, char *s2, char **p2, char **p3)
+{
+ int i1, len1, len2, fields;
+
+ i1 = CONFIG_INVALID;
+ len1 = len2 = 0;
+ s2[0] = '\0';
+ fields = sscanf(str, "%i %n%4000s %n", &i1, &len1, s2, &len2);
+ if (p2)
+ *p2 = (len1) ? str + len1 : NULL;
+ if (p3)
+ *p3 = (len2) ? str + len2 : NULL;
+
+ if (fields <= 0)
+ {
+ i1 = CONFIG_INVALID;
+ }
+ else if (i1 == CONFIG_CLOSE || i1 == CONFIG_NEXT)
+ {
+ if (fields != 1)
+ {
+ Alert(_("CONFIG: ignoring extra data in \"%s\"\n"), str);
+ }
+ }
+ else if (i1 != CONFIG_INVALID)
+ {
+ if (fields != 2)
+ {
+ i1 = CONFIG_INVALID;
+ Alert(_("CONFIG: missing required data in \"%s\"\n"), str);
+ }
+ }
+
+ return i1;
+}
+
+void
+ConfigParseError(const char *where, const char *line)
+{
+ Alert(_("Warning: unable to determine what to do with\n"
+ "the following text in the middle of current %s definition:\n"
+ "%s\nWill ignore and continue...\n"), where, line);
+}
+
+void
+ConfigAlertLoad(const char *txt)
+{
+ Alert(_("Warning: Configuration error in %s block.\n"
+ "Outcome is likely not good.\n"), txt);
+}
+
+static int
+ConfigFilePreparse(const char *src, const char *dst, const char *themepath)
+{
+ char execline[FILEPATH_LEN_MAX];
+ const char *epp_path = ENLIGHTENMENT_BIN "/epp";
+ char *def_home, *def_user, *def_shell;
+
+ if (EDebug(EDBUG_TYPE_CONFIG))
+ Eprintf("ConfigFilePreparse %s -> %s\n", src, dst);
+
+ def_home = homedir(getuid());
+ def_user = username(getuid());
+ def_shell = usershell(getuid());
+
+ /* When themepath is NULL it shouldn't be used, but this is consistent
+ * with old behavior */
+ if (!themepath)
+ themepath = Mode.theme.path;
+
+ Esnprintf(execline, sizeof(execline), "%s " "-P " "-nostdinc " "-undef "
+ "-include %s/config/definitions " "-I%s " "-I%s/config "
+ "-D ENLIGHTENMENT_VERSION=%s " "-D ENLIGHTENMENT_ROOT=%s "
+ "-D ENLIGHTENMENT_BIN=%s "
+ "-D ENLIGHTENMENT_THEME=%s " "-D ECONFDIR=%s "
+ "-D ECACHEDIR=%s " "-D SCREEN_RESOLUTION_%ix%i=1 "
+ "-D SCREEN_WIDTH_%i=1 " "-D SCREEN_HEIGHT_%i=1 "
+ "-D SCREEN_DEPTH_%i=1 " "-D USER_NAME=%s " "-D HOME_DIR=%s "
+ "-D USER_SHELL=%s "
+ "%s %s",
+ epp_path, EDirRoot(), themepath, EDirRoot(),
+ e_wm_version, EDirRoot(), EDirBin(),
+ themepath, EDirUser(), EDirUserCache(),
+ WinGetW(VROOT), WinGetH(VROOT), WinGetW(VROOT), WinGetH(VROOT),
+ WinGetDepth(VROOT), def_user, def_home, def_shell, src, dst);
+ system(execline);
+
+ Efree(def_user);
+ Efree(def_shell);
+ Efree(def_home);
+
+ return exists(dst) ? 0 : 1;
+}
+
+/* Split the process of finding the file from the process of loading it */
+int
+ConfigFileRead(FILE * fs)
+{
+ int err;
+ int i1, i2, fields;
+ char s[FILEPATH_LEN_MAX];
+ int e_cfg_ver = 0;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = i2 = CONFIG_INVALID;
+ fields = sscanf(s, "%i %i", &i1, &i2);
+
+ if (fields < 1)
+ {
+ i1 = CONFIG_INVALID;
+ }
+ else if (i1 == CONFIG_VERSION)
+ {
+ if (fields == 2)
+ e_cfg_ver = i2;
+ }
+ else if (i1 == CONFIG_CLOSE)
+ {
+ if (fields != 1)
+ {
+ Alert(_("CONFIG: ignoring extra data in \"%s\"\n"), s);
+ }
+ }
+ else if (i1 != CONFIG_INVALID)
+ {
+ if (fields != 2)
+ {
+ Alert(_("CONFIG: missing required data in \"%s\"\n"), s);
+ i1 = CONFIG_INVALID;
+ }
+ }
+
+ if (i2 == CONFIG_OPEN)
+ {
+ if (e_cfg_ver > MAX_E_CFG_VERSION)
+ {
+ AlertX(_("Theme versioning ERROR"),
+ _("Restart with Defaults"), " ",
+ _("Abort and Exit"),
+ _("ERROR:\n" "\n"
+ "The configuration for the theme you are running is\n"
+ "incompatible. It's config revision is %i.\n"
+ "It needs to be marked as being revision <= %i\n"
+ "\n"
+ "Please contact the theme author or maintainer and\n"
+ "inform them that in order for their theme to function\n"
+ "with this version of Enlightenment, they have to\n"
+ "update it to the current settings, and then match\n"
+ "the revision number.\n" "\n"
+ "If the theme revision is higher than Enlightenment's\n"
+ "it may be that you haven't upgraded Enlightenment for\n"
+ "a while and this theme takes advantages of new\n"
+ "features in Enlightenment in new versions.\n"),
+ e_cfg_ver, MAX_E_CFG_VERSION);
+ SessionExit(EEXIT_THEME, "DEFAULT");
+ }
+ else
+ {
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ goto done;
+
+ case CONFIG_IMAGECLASS:
+ err = ImageclassConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Image class");
+ break;
+ case CONFIG_TOOLTIP:
+ err = TooltipConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Tooltip");
+ break;
+ case CONFIG_TEXT:
+ err = TextclassConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Text class");
+ break;
+ case MENU_STYLE:
+ err = MenuStyleConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Menu style");
+ break;
+ case CONFIG_MENU:
+ err = MenuConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Menu");
+ break;
+ case CONFIG_BORDER:
+ err = BorderConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Border");
+ break;
+ case CONFIG_BUTTON:
+ err = ButtonsConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Button");
+ break;
+ case CONFIG_DESKTOP:
+ err = BackgroundsConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Background");
+ break;
+ case CONFIG_WINDOWMATCH:
+ err = WindowMatchConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Window match");
+ break;
+ case CONFIG_COLORMOD:
+ break;
+ case CONFIG_ACTIONCLASS:
+ err = AclassConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Action class");
+ break;
+ case CONFIG_SLIDEOUT:
+ err = SlideoutsConfigLoad(fs);
+ if (err)
+ ConfigAlertLoad("Slideout");
+ break;
+ default:
+ break;
+ }
+ }
+ }
+ }
+
+ done:
+ return 0;
+}
+
+static char *
+FindFilePath(const char *name, const char *path)
+{
+ char s[FILEPATH_LEN_MAX];
+ int len;
+
+ if (path)
+ {
+ len = Esnprintf(s, sizeof(s), "%s/%s", path, name);
+ name = s;
+ }
+ else
+ {
+ len = strlen(name);
+ }
+ if (len <= 0)
+ return NULL;
+
+ if (canread(name))
+ return Estrdup(name);
+ else
+ return NULL;
+}
+
+char *
+FindFile(const char *file, const char *themepath)
+{
+ char s[FILEPATH_LEN_MAX];
+ char *p;
+
+ /* if absolute path - and file exists - return it */
+ if (isabspath(file))
+ {
+ p = FindFilePath(file, NULL);
+ if (p)
+ return p;
+ }
+
+ /* look in ~/.e16 first */
+ p = FindFilePath(file, EDirUser());
+ if (p)
+ return p;
+
+ if (themepath)
+ {
+ /* look in theme dir */
+ p = FindFilePath(file, themepath);
+ if (p)
+ return p;
+ }
+
+ /* look in system config dir */
+ Esnprintf(s, sizeof(s), "%s/config", EDirRoot());
+ p = FindFilePath(file, s);
+ if (p)
+ return p;
+
+ /* not found.... NULL */
+ return NULL;
+}
+
+char *
+ThemeFileFind(const char *file)
+{
+ return FindFile(file, Mode.theme.path);
+}
+
+char *
+ConfigFileFind(const char *name, const char *themepath, int pp)
+{
+ char s[FILEPATH_LEN_MAX];
+ char *fullname, *file, *ppfile;
+ int i, err;
+
+ fullname = FindFile(name, themepath);
+ if (!fullname)
+ return NULL;
+
+ /* Quit if not preparsing */
+ if (!pp)
+ return fullname;
+
+ /* The file exists. Now check the preparsed one. */
+ file = Estrdup(fullname);
+ for (i = 0; file[i]; i++)
+ if (file[i] == '/')
+ file[i] = '.';
+
+ Esnprintf(s, sizeof(s), "%s/cached/cfg/%s.preparsed", EDirUserCache(), file);
+ ppfile = Estrdup(s);
+ if (exists(s) && moddate(s) > moddate(fullname))
+ goto done;
+
+ /* No preparesd file or source is newer. Do preparsing. */
+ err = ConfigFilePreparse(fullname, ppfile, themepath);
+ if (err)
+ {
+ Efree(ppfile);
+ ppfile = NULL;
+ }
+
+ done:
+ Efree(fullname);
+ Efree(file);
+ return ppfile;
+}
+
+int
+ConfigFileLoad(const char *name, const char *themepath,
+ int (*parse) (FILE * fs), int preparse)
+{
+ int err = -1;
+ char *file;
+ FILE *fs;
+
+ if (EDebug(EDBUG_TYPE_CONFIG))
+ Eprintf("ConfigFileLoad %s\n", name);
+
+ file = ConfigFileFind(name, themepath, preparse);
+ if (!file)
+ goto done;
+
+ fs = fopen(file, "r");
+ Efree(file);
+ if (!fs)
+ goto done;
+
+ err = parse(fs);
+
+ fclose(fs);
+
+ done:
+ return err;
+}
+
+int
+ThemeConfigLoad(void)
+{
+ static const char *const config_files[] = {
+ "init.cfg",
+ "textclasses.cfg",
+ "imageclasses.cfg",
+ "desktops.cfg",
+ "actionclasses.cfg",
+ "buttons.cfg",
+ "slideouts.cfg",
+ "borders.cfg",
+ "windowmatches.cfg",
+ "tooltips.cfg",
+ "menustyles.cfg",
+ };
+ char s[FILEPATH_LEN_MAX];
+ Progressbar *p = NULL;
+ int i;
+
+ /* Font mappings */
+ FontConfigLoad();
+
+ Esnprintf(s, sizeof(s), "%s/", Mode.theme.path);
+
+ for (i = 0; i < (int)(sizeof(config_files) / sizeof(char *)); i++)
+
+ {
+ if (!Mode.wm.restart && Conf.startup.animate)
+ {
+ if (i == 2)
+ StartupWindowsCreate();
+
+ if ((i > 1) && (!p))
+ {
+ p = ProgressbarCreate(_("Enlightenment Starting..."), 400,
+ 16);
+ if (p)
+ ProgressbarShow(p);
+ }
+ }
+
+ ConfigFileLoad(config_files[i], Mode.theme.path, ConfigFileRead, 1);
+
+ if (p)
+ ProgressbarSet(p, (i * 100) /
+ (int)(sizeof(config_files) / sizeof(char *)));
+ }
+
+ if (p)
+ ProgressbarDestroy(p);
+
+ /* Font mappings no longer needed */
+ FontConfigUnload();
+
+ return 0;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "container.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "hints.h"
+#include "iclass.h"
+#include "menus.h"
+
+extern const ContainerOps IconboxOps;
+extern const ContainerOps SystrayOps;
+
+static void ContainersConfigSave(void);
+
+static void ContainerLayout(Container * ct, int *px, int *py, int *pw,
+ int *ph);
+static void ContainerDraw(Container * ct);
+
+static void ContainerEventScrollWin(Win win, XEvent * ev, void *prm);
+static void ContainerEventScrollbarWin(Win win, XEvent * ev, void *prm);
+static void ContainerEventCoverWin(Win win, XEvent * ev, void *prm);
+static void ContainerEventArrow1Win(Win win, XEvent * ev, void *prm);
+static void ContainerEventArrow2Win(Win win, XEvent * ev, void *prm);
+static void ContainerEventIconWin(Win win, XEvent * ev, void *prm);
+
+ContainerCfg Conf_containers;
+
+static Ecore_List *container_list = NULL;
+
+static int
+_ContainerMatchName(const void *data, const void *match)
+{
+ return strcmp(((const Container *)data)->name, (const char *)match);
+}
+
+static Container *
+ContainerFind(const char *name)
+{
+ return (Container *) ecore_list_find(container_list, _ContainerMatchName,
+ name);
+}
+
+static Container *
+ContainerCreate(const char *name)
+{
+ Container *ct;
+
+ if (ContainerFind(name))
+ return NULL;
+
+ ct = ECALLOC(Container, 1);
+ if (!ct)
+ return NULL;
+
+ if (!container_list)
+ container_list = ecore_list_new();
+ ecore_list_append(container_list, ct);
+
+ ct->name = Estrdup(name);
+ ct->type = (name && !strcmp(name, "_ST_")) ?
+ IB_TYPE_SYSTRAY : IB_TYPE_ICONBOX;
+ ct->orientation = 0;
+ ct->scrollbar_side = 1;
+ ct->arrow_side = 1;
+ ct->nobg = 0;
+ ct->shownames = 1;
+ ct->iconsize = 48;
+ ct->icon_mode = 2;
+ ct->auto_resize = 0;
+ ct->draw_icon_base = 0;
+ ct->scrollbar_hide = 0;
+ ct->cover_hide = 0;
+ ct->auto_resize_anchor = 0;
+ /* FIXME: need to have theme settable params for this and get them */
+ ct->scroll_thickness = 12;
+ ct->arrow_thickness = 12;
+ ct->bar_thickness = 8;
+ ct->knob_length = 8;
+
+ ct->w = 0;
+ ct->h = 0;
+ ct->pos = 0;
+ ct->max = 1;
+ ct->arrow1_hilited = 0;
+ ct->arrow1_clicked = 0;
+ ct->arrow2_hilited = 0;
+ ct->arrow2_clicked = 0;
+ ct->icon_clicked = 0;
+ ct->scrollbar_hilited = 0;
+ ct->scrollbar_clicked = 0;
+ ct->scrollbox_clicked = 0;
+
+ ct->win = ECreateClientWindow(VROOT, 0, 0, 1, 1);
+ ct->icon_win = ECreateWindow(ct->win, 0, 0, 128, 26, 0);
+ EventCallbackRegister(ct->icon_win, 0, ContainerEventIconWin, ct);
+ ct->cover_win = ECreateWindow(ct->win, 0, 0, 128, 26, 0);
+ EventCallbackRegister(ct->cover_win, 0, ContainerEventCoverWin, ct);
+ ct->scroll_win = ECreateWindow(ct->win, 6, 26, 116, 6, 0);
+ EventCallbackRegister(ct->scroll_win, 0, ContainerEventScrollWin, ct);
+ ct->arrow1_win = ECreateWindow(ct->win, 0, 26, 6, 6, 0);
+ EventCallbackRegister(ct->arrow1_win, 0, ContainerEventArrow1Win, ct);
+ ct->arrow2_win = ECreateWindow(ct->win, 122, 26, 6, 6, 0);
+ EventCallbackRegister(ct->arrow2_win, 0, ContainerEventArrow2Win, ct);
+ ct->scrollbar_win = ECreateWindow(ct->scroll_win, 122, 26, 6, 6, 0);
+ EventCallbackRegister(ct->scrollbar_win, 0, ContainerEventScrollbarWin, ct);
+ ct->scrollbarknob_win = ECreateWindow(ct->scrollbar_win, -20, -20, 4, 4, 0);
+
+ ESelectInput(ct->icon_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask | PointerMotionMask);
+ ESelectInput(ct->scroll_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ ESelectInput(ct->cover_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ ESelectInput(ct->arrow1_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ ESelectInput(ct->arrow2_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ ESelectInput(ct->scrollbar_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask | PointerMotionMask);
+
+ EMapWindow(ct->icon_win);
+ EMapWindow(ct->scrollbar_win);
+
+ ct->ewin = NULL;
+ ct->num_objs = 0;
+ ct->objs = NULL;
+
+ if (ct->type == IB_TYPE_ICONBOX)
+ ct->ops = &IconboxOps;
+ else if (ct->type == IB_TYPE_SYSTRAY)
+ ct->ops = &SystrayOps;
+
+ ct->ops->Init(ct);
+
+ return ct;
+}
+
+static void
+ContainerDestroy(Container * ct, int exiting)
+{
+ ecore_list_node_remove(container_list, ct);
+
+ ct->ops->Exit(ct, exiting);
+
+ Efree(ct->name);
+ Efree(ct->objs);
+
+ Efree(ct);
+
+ if (!exiting)
+ ContainersConfigSave();
+}
+
+static void
+ContainerReconfigure(Container * ct)
+{
+ ImageClass *ic, *ic2;
+ EImageBorder *pad;
+ EWin *ewin;
+ int extra;
+ unsigned int wmin, hmin, wmax, hmax;
+
+ ewin = ct->ewin;
+
+ wmin = hmin = 8;
+ wmax = hmax = 16384;
+
+ extra = 0;
+ if (ct->orientation)
+ {
+ ic = ImageclassFind("ICONBOX_VERTICAL", 0);
+ pad = ImageclassGetPadding(ic);
+ if (ic)
+ extra = pad->left + pad->right;
+ if (ct->draw_icon_base)
+ {
+ ic2 = ImageclassFind("DEFAULT_ICON_BUTTON", 0);
+ pad = ImageclassGetPadding(ic2);
+ if (ic2)
+ extra += pad->left + pad->right;
+ }
+ wmax = wmin = ct->iconsize + ct->scroll_thickness + extra;
+ ct->max_min = hmin;
+ }
+ else
+ {
+ ic = ImageclassFind("ICONBOX_HORIZONTAL", 0);
+ pad = ImageclassGetPadding(ic);
+ if (ic)
+ extra = pad->top + pad->bottom;
+ if (ct->draw_icon_base)
+ {
+ ic2 = ImageclassFind("DEFAULT_ICON_BUTTON", 0);
+ pad = ImageclassGetPadding(ic2);
+ if (ic2)
+ extra += pad->top + pad->bottom;
+ }
+ hmax = hmin = ct->iconsize + ct->scroll_thickness + extra;
+ ct->max_min = wmin;
+ }
+
+ ICCCM_SetSizeConstraints(ewin, wmin, hmin, wmax, hmax, 0, 0, 1, 1,
+ 0.0, 65535.0);
+}
+
+static void
+_ContainerEwinInit(EWin * ewin)
+{
+ Container *ct = (Container *) ewin->data;
+
+ EwinSetTitle(ewin, ct->wm_name);
+ EwinSetClass(ewin, ct->name, "Enlightenment_IconBox");
+
+ ewin->props.skip_ext_task = 1;
+ ewin->props.skip_ext_pager = 1;
+ ewin->props.skip_focuslist = 1;
+ ewin->props.skip_winlist = 1;
+ EwinInhSetWM(ewin, focus, 1);
+ EwinInhSetWM(ewin, iconify, 1);
+ ewin->props.autosave = 1;
+
+ EoSetSticky(ewin, 1);
+}
+
+static void
+_ContainerEwinLayout(EWin * ewin, int *px, int *py, int *pw, int *ph)
+{
+ Container *ct = (Container *) ewin->data;
+
+ ContainerLayout(ct, px, py, pw, ph);
+
+ if (*pw != ct->w || *ph != ct->h)
+ ct->do_update = 1;
+}
+
+static void
+_ContainerEwinMoveResize(EWin * ewin, int resize)
+{
+ Container *ct = (Container *) ewin->data;
+
+ if (!resize && !ct->do_update && !TransparencyUpdateNeeded())
+ return;
+
+ ct->w = ewin->client.w;
+ ct->h = ewin->client.h;
+
+ ContainerDraw(ct);
+ ct->do_update = 0;
+}
+
+static void
+_ContainerEwinClose(EWin * ewin)
+{
+ ContainerDestroy((Container *) ewin->data, 0);
+ ewin->data = NULL;
+}
+
+static const EWinOps _ContainerEwinOps = {
+ _ContainerEwinInit,
+ _ContainerEwinLayout,
+ _ContainerEwinMoveResize,
+ _ContainerEwinClose,
+};
+
+static void
+ContainerShow(Container * ct)
+{
+ EWin *ewin;
+
+ if (!ct)
+ return;
+
+ ewin = AddInternalToFamily(ct->win, "ICONBOX", EWIN_TYPE_ICONBOX,
+ &_ContainerEwinOps, ct);
+ ct->ewin = ewin;
+ if (!ewin)
+ return;
+
+ ContainerReconfigure(ct);
+
+ if (ewin->state.placed)
+ {
+ EwinMoveToDesktop(ewin, EoGetDesk(ewin));
+ EwinMoveResize(ewin, EoGetX(ewin), EoGetY(ewin), ewin->client.w,
+ ewin->client.h);
+ }
+ else
+ {
+ /* The first one */
+ EwinMoveToDesktop(ewin, EoGetDesk(ewin));
+ EwinResize(ewin, 128, 32);
+ EwinMove(ewin, WinGetW(VROOT) - EoGetW(ewin),
+ WinGetH(VROOT) - EoGetH(ewin));
+ }
+
+ EwinShow(ewin);
+}
+
+/*
+ * Return index, -1 if not found.
+ */
+int
+ContainerObjectFind(Container * ct, void *obj)
+{
+ int i;
+
+ for (i = 0; i < ct->num_objs; i++)
+ if (ct->objs[i].obj == obj)
+ return i;
+
+ return -1;
+}
+
+int
+ContainerObjectAdd(Container * ct, void *obj)
+{
+ /* Not if already there */
+ if (ContainerObjectFind(ct, obj) >= 0)
+ return -1;
+
+ ct->num_objs++;
+ ct->objs = EREALLOC(ContainerObject, ct->objs, ct->num_objs);
+ ct->objs[ct->num_objs - 1].obj = obj;
+
+ return ct->num_objs - 1; /* Success */
+}
+
+int
+ContainerObjectDel(Container * ct, void *obj)
+{
+ int i, j;
+
+ /* Quit if not there */
+ i = ContainerObjectFind(ct, obj);
+ if (i < 0)
+ return -1;
+
+ for (j = i; j < ct->num_objs - 1; j++)
+ ct->objs[j] = ct->objs[j + 1];
+ ct->num_objs--;
+ if (ct->num_objs > 0)
+ ct->objs = EREALLOC(ContainerObject, ct->objs, ct->num_objs);
+ else
+ {
+ Efree(ct->objs);
+ ct->objs = NULL;
+ }
+
+ return 0; /* Success */
+}
+
+void *
+ContainerObjectFindByXY(Container * ct, int px, int py)
+{
+ int i;
+ ContainerObject *cto;
+
+ for (i = 0; i < ct->num_objs; i++)
+ {
+ cto = &ct->objs[i];
+
+ if (px >= cto->xo - 1 && py >= cto->yo - 1 &&
+ px < cto->xo + cto->wo + 1 && py < cto->yo + cto->ho + 1)
+ return cto->obj;
+ }
+
+ return NULL;
+}
+
+static void
+ContainerLayoutImageWin(Container * ct)
+{
+ int i, xo, yo;
+ int item_pad, padl, padr, padt, padb;
+ ContainerObject *cto;
+ EImageBorder *pad, *pad_base;
+
+ if (ct->orientation)
+ ct->ic_box = ImageclassFind("ICONBOX_VERTICAL", 0);
+ else
+ ct->ic_box = ImageclassFind("ICONBOX_HORIZONTAL", 0);
+
+ if (ct->draw_icon_base && !ct->im_item_base)
+ {
+ ct->ic_item_base = ImageclassFind("DEFAULT_ICON_BUTTON", 0);
+ if (ct->ic_item_base)
+ ct->im_item_base =
+ ImageclassGetImage(ct->ic_item_base, 0, 0, STATE_NORMAL);
+ if (!ct->im_item_base)
+ {
+ ct->ic_item_base = NULL;
+ ct->draw_icon_base = 0;
+ }
+ }
+
+ if (ct->draw_icon_base)
+ {
+ pad_base = ImageclassGetPadding(ct->ic_item_base);
+ padl = pad_base->left;
+ padr = pad_base->right;
+ padt = pad_base->top;
+ padb = pad_base->bottom;
+
+ item_pad = 0;
+ }
+ else
+ {
+ pad_base = NULL;
+ padl = padr = padt = padb = 0;
+
+ item_pad = 2;
+ }
+
+ xo = 0;
+ yo = 0;
+ if (ct->ic_box)
+ {
+ pad = ImageclassGetPadding(ct->ic_box);
+ xo += pad->left;
+ yo += pad->top;
+ }
+
+ for (i = 0; i < ct->num_objs; i++)
+ {
+ cto = &ct->objs[i];
+
+ /* Inner size */
+ ct->ops->ObjSizeCalc(ct, cto);
+
+ /* Outer size */
+ if (ct->draw_icon_base && ct->im_item_base)
+ {
+ if (cto->wi > 0 && cto->hi > 0)
+ {
+ cto->wo = ct->iconsize + padl + padr;
+ cto->ho = ct->iconsize + padt + padb;
+ }
+ else
+ {
+ cto->wo = cto->ho = 0;
+ }
+ }
+ else
+ {
+ if (cto->wi > 0 && cto->hi > 0)
+ {
+ if (ct->orientation)
+ {
+ cto->wo = ct->iconsize;
+ cto->ho = cto->hi;
+ }
+ else
+ {
+ cto->wo = cto->wi;
+ cto->ho = ct->iconsize;
+ }
+ }
+ else
+ {
+ cto->wo = cto->ho = 0;
+ }
+ }
+
+ cto->xo = xo;
+ cto->yo = yo;
+ cto->xi = xo + (cto->wo - cto->wi) / 2;
+ cto->yi = yo + (cto->ho - cto->hi) / 2;
+#if 0
+ Eprintf("xo,yo=%d,%d wo,ho=%d,%d xi,yi=%d,%d wi,hi=%d,%d\n",
+ cto->xo, cto->yo, cto->wo, cto->ho, cto->xi, cto->yi, cto->wi,
+ cto->hi);
+#endif
+
+ if (ct->orientation)
+ yo += cto->ho + item_pad;
+ else
+ xo += cto->wo + item_pad;
+ }
+
+ if (ct->ic_box)
+ {
+ pad = ImageclassGetPadding(ct->ic_box);
+ xo += pad->right;
+ yo += pad->bottom;
+ }
+
+ if (ct->orientation)
+ ct->max = yo - item_pad;
+ else
+ ct->max = xo - item_pad;
+
+ if (ct->max < ct->max_min)
+ ct->max = ct->max_min;
+}
+
+static void
+ContainerDrawScroll(Container * ct)
+{
+ ImageClass *ic, *ic_sbb;
+ EImageBorder *pad;
+ int arrow_mode = ct->arrow_side;
+ int bs, bw, bx;
+ int state;
+
+ switch (ct->orientation)
+ {
+ default:
+ if (ct->h < 2 * ct->arrow_thickness + ct->knob_length)
+ arrow_mode = 3; /* No arrows */
+
+ ic_sbb = ImageclassFind("ICONBOX_SCROLLBAR_BASE_VERTICAL", 1);
+ pad = ImageclassGetPadding(ic_sbb);
+ if (arrow_mode < 3)
+ bs = ct->h - (ct->arrow_thickness * 2);
+ else
+ bs = ct->h;
+ if (pad)
+ bs -= pad->top + pad->bottom;
+ bw = (ct->h * bs) / ct->max;
+ if (bs < 1)
+ bs = 1;
+ if (bw > bs)
+ bw = bs;
+ if (bw < 1)
+ bw = 1;
+ bx = ((ct->pos * bs) / ct->max);
+ if (pad)
+ bx += pad->top;
+ if ((ct->scrollbar_hide) && (bw == bs))
+ goto do_hide_sb;
+
+ EMapWindow(ct->scroll_win);
+ if (arrow_mode < 3)
+ {
+ EMapWindow(ct->arrow1_win);
+ EMapWindow(ct->arrow2_win);
+ }
+ else
+ {
+ EUnmapWindow(ct->arrow1_win);
+ EUnmapWindow(ct->arrow2_win);
+ }
+
+ /* fix this area */
+ if (ct->scrollbar_side == 1)
+ /* right */
+ {
+ /* start */
+ if (arrow_mode == 0)
+ {
+ EMoveResizeWindow(ct->arrow1_win,
+ ct->w - ct->scroll_thickness, 0,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->scroll_thickness,
+ ct->arrow_thickness,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->w - ct->scroll_thickness,
+ ct->arrow_thickness * 2,
+ ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2));
+ }
+ /* both ends */
+ else if (arrow_mode == 1)
+ {
+ EMoveResizeWindow(ct->arrow1_win,
+ ct->w - ct->scroll_thickness, 0,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->scroll_thickness,
+ ct->h - ct->arrow_thickness,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->w - ct->scroll_thickness,
+ ct->arrow_thickness,
+ ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2));
+ }
+ /* end */
+ else if (arrow_mode == 2)
+ {
+ EMoveResizeWindow(ct->arrow1_win,
+ ct->w - ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2),
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->scroll_thickness,
+ ct->h - ct->arrow_thickness,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->w - ct->scroll_thickness, 0,
+ ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2));
+ }
+ /* no arrows */
+ else
+ {
+ EMoveResizeWindow(ct->scroll_win,
+ ct->w - ct->scroll_thickness, 0,
+ ct->scroll_thickness, ct->h);
+ }
+ }
+ else
+ /* left */
+ {
+ /* start */
+ if (arrow_mode == 0)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0, 0,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->arrow2_win, 0,
+ ct->arrow_thickness,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->scroll_win, 0,
+ ct->arrow_thickness * 2,
+ ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2));
+ }
+ /* both ends */
+ else if (arrow_mode == 1)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0, 0,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->arrow2_win, 0,
+ ct->h - ct->arrow_thickness,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->scroll_win, 0,
+ ct->arrow_thickness,
+ ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2));
+ }
+ /* end */
+ else if (arrow_mode == 2)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0,
+ ct->h - (ct->arrow_thickness * 2),
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->arrow2_win, 0,
+ ct->h - ct->arrow_thickness,
+ ct->scroll_thickness, ct->arrow_thickness);
+ EMoveResizeWindow(ct->scroll_win, 0, 0,
+ ct->scroll_thickness,
+ ct->h - (ct->arrow_thickness * 2));
+ }
+ /* no arrows */
+ else
+ {
+ EMoveResizeWindow(ct->scroll_win, 0, 0,
+ ct->scroll_thickness, ct->h);
+ }
+ }
+
+ ImageclassApply(ic_sbb, ct->scroll_win, 0, 0, STATE_NORMAL, ST_ICONBOX);
+
+ EMoveResizeWindow(ct->scrollbar_win,
+ (ct->scroll_thickness - ct->bar_thickness) / 2, bx,
+ ct->bar_thickness, bw);
+
+ ic = ImageclassFind("ICONBOX_SCROLLBAR_KNOB_VERTICAL", 1);
+ if (ic)
+ {
+ state = STATE_NORMAL;
+ if (ct->scrollbar_hilited)
+ state = STATE_HILITED;
+ if (ct->scrollbar_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->scrollbar_win, 0, 0, state, ST_ICONBOX);
+ }
+
+ ic = ImageclassFind("ICONBOX_SCROLLKNOB_VERTICAL", 0);
+ if ((ic) && (bw > ct->knob_length))
+ {
+ EMapWindow(ct->scrollbarknob_win);
+ EMoveResizeWindow(ct->scrollbarknob_win, 0,
+ (bw - ct->knob_length) / 2, ct->bar_thickness,
+ ct->knob_length);
+
+ state = STATE_NORMAL;
+ if (ct->scrollbar_hilited)
+ state = STATE_HILITED;
+ if (ct->scrollbar_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->scrollbarknob_win, 0, 0, state,
+ ST_ICONBOX);
+ }
+ else
+ {
+ EUnmapWindow(ct->scrollbarknob_win);
+ }
+
+ if (arrow_mode < 3)
+ {
+ ic = ImageclassFind("ICONBOX_ARROW_UP", 1);
+ if (ic)
+ {
+ state = STATE_NORMAL;
+ if (ct->arrow1_hilited)
+ state = STATE_HILITED;
+ if (ct->arrow1_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->arrow1_win, 0, 0, state, ST_ICONBOX);
+ }
+
+ ic = ImageclassFind("ICONBOX_ARROW_DOWN", 1);
+ if (ic)
+ {
+ state = STATE_NORMAL;
+ if (ct->arrow2_hilited)
+ state = STATE_HILITED;
+ if (ct->arrow2_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->arrow2_win, 0, 0, state, ST_ICONBOX);
+ }
+ }
+ break;
+
+ case 0:
+ if (ct->w < 2 * ct->arrow_thickness + ct->knob_length)
+ arrow_mode = 3; /* No arrows */
+
+ ic_sbb = ImageclassFind("ICONBOX_SCROLLBAR_BASE_HORIZONTAL", 1);
+ pad = ImageclassGetPadding(ic_sbb);
+ if (arrow_mode < 3)
+ bs = ct->w - (ct->arrow_thickness * 2);
+ else
+ bs = ct->w;
+ if (pad)
+ bs -= pad->left + pad->right;
+ bw = (ct->w * bs) / ct->max;
+ if (bs < 1)
+ bs = 1;
+ if (bw > bs)
+ bw = bs;
+ if (bw < 1)
+ bw = 1;
+ bx = ((ct->pos * bs) / ct->max);
+ if (pad)
+ bx += pad->left;
+ if ((ct->scrollbar_hide) && (bw == bs))
+ goto do_hide_sb;
+
+ EMapWindow(ct->scroll_win);
+ if (arrow_mode < 3)
+ {
+ EMapWindow(ct->arrow1_win);
+ EMapWindow(ct->arrow2_win);
+ }
+ else
+ {
+ EUnmapWindow(ct->arrow1_win);
+ EUnmapWindow(ct->arrow2_win);
+ }
+
+ if (ct->scrollbar_side == 1)
+ /* bottom */
+ {
+ /* start */
+ if (arrow_mode == 0)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0,
+ ct->h - ct->scroll_thickness,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->arrow_thickness,
+ ct->h - ct->scroll_thickness,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->arrow_thickness * 2,
+ ct->h - ct->scroll_thickness,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->scroll_thickness);
+ }
+ /* both ends */
+ else if (arrow_mode == 1)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0,
+ ct->h - ct->scroll_thickness,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->arrow_thickness,
+ ct->h - ct->scroll_thickness,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->arrow_thickness,
+ ct->h - ct->scroll_thickness,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->scroll_thickness);
+ }
+ /* end */
+ else if (arrow_mode == 2)
+ {
+ EMoveResizeWindow(ct->arrow1_win,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->h - ct->scroll_thickness,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->arrow_thickness,
+ ct->h - ct->scroll_thickness,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->scroll_win, 0,
+ ct->h - ct->scroll_thickness,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->scroll_thickness);
+ }
+ /* no arrows */
+ else
+ {
+ EMoveResizeWindow(ct->scroll_win, 0,
+ ct->h - ct->scroll_thickness, ct->w,
+ ct->scroll_thickness);
+ }
+ }
+ else
+ /* top */
+ {
+ /* start */
+ if (arrow_mode == 0)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0, 0,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->arrow_thickness, 0,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->arrow_thickness * 2, 0,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->scroll_thickness);
+ }
+ /* both ends */
+ else if (arrow_mode == 1)
+ {
+ EMoveResizeWindow(ct->arrow1_win, 0, 0,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->arrow_thickness, 0,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->scroll_win,
+ ct->arrow_thickness, 0,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->scroll_thickness);
+ }
+ /* end */
+ else if (arrow_mode == 2)
+ {
+ EMoveResizeWindow(ct->arrow1_win,
+ ct->w - (ct->arrow_thickness * 2), 0,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->arrow2_win,
+ ct->w - ct->arrow_thickness, 0,
+ ct->arrow_thickness, ct->scroll_thickness);
+ EMoveResizeWindow(ct->scroll_win, 0, 0,
+ ct->w - (ct->arrow_thickness * 2),
+ ct->scroll_thickness);
+ }
+ /* no arrows */
+ else
+ {
+ EMoveResizeWindow(ct->scroll_win, 0, 0, ct->w,
+ ct->scroll_thickness);
+ }
+ }
+
+ EMoveResizeWindow(ct->scrollbar_win, bx,
+ (ct->scroll_thickness - ct->bar_thickness) / 2, bw,
+ ct->bar_thickness);
+
+ ImageclassApply(ic_sbb, ct->scroll_win, 0, 0, STATE_NORMAL, ST_ICONBOX);
+
+ ic = ImageclassFind("ICONBOX_SCROLLBAR_KNOB_HORIZONTAL", 1);
+ if (ic)
+ {
+ state = STATE_NORMAL;
+ if (ct->scrollbar_hilited)
+ state = STATE_HILITED;
+ if (ct->scrollbar_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->scrollbar_win, 0, 0, state, ST_ICONBOX);
+ }
+
+ ic = ImageclassFind("ICONBOX_SCROLLKNOB_HORIZONTAL", 0);
+ if ((ic) && (bw > ct->knob_length))
+ {
+ EMapWindow(ct->scrollbarknob_win);
+ EMoveResizeWindow(ct->scrollbarknob_win,
+ (bw - ct->knob_length) / 2, 0, ct->knob_length,
+ ct->bar_thickness);
+
+ state = STATE_NORMAL;
+ if (ct->scrollbar_hilited)
+ state = STATE_HILITED;
+ if (ct->scrollbar_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->scrollbarknob_win, 0, 0, state,
+ ST_ICONBOX);
+ }
+ else
+ {
+ EUnmapWindow(ct->scrollbarknob_win);
+ }
+
+ if (arrow_mode < 3)
+ {
+ ic = ImageclassFind("ICONBOX_ARROW_LEFT", 1);
+ if (ic)
+ {
+ state = STATE_NORMAL;
+ if (ct->arrow1_hilited)
+ state = STATE_HILITED;
+ if (ct->arrow1_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->arrow1_win, 0, 0, state, ST_ICONBOX);
+ }
+
+ ic = ImageclassFind("ICONBOX_ARROW_RIGHT", 1);
+ if (ic)
+ {
+ state = STATE_NORMAL;
+ if (ct->arrow2_hilited)
+ state = STATE_HILITED;
+ if (ct->arrow2_clicked)
+ state = STATE_CLICKED;
+ ImageclassApply(ic, ct->arrow2_win, 0, 0, state, ST_ICONBOX);
+ }
+ }
+ break;
+
+ do_hide_sb:
+ EUnmapWindow(ct->scroll_win);
+ EUnmapWindow(ct->arrow1_win);
+ EUnmapWindow(ct->arrow2_win);
+ break;
+ }
+}
+
+static void
+ContainerFixPos(Container * ct)
+{
+ int v;
+
+ if (ct->orientation)
+ v = ct->max - ct->h;
+ else
+ v = ct->max - ct->w;
+
+ if (ct->pos > v)
+ ct->pos = v;
+ if (ct->pos < 0)
+ ct->pos = 0;
+}
+
+static void
+ContainerLayout(Container * ct, int *px, int *py, int *pw, int *ph)
+{
+ int x, y, w, h;
+ EWin *ewin = ct->ewin;
+
+ x = *px;
+ y = *py;
+ w = *pw;
+ h = *ph;
+ ICCCM_SizeMatch(ewin, w, h, &w, &h);
+
+ ContainerLayoutImageWin(ct);
+
+ if (ct->auto_resize)
+ {
+ int add = 0;
+ int bl, br, bt, bb;
+
+ EwinBorderGetSize(ct->ewin, &bl, &br, &bt, &bb);
+
+ if (ct->orientation)
+ {
+ add = ct->max;
+ if (ct->ewin->border)
+ {
+ if ((bt + bb + add) > WinGetH(VROOT))
+ add = WinGetH(VROOT) - (bt + bb);
+ }
+ y += (((ct->ewin->client.h - add) * ct->auto_resize_anchor) >> 10);
+ h = add;
+ if (ct->ewin->border)
+ {
+ if ((EoGetY(ct->ewin) + bt + bb + add) > WinGetH(VROOT))
+ y = WinGetH(VROOT) - (bt + bb + add);
+ }
+ }
+ else
+ {
+ add = ct->max;
+ if (ct->ewin->border)
+ {
+ if ((bl + br + add) > WinGetW(VROOT))
+ add = WinGetW(VROOT) - (bl + br);
+ }
+ x += (((ct->ewin->client.w - add) * ct->auto_resize_anchor) >> 10);
+ w = add;
+ if (ct->ewin->border)
+ {
+ if ((EoGetX(ct->ewin) + bl + br + add) > WinGetW(VROOT))
+ x = WinGetW(VROOT) - (bl + br + add);
+ }
+ }
+ }
+
+ ContainerFixPos(ct);
+
+ *px = x;
+ *py = y;
+ *pw = w;
+ *ph = h;
+}
+
+static void
+ContainerDraw(Container * ct)
+{
+ int i, w, h;
+ ImageClass *ib_ic_cover;
+ int ib_xlt, ib_ylt, ib_ww, ib_hh;
+ int ib_x0, ib_y0, ib_w0, ib_h0;
+ EImage *im;
+ int ww, hh;
+
+ if (!ct->ic_box)
+ ContainerLayoutImageWin(ct);
+
+ w = ct->w;
+ h = ct->h;
+
+ ContainerDrawScroll(ct);
+
+ /* Geometry of iconbox window, excluding scrollbar */
+ ib_xlt = 0;
+ ib_ylt = 0;
+ ib_ww = w;
+ ib_hh = h;
+ if (ct->orientation)
+ {
+ ib_ic_cover = ImageclassFind("ICONBOX_COVER_VERTICAL", 0);
+ if (ct->scrollbar_side == 0)
+ ib_xlt = ct->scroll_thickness;
+ ib_ww -= ct->scroll_thickness;
+
+ /* Geometry of icon window (including invisible parts) */
+ ib_x0 = ib_xlt;
+ ib_y0 = ib_ylt - ct->pos;
+ ib_w0 = ib_ww;
+ ib_h0 = ib_hh;
+ if (ib_h0 < ct->max)
+ ib_h0 = ct->max;
+ }
+ else
+ {
+ ib_ic_cover = ImageclassFind("ICONBOX_COVER_HORIZONTAL", 0);
+ if (ct->scrollbar_side == 0)
+ ib_ylt = ct->scroll_thickness;
+ ib_hh -= ct->scroll_thickness;
+
+ /* Geometry of icon window (including invisible parts) */
+ ib_x0 = ib_xlt - ct->pos;
+ ib_y0 = ib_ylt;
+ ib_w0 = ib_ww;
+ if (ib_w0 < ct->max)
+ ib_w0 = ct->max;
+ ib_h0 = ib_hh;
+ }
+
+ EMoveResizeWindow(ct->icon_win, ib_x0, ib_y0, ib_w0, ib_h0);
+
+ if (ib_ic_cover && !ct->cover_hide)
+ {
+ EMoveResizeWindow(ct->cover_win, ib_xlt, ib_ylt, ib_ww, ib_hh);
+ EMapWindow(ct->cover_win);
+ ImageclassApply(ib_ic_cover, ct->cover_win, 0, 0, STATE_NORMAL,
+ ST_ICONBOX);
+ }
+ else
+ {
+ EMoveResizeWindow(ct->cover_win, -30000, -30000, 2, 2);
+ EUnmapWindow(ct->cover_win);
+ }
+
+ if (ct->nobg && ct->num_objs == 0)
+ {
+ im = NULL;
+ }
+ else if (ct->ic_box &&
+ (!ct->nobg || (ct->type == IB_TYPE_SYSTRAY && !ct->draw_icon_base)))
+ {
+ /* Start out with iconbox image class image */
+ im = ImageclassGetImageBlended(ct->ic_box, ct->icon_win, ib_w0, ib_h0,
+ 0, 0, STATE_NORMAL, ST_ICONBOX);
+ }
+ else
+ {
+ /* Start out with blank image */
+ im = EImageCreate(ib_w0, ib_h0);
+ EImageSetHasAlpha(im, 1);
+ EImageFill(im, 0, 0, ib_w0, ib_h0, 0, 0, 0, 0);
+ }
+
+ for (i = 0; i < ct->num_objs; i++)
+ {
+ ContainerObject *cto;
+
+ cto = &ct->objs[i];
+
+ if (ct->draw_icon_base && ct->im_item_base)
+ {
+ EImageGetSize(ct->im_item_base, &ww, &hh);
+ EImageBlend(im, ct->im_item_base, EIMAGE_BLEND | EIMAGE_ANTI_ALIAS,
+ 0, 0, ww, hh, cto->xo, cto->yo, cto->wo, cto->ho, 1);
+ }
+
+ ct->ops->ObjPlace(ct, cto, im);
+ }
+
+ if (im)
+ {
+ EMapWindow(ct->icon_win);
+ EImageApplyToWin(im, ct->icon_win, EIMAGE_HIGH_MASK_THR, 0, 0);
+ EImageFree(im);
+
+ if (ct->type == IB_TYPE_SYSTRAY && ct->nobg && !ct->draw_icon_base)
+ EShapePropagate(ct->icon_win);
+ }
+ else
+ {
+ /* Transparent and no objects */
+ EUnmapWindow(ct->icon_win);
+ }
+ EShapePropagate(ct->win);
+ EwinUpdateShapeInfo(ct->ewin);
+ ct->ewin->update.shape = 1;
+ EwinPropagateShapes(ct->ewin);
+}
+
+void
+ContainerRedraw(Container * ct)
+{
+ EWin *ewin = ct->ewin;
+
+ ct->do_update = 1;
+ EwinResize(ct->ewin, ewin->client.w, ewin->client.h);
+}
+
+static int
+ContainerScroll(Container * ct, int dir)
+{
+ int ppos;
+
+ ppos = ct->pos;
+ ct->pos += dir;
+ ContainerFixPos(ct);
+ if (ct->pos == ppos)
+ return 0;
+
+ ContainerDraw(ct);
+ return 1;
+}
+
+static void
+ContainerShowMenu(Container * ct, int x __UNUSED__, int y __UNUSED__)
+{
+ static Menu *p_menu = NULL;
+ MenuItem *mi;
+ char s[1024];
+
+ if (p_menu)
+ MenuDestroy(p_menu);
+
+ p_menu = MenuCreate("__CT_MENU", ct->menu_title, NULL, NULL);
+
+ Esnprintf(s, sizeof(s), "ibox cfg %s", ct->name);
+ mi = MenuItemCreate(_("Settings..."), NULL, s, NULL);
+ MenuAddItem(p_menu, mi);
+
+ Esnprintf(s, sizeof(s), "wop %#lx cl", WinGetXwin(ct->win));
+ mi = MenuItemCreate(_("Close"), NULL, s, NULL);
+ MenuAddItem(p_menu, mi);
+
+ if (ct->type == IB_TYPE_ICONBOX)
+ {
+ mi = MenuItemCreate(_("Create New Iconbox"), NULL, "ibox new", NULL);
+ MenuAddItem(p_menu, mi);
+ }
+
+ EFunc(NULL, "menus show __CT_MENU");
+}
+
+static void
+ContainersShow(void)
+{
+ Container *ct;
+
+ if (ecore_list_count(container_list) > 0)
+ {
+ ECORE_LIST_FOR_EACH(container_list, ct) ContainerShow(ct);
+ }
+ else if (Conf.startup.firsttime)
+ {
+ ct = ContainerCreate("_IB_0");
+ ContainerShow(ct);
+ ContainersConfigSave();
+ }
+}
+
+static void
+ContainersDestroy(void)
+{
+ Container *ct;
+
+ ECORE_LIST_FOR_EACH(container_list, ct) ContainerDestroy(ct, 1);
+}
+
+static void
+ContainerEventScrollWin(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+ int x, y, w, h;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ if (ev->xbutton.button == 1)
+ ct->scrollbox_clicked = 1;
+ else if (ev->xbutton.button == 3)
+ ContainerShowMenu(ct, ev->xbutton.x, ev->xbutton.y);
+ break;
+
+ case ButtonRelease:
+ if (!ct->scrollbox_clicked)
+ break;
+ ct->scrollbox_clicked = 0;
+ EGetGeometry(ct->scrollbar_win, NULL, &x, &y, &w, &h, NULL, NULL);
+ if (ct->orientation)
+ {
+ if (ev->xbutton.y < y)
+ ContainerScroll(ct, -8);
+ else if (ev->xbutton.y > (y + h))
+ ContainerScroll(ct, 8);
+ }
+ else
+ {
+ if (ev->xbutton.x < x)
+ ContainerScroll(ct, -8);
+ else if (ev->xbutton.x > (x + w))
+ ContainerScroll(ct, 8);
+ }
+ break;
+ }
+}
+
+static void
+ContainerEventScrollbarWin(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+ static int px, py, pos0;
+ int bs, dp;
+ ImageClass *ic_sbb;
+ EImageBorder *pad;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ if (ev->xbutton.button == 1)
+ {
+ px = ev->xbutton.x_root;
+ py = ev->xbutton.y_root;
+ pos0 = ct->pos;
+ ct->scrollbar_clicked = 1;
+ }
+ else if (ev->xbutton.button == 3)
+ ContainerShowMenu(ct, ev->xbutton.x, ev->xbutton.y);
+ break;
+
+ case ButtonRelease:
+ if (ct->scrollbar_clicked)
+ ct->scrollbar_clicked = 0;
+ break;
+
+ case EnterNotify:
+ ct->scrollbar_hilited = 1;
+ break;
+
+ case LeaveNotify:
+ ct->scrollbar_hilited = 0;
+ break;
+
+ case MotionNotify:
+ if (!ct->scrollbar_clicked)
+ break;
+
+ if (ct->orientation)
+ {
+ ic_sbb = ImageclassFind("ICONBOX_SCROLLBAR_BASE_VERTICAL", 1);
+ pad = ImageclassGetPadding(ic_sbb);
+ bs = ct->h - (ct->arrow_thickness * 2);
+ if (pad)
+ bs -= pad->top + pad->bottom;
+ if (bs < 1)
+ bs = 1;
+ dp = ev->xmotion.y_root - py;
+ }
+ else
+ {
+ ic_sbb = ImageclassFind("ICONBOX_SCROLLBAR_BASE_HORIZONTAL", 1);
+ pad = ImageclassGetPadding(ic_sbb);
+ bs = ct->w - (ct->arrow_thickness * 2);
+ if (pad)
+ bs -= pad->left + pad->right;
+ if (bs < 1)
+ bs = 1;
+ dp = ev->xmotion.x_root - px;
+ }
+ dp = pos0 + (dp * ct->max) / bs - ct->pos;
+ if (dp)
+ ContainerScroll(ct, dp);
+ return;
+ }
+ ContainerDrawScroll(ct);
+}
+
+static void
+ContainerEventCoverWin(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ ContainerShowMenu(ct, ev->xbutton.x, ev->xbutton.y);
+ break;
+ case ButtonRelease:
+ break;
+ }
+}
+
+static void
+ContainerEventArrow1Win(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ if (ev->xbutton.button == 1)
+ ct->arrow1_clicked = 1;
+ else if (ev->xbutton.button == 3)
+ ContainerShowMenu(ct, ev->xbutton.x, ev->xbutton.y);
+ break;
+
+ case ButtonRelease:
+ if (!ct->arrow1_clicked)
+ break;
+ ct->arrow1_clicked = 0;
+ if (ContainerScroll(ct, -8))
+ return;
+ break;
+
+ case EnterNotify:
+ ct->arrow1_hilited = 1;
+ break;
+
+ case LeaveNotify:
+ ct->arrow1_hilited = 0;
+ break;
+ }
+ ContainerDrawScroll(ct);
+}
+
+static void
+ContainerEventArrow2Win(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ if (ev->xbutton.button == 1)
+ ct->arrow2_clicked = 1;
+ else if (ev->xbutton.button == 3)
+ ContainerShowMenu(ct, ev->xbutton.x, ev->xbutton.y);
+ break;
+
+ case ButtonRelease:
+ if (!ct->arrow2_clicked)
+ break;
+ ct->arrow2_clicked = 0;
+ if (ContainerScroll(ct, 8))
+ return;
+ break;
+
+ case EnterNotify:
+ ct->arrow2_hilited = 1;
+ break;
+
+ case LeaveNotify:
+ ct->arrow2_hilited = 0;
+ break;
+ }
+ ContainerDrawScroll(ct);
+}
+
+static void
+ContainerEventIconWin(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ if (ev->xbutton.button != 3)
+ break;
+ ContainerShowMenu(ct, ev->xbutton.x, ev->xbutton.y);
+ return;
+ }
+
+ if (ct->ops->Event)
+ ct->ops->Event(ct, ev);
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+static char *tmp_ib_name = NULL;
+static char tmp_ib_nobg;
+static char tmp_ib_shownames;
+static int tmp_ib_vert;
+static int tmp_ib_side;
+static int tmp_ib_arrows;
+static int tmp_ib_iconsize;
+static int tmp_ib_mode;
+static char tmp_ib_auto_resize;
+static char tmp_ib_draw_icon_base;
+static char tmp_ib_scrollbar_hide;
+static char tmp_ib_cover_hide;
+static int tmp_ib_autoresize_anchor;
+static char tmp_ib_anim_mode;
+
+static void
+CB_ConfigureContainer(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Container *ct;
+
+ if (!tmp_ib_name)
+ return;
+ ct = ContainerFind(tmp_ib_name);
+ if (!ct)
+ return;
+
+ ct->nobg = tmp_ib_nobg;
+ ct->shownames = tmp_ib_shownames;
+ ct->orientation = tmp_ib_vert;
+ ct->scrollbar_side = tmp_ib_side;
+ ct->arrow_side = tmp_ib_arrows;
+ ct->iconsize = tmp_ib_iconsize;
+ ct->icon_mode = tmp_ib_mode;
+ ct->auto_resize = tmp_ib_auto_resize;
+ ct->draw_icon_base = tmp_ib_draw_icon_base;
+ ct->scrollbar_hide = tmp_ib_scrollbar_hide;
+ ct->cover_hide = tmp_ib_cover_hide;
+ ct->auto_resize_anchor = tmp_ib_autoresize_anchor;
+ ct->anim_mode = tmp_ib_anim_mode;
+
+ ContainerReconfigure(ct);
+ ContainerRedraw(ct);
+ ContainersConfigSave();
+ }
+}
+
+static void
+CB_IconSizeSlider(Dialog * d, int val __UNUSED__, void *data)
+{
+ DItem *di = (DItem *) data;
+ char s[256];
+
+ Esnprintf(s, sizeof(s), _("Icon size: %2d"), tmp_ib_iconsize);
+ DialogItemSetText(di, s);
+ DialogDrawItems(d, di, 0, 0, 99999, 99999);
+}
+
+static void
+_DlgFillContainer(Dialog * d, DItem * table, void *data)
+{
+ Container *ct = (Container *) data;
+ DItem *di, *table2;
+ DItem *radio1, *radio2, *radio3, *radio4, *label;
+ char s[256];
+
+ if (!ct)
+ return;
+
+ tmp_ib_nobg = ct->nobg;
+ tmp_ib_shownames = ct->shownames;
+ tmp_ib_vert = ct->orientation;
+ tmp_ib_side = ct->scrollbar_side;
+ tmp_ib_arrows = ct->arrow_side;
+ tmp_ib_iconsize = ct->iconsize;
+ tmp_ib_mode = ct->icon_mode;
+ tmp_ib_auto_resize = ct->auto_resize;
+ tmp_ib_draw_icon_base = ct->draw_icon_base;
+ tmp_ib_scrollbar_hide = ct->scrollbar_hide;
+ tmp_ib_cover_hide = ct->cover_hide;
+ tmp_ib_autoresize_anchor = ct->auto_resize_anchor;
+ tmp_ib_anim_mode = ct->anim_mode;
+ Efree(tmp_ib_name);
+ tmp_ib_name = Estrdup(ct->name);
+
+ DialogSetTitle(d, ct->dlg_title);
+
+ DialogItemTableSetOptions(table, 1, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Transparent background"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_nobg);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Hide inner border"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_cover_hide);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Draw base image behind Icons"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_draw_icon_base);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Hide scrollbar when not needed"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_scrollbar_hide);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Automatically resize to fit Icons"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_auto_resize);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di,
+ _("Alignment of anchoring when automatically resizing:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 1024);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 8);
+ DialogItemSliderSetValPtr(di, &tmp_ib_autoresize_anchor);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ label = di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ Esnprintf(s, sizeof(s), _("Icon size: %2d"), tmp_ib_iconsize);
+ DialogItemSetText(di, s);
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 4, 128);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 8);
+ DialogItemSliderSetValPtr(di, &tmp_ib_iconsize);
+ DialogItemSetCallback(di, CB_IconSizeSlider, 0, label);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ table2 = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table2, 3, 0, 0, 0);
+
+ di = DialogAddItem(table2, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Orientation:"));
+
+ di = DialogAddItem(table2, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Scrollbar side:"));
+
+ di = DialogAddItem(table2, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Scrollbar arrows:"));
+
+ radio1 = di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Horizontal"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio2 = di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Left / Top"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio3 = di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Start"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Vertical"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+ DialogItemRadioButtonGroupSetValPtr(radio1, &tmp_ib_vert);
+
+ di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Right / Bottom"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+ DialogItemRadioButtonGroupSetValPtr(radio2, &tmp_ib_side);
+
+ di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Both ends"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table2, DITEM_NONE);
+ di = DialogAddItem(table2, DITEM_NONE);
+
+ di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("End"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table2, DITEM_NONE);
+ di = DialogAddItem(table2, DITEM_NONE);
+
+ di = DialogAddItem(table2, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("None"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+ DialogItemRadioButtonGroupSetValPtr(radio3, &tmp_ib_arrows);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ if (ct->type == IB_TYPE_ICONBOX)
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Show icon names"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_shownames);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Animate when iconifying to this Iconbox"));
+ DialogItemCheckButtonSetPtr(di, &tmp_ib_anim_mode);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di,
+ _
+ ("Icon image display policy (if one operation fails, try the next):"));
+
+ radio4 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di,
+ _
+ ("Snapshot Windows, Use application icon, Use Enlightenment Icon"));
+ DialogItemRadioButtonSetFirst(di, radio4);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di,
+ _
+ ("Use application icon, Use Enlightenment Icon, Snapshot Window"));
+ DialogItemRadioButtonSetFirst(di, radio4);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Use Enlightenment Icon, Snapshot Window"));
+ DialogItemRadioButtonSetFirst(di, radio4);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+ DialogItemRadioButtonGroupSetValPtr(radio4, &tmp_ib_mode);
+ }
+}
+
+static const DialogDef DlgContainer = {
+ "CONFIGURE_ICONBOX",
+ NULL,
+ NULL,
+ SOUND_SETTINGS_ICONBOX,
+ "pix/iconbox.png",
+ N_("Enlightenment Iconbox\n" "Settings Dialog\n"),
+ _DlgFillContainer,
+ DLG_OAC, CB_ConfigureContainer,
+};
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * Configuration load/save
+ */
+#include "conf.h"
+
+static void
+ContainersConfigLoad(void)
+{
+ int err = 0;
+ FILE *fs;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1, i2;
+ Container *ct, ct_dummy;
+
+ Esnprintf(s, sizeof(s), "%s.ibox", EGetSavePrefix());
+ fs = fopen(s, "r");
+ if (!fs)
+ return;
+
+ ct = &ct_dummy;
+ while (fgets(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ i2 = atoi(s2);
+ switch (i1)
+ {
+ case CONFIG_IBOX:
+ err = -1;
+ if (i2 != CONFIG_OPEN)
+ goto done;
+ break;
+ case CONFIG_CLOSE:
+ ct = &ct_dummy;
+ err = 0;
+ break;
+
+ case CONFIG_CLASSNAME: /* __NAME %s */
+ ct = ContainerFind(s2);
+ if (ct)
+ EwinHide(ct->ewin);
+ ct = ContainerCreate(s2);
+ break;
+ case TEXT_ORIENTATION: /* __ORIENTATION [ __HORIZONTAL | __VERTICAL ] */
+ ct->orientation = i2;
+ break;
+ case CONFIG_TRANSPARENCY: /* __TRANSPARENCY [ __ON | __OFF ] */
+ ct->nobg = i2;
+ break;
+ case CONFIG_SHOW_NAMES: /* __SHOW_NAMES [ __ON | __OFF ] */
+ ct->shownames = i2;
+ break;
+ case CONFIG_ICON_SIZE: /* __ICON_SIZE %i */
+ ct->iconsize = i2;
+ break;
+ case CONFIG_ICON_MODE: /* __ICON_MODE [ 0 | 1 | 2 | 3 | 4 ] */
+ ct->icon_mode = i2;
+ break;
+ case CONFIG_SCROLLBAR_SIDE: /* __SCROLLBAR_SIDE [ __BAR_LEFT/__BAR_TOP | __BAR_RIGHT/__BAR_BOTTOM ] */
+ ct->scrollbar_side = i2;
+ break;
+ case CONFIG_SCROLLBAR_ARROWS: /* __SCROLLBAR_ARROWS [ __START | __BOTH | __FINISH | __NEITHER ] */
+ ct->arrow_side = i2;
+ break;
+ case CONFIG_AUTOMATIC_RESIZE: /* __AUTOMATIC_RESIZE [ __ON | __OFF ] */
+ ct->auto_resize = i2;
+ break;
+ case CONFIG_SHOW_ICON_BASE: /* __SHOW_ICON_BASE [ __ON | __OFF ] */
+ ct->draw_icon_base = i2;
+ break;
+ case CONFIG_SCROLLBAR_AUTOHIDE: /* __SCROLLBAR_AUTOHIDE [ __ON | __OFF ] */
+ ct->scrollbar_hide = i2;
+ break;
+ case CONFIG_COVER_HIDE: /* __COVER_HIDE [ __ON | __OFF ] */
+ ct->cover_hide = i2;
+ break;
+ case CONFIG_RESIZE_ANCHOR: /* __RESIZE_ANCHOR 0-1024 */
+ ct->auto_resize_anchor = i2;
+ break;
+ case CONFIG_IB_ANIMATE: /* __ICONBOX_ANIMATE [ 0 | 1 | 2 ] */
+ ct->anim_mode = i2;
+ break;
+ default:
+ Eprintf("Warning: Iconbox configuration, ignoring: %s\n", s);
+ break;
+ }
+ }
+ if (err)
+ Eprintf("Error: Iconbox configuration file load problem.\n");
+
+ done:
+ fclose(fs);
+}
+
+static void
+ContainersConfigSave(void)
+{
+ char s[FILEPATH_LEN_MAX];
+ FILE *fs;
+ Container *ct;
+
+ Esnprintf(s, sizeof(s), "%s.ibox", EGetSavePrefix());
+ fs = fopen(s, "w");
+ if (!fs)
+ return;
+
+ /* We should check for errors... */
+ ECORE_LIST_FOR_EACH(container_list, ct)
+ {
+ fprintf(fs, "19 999\n");
+ fprintf(fs, "100 %s\n", ct->name);
+ fprintf(fs, "200 %i\n", ct->orientation);
+ fprintf(fs, "2001 %i\n", ct->nobg);
+ fprintf(fs, "2002 %i\n", ct->shownames);
+ fprintf(fs, "2003 %i\n", ct->iconsize);
+ fprintf(fs, "2004 %i\n", ct->icon_mode);
+ fprintf(fs, "2005 %i\n", ct->scrollbar_side);
+ fprintf(fs, "2006 %i\n", ct->arrow_side);
+ fprintf(fs, "2007 %i\n", ct->auto_resize);
+ fprintf(fs, "2008 %i\n", ct->draw_icon_base);
+ fprintf(fs, "2009 %i\n", ct->scrollbar_hide);
+ fprintf(fs, "2010 %i\n", ct->cover_hide);
+ fprintf(fs, "2011 %i\n", ct->auto_resize_anchor);
+ fprintf(fs, "2012 %i\n", ct->anim_mode);
+ fprintf(fs, "1000\n");
+ }
+
+ fclose(fs);
+}
+
+/*
+ * Containers Module
+ */
+
+static void
+ContainersSighan(int sig, void *prm)
+{
+ switch (sig)
+ {
+ case ESIGNAL_CONFIGURE:
+ break;
+ case ESIGNAL_START:
+ ContainersConfigLoad();
+ ContainersShow();
+ break;
+ case ESIGNAL_EXIT:
+ ContainersDestroy();
+ break;
+ }
+
+#if 0 /* FIXME */
+ ECORE_LIST_FOR_EACH(container_list, ct)
+ {
+ if (ct->ops)
+ ct->ops->Signal(ct, sig, prm);
+ }
+#else
+ IconboxOps.Signal(NULL, sig, prm);
+#endif
+}
+
+#if ENABLE_DIALOGS
+static void
+ContainersConfigure(const char *params)
+{
+ Container *ct;
+
+ if (!params || !params[0])
+ params = "DEFAULT";
+
+ ct = ContainerFind(params);
+ if (ct)
+ DialogShowSimple(&DlgContainer, ct);
+}
+#endif /* ENABLE_DIALOGS */
+
+Container *
+ContainersIterate(ContainerIterator * cti, int type, void *data)
+{
+ Container *ct;
+
+ ECORE_LIST_FOR_EACH(container_list, ct)
+ {
+ if (ct->type != type)
+ continue;
+ if (cti(ct, data))
+ return ct;
+ }
+
+ return NULL;
+}
+
+Container **
+ContainersGetList(int *pnum)
+{
+ return (Container **) ecore_list_items_get(container_list, pnum);
+}
+
+/*
+ * IPC functions
+ */
+static void
+ContainerIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[128];
+ int len, num;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %100s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ /* List iconboxes */
+ }
+#if ENABLE_DIALOGS
+ else if (!strncmp(cmd, "cfg", 3))
+ {
+ ContainersConfigure(prm);
+ }
+#endif
+ else if (!strncmp(cmd, "new", 3))
+ {
+ Container *ct;
+
+ if (!prm[0])
+ {
+ num = ecore_list_count(container_list);
+ Esnprintf(prm, sizeof(prm), "_IB_%i", num);
+ }
+ ct = ContainerCreate(prm);
+ ContainerShow(ct);
+ ContainersConfigSave();
+ }
+}
+
+static const IpcItem ContainersIpcArray[] = {
+ {
+ ContainerIpc,
+ "iconbox", "ibox",
+ "Iconbox functions",
+ " iconbox new <name> Create new iconbox\n"
+ " iconbox cfg Configure iconboxes\n"}
+};
+#define N_IPC_FUNCS (sizeof(ContainersIpcArray)/sizeof(IpcItem))
+
+/*
+ * Configuration items
+ */
+static const CfgItem ContainersCfgItems[] = {
+ CFG_ITEM_INT(Conf_containers, anim_time, 250),
+};
+#define N_CFG_ITEMS (sizeof(ContainersCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModIconboxes;
+const EModule ModIconboxes = {
+ "iconboxes", "ibox",
+ ContainersSighan,
+ {N_IPC_FUNCS, ContainersIpcArray},
+ {N_CFG_ITEMS, ContainersCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _CONTAINER_H_
+#define _CONTAINER_H_
+
+#include <X11/Xlib.h>
+#include "eimage.h"
+
+typedef struct _container Container;
+
+typedef struct {
+ unsigned int anim_time; /* Animation run time (ms) */
+} ContainerCfg;
+
+typedef struct {
+ void *obj;
+ int xo, yo, wo, ho; /* Outer */
+ int xi, yi, wi, hi; /* Inner */
+ EImage *im;
+} ContainerObject;
+
+typedef struct {
+ void (*Init) (Container * ct);
+ void (*Exit) (Container * ct, int wm_exit);
+ void (*Signal) (Container * ct, int signal, void *prm);
+ void (*Event) (Container * ct, XEvent * ev);
+ void (*ObjSizeCalc) (Container * ct, ContainerObject * cto);
+ void (*ObjPlace) (Container * ct, ContainerObject * cto,
+ EImage * im);
+} ContainerOps;
+
+struct _container {
+ const ContainerOps *ops;
+ const char *wm_name;
+ const char *menu_title;
+ const char *dlg_title;
+
+ /* user settings */
+ char *name;
+ char type;
+ char orientation;
+ char scrollbar_side;
+ char arrow_side;
+ char nobg;
+ int iconsize;
+ char auto_resize;
+ char draw_icon_base;
+ char scrollbar_hide;
+ char cover_hide;
+ int auto_resize_anchor;
+ /* Iconbox specific */
+ char shownames;
+ int anim_mode;
+ int icon_mode;
+
+ /* internally set stuff */
+ EWin *ewin;
+ int w, h;
+ int pos;
+ int max, max_min;
+ ImageClass *ic_box;
+ ImageClass *ic_item_base;
+ EImage *im_item_base;
+
+ char arrow1_hilited;
+ char arrow1_clicked;
+ char arrow2_hilited;
+ char arrow2_clicked;
+ char icon_clicked;
+ char scrollbar_hilited;
+ char scrollbar_clicked;
+ char scrollbox_clicked;
+
+ Win win;
+ Win cover_win;
+ Win icon_win;
+ Win scroll_win;
+ Win arrow1_win;
+ Win arrow2_win;
+ Win scrollbar_win;
+ Win scrollbarknob_win;
+
+ int num_objs;
+ ContainerObject *objs;
+
+ /* these are theme-settable parameters */
+ int scroll_thickness;
+ int arrow_thickness;
+ int bar_thickness;
+ int knob_length;
+
+ /* State flags */
+ char do_update;
+};
+
+extern ContainerCfg Conf_containers;
+
+void ContainerRedraw(Container * ct);
+
+typedef int (ContainerIterator) (Container * ct, void *data);
+Container *ContainersIterate(ContainerIterator * cti, int type,
+ void *data);
+Container **ContainersGetList(int *pnum);
+
+int ContainerObjectAdd(Container * ct, void *obj);
+int ContainerObjectDel(Container * ct, void *obj);
+int ContainerObjectFind(Container * ct, void *obj);
+void *ContainerObjectFindByXY(Container * ct, int x, int y);
+
+/* Here? */
+#define IB_TYPE_ICONBOX 0
+#define IB_TYPE_SYSTRAY 1
+
+#endif /* _CONTAINER_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "hints.h"
+#include "iclass.h"
+#include "tclass.h"
+#include "timers.h"
+#include "xwin.h"
+
+static EObj *coord_eo = NULL;
+
+static void
+_CoordsShow(EWin * ewin, int mode)
+{
+ TextClass *tc;
+ ImageClass *ic;
+ char s[256];
+ int md;
+ int x, y;
+ unsigned int w, h;
+ int cx, cy, cw, ch;
+ EObj *eo = coord_eo;
+ EImageBorder *pad;
+ int bl, br, bt, bb;
+
+ if (!Conf.movres.mode_info)
+ return;
+ if (ewin == NULL || !ewin->state.show_coords)
+ return;
+
+ tc = TextclassFind("COORDS", 1);
+ ic = ImageclassFind("COORDS", 1);
+ if ((!ic) || (!tc))
+ return;
+
+ cx = cy = cw = ch = 0;
+
+ x = ewin->shape_x;
+ y = ewin->shape_y;
+ w = (ewin->state.shaded) ? ewin->client.w : ewin->shape_w;
+ h = (ewin->state.shaded) ? ewin->client.h : ewin->shape_h;
+ ICCCM_GetIncrementalSize(ewin, w, h, &w, &h);
+
+ switch (mode)
+ {
+ default:
+ case 0:
+ Esnprintf(s, sizeof(s), "%i x %i (%i, %i)", w, h, x, y);
+ break;
+ case 1:
+ Esnprintf(s, sizeof(s), _("Focused/unfocused opacity: %d/%d %%"),
+ OpacityToPercent(ewin->props.focused_opacity),
+ OpacityToPercent(ewin->ewmh.opacity));
+ break;
+ }
+ TextSize(tc, 0, 0, 0, s, &cw, &ch, 17);
+ pad = ImageclassGetPadding(ic);
+ cw += pad->left + pad->right;
+ ch += pad->top + pad->bottom;
+
+ /* Width hysteresis (hack - assuming horizontal text) */
+ cw += 8;
+ if (eo && abs(EobjGetW(eo) - cw) < 8)
+ cw = EobjGetW(eo);
+
+ if (Mode.mode == MODE_MOVE)
+ md = Conf.movres.mode_move;
+ else
+ md = Conf.movres.mode_resize;
+
+ if ((md == 0) || ((cw < ewin->shape_w - 2) && (ch < ewin->shape_h - 2)))
+ {
+ if (Conf.movres.mode_info == 1)
+ {
+ switch (md)
+ {
+ case 0:
+ case 1:
+ case 2:
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+ cx = x + (ewin->shape_w + bl + br - cw) / 2 +
+ EoGetX(EoGetDesk(ewin));
+ cy = y + (ewin->shape_h + bt + bb - ch) / 2 +
+ EoGetY(EoGetDesk(ewin));
+ break;
+ }
+ }
+ }
+
+ if (!eo)
+ {
+ eo = EobjWindowCreate(EOBJ_TYPE_MISC, 0, 0, 1, 1, 2, "Coord");
+ if (!eo)
+ return;
+ coord_eo = eo;
+ eo->fade = eo->shadow = 1;
+
+ /* Center text (override theme) */
+ TextclassSetJustification(tc, 512);
+ }
+
+#define TEST_COORD_REPARENT_TO_FRAME 0
+#if TEST_COORD_REPARENT_TO_FRAME
+ cx -= x;
+ cy -= y;
+#endif
+ md = cw != EobjGetW(eo) || ch != EobjGetH(eo); /* md is change size flag */
+ EobjMoveResize(eo, cx, cy, cw, ch);
+
+ if (!eo->shown)
+ {
+#if TEST_COORD_REPARENT_TO_FRAME
+ EobjReparent(eo, EoObj(ewin), cx, cy);
+#endif
+ EobjMap(eo, 0);
+ }
+
+ ITApply(EobjGetWin(eo), ic, NULL, STATE_NORMAL, 1, 0, ST_SOLID, tc, NULL, s,
+ 1);
+
+ if (md) /* Assuming that shape change only happens when size changes too */
+ EobjShapeUpdate(eo, 0);
+
+ EFlush();
+}
+
+void
+CoordsHide(void)
+{
+ EObj *eo = coord_eo;
+
+ if (eo && eo->shown)
+ {
+ EobjUnmap(eo);
+#if TEST_COORD_REPARENT_TO_FRAME
+ EobjReparent(eo, EoObj(DeskGet(0)), 0, 0);
+#endif
+ }
+}
+
+void
+CoordsShow(EWin * ewin)
+{
+ _CoordsShow(ewin, 0);
+}
+
+static Timer *timer_show_op = NULL;
+
+static int
+_CoordsHideTimeout(void *data __UNUSED__)
+{
+ CoordsHide();
+
+ timer_show_op = NULL;
+ return 0;
+}
+
+void
+CoordsShowOpacity(EWin * ewin)
+{
+ EwinShapeSet(ewin);
+ ewin->state.show_coords = 1;
+ _CoordsShow(ewin, 1);
+ TIMER_DEL(timer_show_op);
+ TIMER_ADD(timer_show_op, 1., _CoordsHideTimeout, NULL);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "conf.h"
+#include "cursors.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "xwin.h"
+#include <X11/cursorfont.h>
+#if HAVE_X11_EXTENSIONS_XRENDER_H
+#include <X11/extensions/Xrender.h>
+#endif
+
+struct _ecursor {
+ char *name;
+ Cursor cursor;
+ unsigned int ref_count;
+};
+
+static Ecore_List *cursor_list = NULL;
+
+#define ColorToPixel(ec) (0xff000000 + (ec->red << 16) + (ec->green <<8) + ec->blue)
+
+static Cursor
+ECreatePixmapCursor(Pixmap cpmap, Pixmap cmask, unsigned int w, unsigned int h,
+ int xh, int yh, EColor * fg, EColor * bg)
+{
+ Cursor curs;
+
+#if HAVE_X11_EXTENSIONS_XRENDER_H
+ /* Assuming we have XRenderCreateCursor (render >= 0.5) */
+ Pixmap pmap;
+ XGCValues gcv;
+ GC gc;
+ Picture pict;
+ XRenderPictFormat *pictfmt;
+
+ pictfmt = XRenderFindStandardFormat(disp, PictStandardARGB32);
+
+ pmap = XCreatePixmap(disp, WinGetXwin(VROOT), w, h, 32);
+
+ gcv.foreground = 0;
+ gc = EXCreateGC(pmap, GCForeground, &gcv);
+ XFillRectangle(disp, pmap, gc, 0, 0, w, h);
+ gcv.fill_style = FillOpaqueStippled;
+ gcv.stipple = cpmap;
+ gcv.clip_mask = cmask;
+ gcv.foreground = ColorToPixel(fg);
+ gcv.background = ColorToPixel(bg);
+ XChangeGC(disp, gc,
+ GCForeground | GCBackground | GCFillStyle | GCStipple | GCClipMask,
+ &gcv);
+ XFillRectangle(disp, pmap, gc, 0, 0, w, h);
+ EXFreeGC(gc);
+
+ pict = XRenderCreatePicture(disp, pmap, pictfmt, 0, 0);
+ curs = XRenderCreateCursor(disp, pict, xh, yh);
+
+ XFreePixmap(disp, pmap);
+ XRenderFreePicture(disp, pict);
+#else
+ XColor fgxc, bgxc;
+
+ EAllocXColor(WinGetCmap(VROOT), &fgxc, fg);
+ EAllocXColor(WinGetCmap(VROOT), &bgxc, bg);
+
+ curs = XCreatePixmapCursor(disp, cpmap, cmask, &fgxc, &bgxc, xh, yh);
+ w = h = 0;
+#endif
+ return curs;
+}
+
+static ECursor *
+ECursorCreate(const char *name, const char *image, int native_id,
+ EColor * fg, EColor * bg)
+{
+ Cursor curs;
+ Pixmap pmap, mask;
+ int xh, yh;
+ unsigned int w, h, ww, hh;
+ char *img, msk[FILEPATH_LEN_MAX];
+ ECursor *ec;
+
+ if ((!name) || (!image && native_id == -1))
+ return NULL;
+
+ if (image)
+ {
+ img = FindFile(image, Mode.theme.path);
+ if (!img)
+ return NULL;
+
+ Esnprintf(msk, sizeof(msk), "%s.mask", img);
+ pmap = 0;
+ mask = 0;
+ xh = 0;
+ yh = 0;
+ XReadBitmapFile(disp, WinGetXwin(VROOT), msk, &w, &h, &mask, &xh, &yh);
+ XReadBitmapFile(disp, WinGetXwin(VROOT), img, &w, &h, &pmap, &xh, &yh);
+ XQueryBestCursor(disp, WinGetXwin(VROOT), w, h, &ww, &hh);
+ curs = None;
+ if ((w <= ww) && (h <= hh) && (pmap))
+ {
+ if (xh < 0 || xh >= (int)w)
+ xh = (int)w / 2;
+ if (yh < 0 || yh >= (int)h)
+ yh = (int)h / 2;
+ curs = ECreatePixmapCursor(pmap, mask, w, h, xh, yh, fg, bg);
+ }
+
+ if (!curs)
+ Eprintf("*** Failed to create cursor \"%s\" from %s,%s\n",
+ name, img, msk);
+
+ if (pmap)
+ EFreePixmap(pmap);
+ if (mask)
+ EFreePixmap(mask);
+ Efree(img);
+
+ if (!curs)
+ return NULL;
+ }
+ else
+ {
+ curs = (native_id == 999) ? None : XCreateFontCursor(disp, native_id);
+ }
+
+ ec = EMALLOC(ECursor, 1);
+ ec->name = Estrdup(name);
+ ec->cursor = curs;
+ ec->ref_count = 0;
+
+ if (!cursor_list)
+ cursor_list = ecore_list_new();
+ ecore_list_prepend(cursor_list, ec);
+
+ return ec;
+}
+
+static void
+ECursorDestroy(ECursor * ec)
+{
+ if (!ec)
+ return;
+
+ if (ec->ref_count > 0)
+ {
+ DialogOK("ECursor Error!", _("%u references remain\n"), ec->ref_count);
+ return;
+ }
+
+ ecore_list_node_remove(cursor_list, ec);
+
+ Efree(ec->name);
+
+ Efree(ec);
+}
+
+static int
+_ECursorMatchName(const void *data, const void *match)
+{
+ return strcmp(((const ECursor *)data)->name, (const char *)match);
+}
+
+static ECursor *
+ECursorFind(const char *name)
+{
+ if (!name || !name[0])
+ return NULL;
+ return (ECursor *) ecore_list_find(cursor_list, _ECursorMatchName, name);
+}
+
+ECursor *
+ECursorAlloc(const char *name)
+{
+ ECursor *ec;
+
+ if (!name)
+ return NULL;
+
+ ec = ECursorFind(name);
+ if (ec)
+ ec->ref_count++;
+
+ return ec;
+}
+
+void
+ECursorFree(ECursor * ec)
+{
+ if (ec)
+ ec->ref_count--;
+}
+
+static int
+ECursorConfigLoad(FILE * fs)
+{
+ int err = 0;
+ EColor clr, clr2;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char *p2;
+ int i1, i2, r, g, b;
+ char name[FILEPATH_LEN_MAX], *pname;
+ char file[FILEPATH_LEN_MAX], *pfile;
+ int native_id = -1;
+
+ SET_COLOR(&clr, 0, 0, 0);
+ SET_COLOR(&clr2, 255, 255, 255);
+
+ pname = pfile = NULL;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, &p2, NULL);
+ switch (i1)
+ {
+ case CONFIG_CURSOR:
+ err = -1;
+ i2 = atoi(s2);
+ if (i2 != CONFIG_OPEN)
+ goto done;
+ SET_COLOR(&clr, 0, 0, 0);
+ SET_COLOR(&clr2, 255, 255, 255);
+ pname = pfile = NULL;
+ native_id = -1;
+ break;
+ case CONFIG_CLOSE:
+ ECursorCreate(pname, pfile, native_id, &clr, &clr2);
+ err = 0;
+ break;
+
+ case CONFIG_CLASSNAME:
+ if (ECursorFind(s2))
+ {
+ SkipTillEnd(fs);
+ goto done;
+ }
+ strcpy(name, s2);
+ pname = name;
+ break;
+ case CURS_BG_RGB:
+ r = g = b = 0;
+ sscanf(p2, "%d %d %d", &r, &g, &b);
+ SET_COLOR(&clr, r, g, b);
+ break;
+ case CURS_FG_RGB:
+ r = g = b = 255;
+ sscanf(p2, "%d %d %d", &r, &g, &b);
+ SET_COLOR(&clr2, r, g, b);
+ break;
+ case XBM_FILE:
+ strcpy(file, s2);
+ pfile = file;
+ break;
+ case NATIVE_ID:
+ native_id = atoi(s2);
+ break;
+ default:
+ break;
+ }
+ }
+
+ done:
+ if (err)
+ ConfigAlertLoad("Cursor");
+
+ return err;
+}
+
+void
+ECursorApply(ECursor * ec, Win win)
+{
+ if (!ec)
+ return;
+ XDefineCursor(disp, WinGetXwin(win), ec->cursor);
+}
+
+static Cursor
+ECursorGetByName(const char *name, const char *name2, unsigned int fallback)
+{
+ ECursor *ec;
+
+ ec = ECursorAlloc(name);
+ if (!ec && name2)
+ ec = ECursorAlloc(name2);
+ if (ec)
+ return ec->cursor;
+
+ return XCreateFontCursor(disp, fallback);
+}
+
+static Cursor ECsrs[ECSR_COUNT];
+
+Cursor
+ECsrGet(int which)
+{
+ return (which >= 0 && which < ECSR_COUNT) ? ECsrs[which] : None;
+}
+
+void
+ECsrApply(int which, Window win)
+{
+ XDefineCursor(disp, win, ECsrGet(which));
+}
+
+/*
+ * Set up some basic cursors
+ */
+static void
+CursorsInit(void)
+{
+ ECsrs[ECSR_NONE] = None;
+ ECsrs[ECSR_ROOT] = ECursorGetByName("DEFAULT", NULL, XC_left_ptr);
+ ECsrs[ECSR_GRAB] = ECursorGetByName("GRAB", NULL, XC_crosshair);
+ ECsrs[ECSR_PGRAB] = ECursorGetByName("PGRAB", NULL, XC_X_cursor);
+ ECsrs[ECSR_ACT_MOVE] = ECursorGetByName("GRAB_MOVE", NULL, XC_fleur);
+ ECsrs[ECSR_ACT_RESIZE] = ECursorGetByName("GRAB_RESIZE", NULL, XC_sizing);
+ ECsrs[ECSR_ACT_RESIZE_H] =
+ ECursorGetByName("RESIZE_H", NULL, XC_sb_h_double_arrow);
+ ECsrs[ECSR_ACT_RESIZE_V] =
+ ECursorGetByName("RESIZE_V", NULL, XC_sb_v_double_arrow);
+ ECsrs[ECSR_ACT_RESIZE_TL] =
+ ECursorGetByName("RESIZE_TL", "RESIZE_BR", XC_top_left_corner);
+ ECsrs[ECSR_ACT_RESIZE_TR] =
+ ECursorGetByName("RESIZE_TR", "RESIZE_BL", XC_top_right_corner);
+ ECsrs[ECSR_ACT_RESIZE_BL] =
+ ECursorGetByName("RESIZE_BL", "RESIZE_TR", XC_bottom_left_corner);
+ ECsrs[ECSR_ACT_RESIZE_BR] =
+ ECursorGetByName("RESIZE_BR", "RESIZE_TL", XC_bottom_right_corner);
+}
+
+/*
+ * Cursor module
+ */
+
+static void
+CursorSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ ConfigFileLoad("cursors.cfg", Mode.theme.path, ECursorConfigLoad, 1);
+ CursorsInit();
+ break;
+ }
+}
+
+static void
+CursorsIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+ ECursor *ec;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!strncmp(cmd, "add", 3))
+ {
+ /* TBD */
+ IpcPrintf("Not implemented\n");
+ }
+ else if (!strncmp(cmd, "del", 3))
+ {
+ ECursorDestroy(ECursorFind(prm));
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ ECORE_LIST_FOR_EACH(cursor_list, ec) IpcPrintf("%s\n", ec->name);
+ }
+}
+
+static const IpcItem CursorIpcArray[] = {
+ {
+ CursorsIpc,
+ "cursor", "csr",
+ "Cursor functions",
+ " cursor add <classname> ... Create cursor\n"
+ " cursor del <classname> Delete cursor\n"
+ " cursor list Show all cursors\n"}
+};
+#define N_IPC_FUNCS (sizeof(CursorIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModCursors;
+const EModule ModCursors = {
+ "cursor", "csr",
+ CursorSighan,
+ {N_IPC_FUNCS, CursorIpcArray}
+ ,
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2006-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _CURSORS_H_
+#define _CURSORS_H_
+
+#include "etypes.h"
+
+/* cursors.c */
+#define ECSR_NONE 0
+#define ECSR_ROOT 1
+#define ECSR_GRAB 2
+#define ECSR_PGRAB 3
+#define ECSR_ACT_MOVE 4
+#define ECSR_ACT_RESIZE 5
+#define ECSR_ACT_RESIZE_H 6
+#define ECSR_ACT_RESIZE_V 7
+#define ECSR_ACT_RESIZE_TL 8
+#define ECSR_ACT_RESIZE_TR 9
+#define ECSR_ACT_RESIZE_BL 10
+#define ECSR_ACT_RESIZE_BR 11
+#define ECSR_COUNT 12
+
+ECursor *ECursorAlloc(const char *name);
+void ECursorFree(ECursor * ec);
+void ECursorApply(ECursor * ec, Win win);
+Cursor ECsrGet(int which);
+void ECsrApply(int which, Window win);
+
+#endif /* _CURSORS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "backgrounds.h"
+#include "buttons.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "ecompmgr.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "events.h"
+#include "ewins.h"
+#include "focus.h"
+#include "grabs.h"
+#include "hints.h"
+#include "iclass.h"
+#include "screen.h"
+#include "settings.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "xwin.h"
+#include <time.h>
+#if USE_XRANDR
+#include <X11/extensions/Xrandr.h>
+#endif
+
+#define EDESK_EVENT_MASK \
+ (ButtonPressMask | ButtonReleaseMask | \
+ EnterWindowMask | LeaveWindowMask /* | PointerMotionMask | ButtonMotionMask */ | \
+ SubstructureNotifyMask | SubstructureRedirectMask | PropertyChangeMask)
+
+#define ENLIGHTENMENT_CONF_NUM_DESKTOPS 32
+
+typedef struct {
+ Desk *current;
+ Desk *previous;
+ Desk *desk[ENLIGHTENMENT_CONF_NUM_DESKTOPS];
+ unsigned int order[ENLIGHTENMENT_CONF_NUM_DESKTOPS];
+ int drag_x0, drag_y0;
+} Desktops;
+
+static void DeskRaise(unsigned int num);
+static void DeskLower(unsigned int num);
+static void DeskHandleEvents(Win win, XEvent * ev, void *prm);
+static void DeskButtonCallback(EObj * eo, XEvent * ev,
+ ActionClass * ac);
+
+/* The desktops */
+static Desktops desks;
+
+#define _DeskGet(d) (desks.desk[d])
+
+static void
+DeskControlsCreate(Desk * dsk)
+{
+ char s[512];
+ const char *ic1, *ic2, *ic3;
+
+#if ENABLE_DESKRAY
+ const char *ic4;
+#endif
+ char ac1[64], ac2[64], ac3[64];
+ Button *b;
+ ActionClass *ac;
+ Action *a;
+ int x[3], y[3], w[3], h[3], m, n, o;
+ const char *t;
+
+ if (Conf.desks.dragdir < 0 || Conf.desks.dragdir > 3)
+ Conf.desks.dragdir = 2;
+ if (Conf.desks.dragbar_ordering < 0 || Conf.desks.dragbar_ordering > 5)
+ Conf.desks.dragbar_ordering = 1;
+ if (Conf.desks.dragbar_width < 0)
+ Conf.desks.dragbar_width = 0;
+ else if (Conf.desks.dragbar_width > 64)
+ Conf.desks.dragbar_width = 64;
+ if (Conf.desks.dragbar_length < 0)
+ Conf.desks.dragbar_length = 0;
+ else if (Conf.desks.dragbar_length > WinGetW(VROOT))
+ Conf.desks.dragbar_length = WinGetW(VROOT);
+
+ Esnprintf(ac1, sizeof(ac1), "DRAGBAR_DESKTOP_%i", dsk->num);
+ if (!ActionclassFind(ac1))
+ {
+ ac = ActionclassCreate(ac1, 0);
+ a = ActionCreate(EVENT_MOUSE_DOWN, 0, 0, 0, 1, 0, NULL, NULL);
+ ActionclassAddAction(ac, a);
+
+ Esnprintf(s, sizeof(s), "desk drag %i", dsk->num);
+ ActionAddTo(a, s);
+
+ a = ActionCreate(EVENT_MOUSE_DOWN, 0, 0, 0, 3, 0, NULL, NULL);
+ ActionclassAddAction(ac, a);
+ ActionAddTo(a, "menus show deskmenu");
+
+ a = ActionCreate(EVENT_MOUSE_DOWN, 0, 0, 0, 2, 0, NULL, NULL);
+ ActionclassAddAction(ac, a);
+ ActionAddTo(a, "menus show windowlist");
+
+ if (dsk->num > 0)
+ {
+ t = _("Hold down the mouse button and drag\n"
+ "the mouse to be able to drag the desktop\n"
+ "back and forth.\n"
+ "Click right mouse button for a list of all\n"
+ "Desktops and their applications.\n"
+ "Click middle mouse button for a list of all\n"
+ "applications currently running.\n");
+ ActionclassSetTooltipString(ac, t);
+ }
+ else
+ {
+ t = _("This is the Root desktop.\n"
+ "You cannot drag the root desktop around.\n"
+ "Click right mouse button for a list of all\n"
+ "Desktops and their applications.\n"
+ "Click middle mouse button for a list of all\n"
+ "applications currently running.\n");
+ ActionclassSetTooltipString(ac, t);
+ }
+ }
+
+ Esnprintf(ac2, sizeof(ac2), "RAISEBUTTON_DESKTOP_%i", dsk->num);
+ if (!ActionclassFind(ac2))
+ {
+ ac = ActionclassCreate(ac2, 0);
+ a = ActionCreate(EVENT_MOUSE_UP, 1, 0, 1, 0, 0, NULL, NULL);
+ ActionclassAddAction(ac, a);
+
+ ActionAddTo(a, "desk next");
+ t = _("Click here to raise this desktop\nto the top.\n");
+ ActionclassSetTooltipString(ac, t);
+ }
+
+ Esnprintf(ac3, sizeof(ac3), "LOWERBUTTON_DESKTOP_%i", dsk->num);
+ if (!ActionclassFind(ac3))
+ {
+ ac = ActionclassCreate(ac3, 0);
+ a = ActionCreate(EVENT_MOUSE_UP, 1, 0, 1, 0, 0, NULL, NULL);
+ ActionclassAddAction(ac, a);
+
+ ActionAddTo(a, "desk prev");
+ t = _("Click here to lower this desktop\nto the bottom.\n");
+ ActionclassSetTooltipString(ac, t);
+ }
+
+ if (Conf.desks.dragdir < 2)
+ {
+ ic1 = "DESKTOP_DRAGBUTTON_VERT";
+ ic2 = "DESKTOP_RAISEBUTTON_VERT";
+ ic3 = "DESKTOP_LOWERBUTTON_VERT";
+#if ENABLE_DESKRAY
+ ic4 = "DESKTOP_DESKRAY_VERT";
+#endif
+ }
+ else
+ {
+ ic1 = "DESKTOP_DRAGBUTTON_HORIZ";
+ ic2 = "DESKTOP_RAISEBUTTON_HORIZ";
+ ic3 = "DESKTOP_LOWERBUTTON_HORIZ";
+#if ENABLE_DESKRAY
+ ic4 = "DESKTOP_DESKRAY_HORIZ";
+#endif
+ }
+
+ switch (Conf.desks.dragbar_ordering)
+ {
+ case 0:
+ m = 0;
+ n = 1;
+ o = 2;
+ break;
+ case 1:
+ m = 0;
+ n = 2;
+ o = 1;
+ break;
+ case 2:
+ m = 2;
+ n = 0;
+ o = 1;
+ break;
+ case 3:
+ m = 1;
+ n = 0;
+ o = 2;
+ break;
+ case 4:
+ m = 1;
+ n = 2;
+ o = 0;
+ break;
+ case 5:
+ m = 2;
+ n = 1;
+ o = 0;
+ break;
+ default:
+ m = 0;
+ n = 1;
+ o = 2;
+ break;
+ }
+
+ switch (Conf.desks.dragdir)
+ {
+ default:
+ case 0:
+ w[0] = w[1] = w[2] = h[0] = h[1] = Conf.desks.dragbar_width;
+ if (Conf.desks.dragbar_length == 0)
+ h[2] = WinGetH(VROOT) - (Conf.desks.dragbar_width * 2);
+ else
+ h[2] = Conf.desks.dragbar_length;
+ x[0] = x[1] = x[2] = 0;
+ y[m] = 0;
+ y[n] = y[m] + h[m];
+ y[o] = y[n] + h[n];
+ break;
+ case 1:
+ w[0] = w[1] = w[2] = h[0] = h[1] = Conf.desks.dragbar_width;
+ if (Conf.desks.dragbar_length == 0)
+ h[2] = WinGetH(VROOT) - (Conf.desks.dragbar_width * 2);
+ else
+ h[2] = Conf.desks.dragbar_length;
+ x[0] = x[1] = x[2] = WinGetW(VROOT) - Conf.desks.dragbar_width;
+ y[m] = 0;
+ y[n] = y[m] + h[m];
+ y[o] = y[n] + h[n];
+ break;
+ case 2:
+ h[0] = h[1] = h[2] = w[0] = w[1] = Conf.desks.dragbar_width;
+ if (Conf.desks.dragbar_length == 0)
+ w[2] = WinGetW(VROOT) - (Conf.desks.dragbar_width * 2);
+ else
+ w[2] = Conf.desks.dragbar_length;
+ y[0] = y[1] = y[2] = 0;
+ x[m] = 0;
+ x[n] = x[m] + w[m];
+ x[o] = x[n] + w[n];
+ break;
+ case 3:
+ h[0] = h[1] = h[2] = w[0] = w[1] = Conf.desks.dragbar_width;
+ if (Conf.desks.dragbar_length == 0)
+ w[2] = WinGetW(VROOT) - (Conf.desks.dragbar_width * 2);
+ else
+ w[2] = Conf.desks.dragbar_length;
+ y[0] = y[1] = y[2] = WinGetH(VROOT) - Conf.desks.dragbar_width;
+ x[m] = 0;
+ x[n] = x[m] + w[m];
+ x[o] = x[n] + w[n];
+ break;
+ }
+
+ b = NULL;
+
+ if (Conf.desks.dragbar_width > 0)
+ {
+ b = ButtonCreate("_DESKTOP_DRAG_CONTROL", 1, ic2, ac2, NULL, NULL,
+ -1, FLAG_FIXED, 1, 99999, 1, 99999, 0, 0, x[0], 0,
+ y[0], 0, 0, w[0], 0, h[0], 0, dsk->num, 0);
+ b = ButtonCreate("_DESKTOP_DRAG_CONTROL", 1, ic3, ac3, NULL, NULL,
+ -1, FLAG_FIXED, 1, 99999, 1, 99999, 0, 0, x[1], 0,
+ y[1], 0, 0, w[1], 0, h[1], 0, dsk->num, 0);
+ b = ButtonCreate("_DESKTOP_DRAG_CONTROL", 1, ic1, ac1, NULL, NULL,
+ -1, FLAG_FIXED, 1, 99999, 1, 99999, 0, 0, x[2], 0,
+ y[2], 0, 0, w[2], 0, h[2], 0, dsk->num, 0);
+ ButtonSetCallback(b, DeskButtonCallback, EoObj(dsk));
+ }
+
+#if ENABLE_DESKRAY
+ if (dsk->num > 0)
+ {
+ if (Conf.desks.dragdir == 0)
+ {
+ b = ButtonCreate("_DESKTOP_DESKRAY_DRAG_CONTROL", 2, ic4, ac1,
+ NULL, NULL, 1, FLAG_FIXED_VERT, 1, 99999, 1,
+ 99999, 0, 0, EoGetX(dsk), 0, EoGetY(dsk),
+ 0, 0, 0, 0, 0, 1, 0, 1);
+ }
+ else if (Conf.desks.dragdir == 1)
+ {
+ b = ButtonCreate("_DESKTOP_DESKRAY_DRAG_CONTROL", 2, ic4, ac1,
+ NULL, NULL, 1, FLAG_FIXED_VERT, 1, 99999, 1,
+ 99999, 0, 0,
+ EoGetX(dsk) + WinGetW(VROOT) -
+ Conf.desks.dragbar_width, 0, EoGetY(dsk),
+ 0, 0, 0, 0, 0, 1, 0, 1);
+ }
+ else if (Conf.desks.dragdir == 2)
+ {
+ b = ButtonCreate("_DESKTOP_DESKRAY_DRAG_CONTROL", 2, ic4, ac1,
+ NULL, NULL, 1, FLAG_FIXED_HORIZ, 1, 99999, 1,
+ 99999, 0, 0, EoGetX(dsk), 0, EoGetY(dsk),
+ 0, 0, 0, 0, 0, 1, 0, 1);
+ }
+ else
+ {
+ b = ButtonCreate("_DESKTOP_DESKRAY_DRAG_CONTROL", 2, ic4, ac1,
+ NULL, NULL, 1, FLAG_FIXED_HORIZ, 1, 99999, 1,
+ 99999, 0, 0, EoGetX(dsk), 0,
+ EoGetY(dsk) + WinGetH(VROOT) -
+ Conf.desks.dragbar_width, 0, 0, 0, 0, 0, 1, 0, 1);
+ }
+ }
+#endif
+
+ dsk->tag = b;
+}
+
+static void
+DeskControlsDestroy(Desk * dsk, int id)
+{
+ ButtonsForeach(id, dsk, ButtonDestroy);
+}
+
+static void
+DeskControlsShow(Desk * dsk, int id)
+{
+ ButtonsForeach(id, dsk, ButtonShow);
+}
+
+static void
+DeskConfigure(Desk * dsk)
+{
+ Background *bg;
+
+ DeskControlsCreate(dsk);
+ DeskControlsShow(dsk, 1);
+
+ bg = BackgroundGetForDesk(dsk->num);
+ DeskBackgroundSet(dsk, bg);
+
+ if (dsk->num > 0)
+ {
+ EoMove(dsk, WinGetW(VROOT), 0);
+ EoMap(dsk, 0);
+ }
+
+ ModulesSignal(ESIGNAL_DESK_ADDED, dsk);
+}
+
+static Desk *
+DeskCreate(int desk, int configure)
+{
+#if USE_COMPOSITE
+ EObj *eo;
+#endif
+ Desk *dsk;
+ Win win;
+ char buf[64];
+
+ if (desk < 0 || desk >= ENLIGHTENMENT_CONF_NUM_DESKTOPS)
+ return NULL;
+
+ dsk = ECALLOC(Desk, 1);
+
+ desks.desk[desk] = dsk;
+ dsk->num = desk;
+ desks.order[desk] = desk;
+
+ win = (desk == 0) ? VROOT : NULL;
+
+ Esnprintf(buf, sizeof(buf), "Desk-%d", desk);
+ EoSetNoRedirect(dsk, 1);
+ EoInit(dsk, EOBJ_TYPE_DESK, win,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT), 0, buf);
+ EventCallbackRegister(EoGetWin(dsk), 0, DeskHandleEvents, dsk);
+ dsk->bg.o = EoObj(dsk);
+ if (desk == 0)
+ {
+ desks.current = dsk;
+#if !USE_BG_WIN_ON_ALL_DESKS /* TBD - Use per virtual root bg window? */
+#if USE_COMPOSITE
+ /* Add background window */
+ eo = EobjWindowCreate(EOBJ_TYPE_ROOT_BG,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT),
+ 0, "Root-bg");
+ eo->floating = 0;
+ EobjSetLayer(eo, 0);
+ EventCallbackRegister(EobjGetWin(eo), 0, DeskHandleEvents, dsk);
+ dsk->bg.o_bg = eo;
+ ESelectInput(EobjGetWin(eo), EnterWindowMask);
+#endif
+#endif
+ }
+ else
+ {
+ EoSetFloating(dsk, 1);
+ EoSetLayer(dsk, 0);
+ /* Set the _XROOT... atoms so apps will find them even before the bg is set */
+ HintsSetRootInfo(EoGetWin(dsk), None, 0);
+ }
+
+#if USE_BG_WIN_ON_ALL_DESKS /* TBD - Use per virtual root bg window? */
+#if USE_COMPOSITE
+ /* Add background window */
+ Esnprintf(buf, sizeof(buf), "Desk-bg-%d", desk);
+ eo = EobjWindowCreate(EOBJ_TYPE_MISC,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT), 0, buf);
+ eo->floating = 0;
+ EobjReparent(eo, EoObj(dsk), 0, 0);
+ EobjSetLayer(eo, 0);
+ dsk->bg.o_bg = eo;
+ EventCallbackRegister(EobjGetWin(eo), 0, DeskHandleEvents, dsk);
+#endif
+#endif
+
+ HintsSetRootHints(EoGetWin(dsk));
+
+ if (configure)
+ DeskConfigure(dsk);
+
+ if (desk == 0)
+ ESelectInputChange(EoGetWin(dsk), EDESK_EVENT_MASK, 0);
+ else
+ ESelectInput(EoGetWin(dsk), EDESK_EVENT_MASK);
+
+ return dsk;
+}
+
+static void
+DeskDestroy(Desk * dsk)
+{
+ ModulesSignal(ESIGNAL_DESK_REMOVED, dsk);
+
+#if USE_COMPOSITE
+ if (dsk->bg.o_bg)
+ {
+ EventCallbackUnregister(EobjGetWin(dsk->bg.o_bg), 0, DeskHandleEvents,
+ dsk);
+ EobjWindowDestroy(dsk->bg.o_bg);
+ }
+#endif
+ EventCallbackUnregister(EoGetWin(dsk), 0, DeskHandleEvents, dsk);
+
+ DeskControlsDestroy(dsk, 1);
+ DeskControlsDestroy(dsk, 2);
+
+ if (dsk->bg.bg)
+ BackgroundDecRefcount(dsk->bg.bg);
+
+ EoFini(dsk);
+
+ desks.desk[dsk->num] = NULL;
+ Efree(dsk);
+}
+
+EObj *
+DeskGetBackgroundObj(const Desk * dsk)
+{
+ return (dsk) ? dsk->bg.o : NULL;
+}
+
+Pixmap
+DeskGetBackgroundPixmap(const Desk * dsk)
+{
+ if (!dsk)
+ return None;
+ return dsk->bg.pmap;
+}
+
+Background *
+DeskBackgroundGet(const Desk * dsk)
+{
+ return (dsk) ? dsk->bg.bg : NULL;
+}
+
+static void
+DeskBackgroundConfigure(Desk * dsk)
+{
+ Win win;
+ Pixmap pmap = dsk->bg.pmap;
+ unsigned long pixel = dsk->bg.pixel;
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf
+ ("DeskBackgroundConfigure %d v=%d %#lx/%#lx: ext=%d pmap=%#lx/%#lx pixel=%#lx/%#lx\n",
+ dsk->num, dsk->viewable, EoGetXwin(dsk), EobjGetXwin(dsk->bg.o),
+ BackgroundIsNone(dsk->bg.bg), pmap, dsk->bg.pmap_set, pixel,
+ dsk->bg.pixel);
+
+#if USE_COMPOSITE
+ if (dsk->bg.o_bg)
+ {
+ if (ECompMgrIsActive())
+ {
+ dsk->bg.o = dsk->bg.o_bg;
+ EobjMap(dsk->bg.o_bg, 0);
+ }
+ else
+ {
+ dsk->bg.o = EoObj(dsk);
+ EobjUnmap(dsk->bg.o_bg);
+ }
+ }
+#endif
+
+ win = EobjGetWin(dsk->bg.o);
+
+ if (dsk->viewable || !dsk->bg.bg)
+ {
+#if !USE_BG_WIN_ON_ALL_DESKS
+ if (ECompMgrDeskConfigure(dsk))
+ {
+ ESetWindowBackgroundPixmap(win, None);
+ }
+ else
+#endif
+ {
+ if (pmap != None)
+ {
+ ESetWindowBackgroundPixmap(win, pmap);
+ if (dsk->num == 0 && win != VROOT)
+ ESetWindowBackgroundPixmap(VROOT, pmap);
+ }
+ else
+ {
+ ESetWindowBackground(win, pixel);
+ if (dsk->num == 0 && win != VROOT)
+ ESetWindowBackground(VROOT, pixel);
+ }
+ EClearWindow(win);
+ }
+
+ HintsSetRootInfo(EoGetWin(dsk), pmap, pixel);
+ }
+ else if (dsk->bg.bg)
+ {
+ if (!Conf.hints.set_xroot_info_on_root_window)
+ HintsSetRootInfo(EoGetWin(dsk), None, 0);
+
+ ESetWindowBackgroundPixmap(win, None);
+ if (dsk->num == 0 && win != VROOT)
+ ESetWindowBackgroundPixmap(VROOT, None);
+ }
+}
+
+static void
+DeskBackgroundRefresh(Desk * dsk, int why)
+{
+ Background *bg = dsk->bg.bg;
+ Pixmap pmap = dsk->bg.pmap;
+ unsigned long pixel = dsk->bg.pixel;
+ int changed = 0;
+ int reconfigure = 0;
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskBackgroundRefresh %d v=%d why=%d pmap=%#lx pixel=%#lx\n",
+ dsk->num, dsk->viewable, why, pmap, pixel);
+
+ switch (why)
+ {
+ case DESK_BG_REFRESH:
+ if (bg && dsk->viewable)
+ BackgroundTouch(bg);
+ break;
+
+ case DESK_BG_RECONFIGURE_ALL:
+ reconfigure = 1;
+ break;
+
+ case DESK_BG_TIMEOUT:
+ if (bg && dsk->viewable)
+ BackgroundTouch(bg);
+ return;
+
+ case DESK_BG_FREE:
+ if (!bg || dsk->viewable)
+ return;
+ break;
+ }
+
+ if (bg)
+ {
+ if (dsk->viewable)
+ {
+ if (BackgroundGetSeqNo(bg) == dsk->bg.seq_no)
+ goto done;
+
+ pmap = BackgroundGetPixmap(bg);
+ pixel = 0;
+
+ if (pmap == None)
+ BackgroundRealize(bg, EoGetWin(dsk), None,
+ EoGetW(dsk), EoGetH(dsk), 1, &pmap, &pixel);
+ if (pmap != None)
+ BackgroundPixmapSet(bg, pmap);
+
+ dsk->bg.seq_no = BackgroundGetSeqNo(bg);
+ changed = 1;
+ }
+ else
+ {
+ if (dsk->bg.pmap == None)
+ return;
+
+ pmap = None;
+ pixel = 0;
+ dsk->bg.seq_no = 0;
+ }
+ }
+ else
+ {
+ pmap = (Mode.root.ext_pmap_valid) ? Mode.root.ext_pmap : None;
+ pixel = 0;
+ changed = pmap != dsk->bg.pmap_set;
+ }
+
+ done:
+ dsk->bg.pmap = pmap;
+ if (reconfigure || pmap != dsk->bg.pmap_set || pixel != dsk->bg.pixel)
+ {
+ dsk->bg.pixel = pixel;
+ DeskBackgroundConfigure(dsk);
+ dsk->bg.pmap_set = pmap;
+ }
+
+ if (bg && dsk->viewable)
+ if (Conf.hints.set_xroot_info_on_root_window && dsk->num > 0)
+ HintsSetRootInfo(VROOT, pmap, pixel);
+
+ if (changed)
+ ModulesSignal(ESIGNAL_BACKGROUND_CHANGE, dsk);
+}
+
+void
+DeskBackgroundSet(Desk * dsk, Background * bg)
+{
+ if (!dsk)
+ return;
+
+ BackgroundSetForDesk(bg, dsk->num);
+ if (bg && BackgroundIsNone(bg))
+ bg = NULL;
+
+ if (dsk->bg.bg != bg)
+ {
+ if (dsk->bg.bg)
+ BackgroundDecRefcount(dsk->bg.bg);
+ if (bg)
+ BackgroundIncRefcount(bg);
+ }
+
+ dsk->bg.bg = bg;
+
+ DeskBackgroundRefresh(dsk, DESK_BG_REFRESH);
+}
+
+void
+DesksBackgroundRefresh(Background * bg, int why)
+{
+ Desk *dsk;
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ {
+ dsk = _DeskGet(i);
+ if (!dsk) /* May happen during init */
+ continue;
+ if (bg && dsk->bg.bg != bg)
+ continue;
+ DeskBackgroundRefresh(dsk, why);
+ }
+}
+
+static void
+DeskResize(int desk, int w, int h)
+{
+ Desk *dsk;
+ int x;
+
+ dsk = _DeskGet(desk);
+
+ if (dsk->num != 0)
+ {
+ x = (dsk->viewable) ? EoGetX(dsk) : WinGetW(VROOT);
+ EoMoveResize(dsk, x, 0, w, h);
+ }
+#if USE_COMPOSITE
+ if (dsk->bg.o_bg)
+ EobjMoveResize(dsk->bg.o_bg, 0, 0, w, h);
+#endif
+ DeskBackgroundRefresh(dsk, DESK_BG_REFRESH);
+ DeskControlsDestroy(dsk, 1);
+ DeskControlsCreate(dsk);
+ DeskControlsShow(dsk, 1);
+}
+
+Desk *
+DeskGet(unsigned int desk)
+{
+ if (desk >= Conf.desks.num)
+ return NULL;
+
+ return _DeskGet(desk);
+}
+
+Desk *
+DeskGetRelative(Desk * dsk, int inc)
+{
+ unsigned int desk;
+
+ desk = (dsk) ? dsk->num : 0;
+ desk += inc;
+ desk %= Conf.desks.num;
+
+ return _DeskGet(desk);
+}
+
+void
+DeskGetArea(const Desk * dsk, int *ax, int *ay)
+{
+ if (!dsk)
+ {
+ *ax = *ay = 0;
+ return;
+ }
+ *ax = dsk->current_area_x;
+ *ay = dsk->current_area_y;
+}
+
+void
+DeskSetArea(Desk * dsk, int ax, int ay)
+{
+ if (!dsk)
+ return;
+
+ dsk->current_area_x = ax;
+ dsk->current_area_y = ay;
+}
+
+void
+DeskSetDirtyStack(Desk * dsk, EObj * eo)
+{
+ dsk->stack.dirty++;
+ dsk->stack.latest = eo;
+ if (EobjGetType(eo) == EOBJ_TYPE_EWIN)
+ dsk->stack.update_client_list = 1;
+ if (EDebug(EDBUG_TYPE_STACKING))
+ Eprintf("DeskSetDirtyStack %d (%d): %s\n", dsk->num, dsk->stack.dirty,
+ EobjGetName(eo));
+}
+
+void
+DeskCurrentGetArea(int *ax, int *ay)
+{
+ DeskGetArea(desks.current, ax, ay);
+}
+
+static void
+DeskCurrentSetArea(int ax, int ay)
+{
+ DeskSetArea(desks.current, ax, ay);
+}
+
+unsigned int
+DesksGetNumber(void)
+{
+ return Conf.desks.num;
+}
+
+Desk *
+DesksGetCurrent(void)
+{
+ return desks.current;
+}
+
+unsigned int
+DesksGetCurrentNum(void)
+{
+ return desks.current->num;
+}
+
+void
+DesksSetCurrent(Desk * dsk)
+{
+ if (!dsk)
+ return;
+ desks.current = dsk;
+}
+
+static void
+DesksResize(int w, int h)
+{
+ unsigned int i;
+
+ BackgroundsInvalidate(0);
+
+ for (i = 0; i < Conf.desks.num; i++)
+ DeskResize(i, w, h);
+
+ EdgeWindowsShow();
+
+ ModulesSignal(ESIGNAL_DESK_RESIZE, NULL);
+}
+
+static void
+ChangeNumberOfDesktops(unsigned int quantity)
+{
+ unsigned int i;
+ int j, num;
+ EWin *const *lst;
+
+ if (quantity >= ENLIGHTENMENT_CONF_NUM_DESKTOPS)
+ quantity = ENLIGHTENMENT_CONF_NUM_DESKTOPS;
+
+ if (quantity <= 0 || quantity == Conf.desks.num)
+ return;
+
+ for (i = quantity; i < Conf.desks.num; i++)
+ DeskLower(i);
+
+ if (quantity > Conf.desks.num)
+ {
+ while (Conf.desks.num < quantity)
+ {
+ Conf.desks.num++;
+ DeskCreate(Conf.desks.num - 1, 1);
+ }
+ }
+ else if (quantity < Conf.desks.num)
+ {
+ lst = EwinListGetAll(&num);
+ for (j = 0; j < num; j++)
+ {
+ if (EoGetDeskNum(lst[j]) >= quantity)
+ EwinMoveToDesktop(lst[j], _DeskGet(quantity - 1));
+ }
+
+ while (Conf.desks.num > quantity)
+ {
+ DeskDestroy(_DeskGet(Conf.desks.num - 1));
+ Conf.desks.num--;
+ }
+ }
+
+ if (DesksGetCurrentNum() >= Conf.desks.num)
+ DeskGotoNum(Conf.desks.num - 1);
+
+ HintsSetDesktopConfig();
+
+ autosave();
+}
+
+static void
+DesksControlsCreate(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ DeskControlsCreate(_DeskGet(i));
+}
+
+static void
+DesksControlsDestroy(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ DeskControlsDestroy(_DeskGet(i), 1);
+}
+
+static void
+DesksControlsShow(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ DeskControlsShow(_DeskGet(i), 1);
+}
+
+static void
+DesksControlsRefresh(void)
+{
+ DesksControlsDestroy();
+ DesksControlsCreate();
+ DesksControlsShow();
+
+ autosave();
+}
+
+#if 0 /* Unused */
+static void
+DeskShowTabs(void)
+{
+ ButtonsForeach(2, NULL, ButtonShow);
+}
+
+static void
+DeskHideTabs(void)
+{
+ ButtonsForeach(2, NULL, ButtonHide);
+}
+#endif
+
+static void
+DeskButtonShowDefault(Button * b)
+{
+ if (!ButtonDoShowDefault(b))
+ return;
+ ButtonShow(b);
+}
+
+static void
+DeskShowButtons(void)
+{
+ ButtonsForeach(0, NULL, DeskButtonShowDefault);
+}
+
+static void
+MoveToDeskTop(Desk * dsk)
+{
+ int i, j;
+
+ EoRaise(dsk);
+
+ j = -1;
+ i = 0;
+ while (j < 0 && i < (int)Conf.desks.num)
+ {
+ if (desks.order[i] == dsk->num)
+ j = i;
+ i++;
+ }
+ if (j < 0)
+ return;
+ if (j > 0)
+ {
+ for (i = j - 1; i >= 0; i--)
+ desks.order[i + 1] = desks.order[i];
+ desks.order[0] = dsk->num;
+ }
+}
+
+static void
+MoveToDeskBottom(Desk * dsk)
+{
+ int i, j;
+
+ EoLower(dsk);
+
+ j = -1;
+ i = 0;
+ while (j < 0 && i < (int)Conf.desks.num)
+ {
+ if (desks.order[i] == dsk->num)
+ j = i;
+ i++;
+ }
+ if (j < 0)
+ return;
+ if (j < (int)Conf.desks.num - 1)
+ {
+ for (i = j; i < (int)Conf.desks.num - 1; i++)
+ desks.order[i] = desks.order[i + 1];
+ desks.order[Conf.desks.num - 1] = dsk->num;
+ }
+}
+
+Desk *
+DesktopAt(int x, int y)
+{
+ Desk *dsk;
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ {
+ dsk = _DeskGet(desks.order[i]);
+ if (x >= EoGetX(dsk) && x < (EoGetX(dsk) + WinGetW(VROOT)) &&
+ y >= EoGetY(dsk) && y < (EoGetY(dsk) + WinGetH(VROOT)))
+ return _DeskGet(desks.order[i]);
+ }
+ return _DeskGet(0);
+}
+
+static void
+DesksStackingCheck(void)
+{
+ Desk *dsk;
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ {
+ dsk = _DeskGet(i);
+ if (i && !dsk->viewable)
+ continue;
+ if (!dsk->stack.dirty)
+ continue;
+ DeskRestack(dsk);
+ }
+}
+
+static void
+_DesksIdler(void *data __UNUSED__)
+{
+ DesksStackingCheck();
+}
+
+static void
+DeskMove(Desk * dsk, int x, int y)
+{
+ Desk *dd;
+ unsigned int i;
+ int n, v, dx, dy;
+
+ if (dsk->num <= 0)
+ return;
+
+ n = -1;
+ i = 0;
+ while (n < 0 && i < Conf.desks.num)
+ {
+ if (desks.order[i] == dsk->num)
+ n = i;
+ i++;
+ }
+ if (n < 0) /* Should not be possible */
+ return;
+
+ dx = x - EoGetX(dsk);
+ dy = y - EoGetY(dsk);
+
+ if (x == 0 && y == 0)
+ {
+ /* Desks below are obscured - touch and set unviewable */
+ for (i = n + 1; i < Conf.desks.num; i++)
+ {
+ dd = _DeskGet(desks.order[i]);
+ if (dd->viewable)
+ BackgroundTouch(dd->bg.bg);
+ dd->viewable = 0;
+ }
+ }
+ else
+ {
+ v = dsk->viewable;
+
+ for (i = n + 1; i < Conf.desks.num; i++)
+ {
+ dd = _DeskGet(desks.order[i]);
+ if (!dd->viewable && v)
+ {
+ dd->viewable = 1;
+ DeskBackgroundRefresh(_DeskGet(desks.order[i]),
+ DESK_BG_REFRESH);
+ }
+ else if (dd->viewable && !v)
+ {
+ BackgroundTouch(dd->bg.bg);
+ dd->viewable = 0;
+ }
+
+ if (EoGetX(dd) == 0 && EoGetY(dd) == 0)
+ v = 0;
+ }
+ }
+
+ EoMove(dsk, x, y);
+
+ if (dsk->tag)
+ ButtonMoveRelative(dsk->tag, dx, dy);
+
+#if 0 /* FIXME - Remove? */
+ EWin *const *lst;
+
+ lst = EwinListGetAll(&n);
+ for (i = 0; i < (unsigned int)n; i++)
+ if (EoGetDesk(lst[i]) == dsk)
+ ICCCM_Configure(lst[i]);
+#endif
+}
+
+static void
+DeskHide(unsigned int desk)
+{
+ Desk *dsk;
+
+ if (desk <= 0 || desk >= Conf.desks.num)
+ return;
+
+ dsk = _DeskGet(desk);
+
+ if (dsk->viewable)
+ BackgroundTouch(dsk->bg.bg);
+ dsk->viewable = 0;
+ EoMove(dsk, WinGetW(VROOT), 0);
+}
+
+static void
+DeskEnter(Desk * dsk)
+{
+ int i;
+
+ EGrabServer();
+
+ dsk->viewable = 1;
+ DeskBackgroundRefresh(dsk, DESK_BG_REFRESH);
+ MoveToDeskTop(dsk);
+
+ desks.previous = desks.current = dsk;
+
+ if (dsk->num == 0)
+ {
+ for (i = Conf.desks.num - 1; i > 0; i--)
+ DeskHide(desks.order[i]);
+ }
+
+ EwinsMoveStickyToDesk(dsk);
+ ButtonsMoveStickyToDesk(dsk);
+ DesksStackingCheck();
+ HintsSetCurrentDesktop();
+ EdgeWindowsShow();
+
+ EUngrabServer();
+}
+
+void
+DeskGotoNum(unsigned int desk)
+{
+ Desk *dsk;
+
+ if (Conf.desks.desks_wraparound)
+ desk %= Conf.desks.num;
+ if (desk >= Conf.desks.num || desk == desks.current->num)
+ return;
+
+ dsk = _DeskGet(desk);
+ DeskGoto(dsk);
+}
+
+static void
+DeskSwitchStart(void)
+{
+ FocusNewDeskBegin();
+}
+
+static void
+DeskSwitchDone(void)
+{
+ FocusNewDesk();
+}
+
+void
+DeskGoto(Desk * dsk)
+{
+ if (!dsk || dsk == desks.previous)
+ return;
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskGoto %d\n", dsk->num);
+
+ ModulesSignal(ESIGNAL_DESK_SWITCH_START, NULL);
+
+ ActionsSuspend();
+ DeskSwitchStart();
+
+ if (dsk->num > 0)
+ {
+ if (Conf.desks.slidein)
+ {
+ if (!dsk->viewable)
+ {
+ int x, y;
+
+ switch (Conf.desks.dragdir)
+ {
+ default:
+ case 0:
+ x = WinGetW(VROOT);
+ y = 0;
+ break;
+ case 1:
+ x = -WinGetW(VROOT);
+ y = 0;
+ break;
+ case 2:
+ x = 0;
+ y = WinGetH(VROOT);
+ break;
+ case 3:
+ x = 0;
+ y = -WinGetH(VROOT);
+ break;
+ }
+ DeskMove(dsk, x, y);
+ DeskEnter(dsk);
+ EobjSlideTo(&dsk->o, x, y, 0, 0, Conf.desks.slidespeed);
+ }
+ else
+ {
+ EobjSlideTo(&dsk->o, EoGetX(dsk), EoGetY(dsk), 0, 0,
+ Conf.desks.slidespeed);
+ DeskEnter(dsk);
+ }
+ }
+ else
+ {
+ DeskEnter(dsk);
+ }
+ DeskMove(dsk, 0, 0);
+ }
+ else
+ {
+ DeskEnter(dsk);
+ }
+
+ DeskSwitchDone();
+ ActionsResume();
+
+ ModulesSignal(ESIGNAL_DESK_SWITCH_DONE, NULL);
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskGoto %d done\n", dsk->num);
+}
+
+static void
+UncoverDesktop(unsigned int desk)
+{
+ Desk *dsk;
+
+ if (desk >= Conf.desks.num)
+ return;
+
+ dsk = _DeskGet(desk);
+
+ dsk->viewable = 1;
+ DeskBackgroundRefresh(dsk, DESK_BG_REFRESH);
+}
+
+static void
+DeskRaise(unsigned int desk)
+{
+ Desk *dsk;
+
+ if (desk >= Conf.desks.num)
+ return;
+
+ dsk = _DeskGet(desk);
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskRaise(%d) current=%d\n", desk, desks.current->num);
+
+ DeskSwitchStart();
+ DeskEnter(dsk);
+ DeskSwitchDone();
+
+ ModulesSignal(ESIGNAL_DESK_SWITCH_DONE, NULL);
+
+ ESync(ESYNC_DESKS);
+}
+
+static void
+DeskLower(unsigned int desk)
+{
+ Desk *dsk;
+
+ if ((desk <= 0) || (desk >= Conf.desks.num))
+ return;
+
+ dsk = _DeskGet(desk);
+
+ DeskSwitchStart();
+ MoveToDeskBottom(dsk);
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskLower(%d) %d -> %d\n", desk, desks.current->num,
+ desks.order[0]);
+
+ desks.previous = desks.current = DeskGet(desks.order[0]);
+
+ EGrabServer();
+
+ UncoverDesktop(desks.order[0]);
+ DeskHide(desk);
+
+ EwinsMoveStickyToDesk(desks.current);
+ ButtonsMoveStickyToDesk(desks.current);
+ DesksStackingCheck();
+ DeskSwitchDone();
+ if (Mode.mode == MODE_NONE)
+ ModulesSignal(ESIGNAL_DESK_SWITCH_DONE, NULL);
+ HintsSetCurrentDesktop();
+
+ EUngrabServer();
+ ESync(ESYNC_DESKS);
+}
+
+#if 0 /* Unused */
+void
+DeskShow(int desk)
+{
+ Desk *dsk;
+ int i;
+
+ if (desk < 0 || desk >= Conf.desks.num)
+ return;
+
+ dsk = _DeskGet(desk);
+
+ dsk->viewable = 1;
+ DeskBackgroundRefresh(dsk, DESK_BG_REFRESH);
+ MoveToDeskTop(desk);
+
+ if (desk == 0)
+ {
+ for (i = Conf.desks.num - 1; i > 0; i--)
+ DeskHide(desks.order[i]);
+ }
+}
+#endif
+
+static void
+DeskRestackSimple(Desk * dsk)
+{
+ EObj *const *lst, *eo;
+ int i, num;
+ XWindowChanges xwc;
+ unsigned int value_mask;
+
+ eo = dsk->stack.latest;
+ eo->stacked = 1;
+
+ if (EDebug(EDBUG_TYPE_STACKING))
+ Eprintf("DeskRestackSimple %#lx %s\n", EobjGetXwin(eo), EobjGetName(eo));
+
+ lst = EobjListStackGetForDesk(&num, dsk);
+ if (num < 2)
+ return;
+
+ for (i = 0; i < num; i++)
+ if (lst[i] == eo)
+ break;
+ if (i >= num)
+ return;
+
+ if (i < num - 1)
+ {
+ xwc.stack_mode = Above;
+ xwc.sibling = EobjGetXwin(lst[i + 1]);
+ }
+ else
+ {
+ xwc.stack_mode = Below;
+ xwc.sibling = EobjGetXwin(lst[i - 1]);
+ }
+ value_mask = CWSibling | CWStackMode;
+ if (EDebug(EDBUG_TYPE_STACKING))
+ Eprintf("DeskRestackSimple %#10lx %s %#10lx\n", EobjGetXwin(eo),
+ (xwc.stack_mode == Above) ? "Above" : "Below", xwc.sibling);
+ XConfigureWindow(disp, EobjGetXwin(eo), value_mask, &xwc);
+}
+
+#define _APPEND_TO_WIN_LIST(win) \
+ { \
+ wl = EREALLOC(Window, wl, ++tot); \
+ wl[tot - 1] = win; \
+ }
+void
+DeskRestack(Desk * dsk)
+{
+ Window *wl;
+ int i, num, tot;
+ EObj *const *lst, *eo;
+
+ if (!dsk->stack.dirty)
+ return;
+
+ /* Special case if only one window needs restacking */
+ if (dsk->stack.dirty == 1)
+ {
+ DeskRestackSimple(dsk);
+ goto done;
+ }
+
+ /* Build the window stack, top to bottom */
+ tot = 0;
+ wl = NULL;
+ lst = EobjListStackGetForDesk(&num, dsk);
+
+ /* Normal objects */
+ for (i = 0; i < num; i++)
+ {
+ eo = lst[i];
+ _APPEND_TO_WIN_LIST(EobjGetXwin(eo));
+ eo->stacked = 1;
+ }
+
+ if (EDebug(EDBUG_TYPE_STACKING))
+ {
+ Eprintf("DeskRestack %d (%d):\n", dsk->num, dsk->stack.dirty);
+ for (i = 0; i < tot; i++)
+ Eprintf(" win=%#10lx parent=%#10lx\n", wl[i],
+ EXWindowGetParent(wl[i]));
+ }
+
+ EXRestackWindows(wl, tot);
+
+ Efree(wl);
+
+ done:
+ if (dsk->stack.update_client_list)
+ {
+ dsk->stack.update_client_list = 0;
+ HintsSetClientStacking();
+ ClickGrabsUpdate();
+ }
+ dsk->stack.dirty = 0;
+ dsk->stack.latest = NULL;
+}
+
+void
+DeskGotoByEwin(EWin * ewin)
+{
+ if (EoIsSticky(ewin) || EoIsFloating(ewin))
+ return;
+
+ DeskGoto(EoGetDesk(ewin));
+ DeskCurrentGotoArea(ewin->area_x, ewin->area_y);
+}
+
+/*
+ * Areas
+ */
+static int area_w = 3;
+static int area_h = 3;
+
+void
+DesksFixArea(int *ax, int *ay)
+{
+ if (*ax < 0)
+ {
+ if (Conf.desks.areas_wraparound)
+ *ax = area_w - 1;
+ else
+ *ax = 0;
+ }
+ else if (*ax >= area_w)
+ {
+ if (Conf.desks.areas_wraparound)
+ *ax = 0;
+ else
+ *ax = area_w - 1;
+ }
+
+ if (*ay < 0)
+ {
+ if (Conf.desks.areas_wraparound)
+ *ay = area_h - 1;
+ else
+ *ay = 0;
+ }
+ else if (*ay >= area_h)
+ {
+ if (Conf.desks.areas_wraparound)
+ *ay = 0;
+ else
+ *ay = area_h - 1;
+ }
+}
+
+static int
+AreaXYToLinear(int ax, int ay)
+{
+ DesksFixArea(&ax, &ay);
+ return (ay * area_w) + ax;
+}
+
+static void
+AreaLinearToXY(int a, int *ax, int *ay)
+{
+ if (a < 0)
+ a = 0;
+ else if (a >= (area_w * area_h))
+ a = (area_w * area_h) - 1;
+ *ay = a / area_w;
+ *ax = a - (*ay * area_w);
+}
+
+static void
+SetAreaSize(int aw, int ah)
+{
+ if (aw < 1)
+ aw = 1;
+ if (ah < 1)
+ ah = 1;
+ Conf.desks.areas_nx = area_w = aw;
+ Conf.desks.areas_ny = area_h = ah;
+ HintsSetViewportConfig();
+ EdgeWindowsShow();
+ ModulesSignal(ESIGNAL_AREA_CONFIGURED, NULL);
+}
+
+void
+DesksGetAreaSize(int *aw, int *ah)
+{
+ *aw = area_w;
+ *ah = area_h;
+}
+
+static void
+SetNewAreaSize(int ax, int ay)
+{
+
+ int a, b, i, num;
+ EWin *const *lst;
+
+ if (ax <= 0)
+ return;
+ if (ay <= 0)
+ return;
+
+ DesksGetAreaSize(&a, &b);
+ if ((a == ax) && (b == ay))
+ return;
+
+ SetAreaSize(ax, ay);
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if (!EoIsSticky(lst[i]))
+ {
+ if (lst[i]->area_x >= ax)
+ EwinMoveToArea(lst[i], ax - 1, lst[i]->area_x);
+ if (lst[i]->area_y >= ay)
+ EwinMoveToArea(lst[i], lst[i]->area_x, ay - 1);
+ }
+ }
+
+ DeskCurrentGetArea(&a, &b);
+ if (a >= ax)
+ {
+ DeskCurrentGotoArea(ax - 1, b);
+ DeskCurrentGetArea(&a, &b);
+ }
+ if (b >= ay)
+ DeskCurrentGotoArea(a, ay - 1);
+
+ autosave();
+}
+
+static void
+SetCurrentLinearArea(int a)
+{
+ int ax, ay;
+
+ AreaLinearToXY(a, &ax, &ay);
+ DeskCurrentGotoArea(ax, ay);
+}
+
+static int
+GetCurrentLinearArea(void)
+{
+ int ax, ay;
+
+ DeskCurrentGetArea(&ax, &ay);
+
+ return AreaXYToLinear(ax, ay);
+}
+
+static void
+MoveCurrentLinearAreaBy(int a)
+{
+ SetCurrentLinearArea(GetCurrentLinearArea() + a);
+}
+
+void
+DeskCurrentGotoArea(int ax, int ay)
+{
+ EWin *const *lst, *ewin;
+ int i, num, dx, dy, pax, pay;
+
+ if ((Mode.mode == MODE_RESIZE) || (Mode.mode == MODE_RESIZE_H)
+ || (Mode.mode == MODE_RESIZE_V))
+ return;
+
+ DesksFixArea(&ax, &ay);
+ DeskCurrentGetArea(&pax, &pay);
+
+ if (ax == pax && ay == pay)
+ return;
+
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskCurrentGotoArea %d,%d\n", ax, ay);
+
+ ModulesSignal(ESIGNAL_AREA_SWITCH_START, NULL);
+
+ dx = WinGetW(VROOT) * (ax - pax);
+ dy = WinGetH(VROOT) * (ay - pay);
+
+ if (dx < 0)
+ SoundPlay(SOUND_MOVE_AREA_LEFT);
+ else if (dx > 0)
+ SoundPlay(SOUND_MOVE_AREA_RIGHT);
+ else if (dy < 0)
+ SoundPlay(SOUND_MOVE_AREA_UP);
+ else if (dy > 0)
+ SoundPlay(SOUND_MOVE_AREA_DOWN);
+
+ ActionsSuspend();
+
+ /* remove lots of event masks from windows.. we dont want to bother */
+ /* handling events as a result of our playing wiht windows */
+ DeskSwitchStart();
+
+ /* set the current area up in out data structs */
+ DeskCurrentSetArea(ax, ay);
+
+ /* move all the windows around */
+ lst = EwinListGetAll(&num);
+ if (Conf.desks.slidein)
+ {
+ int wnum = 0;
+ EObj **wl = NULL;
+
+ /* create the list of windwos to move */
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+ if (EoIsSticky(ewin) || ewin->state.iconified)
+ continue;
+ if (EoGetDesk(ewin) != DesksGetCurrent() && !EoIsFloating(ewin))
+ continue;
+
+ if (EoIsFloating(ewin) && Conf.movres.mode_move == 0)
+ continue;
+
+ wnum++;
+ wl = EREALLOC(EObj *, wl, wnum);
+ wl[wnum - 1] = &ewin->o;
+ }
+
+ /* slide them */
+ if (wl)
+ {
+ EobjsSlideBy(wl, wnum, -dx, -dy, Conf.desks.slidespeed);
+ Efree(wl);
+ EobjsRepaint();
+ }
+ }
+
+ /* move all windows to their final positions */
+ Mode.move.check = 0;
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+ if (EwinIsTransientChild(ewin))
+ continue;
+ if (EoGetDesk(ewin) != DesksGetCurrent() && !EoIsFloating(ewin))
+ continue;
+
+ if (EoIsSticky(ewin) ||
+ (EoIsFloating(ewin) && Conf.movres.mode_move == 0) ||
+ (!ewin->state.iconified && Conf.desks.slidein))
+ EwinMove(ewin, EoGetX(ewin), EoGetY(ewin));
+ else
+ EwinMove(ewin, EoGetX(ewin) - dx, EoGetY(ewin) - dy);
+ }
+ Mode.move.check = 1;
+
+ if (!Conf.desks.slidein)
+ EobjsRepaint();
+
+ /* set hints up for it */
+ HintsSetDesktopViewport();
+
+ ActionsResume();
+
+ /* re-focus on a new ewin on that new desktop area */
+ DeskSwitchDone();
+
+ ModulesSignal(ESIGNAL_AREA_SWITCH_DONE, DesksGetCurrent());
+
+ /* update which "edge flip resistance" detector windows are visible */
+ EdgeWindowsShow();
+}
+
+void
+DeskCurrentMoveAreaBy(int dx, int dy)
+{
+ int ax, ay;
+
+ DeskCurrentGetArea(&ax, &ay);
+ DeskCurrentGotoArea(ax + dx, ay + dy);
+}
+
+/*
+ * Actions, events
+ */
+static char sentpress = 0;
+
+static void
+ButtonProxySendEvent(XEvent * ev)
+{
+ if (Mode.button_proxy_win)
+ EXSendEvent(Mode.button_proxy_win, SubstructureNotifyMask, ev);
+}
+
+static void
+DeskDragStart(int desk)
+{
+ Desk *dsk;
+
+ if (!(dsk = DeskGet(desk)))
+ return;
+
+ desks.drag_x0 = Mode.events.cx - EoGetX(dsk);
+ desks.drag_y0 = Mode.events.cy - EoGetY(dsk);
+
+ Mode.mode = MODE_DESKDRAG;
+}
+
+static void
+DeskDragEnd(Desk * dsk __UNUSED__)
+{
+ Mode.mode = MODE_NONE;
+}
+
+static void
+DeskDragMotion(Desk * dsk)
+{
+ int x, y;
+
+ x = Mode.events.mx - desks.drag_x0;
+ y = Mode.events.my - desks.drag_y0;
+
+ switch (Conf.desks.dragdir)
+ {
+ case 0:
+ if (x < 0)
+ x = 0;
+ y = 0;
+ break;
+ case 1:
+ if (x > 0)
+ x = 0;
+ y = 0;
+ break;
+ case 2:
+ x = 0;
+ if (y < 0)
+ y = 0;
+ break;
+ case 3:
+ x = 0;
+ if (y > 0)
+ y = 0;
+ break;
+ default:
+ break;
+ }
+ DeskMove(dsk, x, y);
+}
+
+static void
+DeskButtonCallback(EObj * eo, XEvent * ev, ActionClass * ac)
+{
+ Desk *dsk;
+
+ if (Mode.mode != MODE_DESKDRAG)
+ {
+ if (ac)
+ ActionclassEvent(ac, ev, NULL);
+ return;
+ }
+
+ dsk = (Desk *) eo;
+ switch (ev->type)
+ {
+ case ButtonRelease:
+ DeskDragEnd(dsk);
+ break;
+ case MotionNotify:
+ DeskDragMotion(dsk);
+ break;
+ }
+}
+
+static int
+DeskCheckAction(Desk * dsk __UNUSED__, XEvent * ev)
+{
+ ActionClass *ac;
+
+ ac = ActionclassFind("DESKBINDINGS");
+ if (!ac)
+ return 0;
+
+ return ActionclassEvent(ac, ev, NULL);
+}
+
+static void
+DeskEventButtonPress(Desk * dsk, XEvent * ev)
+{
+ /* Don't handle desk bindings while doing stuff */
+ if (Mode.mode)
+ return;
+
+ GrabPointerRelease();
+
+ if (!DeskCheckAction(dsk, ev))
+ ButtonProxySendEvent(ev);
+}
+
+static void
+DeskEventButtonRelease(Desk * dsk, XEvent * ev)
+{
+ /* Don't handle desk bindings while doing stuff */
+ if (Mode.mode)
+ return;
+
+ if (sentpress)
+ {
+ /* We never get here? */
+ sentpress = 0;
+ ButtonProxySendEvent(ev);
+ }
+
+ DeskCheckAction(dsk, ev);
+}
+
+static void
+DeskRootResize(int root, int w, int h)
+{
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskRootResize %d %dx%d\n", root, w, h);
+
+ if (root && (VROOT != RROOT))
+ {
+ WinGetW(RROOT) = w;
+ WinGetH(RROOT) = h;
+ }
+
+ /* Quit if no change */
+ if (w == WinGetW(VROOT) && h == WinGetH(VROOT))
+ return;
+
+ EWindowSync(VROOT);
+
+ /* Quit if size is not final */
+ if (w != WinGetW(VROOT) || h != WinGetH(VROOT))
+ return;
+
+ ScreenInit();
+ DesksResize(w, h);
+
+ Mode.screen.w_old = WinGetW(VROOT);
+ Mode.screen.h_old = WinGetH(VROOT);
+}
+
+static ActionClass *
+DeskGetAclass(void *data __UNUSED__)
+{
+ return ActionclassFind("DESKBINDINGS");
+}
+
+static void
+DeskPropertyChange(Desk * dsk, XEvent * ev)
+{
+ Pixmap pmap;
+
+ if (ev->xproperty.atom == E_XROOTPMAP_ID)
+ {
+ /* Possible race here? */
+ pmap = HintsGetRootPixmap(EoGetWin(dsk));
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskPropertyChange win=%#lx _XROOTPMAP_ID=%#lx\n",
+ ev->xany.window, pmap);
+ if (ev->xany.window != WinGetXwin(VROOT))
+ return;
+ if (pmap == dsk->bg.pmap)
+ return;
+ if (pmap == Mode.root.ext_pmap)
+ return;
+ Mode.root.ext_pmap = pmap;
+ Mode.root.ext_pmap_valid = EDrawableCheck(pmap, 0);
+ DesksBackgroundRefresh(NULL, DESK_BG_REFRESH);
+ }
+ else if (ev->xproperty.atom == E_XROOTCOLOR_PIXEL)
+ {
+ if (EDebug(EDBUG_TYPE_DESKS))
+ Eprintf("DeskPropertyChange win=%#lx _XROOTCOLOR_PIXEL\n",
+ ev->xany.window);
+ if (ev->xany.window != WinGetXwin(VROOT))
+ return;
+ }
+}
+
+static void
+DeskHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Desk *dsk = (Desk *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ DeskEventButtonPress(dsk, ev);
+ break;
+ case ButtonRelease:
+ DeskEventButtonRelease(dsk, ev);
+ break;
+
+ case EnterNotify:
+ FocusHandleEnter(NULL, ev);
+ break;
+ case LeaveNotify:
+ FocusHandleLeave(NULL, ev);
+ break;
+
+ case MotionNotify:
+ /* Motion over desk buttons doesn't go here - We probably don't care much. */
+ DesksSetCurrent(DesktopAt(Mode.events.mx, Mode.events.my));
+ TooltipsSetPending(1, DeskGetAclass, dsk);
+ break;
+
+ case ConfigureNotify:
+ if (ev->xconfigure.window == WinGetXwin(VROOT))
+ DeskRootResize(0, ev->xconfigure.width, ev->xconfigure.height);
+ break;
+
+ case PropertyNotify:
+ if (ev->xany.window == WinGetXwin(VROOT))
+ DeskPropertyChange(dsk, ev);
+ break;
+
+#if USE_XRANDR
+ case EX_EVENT_SCREEN_CHANGE_NOTIFY:
+ {
+ XRRScreenChangeNotifyEvent *rrev = (XRRScreenChangeNotifyEvent *) ev;
+
+ DeskRootResize(1, rrev->width, rrev->height);
+ }
+ break;
+#endif
+ }
+}
+
+/* Settings */
+
+static void
+DeskDragdirSet(const char *params)
+{
+ Desk *dsk;
+ unsigned int i;
+ int pd;
+
+ pd = Conf.desks.dragdir;
+
+ if (params && params[0])
+ Conf.desks.dragdir = atoi(params);
+ else
+ {
+ Conf.desks.dragdir++;
+ if (Conf.desks.dragdir > 3)
+ Conf.desks.dragdir = 0;
+ }
+
+ if (pd == Conf.desks.dragdir)
+ return;
+
+ for (i = 1; i < Conf.desks.num; i++)
+ {
+ dsk = _DeskGet(i);
+ EoMove(dsk, (dsk->viewable) ? 0 : WinGetW(VROOT), 0);
+ }
+ DesksControlsRefresh();
+}
+
+static void
+DeskDragbarOrderSet(const char *params)
+{
+ int pd;
+
+ pd = Conf.desks.dragbar_ordering;
+
+ if (params && params[0])
+ Conf.desks.dragbar_ordering = atoi(params);
+ else
+ {
+ Conf.desks.dragbar_ordering++;
+ if (Conf.desks.dragbar_ordering > 5)
+ Conf.desks.dragbar_ordering = 0;
+ }
+
+ if (pd == Conf.desks.dragbar_ordering)
+ return;
+
+ DesksControlsRefresh();
+}
+
+#if 0 /* FIXME */
+
+static int
+doDragbarWidthSet(EWin * edummy, const char *params)
+{
+ int pd;
+ Button *b;
+
+ pd = Conf.desks.dragbar_width;
+ if (params)
+ Conf.desks.dragbar_width = atoi(params);
+
+ if (pd != Conf.desks.dragbar_width)
+ {
+ DesksControlsRefresh();
+ }
+ return 0;
+}
+
+static int
+doDragbarLengthSet(EWin * edummy, const char *params)
+{
+ int pd;
+ Button *b;
+
+ pd = Conf.desks.dragbar_length;
+ if (params)
+ Conf.desks.dragbar_length = atoi(params);
+
+ if (pd != Conf.desks.dragbar_length)
+ {
+ DesksControlsRefresh();
+ }
+ return 0;
+}
+#endif
+
+#if ENABLE_DESKRAY
+static int
+doDeskray(EWin * edummy, const char *params)
+{
+ if (params)
+ {
+ if (!atoi(params))
+ {
+ DeskHideTabs();
+ Conf.deskmode = MODE_NONE;
+ }
+ else
+ {
+ Conf.deskmode = MODE_DESKRAY;
+ DeskShowTabs();
+ }
+ }
+ else
+ {
+ if (Conf.deskmode == MODE_DESKRAY)
+ {
+ DeskHideTabs();
+ Conf.deskmode = MODE_NONE;
+ }
+ else
+ {
+ Conf.deskmode = MODE_DESKRAY;
+ DeskShowTabs();
+ }
+ }
+ return 0;
+}
+#endif /* ENABLE_DESKRAY */
+
+static void
+DesksInit(void)
+{
+ unsigned int i;
+
+ memset(&desks, 0, sizeof(desks));
+
+ Mode.screen.w_old = WinGetW(VROOT);
+ Mode.screen.h_old = WinGetH(VROOT);
+
+ /* Backward compatibility hack */
+ if (Conf.desks.edge_flip_resistance <= 0)
+ Conf.desks.edge_flip_mode = EDGE_FLIP_OFF;
+
+ desks.previous = NULL;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ DeskCreate(i, 0);
+
+ SetAreaSize(Conf.desks.areas_nx, Conf.desks.areas_ny);
+
+ /* Retreive stuff from last time we were loaded if we're restarting */
+ EHintsGetDeskInfo();
+
+ HintsSetDesktopConfig();
+}
+
+static void
+DesksConfigure(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < Conf.desks.num; i++)
+ DeskConfigure(_DeskGet(i));
+
+ UncoverDesktop(0);
+}
+
+/*
+ * Desktops Module
+ */
+
+static void
+DesksSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ DesksInit();
+ break;
+
+ case ESIGNAL_CONFIGURE:
+ DesksConfigure();
+ break;
+
+ case ESIGNAL_START:
+ /* Draw all the buttons that belong on the desktop */
+ DeskShowButtons();
+ IdlerAdd(_DesksIdler, NULL);
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Dialogs
+ */
+static int tmp_desktops;
+static DItem *tmp_desk_text;
+static char tmp_desktop_slide;
+static int tmp_desktop_slide_speed;
+static char tmp_desktop_wraparound;
+static char tmp_dragbar;
+static int tmp_dragdir;
+
+static void
+CB_ConfigureDesktops(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val >= 2)
+ return;
+
+ ChangeNumberOfDesktops(tmp_desktops);
+ Conf.desks.slidein = tmp_desktop_slide;
+ Conf.desks.slidespeed = tmp_desktop_slide_speed;
+ Conf.desks.desks_wraparound = tmp_desktop_wraparound;
+
+ if ((Conf.desks.dragdir != tmp_dragdir) ||
+ ((tmp_dragbar) && (Conf.desks.dragbar_width < 1)) ||
+ ((!tmp_dragbar) && (Conf.desks.dragbar_width > 0)))
+ {
+ if (tmp_dragbar)
+ Conf.desks.dragbar_width = 16;
+ else
+ Conf.desks.dragbar_width = 0;
+ Conf.desks.dragdir = tmp_dragdir;
+ DesksControlsRefresh();
+ }
+}
+
+static void
+CB_DesktopDisplayRedraw(Dialog * d, int val, void *data)
+{
+ static char called = 0;
+ static int prev_desktops = -1;
+ static Win wins[ENLIGHTENMENT_CONF_NUM_DESKTOPS];
+ DItem *di;
+ int i;
+ int w, h;
+ Win win;
+ char s[64];
+ ImageClass *ic;
+
+ if (val == 1)
+ called = 0;
+
+ if ((val != 1) && (prev_desktops == tmp_desktops))
+ return;
+
+ prev_desktops = tmp_desktops;
+ di = (DItem *) data;
+ win = DialogItemAreaGetWindow(di);
+ DialogItemAreaGetSize(di, &w, &h);
+
+ if (!called)
+ {
+ ic = ImageclassFind("SETTINGS_DESKTOP_AREA", 1);
+ ImageclassApply(ic, win, 0, 0, STATE_NORMAL, ST_SOLID);
+ for (i = 0; i < ENLIGHTENMENT_CONF_NUM_DESKTOPS; i++)
+ wins[i] = 0;
+ called = 1;
+ }
+
+ for (i = 0; i < tmp_desktops; i++)
+ {
+ if (!wins[i])
+ {
+ Background *bg;
+
+ wins[i] = ECreateWindow(win, 0, 0, 64, 48, 0);
+ ESetWindowBorderWidth(wins[i], 1);
+
+ bg = DeskBackgroundGet(DeskGet(i));
+ if (bg)
+ {
+ Pixmap pmap;
+
+ pmap = EGetWindowBackgroundPixmap(wins[i]);
+ BackgroundApplyPmap(bg, wins[i], pmap, 64, 48);
+ }
+ else
+ {
+ ic = ImageclassFind("SETTINGS_DESKTOP_AREA", 1);
+ ImageclassApply(ic, wins[i], 0, 0, STATE_NORMAL, ST_SOLID);
+ }
+ }
+ }
+
+ for (i = tmp_desktops - 1; i >= 0; i--)
+ {
+ int num;
+
+ num = tmp_desktops - 1;
+ if (num < 1)
+ num = 1;
+ EMoveWindow(wins[i], (i * (w - 64 - 2)) / num,
+ (i * (h - 48 - 2)) / num);
+ ERaiseWindow(wins[i]);
+ EMapWindow(wins[i]);
+ }
+
+ for (i = tmp_desktops; i < ENLIGHTENMENT_CONF_NUM_DESKTOPS; i++)
+ {
+ if (!wins[i])
+ continue;
+ EUnmapWindow(wins[i]);
+ }
+
+ Esnprintf(s, sizeof(s), "%i", tmp_desktops);
+ DialogItemSetText(tmp_desk_text, s);
+ DialogDrawItems(d, tmp_desk_text, 0, 0, 99999, 99999);
+}
+
+static void
+CB_DesktopDisplayAreaRedraw(DItem * di, int val __UNUSED__,
+ void *data __UNUSED__)
+{
+ CB_DesktopDisplayRedraw(DialogItemGetDialog(di), 1, di);
+}
+
+static void
+_DlgFillDesks(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *slider, *radio;
+
+ tmp_desktops = Conf.desks.num;
+ tmp_desktop_slide = Conf.desks.slidein;
+ tmp_desktop_slide_speed = Conf.desks.slidespeed;
+ tmp_desktop_wraparound = Conf.desks.desks_wraparound;
+ if (Conf.desks.dragbar_width < 1)
+ tmp_dragbar = 0;
+ else
+ tmp_dragbar = 1;
+ tmp_dragdir = Conf.desks.dragdir;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Number of virtual desktops:\n"));
+
+ di = tmp_desk_text = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, "X");
+
+ di = slider = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 1, 32);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 1);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSliderSetValPtr(di, &tmp_desktops);
+
+ di = DialogAddItem(table, DITEM_AREA);
+ DialogItemSetColSpan(di, 2);
+ DialogItemAreaSetSize(di, 128, 96);
+ DialogItemAreaSetInitFunc(di, CB_DesktopDisplayAreaRedraw);
+
+ DialogItemSetCallback(slider, CB_DesktopDisplayRedraw, 0, di);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Slide desktops around when changing"));
+ DialogItemCheckButtonSetPtr(di, &tmp_desktop_slide);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Desktop Slide speed:\n"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSliderSetBounds(di, 0, 20000);
+ DialogItemSliderSetUnits(di, 500);
+ DialogItemSliderSetJump(di, 1000);
+ DialogItemSliderSetValPtr(di, &tmp_desktop_slide_speed);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Wrap desktops around"));
+ DialogItemCheckButtonSetPtr(di, &tmp_desktop_wraparound);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Display desktop dragbar"));
+ DialogItemCheckButtonSetPtr(di, &tmp_dragbar);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Drag bar position:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Top"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Bottom"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Left"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Right"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_dragdir);
+}
+
+const DialogDef DlgDesks = {
+ "CONFIGURE_DESKTOPS",
+ N_("Desks"),
+ N_("Multiple Desktop Settings"),
+ SOUND_SETTINGS_DESKTOPS,
+ "pix/desktops.png",
+ N_("Enlightenment Multiple Desktop\n" "Settings Dialog\n"),
+ _DlgFillDesks,
+ DLG_OAC, CB_ConfigureDesktops,
+};
+
+static int tmp_area_x;
+static int tmp_area_y;
+static int tmp_edge_flip;
+static int tmp_edge_resist;
+static DItem *tmp_area_text;
+static char tmp_area_wraparound;
+
+static void
+CB_ConfigureAreas(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val >= 2)
+ return;
+
+ SetNewAreaSize(tmp_area_x, tmp_area_y);
+ Conf.desks.areas_wraparound = tmp_area_wraparound;
+ Conf.desks.edge_flip_mode = tmp_edge_flip;
+ if (tmp_edge_resist < 1)
+ tmp_edge_resist = 1;
+ Conf.desks.edge_flip_resistance = tmp_edge_resist;
+}
+
+static void
+CB_AreaDisplayRedraw(Dialog * d __UNUSED__, int val, void *data)
+{
+ static int prev_ax = 0, prev_ay = 0;
+ static Win awin;
+ char s[64];
+ DItem *di;
+ Win win;
+ int w, h, ww, hh;
+
+ if ((val != 1) && (prev_ax == tmp_area_x) && (prev_ay == tmp_area_y))
+ return;
+
+ prev_ax = tmp_area_x;
+ prev_ay = tmp_area_y;
+
+ di = (DItem *) data;
+ win = DialogItemAreaGetWindow(di);
+ DialogItemAreaGetSize(di, &w, &h);
+
+ if (val == 1)
+ {
+ ImageClass *ic;
+ Pixmap pmap;
+
+ ic = ImageclassFind("SETTINGS_AREA_AREA", 1);
+ ImageclassApply(ic, win, 0, 0, STATE_NORMAL, ST_SOLID);
+
+ /* Note: awin is destroyed when the dialog is destroyed */
+ awin = ECreateWindow(win, 0, 0, 18, 14, 0);
+ ic = ImageclassFind("SETTINGS_AREADESK_AREA", 1);
+ pmap = EGetWindowBackgroundPixmap(awin);
+ ImageclassApplySimple(ic, awin, pmap, STATE_NORMAL, 0, 0, 18, 14);
+ }
+ ww = 18 * prev_ax;
+ hh = 14 * prev_ay;
+ EMoveResizeWindow(awin, (w - ww) / 2, (h - hh) / 2, ww, hh);
+ EMapWindow(awin);
+
+ Esnprintf(s, sizeof(s), "%i x %i", prev_ax, prev_ay);
+ DialogItemSetText(tmp_area_text, s);
+ DialogDrawItems(d, tmp_area_text, 0, 0, 99999, 99999);
+}
+
+static void
+CB_AreaDisplayAreaRedraw(DItem * di, int val __UNUSED__, void *data __UNUSED__)
+{
+ CB_AreaDisplayRedraw(DialogItemGetDialog(di), 1, di);
+}
+
+static void
+_DlgFillAreas(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *slider, *slider2, *table2, *radio;
+
+ tmp_area_wraparound = Conf.desks.areas_wraparound;
+
+ tmp_edge_flip = Conf.desks.edge_flip_mode;
+ tmp_edge_resist = Conf.desks.edge_flip_resistance;
+
+ DesksGetAreaSize(&tmp_area_x, &tmp_area_y);
+
+ DialogItemTableSetOptions(table, 1, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, _("Virtual Desktop size:\n"));
+
+ di = tmp_area_text = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, "X");
+
+ table2 = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table2, 2, 0, 0, 0);
+
+ di = DialogAddItem(table2, DITEM_NONE);
+
+ di = slider = DialogAddItem(table2, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetBounds(di, 1, 8);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 1);
+ DialogItemSliderSetValPtr(di, &tmp_area_x);
+
+ di = slider2 = DialogAddItem(table2, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetOrientation(di, 0);
+ DialogItemSetFill(di, 0, 1);
+ DialogItemSliderSetBounds(di, 1, 8);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 1);
+ DialogItemSliderSetValPtr(di, &tmp_area_y);
+
+ di = DialogAddItem(table2, DITEM_AREA);
+ DialogItemAreaSetSize(di, 160, 120);
+ DialogItemAreaSetInitFunc(di, CB_AreaDisplayAreaRedraw);
+
+ DialogItemSetCallback(slider, CB_AreaDisplayRedraw, 0, di);
+ DialogItemSetCallback(slider2, CB_AreaDisplayRedraw, 0, di);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Wrap virtual desktops around"));
+ DialogItemCheckButtonSetPtr(di, &tmp_area_wraparound);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Edge Flip Mode:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Off"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, EDGE_FLIP_OFF);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("On"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, EDGE_FLIP_ON);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Only when moving window"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, EDGE_FLIP_MOVE);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_edge_flip);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, _("Resistance at edge of screen:\n"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetBounds(di, 1, 100);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 10);
+ DialogItemSliderSetValPtr(di, &tmp_edge_resist);
+}
+
+const DialogDef DlgAreas = {
+ "CONFIGURE_AREA",
+ N_("Areas"),
+ N_("Virtual Desktop Settings"),
+ SOUND_SETTINGS_AREA,
+ "pix/areas.png",
+ N_("Enlightenment Virtual Desktop\n" "Settings Dialog\n"),
+ _DlgFillAreas,
+ DLG_OAC, CB_ConfigureAreas,
+};
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * IPC functions
+ */
+
+static void
+DeskOpGoto(unsigned int desk)
+{
+ Desk *dsk;
+ Desk *pd = DesksGetCurrent();
+
+ if (desk >= Conf.desks.num)
+ return;
+
+ dsk = _DeskGet(desk);
+
+ DeskGoto(dsk);
+
+ if (DesksGetCurrent() != pd)
+ SoundPlay(SOUND_DESKTOP_SHUT);
+}
+
+static void
+DeskOpGotoRel(int drel)
+{
+ int desk;
+
+ desk = (int)DesksGetCurrentNum() + drel;
+ if (Conf.desks.desks_wraparound)
+ desk = (desk + Conf.desks.num) % Conf.desks.num;
+
+ DeskOpGoto((unsigned int)desk);
+}
+
+static void
+DeskOpDrag(int desk)
+{
+ DeskDragStart(desk);
+}
+
+static void
+DesksIpcDesk(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[128];
+ int len;
+ unsigned int desk;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %100s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ desk = DesksGetCurrentNum();
+
+ if (!p || cmd[0] == '?')
+ {
+ IpcPrintf("Current Desktop: %d/%d\n", desk, Conf.desks.num);
+ }
+ else if (!strncmp(cmd, "set", 3))
+ {
+ sscanf(prm, "%i", &desk);
+ ChangeNumberOfDesktops(desk);
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ Desk *dsk;
+
+ for (desk = 0; desk < Conf.desks.num; desk++)
+ {
+ dsk = _DeskGet(desk);
+ IpcPrintf
+ ("Desk %d: viewable=%d order=%d x,y=%4d,%4d wxh=%4dx%4d area x,y=%d,%d pmap=%#lx\n",
+ desk, dsk->viewable, desks.order[desk],
+ EoGetX(dsk), EoGetY(dsk), EoGetW(dsk), EoGetH(dsk),
+ dsk->current_area_x, dsk->current_area_y, dsk->bg.pmap);
+ }
+ }
+ else if (!strncmp(cmd, "goto", 2))
+ {
+ sscanf(prm, "%i", &desk);
+ DeskOpGoto(desk);
+ }
+ else if (!strncmp(cmd, "next", 2))
+ {
+ DeskOpGotoRel(1);
+ }
+ else if (!strncmp(cmd, "prev", 2))
+ {
+ DeskOpGotoRel(-1);
+ }
+ else if (!strncmp(cmd, "this", 2))
+ {
+ DeskOpGotoRel(0);
+ }
+ else if (!strncmp(cmd, "raise", 2))
+ {
+ sscanf(prm, "%i", &desk);
+ SoundPlay(SOUND_DESKTOP_RAISE);
+ DeskRaise(desk);
+ }
+ else if (!strncmp(cmd, "lower", 2))
+ {
+ sscanf(prm, "%i", &desk);
+ SoundPlay(SOUND_DESKTOP_LOWER);
+ DeskLower(desk);
+ }
+ else if (!strcmp(cmd, "drag"))
+ {
+ if (prm[0])
+ desk = atoi(prm);
+ DeskOpDrag(desk);
+ }
+ else if (!strcmp(cmd, "clear"))
+ {
+ EwinsShowDesktop(!Mode.showing_desktop);
+ }
+ else if (!strncmp(cmd, "arrange", 3))
+ {
+ ArrangeEwins(prm);
+ }
+}
+
+static void
+DesksIpcArea(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[128];
+ int len;
+ int ax, ay, dx, dy;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %100s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ DeskCurrentGetArea(&ax, &ay);
+
+ if (!p || cmd[0] == '?')
+ {
+ IpcPrintf("Current Area: %d %d\n", ax, ay);
+ }
+ else if (!strncmp(cmd, "set", 3))
+ {
+ sscanf(params, "%*s %i %i", &ax, &ay);
+ SetNewAreaSize(ax, ay);
+ }
+ else if (!strncmp(cmd, "goto", 2))
+ {
+ sscanf(params, "%*s %i %i", &ax, &ay);
+ DeskCurrentGotoArea(ax, ay);
+ }
+ else if (!strncmp(cmd, "move", 2))
+ {
+ dx = dy = 0;
+ sscanf(params, "%*s %i %i", &dx, &dy);
+ DeskCurrentMoveAreaBy(dx, dy);
+ }
+ else if (!strncmp(cmd, "lgoto", 2))
+ {
+ sscanf(params, "%*s %i", &ax);
+ SetCurrentLinearArea(ax);
+ }
+ else if (!strncmp(cmd, "lmove", 2))
+ {
+ dx = 0;
+ sscanf(params, "%*s %i", &dx);
+ MoveCurrentLinearAreaBy(dx);
+ }
+}
+
+static const IpcItem DesksIpcArray[] = {
+ {
+ DesksIpcDesk,
+ "desk", NULL,
+ "Desktop functions",
+ " desk ? Desktop info\n"
+ " desk drag Start deskdrag\n"
+ " desk set <nd> Set number of desktops\n"
+ " desk goto <d> Goto specified desktop\n"
+ " desk list Show desk info\n"
+ " desk next Goto next desktop\n"
+ " desk prev Goto previous desktop\n"
+ " desk this Goto this desktop\n"
+ " desk lower <d> Lower desktop\n"
+ " desk raise <d> Raise desktop\n"
+ " desk arrange Arrange windows on desktop\"\n"
+ " desk clear \"Show Desktop\"\n"}
+ ,
+ {
+ DesksIpcArea,
+ "area", NULL,
+ "Area functions",
+ " area ? Area info\n"
+ " area set <nx> <ny> Set area size\n"
+ " area goto <ax> <ay> Goto specified area\n"
+ " area move <dx> <dy> Move relative to current area\n"
+ " area lgoto <al> Goto specified linear area\n"
+ " area lmove <dl> Move relative to current linear area\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(DesksIpcArray)/sizeof(IpcItem))
+
+static void
+DesksCfgFuncCount(void *item __UNUSED__, const char *value)
+{
+ ChangeNumberOfDesktops(atoi(value));
+}
+
+static void
+DesksCfgFuncDragdir(void *item __UNUSED__, const char *value)
+{
+ DeskDragdirSet(value);
+}
+
+static void
+DesksCfgFuncDragdbarOrder(void *item __UNUSED__, const char *value)
+{
+ DeskDragbarOrderSet(value);
+}
+
+static void
+AreasCfgFuncSizeX(void *item __UNUSED__, const char *value)
+{
+ int ax, ay;
+
+ DesksGetAreaSize(&ax, &ay);
+ SetNewAreaSize(atoi(value), ay);
+}
+
+static void
+AreasCfgFuncSizeY(void *item __UNUSED__, const char *value)
+{
+ int ax, ay;
+
+ DesksGetAreaSize(&ax, &ay);
+ SetNewAreaSize(ax, atoi(value));
+}
+
+static const CfgItem DesksCfgItems[] = {
+ CFG_FUNC_INT(Conf.desks, num, 2, DesksCfgFuncCount),
+ CFG_FUNC_INT(Conf.desks, dragdir, 2, DesksCfgFuncDragdir),
+ CFG_ITEM_INT(Conf.desks, dragbar_width, 16),
+ CFG_ITEM_INT(Conf.desks, dragbar_length, 0),
+ CFG_FUNC_INT(Conf.desks, dragbar_ordering, 1, DesksCfgFuncDragdbarOrder),
+ CFG_ITEM_BOOL(Conf.desks, desks_wraparound, 0),
+ CFG_ITEM_BOOL(Conf.desks, slidein, 1),
+ CFG_ITEM_INT(Conf.desks, slidespeed, 6000),
+
+ CFG_FUNC_INT(Conf.desks, areas_nx, 2, AreasCfgFuncSizeX),
+ CFG_FUNC_INT(Conf.desks, areas_ny, 1, AreasCfgFuncSizeY),
+ CFG_ITEM_BOOL(Conf.desks, areas_wraparound, 0),
+
+ CFG_ITEM_INT(Conf.desks, edge_flip_mode, EDGE_FLIP_ON),
+ CFG_ITEM_INT(Conf.desks, edge_flip_resistance, 25),
+};
+#define N_CFG_ITEMS (sizeof(DesksCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModDesktops;
+const EModule ModDesktops = {
+ "desktops", "desk",
+ DesksSighan,
+ {N_IPC_FUNCS, DesksIpcArray},
+ {N_CFG_ITEMS, DesksCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _DESKTOPS_H_
+#define _DESKTOPS_H_
+
+#include "eobj.h"
+#include "etypes.h"
+
+#define USE_BG_WIN_ON_ALL_DESKS 0
+
+#define DESK_BG_REFRESH 1
+#define DESK_BG_FREE 2
+#define DESK_BG_TIMEOUT 3
+#define DESK_BG_RECONFIGURE_ALL 4
+
+struct _desk {
+ EObj o;
+ unsigned int num;
+ char viewable;
+ char visible;
+ Button *tag;
+ int current_area_x;
+ int current_area_y;
+ struct {
+ Background *bg;
+ EObj *o;
+#if USE_COMPOSITE
+ EObj *o_bg;
+#endif
+ Pixmap pmap;
+ Pixmap pmap_set;
+ unsigned long pixel;
+ unsigned int seq_no;
+ } bg;
+ struct {
+ int dirty;
+ EObj *latest;
+ char update_client_list;
+ } stack;
+};
+
+/* desktops.c */
+Desk *DeskGet(unsigned int desk);
+Desk *DeskGetRelative(Desk * dsk, int inc);
+void DeskGetArea(const Desk * dsk, int *ax, int *ay);
+void DeskSetArea(Desk * dsk, int ax, int ay);
+void DeskSetDirtyStack(Desk * dsk, EObj * eo);
+void DeskGoto(Desk * dsk);
+void DeskGotoNum(unsigned int desk);
+void DeskRestack(Desk * dsk);
+EObj *DeskGetBackgroundObj(const Desk * dsk);
+Pixmap DeskGetBackgroundPixmap(const Desk * dsk);
+
+Background *DeskBackgroundGet(const Desk * dsk);
+void DeskBackgroundSet(Desk * dsk, Background * bg);
+
+void DesksBackgroundRefresh(Background * bg, int what);
+
+void DeskCurrentGetArea(int *ax, int *ay);
+void DeskCurrentGotoArea(int ax, int ay);
+void DeskCurrentMoveAreaBy(int ax, int ay);
+
+void DeskGotoByEwin(EWin * ewin);
+
+unsigned int DesksGetNumber(void);
+Desk *DesksGetCurrent(void);
+Desk *DesktopAt(int x, int y);
+unsigned int DesksGetCurrentNum(void);
+void DesksSetCurrent(Desk * dsk);
+void DesksGetAreaSize(int *aw, int *ah);
+
+void DesksFixArea(int *ax, int *ay);
+
+#endif /* _DESKTOPS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#if ENABLE_DIALOGS
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "eimage.h"
+#include "ewins.h"
+#include "hints.h"
+#include "iclass.h"
+#include "tclass.h"
+#include "timers.h"
+#include "xwin.h"
+
+#define DEBUG_DIALOGS 0
+
+typedef struct {
+ char horizontal;
+
+ char numeric;
+ char numeric_side;
+
+ int upper;
+ int lower;
+ int unit;
+ int jump;
+ int val;
+ int *val_ptr;
+
+ int min_length;
+
+ int base_orig_w, base_orig_h;
+ int knob_orig_w, knob_orig_h;
+
+ int base_x, base_y, base_w, base_h;
+ int knob_x, knob_y, knob_w, knob_h;
+ int numeric_x, numeric_y, numeric_w, numeric_h;
+
+ ImageClass *ic_base;
+ ImageClass *ic_knob;
+
+ char in_drag;
+
+ Win base_win;
+ Win knob_win;
+} DItemSlider;
+
+typedef struct {
+ Win area_win;
+ int w, h;
+ DialogItemCallbackFunc *init_func;
+ DialogItemCallbackFunc *event_func;
+} DItemArea;
+
+typedef struct {
+ Win check_win;
+ int check_orig_w, check_orig_h;
+ char onoff;
+ char *onoff_ptr;
+} DItemCheckButton;
+
+typedef struct {
+ char *image;
+} DItemImage;
+
+typedef struct {
+ char horizontal;
+} DItemSeparator;
+
+typedef struct {
+ int num_columns;
+ char border;
+ char homogenous_h;
+ char homogenous_v;
+ int num_items;
+ DItem **items;
+} DItemTable;
+
+typedef struct {
+ Win radio_win;
+ int radio_orig_w, radio_orig_h;
+ char onoff;
+ int val;
+ int *val_ptr;
+ DItem *next;
+ DItem *first;
+ DialogItemCallbackFunc *event_func;
+} DItemRadioButton;
+
+struct _ditem {
+ int type;
+ Dialog *dlg;
+ DialogCallbackFunc *func;
+ int val;
+ void *data;
+ ImageClass *iclass;
+ TextClass *tclass;
+ EImageBorder padding;
+ char fill_h;
+ char fill_v;
+ char do_close;
+ int align_h;
+ int align_v;
+ int row_span;
+ int col_span;
+
+ int x, y, w, h;
+ Win win;
+ char *text;
+ union {
+ DItemCheckButton check_button;
+ DItemTable table;
+ DItemImage image;
+ DItemSeparator separator;
+ DItemRadioButton radio_button;
+ DItemSlider slider;
+ DItemArea area;
+ } item;
+
+ char realized;
+ char update;
+
+ char state;
+ char hilited;
+ char clicked;
+};
+
+typedef struct {
+ KeyCode key;
+ DialogCallbackFunc *func;
+ int val;
+ void *data;
+} DKeyBind;
+
+struct _dialog {
+ EWin *ewin;
+ Win win;
+ int w, h;
+ char *name;
+ char *title;
+ PmapMask pmm_bg;
+ TextClass *tclass;
+ ImageClass *iclass;
+ DItem *item;
+ DialogCallbackFunc *exit_func;
+ int exit_val;
+ int num_bindings;
+ DKeyBind *keybindings;
+ void *data;
+
+ char redraw;
+ char update;
+ char resize;
+ char close;
+ char set_title;
+ int xu1, yu1, xu2, yu2;
+};
+
+static EWin *FindEwinByDialog(Dialog * d);
+static int FindADialog(void);
+
+static void DialogHandleEvents(Win win, XEvent * ev, void *prm);
+static void DItemHandleEvents(Win win, XEvent * ev, void *prm);
+
+static void MoveTableBy(Dialog * d, DItem * di, int dx, int dy);
+static void DialogItemsRealize(Dialog * d);
+static void DialogItemDestroy(DItem * di, int clean);
+
+static int DialogItemCheckButtonGetState(DItem * di);
+
+static void DialogUpdate(Dialog * d);
+
+static void DialogAddFooter(Dialog * d, DItem * parent,
+ int flags, DialogCallbackFunc * cb);
+static void DialogAddHeader(Dialog * d, DItem * parent,
+ const char *img, const char *txt);
+
+static Ecore_List *dialog_list = NULL;
+
+static char dialog_update_pending = 0;
+
+void
+DialogBindKey(Dialog * d, const char *key, DialogCallbackFunc * func, int val,
+ void *data)
+{
+ d->num_bindings++;
+ d->keybindings = EREALLOC(DKeyBind, d->keybindings, d->num_bindings);
+ d->keybindings[d->num_bindings - 1].val = val;
+ d->keybindings[d->num_bindings - 1].func = func;
+ d->keybindings[d->num_bindings - 1].data = data;
+ d->keybindings[d->num_bindings - 1].key = EKeynameToKeycode(key);
+}
+
+void
+DialogKeybindingsDestroy(Dialog * d)
+{
+ Efree(d->keybindings);
+ d->keybindings = NULL;
+ d->num_bindings = 0;
+}
+
+Dialog *
+DialogCreate(const char *name)
+{
+ Dialog *d;
+
+ d = ECALLOC(Dialog, 1);
+ if (!d)
+ return NULL;
+
+ if (!dialog_list)
+ dialog_list = ecore_list_new();
+ ecore_list_append(dialog_list, d);
+
+ d->name = Estrdup(name);
+ d->win = ECreateClientWindow(VROOT, -20, -20, 2, 2);
+ EventCallbackRegister(d->win, 0, DialogHandleEvents, d);
+
+ d->iclass = ImageclassAlloc("DIALOG", 1);
+ d->tclass = TextclassAlloc("DIALOG", 1);
+
+ d->xu1 = d->yu1 = 99999;
+ d->xu2 = d->yu2 = 0;
+
+ return d;
+}
+
+static void
+DialogDestroy(Dialog * d)
+{
+ ecore_list_node_remove(dialog_list, d);
+
+ Efree(d->name);
+ Efree(d->title);
+ DialogKeybindingsDestroy(d);
+ if (d->item)
+ DialogItemDestroy(d->item, 0);
+ ImageclassFree(d->iclass);
+ TextclassFree(d->tclass);
+
+ FreePmapMask(&(d->pmm_bg));
+
+ Efree(d);
+}
+
+static int
+_DialogMatchName(const void *data, const void *match)
+{
+ return strcmp(((const Dialog *)data)->name, (const char *)match);
+}
+
+Dialog *
+DialogFind(const char *name)
+{
+ return (Dialog *) ecore_list_find(dialog_list, _DialogMatchName, name);
+}
+
+void
+DialogSetTitle(Dialog * d, const char *title)
+{
+ Efree(d->title);
+ d->title = Estrdup(title);
+ d->set_title = 1;
+}
+
+void
+DialogSetExitFunction(Dialog * d, DialogCallbackFunc * func, int val)
+{
+ d->exit_func = func;
+ d->exit_val = val;
+}
+
+void
+DialogCallExitFunction(Dialog * d)
+{
+ if (d->exit_func)
+ d->exit_func(d, d->exit_val, NULL);
+}
+
+void
+DialogSetData(Dialog * d, void *data)
+{
+ d->data = data;
+}
+
+void *
+DialogGetData(Dialog * d)
+{
+ return d->data;
+}
+
+#if 0 /* FIXME - Merge/remove */
+void
+DialogAddButton(Dialog * d, const char *text, DialogCallbackFunc * func,
+ char doclose, int image)
+{
+ DButton *db;
+ int w, h;
+ EImageBorder *pad;
+
+ db = EMALLOC(DButton, 1);
+
+ d->num_buttons++;
+ d->button = EREALLOC(DButton *, d->button, d->num_buttons);
+ d->button[d->num_buttons - 1] = db;
+
+ db->parent = d;
+ db->text = Estrdup(text);
+ db->func = func;
+ db->image = image;
+ db->win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EventCallbackRegister(db->win, 0, DButtonHandleEvents, db);
+ EMapWindow(db->win);
+ db->x = -1;
+ db->y = -1;
+ db->w = -1;
+ db->h = -1;
+ db->hilited = 0;
+ db->clicked = 0;
+ db->close = doclose;
+
+ db->tclass = TextclassAlloc("DIALOG_BUTTON", 1);
+ db->iclass = ImageclassAlloc("DIALOG_BUTTON", 1);
+
+ TextSize(db->tclass, 0, 0, STATE_NORMAL, text, &w, &h, 17);
+ pad = ImageclassGetPadding(db->iclass);
+ db->h = h + pad->top + pad->bottom;
+ db->w = w + pad->left + pad->right;
+ if (Conf.dialogs.button_image && db->image)
+ db->w += h + 2;
+
+ ESelectInput(db->win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+}
+
+static void
+DialogDrawButton(Dialog * d __UNUSED__, DButton * db)
+{
+ int state;
+ EImage *im;
+
+ state = STATE_NORMAL;
+ if ((db->hilited) && (db->clicked))
+ {
+ state = STATE_CLICKED;
+ }
+ else if ((db->hilited) && (!db->clicked))
+ {
+ state = STATE_HILITED;
+ }
+ else if (!(db->hilited) && (db->clicked))
+ {
+ state = STATE_CLICKED;
+ }
+
+ im = NULL;
+ if (Conf.dialogs.button_image)
+ {
+ switch (db->image)
+ {
+ case DLG_BUTTON_OK:
+ im = ThemeImageLoad("pix/ok.png");
+ break;
+ case DLG_BUTTON_CANCEL:
+ im = ThemeImageLoad("pix/cancel.png");
+ break;
+ case DLG_BUTTON_APPLY:
+ im = ThemeImageLoad("pix/apply.png");
+ break;
+ case DLG_BUTTON_CLOSE:
+ im = ThemeImageLoad("pix/close.png");
+ break;
+ default:
+ break;
+ }
+ }
+
+ if (im)
+ {
+ ImageClass *ic = db->iclass;
+ EImageBorder *pad;
+ int h;
+
+ ImageclassApply(db->iclass, db->win, 0, 0, state, ST_WIDGET);
+
+ pad = ImageclassGetPadding(ic);
+ h = db->h - (pad->top + pad->bottom);
+ TextDraw(db->tclass, db->win, None, 0, 0, state, db->text,
+ h + 2 + pad->left, pad->top,
+ db->w - (h + 2 + pad->left + pad->right),
+ h, h, TextclassGetJustification(db->tclass));
+
+ EImageRenderOnDrawable(im, db->win, None,
+ EIMAGE_BLEND | EIMAGE_ANTI_ALIAS,
+ pad->left, pad->top, h, h);
+ EImageFree(im);
+ }
+ else
+ {
+ ITApply(db->win, db->iclass, NULL, state, 0, 0,
+ ST_WIDGET, db->tclass, NULL, db->text, 0);
+ }
+}
+#endif
+
+DItem *
+DialogItemAddButton(DItem * parent, const char *text, DialogCallbackFunc * func,
+ int val, char doclose, int image __UNUSED__)
+{
+ DItem *di;
+
+ di = DialogAddItem(parent, DITEM_BUTTON);
+ DialogItemSetText(di, text);
+ DialogItemSetCallback(di, func, 0, NULL);
+ di->val = val;
+ di->do_close = doclose;
+
+ return di;
+}
+
+void
+DialogRedraw(Dialog * d)
+{
+ if ((!d->tclass) || (!d->iclass))
+ return;
+
+#if DEBUG_DIALOGS
+ Eprintf("DialogRedraw win=%#lx pmap=%#lx\n",
+ WinGetXwin(d->win), WinGetPmap(d->win));
+#endif
+
+ FreePmapMask(&(d->pmm_bg));
+ ImageclassApplyCopy(d->iclass, d->win, d->w, d->h, 0, 0, STATE_NORMAL,
+ &(d->pmm_bg), IC_FLAG_FULL_SIZE, ST_DIALOG);
+ if (d->pmm_bg.pmap == None)
+ return;
+
+ EGetWindowBackgroundPixmap(d->win);
+ EXCopyArea(d->pmm_bg.pmap, WinGetPmap(d->win), 0, 0, d->w, d->h, 0, 0);
+
+ d->redraw = 1;
+
+ DialogDrawItems(d, d->item, 0, 0, 99999, 99999);
+}
+
+static void
+_DialogEwinInit(EWin * ewin)
+{
+ Dialog *d = (Dialog *) ewin->data;
+
+ EwinSetTitle(ewin, d->title);
+ EwinSetClass(ewin, d->name, "Enlightenment_Dialog");
+ d->set_title = 0;
+
+ ewin->props.focus_when_mapped = 1;
+
+ EoSetLayer(ewin, 10);
+}
+
+static void
+_DialogEwinMoveResize(EWin * ewin, int resize __UNUSED__)
+{
+ Dialog *d = (Dialog *) ewin->data;
+
+ if (!d || Mode.mode != MODE_NONE || !EoIsShown(ewin))
+ return;
+
+ if (TransparencyUpdateNeeded() || ImageclassIsTransparent(d->iclass))
+ DialogRedraw(d);
+}
+
+static void
+_DialogEwinClose(EWin * ewin)
+{
+ DialogDestroy((Dialog *) ewin->data);
+ ewin->data = NULL;
+}
+
+static const EWinOps _DialogEwinOps = {
+ _DialogEwinInit,
+ NULL,
+ _DialogEwinMoveResize,
+ _DialogEwinClose,
+};
+
+void
+DialogArrange(Dialog * d, int resize)
+{
+ if (resize)
+ DialogItemsRealize(d);
+
+ if (d->set_title)
+ {
+ EwinSetTitle(d->ewin, d->title);
+ d->set_title = 0;
+ }
+
+ ICCCM_SetSizeConstraints(d->ewin, d->w, d->h, d->w, d->h, 0, 0, 1, 1,
+ 0.0, 65535.0);
+
+ if (resize)
+ {
+ EwinResize(d->ewin, d->w, d->h);
+ d->resize = 1;
+ DialogRedraw(d);
+ DialogUpdate(d);
+ d->resize = 0;
+ ArrangeEwinCentered(d->ewin);
+ }
+}
+
+static void
+DialogShowArranged(Dialog * d, int center)
+{
+ EWin *ewin;
+
+ ewin = FindEwinByDialog(d);
+ if (ewin)
+ {
+#if 0 /* Make dialogs sticky? */
+ if (EoGetDesk(ewin) != DesksGetCurrent())
+ EwinMoveToDesktop(ewin, DesksGetCurrent());
+#endif
+ EwinRaise(ewin);
+ EwinShow(ewin);
+ return;
+ }
+
+ DialogItemsRealize(d);
+
+ ewin = AddInternalToFamily(d->win, "DIALOG", EWIN_TYPE_DIALOG,
+ &_DialogEwinOps, d);
+ d->ewin = ewin;
+ if (!ewin)
+ return;
+
+ DialogArrange(d, 0);
+
+ ewin->client.event_mask |= KeyPressMask;
+ ESelectInput(d->win, ewin->client.event_mask);
+
+ EwinMoveToDesktop(ewin, EoGetDesk(ewin));
+
+ if (ewin->state.placed)
+ {
+ EwinMoveResize(ewin, EoGetX(ewin), EoGetY(ewin), d->w, d->h);
+ }
+ else
+ {
+ EwinResize(ewin, d->w, d->h);
+ if (center || FindADialog() == 1)
+ ArrangeEwinCentered(ewin);
+ else
+ ArrangeEwin(ewin);
+ }
+
+ DialogRedraw(d);
+ DialogUpdate(d);
+ EwinShow(ewin);
+}
+
+void
+DialogShow(Dialog * d)
+{
+ DialogShowArranged(d, 0);
+}
+
+void
+DialogShowCentered(Dialog * d)
+{
+ DialogShowArranged(d, 1);
+}
+
+void
+DialogClose(Dialog * d)
+{
+ d->close = 1;
+}
+
+static void
+_DialogClose(Dialog * d)
+{
+ if (!d)
+ return;
+
+ DialogCallExitFunction(d);
+
+ EwinHide(d->ewin);
+}
+
+void
+DialogShowSimple(const DialogDef * dd, void *data)
+{
+ DialogShowSimpleWithName(dd, dd->name, data);
+}
+
+void
+DialogFill(Dialog * d, DItem * parent, const DialogDef * dd, void *data)
+{
+ DItem *content;
+
+ if (Conf.dialogs.headers && (dd->header_image || dd->header_text))
+ DialogAddHeader(d, parent, dd->header_image, _(dd->header_text));
+
+ content = DialogAddItem(parent, DITEM_TABLE);
+ if (!content)
+ return;
+
+ dd->fill(d, content, data);
+
+ if (dd->func)
+ DialogAddFooter(d, parent, dd->flags, dd->func);
+}
+
+void
+DialogShowSimpleWithName(const DialogDef * dd, const char *name, void *data)
+{
+ Dialog *d;
+ DItem *table;
+
+ d = DialogFind(name);
+ if (d)
+ {
+ SoundPlay(SOUND_SETTINGS_ACTIVE);
+ DialogShow(d);
+ return;
+ }
+ SoundPlay(dd->sound);
+
+ d = DialogCreate(name);
+ if (!d)
+ return;
+
+ DialogSetTitle(d, _(dd->title));
+
+ table = DialogInitItem(d);
+ if (!table)
+ return;
+
+ DialogFill(d, table, dd, data);
+
+ DialogShow(d);
+}
+
+static DItem *
+DialogItemCreate(int type)
+{
+ DItem *di;
+
+ di = ECALLOC(DItem, 1);
+
+ di->type = type;
+ di->align_h = 512;
+ di->align_v = 512;
+ di->row_span = 1;
+ di->col_span = 1;
+ di->item.table.num_columns = 1;
+ di->item.table.border = 0;
+ di->item.table.homogenous_h = 0;
+ di->item.table.homogenous_v = 0;
+ di->item.table.num_items = 0;
+ di->item.table.items = NULL;
+
+ DialogItemSetPadding(di, 2, 2, 2, 2);
+ DialogItemSetFill(di, 1, 0);
+
+ return di;
+}
+
+DItem *
+DialogInitItem(Dialog * d)
+{
+ DItem *di;
+
+ if (d->item)
+ return NULL;
+
+ di = DialogItemCreate(DITEM_TABLE);
+ d->item = di;
+ if (!di)
+ return di;
+
+ di->dlg = d;
+ di->item.table.num_columns = 1;
+
+ return di;
+}
+
+DItem *
+DialogAddItem(DItem * dii, int type)
+{
+ DItem *di;
+
+ di = DialogItemCreate(type);
+ if (!di)
+ return di;
+
+ switch (di->type)
+ {
+ default:
+ break;
+ case DITEM_AREA:
+ di->item.area.w = 32;
+ di->item.area.h = 32;
+ break;
+ case DITEM_CHECKBUTTON:
+ di->item.check_button.check_win = 0;
+ di->item.check_button.onoff = 0;
+ di->item.check_button.onoff_ptr = &(di->item.check_button.onoff);
+ di->item.check_button.check_orig_w = 10;
+ di->item.check_button.check_orig_h = 10;
+ break;
+ case DITEM_TABLE:
+ di->item.table.num_columns = 1;
+ di->item.table.border = 0;
+ di->item.table.homogenous_h = 0;
+ di->item.table.homogenous_v = 0;
+ di->item.table.num_items = 0;
+ di->item.table.items = NULL;
+ break;
+ case DITEM_IMAGE:
+ di->item.image.image = NULL;
+ break;
+ case DITEM_SEPARATOR:
+ di->item.separator.horizontal = 0;
+ break;
+ case DITEM_RADIOBUTTON:
+ di->item.radio_button.radio_win = 0;
+ di->item.radio_button.onoff = 0;
+ di->item.radio_button.val = 0;
+ di->item.radio_button.val_ptr = 0;
+ di->item.radio_button.next = NULL;
+ di->item.radio_button.first = NULL;
+ di->item.radio_button.radio_orig_w = 10;
+ di->item.radio_button.radio_orig_h = 10;
+ di->item.radio_button.event_func = NULL;
+ break;
+ case DITEM_SLIDER:
+ di->item.slider.horizontal = 1;
+ di->item.slider.numeric = 0;
+ di->item.slider.numeric_side = 0;
+ di->item.slider.upper = 100;
+ di->item.slider.lower = 0;
+ di->item.slider.unit = 10;
+ di->item.slider.jump = 20;
+ di->item.slider.val = 0;
+ di->item.slider.val_ptr = NULL;
+ di->item.slider.min_length = 64;
+ di->item.slider.ic_base = NULL;
+ di->item.slider.ic_knob = NULL;
+ di->item.slider.base_win = 0;
+ di->item.slider.knob_win = 0;
+ di->item.slider.base_orig_w = 10;
+ di->item.slider.base_orig_h = 10;
+ di->item.slider.knob_orig_w = 6;
+ di->item.slider.knob_orig_h = 6;
+ di->item.slider.base_x = 0;
+ di->item.slider.base_y = 0;
+ di->item.slider.base_w = 0;
+ di->item.slider.base_h = 0;
+ di->item.slider.knob_x = 0;
+ di->item.slider.knob_y = 0;
+ di->item.slider.knob_w = 0;
+ di->item.slider.knob_h = 0;
+ di->item.slider.numeric_x = 0;
+ di->item.slider.numeric_y = 0;
+ di->item.slider.numeric_w = 0;
+ di->item.slider.numeric_h = 0;
+ di->item.slider.in_drag = 0;
+ break;
+ }
+
+ if (dii)
+ {
+ dii->item.table.num_items++;
+ dii->item.table.items =
+ EREALLOC(DItem *, dii->item.table.items, dii->item.table.num_items);
+ dii->item.table.items[dii->item.table.num_items - 1] = di;
+ di->dlg = dii->dlg;
+ }
+
+ return di;
+}
+
+static void
+DialogAddHeader(Dialog * d __UNUSED__, DItem * parent, const char *img,
+ const char *txt)
+{
+ DItem *table, *di;
+
+ table = DialogAddItem(parent, DITEM_TABLE);
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+ DialogItemSetAlign(table, 512, 0);
+ DialogItemSetFill(table, 0, 0);
+
+ di = DialogAddItem(table, DITEM_IMAGE);
+ DialogItemImageSetFile(di, img);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, txt);
+
+ di = DialogAddItem(parent, DITEM_SEPARATOR);
+}
+
+static void
+DialogAddFooter(Dialog * d, DItem * parent, int flags, DialogCallbackFunc * cb)
+{
+ DItem *table, *di;
+ int n_buttons;
+
+ if (!(flags & DLG_NO_SEPARATOR))
+ di = DialogAddItem(parent, DITEM_SEPARATOR);
+
+ table = DialogAddItem(parent, DITEM_TABLE);
+ DialogItemSetAlign(table, 512, 0);
+ DialogItemSetFill(table, 0, 0);
+
+ /* FIXME - The "real" dialog buttons are slightly different */
+ n_buttons = 0;
+ if (flags & 1)
+ {
+ di = DialogItemAddButton(table, _("OK"), cb, 0, 1, DLG_BUTTON_OK);
+ n_buttons++;
+ }
+ if (flags & 2)
+ {
+ di = DialogItemAddButton(table, _("Apply"), cb, 1, 0, DLG_BUTTON_APPLY);
+ DialogBindKey(d, "Return", cb, 1, NULL);
+ n_buttons++;
+ }
+ if (flags & 4)
+ {
+ di =
+ DialogItemAddButton(table, _("Close"), NULL, 0, 1, DLG_BUTTON_CLOSE);
+ DialogBindKey(d, "Escape", DialogCallbackClose, 0, NULL);
+ n_buttons++;
+ }
+
+ DialogItemTableSetOptions(table, n_buttons, 0, 1, 0);
+
+ DialogSetExitFunction(d, cb, 2);
+}
+
+Dialog *
+DialogItemGetDialog(DItem * di)
+{
+ return di->dlg;
+}
+
+void
+DialogItemSetCallback(DItem * di, DialogCallbackFunc * func, int val,
+ void *data)
+{
+ di->func = func;
+ di->val = val;
+ di->data = data;
+}
+
+void
+DialogItemSetPadding(DItem * di, int left, int right, int top, int bottom)
+{
+ di->padding.left = left;
+ di->padding.right = right;
+ di->padding.top = top;
+ di->padding.bottom = bottom;
+}
+
+void
+DialogItemSetFill(DItem * di, char fill_h, char fill_v)
+{
+ di->fill_h = fill_h;
+ di->fill_v = fill_v;
+}
+
+void
+DialogItemSetAlign(DItem * di, int align_h, int align_v)
+{
+ di->align_h = align_h;
+ di->align_v = align_v;
+}
+
+void
+DialogItemSetRowSpan(DItem * di, int row_span)
+{
+ di->row_span = row_span;
+}
+
+void
+DialogItemSetColSpan(DItem * di, int col_span)
+{
+ di->col_span = col_span;
+}
+
+void
+DialogItemCallCallback(Dialog * d, DItem * di)
+{
+ if (di->func)
+ di->func(d, di->val, di->data);
+}
+
+static void
+DialogRealizeItem(Dialog * d, DItem * di)
+{
+ const char *iclass, *tclass;
+ int iw = 0, ih = 0;
+ int register_win_callback;
+ EImage *im;
+ EImageBorder *pad;
+
+ if (di->realized && di->type != DITEM_TABLE)
+ return;
+ di->realized = 1;
+
+ iclass = tclass = NULL;
+ if (di->type == DITEM_BUTTON)
+ {
+ iclass = "DIALOG_WIDGET_BUTTON";
+ tclass = iclass;
+ }
+ else if (di->type == DITEM_CHECKBUTTON)
+ {
+ iclass = "DIALOG_WIDGET_CHECK_BUTTON";
+ tclass = iclass;
+ }
+ else if (di->type == DITEM_TEXT)
+ {
+ tclass = "DIALOG_WIDGET_TEXT";
+ }
+ else if (di->type == DITEM_SEPARATOR)
+ {
+ iclass = "DIALOG_WIDGET_SEPARATOR";
+ }
+ else if (di->type == DITEM_RADIOBUTTON)
+ {
+ iclass = "DIALOG_WIDGET_RADIO_BUTTON";
+ tclass = iclass;
+ }
+#if 0
+ else if (di->type == DITEM_SLIDER)
+ {
+ iclass = NULL;
+ }
+#endif
+ else if (di->type == DITEM_AREA)
+ {
+ iclass = "DIALOG_WIDGET_AREA";
+ }
+
+ if (!di->iclass && iclass)
+ {
+ di->iclass = ImageclassAlloc(iclass, 1);
+ if (!di->iclass)
+ {
+ di->type = DITEM_NONE;
+ return;
+ }
+ }
+
+ if (!di->tclass && tclass)
+ {
+ di->tclass = TextclassAlloc(tclass, 1);
+ if (!di->tclass)
+ {
+ di->type = DITEM_NONE;
+ return;
+ }
+ }
+
+ if (di->type == DITEM_TABLE)
+ {
+ int i;
+
+ for (i = 0; i < di->item.table.num_items; i++)
+ DialogRealizeItem(d, di->item.table.items[i]);
+ }
+
+ register_win_callback = 1;
+
+ switch (di->type)
+ {
+ case DITEM_SLIDER:
+ if (di->item.slider.numeric)
+ {
+ di->win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->win);
+ ESelectInput(di->win,
+ EnterWindowMask | LeaveWindowMask |
+ ButtonPressMask | ButtonReleaseMask);
+ }
+ di->item.slider.base_win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->item.slider.base_win);
+ di->item.slider.knob_win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->item.slider.knob_win);
+ ESelectInput(di->item.slider.base_win,
+ EnterWindowMask | LeaveWindowMask |
+ ButtonPressMask | ButtonReleaseMask);
+ EventCallbackRegister(di->item.slider.base_win, 0, DItemHandleEvents,
+ di);
+ ESelectInput(di->item.slider.knob_win,
+ EnterWindowMask | LeaveWindowMask |
+ ButtonPressMask | ButtonReleaseMask | PointerMotionMask);
+ EventCallbackRegister(di->item.slider.knob_win, 0, DItemHandleEvents,
+ di);
+
+ if (!di->item.slider.ic_base)
+ {
+ if (di->item.slider.horizontal)
+ di->item.slider.ic_base =
+ ImageclassAlloc("DIALOG_WIDGET_SLIDER_BASE_HORIZONTAL", 1);
+ else
+ di->item.slider.ic_base =
+ ImageclassAlloc("DIALOG_WIDGET_SLIDER_BASE_VERTICAL", 1);
+ }
+ im = ImageclassGetImage(di->item.slider.ic_base, 0, 0, 0);
+ if (im)
+ {
+ EImageGetSize(im, &di->item.slider.base_orig_w,
+ &di->item.slider.base_orig_h);
+ EImageFree(im);
+ }
+
+ if (!di->item.slider.ic_knob)
+ {
+ if (di->item.slider.horizontal)
+ di->item.slider.ic_knob =
+ ImageclassAlloc("DIALOG_WIDGET_SLIDER_KNOB_HORIZONTAL", 1);
+ else
+ di->item.slider.ic_knob =
+ ImageclassAlloc("DIALOG_WIDGET_SLIDER_KNOB_VERTICAL", 1);
+ }
+ im = ImageclassGetImage(di->item.slider.ic_knob, 0, 0, 0);
+ if (im)
+ {
+ EImageGetSize(im, &di->item.slider.knob_orig_w,
+ &di->item.slider.knob_orig_h);
+ EImageFree(im);
+ }
+
+ pad = ImageclassGetPadding(di->item.slider.ic_base);
+ if (di->item.slider.horizontal)
+ {
+ iw = di->item.slider.min_length + pad->left + pad->right;
+ ih = di->item.slider.base_orig_h;
+ }
+ else
+ {
+ iw = di->item.slider.base_orig_w;
+ ih = di->item.slider.min_length + pad->top + pad->bottom;
+ }
+ di->w = iw;
+ di->h = ih;
+ break;
+ case DITEM_BUTTON:
+ pad = ImageclassGetPadding(di->iclass);
+ TextSize(di->tclass, 0, 0, STATE_NORMAL, di->text, &iw, &ih, 17);
+ iw += pad->left + pad->right;
+ ih += pad->top + pad->bottom;
+ di->win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->win);
+ ESelectInput(di->win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ di->w = iw;
+ di->h = ih;
+ break;
+ case DITEM_AREA:
+ pad = ImageclassGetPadding(di->iclass);
+ iw = di->item.area.w;
+ ih = di->item.area.h;
+ iw += pad->left + pad->right;
+ ih += pad->top + pad->bottom;
+ di->win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->win);
+ di->item.area.area_win = ECreateWindow(di->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->item.area.area_win);
+ ESelectInput(di->item.area.area_win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask | PointerMotionMask);
+ EventCallbackRegister(di->item.area.area_win, 0, DItemHandleEvents, di);
+ di->w = iw;
+ di->h = ih;
+ break;
+ case DITEM_CHECKBUTTON:
+ pad = ImageclassGetPadding(di->iclass);
+ im = ImageclassGetImage(di->iclass, 0, 0, 0);
+ if (im)
+ {
+ EImageGetSize(im, &di->item.check_button.check_orig_w,
+ &di->item.check_button.check_orig_h);
+ EImageFree(im);
+ }
+ TextSize(di->tclass, 0, 0, STATE_NORMAL, di->text, &iw, &ih, 17);
+ if (ih < di->item.check_button.check_orig_h)
+ ih = di->item.check_button.check_orig_h;
+ iw += di->item.check_button.check_orig_w + pad->left;
+ di->item.check_button.check_win =
+ ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ di->win = ECreateEventWindow(d->win, -20, -20, 2, 2);
+ EMapWindow(di->item.check_button.check_win);
+ EMapWindow(di->win);
+ ESelectInput(di->win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ di->w = iw;
+ di->h = ih;
+ break;
+ case DITEM_TEXT:
+ TextSize(di->tclass, 0, 0, STATE_NORMAL, di->text, &iw, &ih, 17);
+ di->w = iw;
+ di->h = ih;
+ break;
+ case DITEM_IMAGE:
+ im = ThemeImageLoad(di->item.image.image);
+ if (im)
+ {
+ EImageGetSize(im, &iw, &ih);
+ di->win = ECreateWindow(d->win, 0, 0, iw, ih, 0);
+ EMapWindow(di->win);
+ EImageApplyToWin(im, di->win, 0, 0, 0);
+ EImageFree(im);
+ }
+ di->w = iw;
+ di->h = ih;
+ register_win_callback = 0;
+ break;
+ case DITEM_SEPARATOR:
+ pad = ImageclassGetPadding(di->iclass);
+ iw = pad->left + pad->right;
+ ih = pad->top + pad->bottom;
+ di->win = ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ EMapWindow(di->win);
+ di->w = iw;
+ di->h = ih;
+ register_win_callback = 0;
+ break;
+ case DITEM_RADIOBUTTON:
+ pad = ImageclassGetPadding(di->iclass);
+ im = ImageclassGetImage(di->iclass, 0, 0, 0);
+ if (im)
+ {
+ EImageGetSize(im, &di->item.radio_button.radio_orig_w,
+ &di->item.radio_button.radio_orig_h);
+ EImageFree(im);
+ }
+ TextSize(di->tclass, 0, 0, STATE_NORMAL, di->text, &iw, &ih, 17);
+ if (ih < di->item.radio_button.radio_orig_h)
+ ih = di->item.radio_button.radio_orig_h;
+ iw += di->item.radio_button.radio_orig_w + pad->left;
+ di->item.radio_button.radio_win =
+ ECreateWindow(d->win, -20, -20, 2, 2, 0);
+ di->win = ECreateEventWindow(d->win, -20, -20, 2, 2);
+ EMapWindow(di->item.radio_button.radio_win);
+ EMapWindow(di->win);
+ ESelectInput(di->win,
+ EnterWindowMask | LeaveWindowMask | ButtonPressMask |
+ ButtonReleaseMask);
+ di->w = iw;
+ di->h = ih;
+ break;
+ case DITEM_TABLE:
+ {
+ int cols, rows;
+
+ pad = ImageclassGetPadding(d->iclass);
+
+ cols = di->item.table.num_columns;
+ rows = 1;
+ if (cols > 0)
+ {
+ int i, r, c, x, y;
+ int *col_size, *row_size;
+
+ col_size = EMALLOC(int, cols);
+ row_size = EMALLOC(int, rows);
+
+ row_size[0] = 0;
+ for (i = 0; i < cols; i++)
+ col_size[i] = 0;
+
+ r = c = 0;
+ for (i = 0; i < di->item.table.num_items; i++)
+ {
+ DItem *dii;
+ int w, h, j, ww;
+
+ dii = di->item.table.items[i];
+ w = dii->w + (dii->padding.left + dii->padding.right);
+ h = dii->h + (dii->padding.top + dii->padding.bottom);
+ ww = 0;
+ for (j = 0; j < dii->col_span; j++)
+ ww += col_size[c + j];
+ if (w > ww)
+ {
+ ww = (w + dii->col_span - 1) / dii->col_span;
+ for (j = 0; j < dii->col_span; j++)
+ if (col_size[c + j] < ww)
+ col_size[c + j] = ww;
+ }
+ if (h > row_size[r])
+ row_size[r] = h;
+ c += dii->col_span;
+ if (c >= cols)
+ {
+ c = 0;
+ r++;
+ rows++;
+ row_size = EREALLOC(int, row_size, rows);
+
+ row_size[rows - 1] = 0;
+ }
+ }
+ if (di->item.table.homogenous_h)
+ {
+ int max = 0;
+
+ for (i = 0; i < cols; i++)
+ {
+ if (col_size[i] > max)
+ max = col_size[i];
+ }
+ for (i = 0; i < cols; i++)
+ col_size[i] = max;
+ }
+ if (di->item.table.homogenous_v)
+ {
+ int max = 0;
+
+ for (i = 0; i < rows; i++)
+ {
+ if (row_size[i] > max)
+ max = row_size[i];
+ }
+ for (i = 0; i < rows; i++)
+ row_size[i] = max;
+ }
+
+ iw = ih = 0;
+ for (i = 0; i < cols; i++)
+ iw += col_size[i];
+ for (i = 0; i < rows; i++)
+ ih += row_size[i];
+ di->w = iw;
+ di->h = ih;
+
+ x = y = 0;
+ r = c = 0;
+ for (i = 0; i < di->item.table.num_items; i++)
+ {
+ DItem *dii;
+ int j, sw = 0, sh = 0;
+
+ dii = di->item.table.items[i];
+
+ for (j = 0; j < dii->col_span; j++)
+ sw += col_size[c + j];
+ for (j = 0; j < dii->row_span; j++)
+ sh += row_size[r + j];
+ if (dii->fill_h)
+ dii->w = sw - (dii->padding.left + dii->padding.right);
+ if (dii->fill_v)
+ dii->h = sh - (dii->padding.top + dii->padding.bottom);
+ if (dii->w <= 0 || dii->h <= 0)
+ goto skip;
+ if (dii->type == DITEM_TABLE)
+ {
+ int dx, dy, newx, newy;
+
+ newx =
+ di->x + x + pad->left +
+ dii->padding.left +
+ (((sw
+ - (dii->padding.left + dii->padding.right) -
+ dii->w) * dii->align_h) >> 10);
+ newy =
+ di->y + y + pad->top +
+ dii->padding.top +
+ (((sh
+ - (dii->padding.top + dii->padding.bottom) -
+ dii->h) * dii->align_v) >> 10);
+ dx = newx - dii->x - pad->left;
+ dy = newy - dii->y - pad->top;
+ MoveTableBy(d, dii, dx, dy);
+ }
+ else
+ {
+ dii->x =
+ di->x + x + pad->left +
+ dii->padding.left +
+ (((sw
+ - (dii->padding.left + dii->padding.right) -
+ dii->w) * dii->align_h) >> 10);
+ dii->y =
+ di->y + y + pad->top +
+ dii->padding.top +
+ (((sh
+ - (dii->padding.top + dii->padding.bottom) -
+ dii->h) * dii->align_v) >> 10);
+ if (dii->win)
+ EMoveResizeWindow(dii->win, dii->x, dii->y,
+ dii->w, dii->h);
+ if (dii->type == DITEM_CHECKBUTTON)
+ EMoveResizeWindow(dii->item.check_button.
+ check_win, dii->x,
+ dii->y +
+ ((dii->h -
+ dii->item.check_button.
+ check_orig_h) / 2),
+ dii->item.check_button.
+ check_orig_w,
+ dii->item.check_button.
+ check_orig_h);
+ if (dii->type == DITEM_RADIOBUTTON)
+ EMoveResizeWindow(dii->item.radio_button.
+ radio_win, dii->x,
+ dii->y +
+ ((dii->h -
+ dii->item.radio_button.
+ radio_orig_h) / 2),
+ dii->item.radio_button.
+ radio_orig_w,
+ dii->item.radio_button.
+ radio_orig_h);
+ if (dii->type == DITEM_AREA)
+ {
+ pad = ImageclassGetPadding(dii->iclass);
+ dii->item.area.w =
+ dii->w - (pad->left + pad->right);
+ dii->item.area.h =
+ dii->h - (pad->top + pad->bottom);
+ EMoveResizeWindow(dii->item.area.area_win,
+ pad->left, pad->top,
+ dii->item.area.w,
+ dii->item.area.h);
+ }
+ if (dii->type == DITEM_SLIDER)
+ {
+ dii->item.slider.base_x = 0;
+ dii->item.slider.base_y = 0;
+ dii->item.slider.base_w = dii->w;
+ dii->item.slider.base_h = dii->h;
+ dii->item.slider.knob_w =
+ dii->item.slider.knob_orig_w;
+ dii->item.slider.knob_h =
+ dii->item.slider.knob_orig_h;
+ if (dii->item.slider.base_win)
+ EMoveResizeWindow(dii->item.slider.base_win,
+ dii->x +
+ dii->item.slider.base_x,
+ dii->y +
+ dii->item.slider.base_y,
+ dii->item.slider.base_w,
+ dii->item.slider.base_h);
+ if (dii->win)
+ EMoveResizeWindow(dii->win,
+ dii->x +
+ dii->item.slider.
+ numeric_x,
+ dii->y +
+ dii->item.slider.
+ numeric_y,
+ dii->item.slider.
+ numeric_w,
+ dii->item.slider.numeric_h);
+ }
+ }
+ skip:
+ x += sw;
+ c += dii->col_span;
+ if (c >= cols)
+ {
+ x = 0;
+ y += row_size[r];
+ c = 0;
+ r++;
+ }
+ }
+ Efree(col_size);
+ Efree(row_size);
+ }
+ }
+ break;
+ case DITEM_NONE:
+ default:
+ di->w = 0;
+ di->h = 0;
+ break;
+ }
+
+ if (di->win && register_win_callback)
+ EventCallbackRegister(di->win, 0, DItemHandleEvents, di);
+}
+
+static void
+MoveTableBy(Dialog * d, DItem * di, int dx, int dy)
+{
+ int i;
+
+ di->x += dx;
+ di->y += dy;
+ for (i = 0; i < di->item.table.num_items; i++)
+ {
+ DItem *dii;
+
+ dii = di->item.table.items[i];
+
+ if (dii->type == DITEM_TABLE)
+ {
+ MoveTableBy(d, dii, dx, dy);
+ continue;
+ }
+
+ dii->x += dx;
+ dii->y += dy;
+
+ if (dii->win)
+ EMoveWindow(dii->win, dii->x, dii->y);
+
+ switch (dii->type)
+ {
+ case DITEM_CHECKBUTTON:
+ EMoveWindow(dii->item.check_button.check_win, dii->x,
+ dii->y +
+ ((dii->h - dii->item.check_button.check_orig_h) / 2));
+ break;
+ case DITEM_RADIOBUTTON:
+ EMoveWindow(dii->item.radio_button.radio_win, dii->x,
+ dii->y +
+ ((dii->h - dii->item.radio_button.radio_orig_h) / 2));
+ break;
+ case DITEM_SLIDER:
+ {
+ if (dii->item.slider.base_win)
+ EMoveResizeWindow(dii->item.slider.base_win,
+ dii->x + dii->item.slider.base_x,
+ dii->y + dii->item.slider.base_y,
+ dii->item.slider.base_w,
+ dii->item.slider.base_h);
+ if (dii->item.slider.knob_win)
+ EMoveResizeWindow(dii->item.slider.knob_win,
+ dii->x + dii->item.slider.knob_x,
+ dii->y + dii->item.slider.knob_y,
+ dii->item.slider.knob_w,
+ dii->item.slider.knob_h);
+ if (dii->win)
+ EMoveResizeWindow(dii->win,
+ dii->x + dii->item.slider.numeric_x,
+ dii->y + dii->item.slider.numeric_y,
+ dii->item.slider.numeric_w,
+ dii->item.slider.numeric_h);
+ break;
+ }
+ }
+ }
+}
+
+void
+DialogDrawItems(Dialog * d, DItem * di, int x, int y, int w, int h)
+{
+ d->update = 1;
+ di->update = 1;
+
+ if (d->xu1 > x)
+ d->xu1 = x;
+ if (d->yu1 > y)
+ d->yu1 = y;
+ x += w;
+ y += h;
+ if (d->xu2 < x)
+ d->xu2 = x;
+ if (d->yu2 < y)
+ d->yu2 = y;
+
+ dialog_update_pending = 1;
+
+#if DEBUG_DIALOGS
+ Eprintf("DialogDrawItems t=%d u=%d - %d,%d -> %d,%d\n", di->type, di->update,
+ d->xu1, d->yu1, d->xu2, d->yu2);
+#endif
+}
+
+static void
+DialogDrawItem(Dialog * d, DItem * di)
+{
+ int state, x, w;
+ EImageBorder *pad;
+
+ if (!di->update && di->type != DITEM_TABLE)
+ return;
+
+ if (di->x > d->xu2 || di->y > d->yu2 ||
+ di->x + di->w <= d->xu1 || di->y + di->h <= d->yu1)
+ goto done;
+
+#if DEBUG_DIALOGS
+ Eprintf("DialogDrawItem t=%d u=%d - %d,%d -> %d,%d\n", di->type, di->update,
+ d->xu1, d->yu1, d->xu2, d->yu2);
+#endif
+
+ switch (di->type)
+ {
+ case DITEM_TABLE:
+ {
+ int i;
+ DItem *dii;
+
+ for (i = 0; i < di->item.table.num_items; i++)
+ {
+ dii = di->item.table.items[i];
+ if (di->update)
+ dii->update = 1;
+ DialogDrawItem(d, dii);
+ }
+
+#if 0 /* Debug */
+ {
+ XGCValues gcv;
+ GC gc;
+
+ pad = ImageclassGetPadding(d->iclass);
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(WinGetPmap(d->win), GCSubwindowMode, &gcv);
+ XSetForeground(disp, gc, Dpy.pixel_black);
+ XDrawRectangle(disp, WinGetPmap(d->win), gc,
+ pad->left + di->x, pad->top + di->y, di->w, di->h);
+ EXFreeGC(gc);
+ }
+#endif
+ }
+ break;
+
+ case DITEM_SLIDER:
+ if (di->item.slider.horizontal)
+ {
+ di->item.slider.knob_x = di->item.slider.base_x +
+ (((di->item.slider.base_w - di->item.slider.knob_w) *
+ (di->item.slider.val - di->item.slider.lower)) /
+ (di->item.slider.upper - di->item.slider.lower));
+ di->item.slider.knob_y = di->item.slider.base_y +
+ ((di->item.slider.base_h - di->item.slider.knob_h) / 2);
+ }
+ else
+ {
+ di->item.slider.knob_y = di->item.slider.base_y +
+ (((di->item.slider.base_h - di->item.slider.knob_h) *
+ (di->item.slider.val - di->item.slider.lower)) /
+ (di->item.slider.upper - di->item.slider.lower));
+ di->item.slider.knob_x = di->item.slider.base_x +
+ ((di->item.slider.base_w - di->item.slider.knob_w) / 2);
+ }
+ if (di->item.slider.knob_win)
+ EMoveResizeWindow(di->item.slider.knob_win,
+ di->x + di->item.slider.knob_x,
+ di->y + di->item.slider.knob_y,
+ di->item.slider.knob_w, di->item.slider.knob_h);
+ if (di->item.slider.base_win)
+ ImageclassApply(di->item.slider.ic_base,
+ di->item.slider.base_win,
+ 0, 0, STATE_NORMAL, ST_WIDGET);
+ state = STATE_NORMAL;
+ if ((di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ else if ((di->hilited) && (!di->clicked))
+ state = STATE_HILITED;
+ else if (!(di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ if (di->item.slider.knob_win)
+ ImageclassApply(di->item.slider.ic_knob,
+ di->item.slider.knob_win, 0, 0, state, ST_WIDGET);
+ break;
+
+ case DITEM_BUTTON:
+ state = STATE_NORMAL;
+ if ((di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ else if ((di->hilited) && (!di->clicked))
+ state = STATE_HILITED;
+ else if (!(di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ ITApply(di->win, di->iclass, NULL, state, 0, 0,
+ ST_WIDGET, di->tclass, NULL, di->text, 0);
+ break;
+
+ case DITEM_AREA:
+ if (!d->redraw)
+ break;
+ ImageclassApply(di->iclass, di->win, 0, 0, STATE_NORMAL, ST_DIALOG);
+ if (di->item.area.init_func)
+ di->item.area.init_func(di, 0, NULL);
+ break;
+
+ case DITEM_SEPARATOR:
+ if (!d->redraw)
+ break;
+ if (di->item.separator.horizontal)
+ ImageclassApply(di->iclass, di->win, 0, 0, STATE_NORMAL, ST_WIDGET);
+ else
+ ImageclassApply(di->iclass, di->win, 0, 0, STATE_CLICKED, ST_WIDGET);
+ break;
+
+ case DITEM_TEXT:
+ state = STATE_NORMAL;
+ x = di->x;
+ w = di->w;
+ goto draw_text;
+
+ case DITEM_CHECKBUTTON:
+ state = STATE_NORMAL;
+ if ((di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ else if ((di->hilited) && (!di->clicked))
+ state = STATE_HILITED;
+ else if (!(di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ ImageclassApply(di->iclass, di->item.check_button.check_win,
+ DialogItemCheckButtonGetState(di), 0, state, ST_WIDGET);
+ if (!d->redraw &&
+ (TextclassGetTextState(di->tclass, di->state, 0, 0) ==
+ TextclassGetTextState(di->tclass, state, 0, 0)))
+ break;
+ pad = ImageclassGetPadding(di->iclass);
+ x = di->x + di->item.check_button.check_orig_w + pad->left;
+ w = di->w - di->item.check_button.check_orig_w - pad->left;
+ goto draw_text;
+
+ case DITEM_RADIOBUTTON:
+ state = STATE_NORMAL;
+ if ((di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ else if ((di->hilited) && (!di->clicked))
+ state = STATE_HILITED;
+ else if (!(di->hilited) && (di->clicked))
+ state = STATE_CLICKED;
+ ImageclassApply(di->iclass, di->item.radio_button.radio_win,
+ di->item.radio_button.onoff, 0, state, ST_WIDGET);
+ if (!d->redraw &&
+ (TextclassGetTextState(di->tclass, di->state, 0, 0) ==
+ TextclassGetTextState(di->tclass, state, 0, 0)))
+ break;
+ pad = ImageclassGetPadding(di->iclass);
+ x = di->x + di->item.radio_button.radio_orig_w + pad->left;
+ w = di->w - di->item.radio_button.radio_orig_w - pad->left;
+ goto draw_text;
+
+ default:
+ break;
+
+ draw_text:
+ di->state = state;
+ if (!di->text || !di->tclass)
+ break;
+ if (!d->redraw || di->update)
+ EXCopyArea(d->pmm_bg.pmap, WinGetPmap(d->win),
+ di->x, di->y, di->w, di->h, di->x, di->y);
+ TextDraw(di->tclass, d->win, WinGetPmap(d->win), 0, 0, state, di->text,
+ x, di->y, w, 99999, 17, TextclassGetJustification(di->tclass));
+ break;
+ }
+
+ done:
+ di->update = 0;
+}
+
+static void
+DialogUpdate(Dialog * d)
+{
+ do
+ {
+ d->update = 0;
+ if (d->item)
+ DialogDrawItem(d, d->item);
+ }
+ while (d->update);
+ if (d->xu1 < d->xu2 && d->yu1 < d->yu2)
+ EClearArea(d->win, d->xu1, d->yu1, d->xu2 - d->xu1, d->yu2 - d->yu1);
+ d->xu1 = d->yu1 = 99999;
+ d->xu2 = d->yu2 = 0;
+}
+
+static void
+_DialogsCheckUpdate(void *data __UNUSED__)
+{
+ Dialog *d;
+
+ if (!dialog_update_pending)
+ return;
+ dialog_update_pending = 0;
+
+ ECORE_LIST_FOR_EACH(dialog_list, d)
+ {
+ if (d->update)
+ DialogUpdate(d);
+ d->redraw = 0;
+ }
+}
+
+void
+DialogsInit(void)
+{
+ IdlerAdd(_DialogsCheckUpdate, NULL);
+}
+
+static void
+DialogItemsRealize(Dialog * d)
+{
+ EImageBorder *pad;
+
+ if (!d->item)
+ return;
+
+ DialogRealizeItem(d, d->item);
+ DialogDrawItems(d, d->item, 0, 0, 99999, 99999);
+ pad = ImageclassGetPadding(d->iclass);
+ d->w = d->item->w + pad->left + pad->right;
+ d->h = d->item->h + pad->top + pad->bottom;
+ EResizeWindow(d->win, d->w, d->h);
+}
+
+void
+DialogItemSetText(DItem * di, const char *text)
+{
+ Efree(di->text);
+ di->text = Estrdup(text);
+}
+
+void
+DialogItemRadioButtonSetEventFunc(DItem * di, DialogItemCallbackFunc * func)
+{
+ di->item.radio_button.event_func = func;
+}
+
+void
+DialogItemRadioButtonSetFirst(DItem * di, DItem * first)
+{
+ di->item.radio_button.first = first;
+ if (di == first)
+ return;
+ while (first->item.radio_button.next)
+ first = first->item.radio_button.next;
+ first->item.radio_button.next = di;
+}
+
+void
+DialogItemRadioButtonGroupSetValPtr(DItem * di, int *val_ptr)
+{
+ while (di)
+ {
+ di->item.radio_button.val_ptr = val_ptr;
+ if (*val_ptr == di->item.radio_button.val)
+ di->item.radio_button.onoff = 1;
+ di = di->item.radio_button.next;
+ }
+}
+
+void
+DialogItemRadioButtonGroupSetVal(DItem * di, int val)
+{
+ di->item.radio_button.val = val;
+}
+
+void
+DialogItemCheckButtonSetState(DItem * di, char onoff)
+{
+ *(di->item.check_button.onoff_ptr) = onoff;
+}
+
+void
+DialogItemCheckButtonSetPtr(DItem * di, char *onoff_ptr)
+{
+ di->item.check_button.onoff_ptr = onoff_ptr;
+}
+
+static int
+DialogItemCheckButtonGetState(DItem * di)
+{
+ return *(di->item.check_button.onoff_ptr) ? 1 : 0;
+}
+
+void
+DialogItemTableSetOptions(DItem * di, int num_columns, char border,
+ char homogenous_h, char homogenous_v)
+{
+ di->item.table.num_columns = num_columns;
+ di->item.table.border = border;
+ di->item.table.homogenous_h = homogenous_h;
+ di->item.table.homogenous_v = homogenous_v;
+}
+
+void
+DialogItemSeparatorSetOrientation(DItem * di, char horizontal)
+{
+ di->item.separator.horizontal = horizontal;
+}
+
+void
+DialogItemImageSetFile(DItem * di, const char *image)
+{
+ Efree(di->item.image.image);
+ di->item.image.image = Estrdup(image);
+ di->fill_h = 0;
+ di->fill_v = 0;
+}
+
+void
+DialogItemSliderSetVal(DItem * di, int val)
+{
+ if (val < di->item.slider.lower)
+ val = di->item.slider.lower;
+ else if (val > di->item.slider.upper)
+ val = di->item.slider.upper;
+ di->item.slider.val = val;
+ if (di->item.slider.val_ptr)
+ *di->item.slider.val_ptr = val;
+}
+
+void
+DialogItemSliderSetValPtr(DItem * di, int *val_ptr)
+{
+ di->item.slider.val_ptr = val_ptr;
+ DialogItemSliderSetVal(di, *val_ptr);
+}
+
+void
+DialogItemSliderSetBounds(DItem * di, int lower, int upper)
+{
+ if (lower < upper)
+ {
+ di->item.slider.lower = lower;
+ di->item.slider.upper = upper;
+ }
+ else
+ {
+ di->item.slider.lower = upper;
+ di->item.slider.upper = lower;
+ }
+ if (di->item.slider.upper <= di->item.slider.lower)
+ di->item.slider.upper = di->item.slider.lower + 1;
+}
+
+void
+DialogItemSliderSetUnits(DItem * di, int units)
+{
+ di->item.slider.unit = units;
+}
+
+void
+DialogItemSliderSetJump(DItem * di, int jump)
+{
+ di->item.slider.jump = jump;
+}
+
+void
+DialogItemSliderSetMinLength(DItem * di, int min)
+{
+ di->item.slider.min_length = min;
+}
+
+void
+DialogItemSliderSetOrientation(DItem * di, char horizontal)
+{
+ di->item.slider.horizontal = horizontal;
+}
+
+int
+DialogItemSliderGetVal(DItem * di)
+{
+ return di->item.slider.val;
+}
+
+void
+DialogItemSliderGetBounds(DItem * di, int *lower, int *upper)
+{
+ if (lower)
+ *lower = di->item.slider.lower;
+ if (upper)
+ *upper = di->item.slider.upper;
+}
+
+void
+DialogItemAreaSetSize(DItem * di, int w, int h)
+{
+ di->item.area.w = w;
+ di->item.area.h = h;
+}
+
+Win
+DialogItemAreaGetWindow(DItem * di)
+{
+ return di->item.area.area_win;
+}
+
+void
+DialogItemAreaGetSize(DItem * di, int *w, int *h)
+{
+ *w = di->item.area.w;
+ *h = di->item.area.h;
+}
+
+void
+DialogItemAreaSetInitFunc(DItem * di, DialogItemCallbackFunc * func)
+{
+ di->item.area.init_func = func;
+}
+
+void
+DialogItemAreaSetEventFunc(DItem * di, DialogItemCallbackFunc * func)
+{
+ di->item.area.event_func = func;
+}
+
+void
+DialogItemTableEmpty(DItem * di)
+{
+ int i;
+
+ if (di->type != DITEM_TABLE)
+ return;
+
+ for (i = 0; i < di->item.table.num_items; i++)
+ DialogItemDestroy(di->item.table.items[i], 1);
+
+ Efree(di->item.table.items);
+ di->item.table.items = NULL;
+ di->item.table.num_items = 0;
+}
+
+static void
+DialogItemDestroy(DItem * di, int clean)
+{
+ if (di->type == DITEM_TABLE)
+ DialogItemTableEmpty(di);
+
+ Efree(di->text);
+
+ switch (di->type)
+ {
+ default:
+ break;
+ case DITEM_CHECKBUTTON:
+ if (!clean)
+ break;
+ EDestroyWindow(di->item.check_button.check_win);
+ break;
+ case DITEM_IMAGE:
+ Efree(di->item.image.image);
+ break;
+ case DITEM_RADIOBUTTON:
+ if (!clean)
+ break;
+ EDestroyWindow(di->item.radio_button.radio_win);
+ break;
+ case DITEM_SLIDER:
+ ImageclassFree(di->item.slider.ic_base);
+ ImageclassFree(di->item.slider.ic_knob);
+ if (!clean)
+ break;
+ EDestroyWindow(di->item.slider.base_win);
+ EDestroyWindow(di->item.slider.knob_win);
+ break;
+ case DITEM_AREA:
+ if (!clean)
+ break;
+ EDestroyWindow(di->item.area.area_win);
+ break;
+ }
+
+ if (clean && di->win)
+ EDestroyWindow(di->win);
+ ImageclassFree(di->iclass);
+ TextclassFree(di->tclass);
+
+ Efree(di);
+}
+
+/* Convenience callback to close dialog */
+void
+DialogCallbackClose(Dialog * d, int val __UNUSED__, void *data __UNUSED__)
+{
+ DialogClose(d);
+}
+
+/*
+ * Predefined dialogs
+ */
+
+void
+DialogOK(const char *title, const char *fmt, ...)
+{
+ char text[10240];
+ va_list args;
+
+ va_start(args, fmt);
+ Evsnprintf(text, sizeof(text), fmt, args);
+ va_end(args);
+
+ DialogOKstr(title, text);
+}
+
+void
+DialogOKstr(const char *title, const char *txt)
+{
+ Dialog *d;
+ DItem *table, *di;
+
+ d = DialogCreate("DIALOG");
+
+ table = DialogInitItem(d);
+ DialogSetTitle(d, title);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, txt);
+
+ di = DialogItemAddButton(table, _("OK"), DialogCallbackClose, 0, 1,
+ DLG_BUTTON_OK);
+ DialogItemSetFill(di, 0, 0);
+
+ DialogBindKey(d, "Return", DialogCallbackClose, 0, NULL);
+ DialogBindKey(d, "Escape", DialogCallbackClose, 0, NULL);
+
+ DialogShow(d);
+}
+
+/*
+ * Dialog event handlers
+ */
+static int
+_DlgPixToVal(const DItem * di, int dx, int sr)
+{
+ int vr, value;
+
+ vr = di->item.slider.upper - di->item.slider.lower;
+ dx = (int)(((float)dx / (sr * di->item.slider.unit)) * vr + .5);
+ dx *= di->item.slider.unit;
+ value = di->item.slider.lower + dx;
+
+ if (value < di->item.slider.lower)
+ value = di->item.slider.lower;
+ if (value > di->item.slider.upper)
+ value = di->item.slider.upper;
+
+ return value;
+}
+
+static void
+DialogEventKeyPress(Dialog * d, XEvent * ev)
+{
+ int i;
+
+ for (i = 0; i < d->num_bindings; i++)
+ {
+ if (ev->xkey.keycode != d->keybindings[i].key)
+ continue;
+ d->keybindings[i].func(d, d->keybindings[i].val,
+ d->keybindings[i].data);
+ break;
+ }
+}
+
+static void
+DialogHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Dialog *d = (Dialog *) prm;
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ DialogEventKeyPress(d, ev);
+ break;
+ }
+
+ if (d->close)
+ _DialogClose(d);
+}
+
+static void
+DItemEventMotion(Win win __UNUSED__, DItem * di, XEvent * ev)
+{
+ switch (di->type)
+ {
+ case DITEM_AREA:
+ if (di->item.area.event_func)
+ di->item.area.event_func(di, 0, ev);
+ break;
+
+ case DITEM_SLIDER:
+ if (!di->item.slider.in_drag)
+ break;
+ if (ev->xmotion.window == WinGetXwin(di->item.slider.knob_win))
+ {
+ if (di->item.slider.horizontal)
+ {
+ di->item.slider.val =
+ _DlgPixToVal(di,
+ ev->xbutton.x + di->item.slider.knob_x -
+ di->item.slider.knob_w / 2,
+ di->item.slider.base_w -
+ di->item.slider.knob_w);
+ }
+ else
+ {
+ di->item.slider.val =
+ _DlgPixToVal(di,
+ ev->xbutton.y + di->item.slider.knob_y -
+ di->item.slider.knob_h / 2,
+ di->item.slider.base_h -
+ di->item.slider.knob_h);
+ }
+ if (di->item.slider.val_ptr)
+ *di->item.slider.val_ptr = di->item.slider.val;
+ if (di->func)
+ (di->func) (di->dlg, di->val, di->data);
+ }
+
+ DialogDrawItems(di->dlg, di, di->x, di->y, di->w, di->h);
+ break;
+ }
+}
+
+static void
+DItemEventMouseDown(Win win, DItem * di, XEvent * ev)
+{
+ int x, y, wheel_jump;
+
+ switch (di->type)
+ {
+ case DITEM_AREA:
+ if (di->item.area.event_func)
+ di->item.area.event_func(di, 0, ev);
+ break;
+
+ case DITEM_SLIDER:
+ if (ev->xbutton.window == WinGetXwin(di->item.slider.knob_win))
+ {
+ if (ev->xbutton.button >= 1 && ev->xbutton.button <= 3)
+ {
+ di->item.slider.in_drag = 1;
+ break;
+ }
+ }
+
+ /* Coords -> item.slider.base_win */
+ ETranslateCoordinates(win, di->item.slider.base_win,
+ ev->xbutton.x, ev->xbutton.y, &x, &y, NULL);
+
+ switch (ev->xbutton.button)
+ {
+ case 1:
+ case 3:
+ if (di->item.slider.horizontal)
+ {
+ if (ev->xbutton.x >
+ (di->item.slider.knob_x + (di->item.slider.knob_w / 2)))
+ di->item.slider.val += di->item.slider.jump;
+ else
+ di->item.slider.val -= di->item.slider.jump;
+ }
+ else
+ {
+ if (ev->xbutton.y >
+ (di->item.slider.knob_y + (di->item.slider.knob_h / 2)))
+ di->item.slider.val += di->item.slider.jump;
+ else
+ di->item.slider.val -= di->item.slider.jump;
+ }
+ break;
+
+ case 2:
+ if (di->item.slider.horizontal)
+ {
+ di->item.slider.val =
+ _DlgPixToVal(di,
+ ev->xbutton.x - di->item.slider.knob_w / 2,
+ di->item.slider.base_w -
+ di->item.slider.knob_w);
+ }
+ else
+ {
+ di->item.slider.val =
+ _DlgPixToVal(di,
+ ev->xbutton.y - di->item.slider.knob_h / 2,
+ di->item.slider.base_h -
+ di->item.slider.knob_h);
+ }
+ break;
+
+ case 4:
+ case 5:
+ wheel_jump = di->item.slider.jump / 2;
+ if (!wheel_jump)
+ wheel_jump++;
+
+ if (ev->xbutton.button == 5)
+ {
+ di->item.slider.val -= wheel_jump;
+ }
+ else if (ev->xbutton.button == 4)
+ {
+ di->item.slider.val += wheel_jump;
+ }
+ break;
+ }
+ if (di->item.slider.val < di->item.slider.lower)
+ di->item.slider.val = di->item.slider.lower;
+ if (di->item.slider.val > di->item.slider.upper)
+ di->item.slider.val = di->item.slider.upper;
+ if (di->item.slider.val_ptr)
+ *di->item.slider.val_ptr = di->item.slider.val;
+#if 0 /* Remove? */
+ if (di->func)
+ (di->func) (d, di->val, di->data);
+#endif
+ break;
+ }
+
+ di->clicked = 1;
+
+ DialogDrawItems(di->dlg, di, di->x, di->y, di->w, di->h);
+}
+
+static void
+DItemEventMouseUp(Win win, DItem * di, XEvent * ev)
+{
+ DItem *dii;
+
+ if (ev->xbutton.window != Mode.events.last_bpress)
+ return;
+
+ switch (di->type)
+ {
+ case DITEM_AREA:
+ if (di->item.area.event_func)
+ di->item.area.event_func(di, 0, ev);
+ break;
+
+ case DITEM_CHECKBUTTON:
+ DialogItemCheckButtonSetState(di, !DialogItemCheckButtonGetState(di));
+ break;
+
+ case DITEM_RADIOBUTTON:
+ dii = di->item.radio_button.first;
+ while (dii)
+ {
+ if (dii->item.radio_button.onoff)
+ {
+ dii->item.radio_button.onoff = 0;
+ DialogDrawItems(di->dlg, dii, dii->x, dii->y, dii->w, dii->h);
+ }
+ dii = dii->item.radio_button.next;
+ }
+ di->item.radio_button.onoff = 1;
+ if (di->item.radio_button.val_ptr)
+ *di->item.radio_button.val_ptr = di->item.radio_button.val;
+ break;
+
+ case DITEM_SLIDER:
+ if (win == di->item.slider.knob_win)
+ di->item.slider.in_drag = 0;
+ break;
+ }
+
+ if (di->hilited && di->clicked)
+ {
+ if (di->func)
+ di->func(di->dlg, di->val, di->data);
+
+ if (di->do_close)
+ di->dlg->close = 1;
+ }
+
+ di->clicked = 0;
+
+ DialogDrawItems(di->dlg, di, di->x, di->y, di->w, di->h);
+}
+
+static void
+DItemEventMouseIn(Win win __UNUSED__, DItem * di, XEvent * ev)
+{
+ switch (di->type)
+ {
+ case DITEM_AREA:
+ if (di->item.area.event_func)
+ di->item.area.event_func(di, 0, ev);
+ break;
+
+ case DITEM_RADIOBUTTON:
+ if (di->item.radio_button.event_func)
+ di->item.radio_button.event_func(di, di->item.radio_button.val, ev);
+ break;
+ }
+
+ di->hilited = 1;
+
+ DialogDrawItems(di->dlg, di, di->x, di->y, di->w, di->h);
+}
+
+static void
+DItemEventMouseOut(Win win __UNUSED__, DItem * di, XEvent * ev)
+{
+ switch (di->type)
+ {
+ case DITEM_AREA:
+ if (di->item.area.event_func)
+ di->item.area.event_func(di, 0, ev);
+ break;
+
+ case DITEM_RADIOBUTTON:
+ if (di->item.radio_button.event_func)
+ di->item.radio_button.event_func(di, di->item.radio_button.val,
+ NULL);
+ break;
+ }
+
+ if (!di->clicked)
+ di->hilited = 0;
+
+ DialogDrawItems(di->dlg, di, di->x, di->y, di->w, di->h);
+}
+
+static void
+DItemHandleEvents(Win win, XEvent * ev, void *prm)
+{
+ DItem *di = (DItem *) prm;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ DItemEventMouseDown(win, di, ev);
+ break;
+ case ButtonRelease:
+ DItemEventMouseUp(win, di, ev);
+ break;
+ case MotionNotify:
+ DItemEventMotion(win, di, ev);
+ break;
+ case EnterNotify:
+ DItemEventMouseIn(win, di, ev);
+ break;
+ case LeaveNotify:
+ DItemEventMouseOut(win, di, ev);
+ break;
+ }
+
+ if (di->dlg->close)
+ _DialogClose(di->dlg);
+}
+
+/*
+ * Finders
+ */
+
+static EWin *
+FindEwinByDialog(Dialog * d)
+{
+ EWin *const *ewins;
+ int i, num;
+
+ ewins = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if ((Dialog *) (ewins[i]->data) == d)
+ return ewins[i];
+ }
+
+ return NULL;
+}
+
+static int
+FindADialog(void)
+{
+ EWin *const *ewins;
+ int i, num, n;
+
+ ewins = EwinListGetAll(&num);
+ for (i = n = 0; i < num; i++)
+ {
+ if (ewins[i]->type == EWIN_TYPE_DIALOG)
+ n++;
+ }
+
+ return n;
+}
+
+#endif /* ENABLE_DIALOGS */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _DIALOG_H_
+#define _DIALOG_H_
+
+#include "config.h"
+
+#if ENABLE_DIALOGS
+
+/* Dialog items */
+#define DITEM_NONE 0
+#define DITEM_BUTTON 1
+#define DITEM_CHECKBUTTON 2
+#define DITEM_TEXT 3
+#define DITEM_IMAGE 4
+#define DITEM_SEPARATOR 5
+#define DITEM_TABLE 6
+#define DITEM_RADIOBUTTON 7
+#define DITEM_SLIDER 8
+#define DITEM_AREA 9
+
+/* Dialog button icons */
+#define DLG_BUTTON_NONE 0
+#define DLG_BUTTON_OK 1
+#define DLG_BUTTON_CANCEL 2
+#define DLG_BUTTON_APPLY 3
+#define DLG_BUTTON_CLOSE 4
+
+/* Dialog footer flags */
+#define DLG_OK 0x01
+#define DLG_APPLY 0x02
+#define DLG_CLOSE 0x04
+#define DLG_NO_SEPARATOR 0x10
+#define DLG_OC (DLG_OK | DLG_CLOSE)
+#define DLG_OAC (DLG_OK | DLG_APPLY | DLG_CLOSE)
+
+typedef struct _dialog Dialog;
+typedef struct _ditem DItem;
+
+typedef void (DialogCallbackFunc) (Dialog * d, int val, void *data);
+typedef void (DialogItemCallbackFunc) (DItem * di, int val, void *data);
+
+typedef struct {
+ const char *name;
+ const char *label;
+ const char *title;
+ int sound;
+ const char *header_image;
+ const char *header_text;
+ void (*fill) (Dialog * d, DItem * table, void *data);
+ int flags;
+ DialogCallbackFunc *func;
+} DialogDef;
+
+/* dialog.c */
+Dialog *DialogCreate(const char *name);
+Dialog *DialogFind(const char *name);
+void DialogBindKey(Dialog * d, const char *key,
+ DialogCallbackFunc * func, int val,
+ void *data);
+void DialogSetTitle(Dialog * d, const char *title);
+void DialogSetExitFunction(Dialog * d, DialogCallbackFunc * func,
+ int val);
+void DialogCallExitFunction(Dialog * d);
+void DialogSetData(Dialog * d, void *data);
+void *DialogGetData(Dialog * d);
+
+void DialogShow(Dialog * d);
+void DialogShowCentered(Dialog * d);
+void DialogRedraw(Dialog * d);
+void DialogClose(Dialog * d);
+
+void DialogArrange(Dialog * d, int resize);
+void DialogKeybindingsDestroy(Dialog * d);
+void DialogItemTableEmpty(DItem * di);
+
+void DialogShowSimple(const DialogDef * dd, void *data);
+void DialogShowSimpleWithName(const DialogDef * dd,
+ const char *name, void *data);
+void DialogFill(Dialog * d, DItem * parent, const DialogDef * dd,
+ void *data);
+
+DItem *DialogInitItem(Dialog * d);
+DItem *DialogAddItem(DItem * dii, int type);
+Dialog *DialogItemGetDialog(DItem * di);
+void DialogItemSetCallback(DItem * di, DialogCallbackFunc * func,
+ int val, void *data);
+void DialogItemSetPadding(DItem * di, int left, int right,
+ int top, int bottom);
+void DialogItemSetFill(DItem * di, char fill_h, char fill_v);
+void DialogItemSetAlign(DItem * di, int align_h, int align_v);
+void DialogItemSetText(DItem * di, const char *text);
+void DialogItemCallCallback(Dialog * d, DItem * di);
+void DialogDrawItems(Dialog * d, DItem * di, int x, int y, int w,
+ int h);
+void DialogItemRadioButtonSetEventFunc(DItem * di,
+ DialogItemCallbackFunc *
+ func);
+void DialogItemCheckButtonSetState(DItem * di, char onoff);
+void DialogItemCheckButtonSetPtr(DItem * di, char *onoff_ptr);
+void DialogItemTableSetOptions(DItem * di, int num_columns,
+ char border, char homogenous_h,
+ char homogenous_v);
+void DialogItemSeparatorSetOrientation(DItem * di,
+ char horizontal);
+void DialogItemImageSetFile(DItem * di, const char *image);
+void DialogItemSetRowSpan(DItem * di, int row_span);
+void DialogItemSetColSpan(DItem * di, int col_span);
+void DialogItemRadioButtonSetFirst(DItem * di, DItem * first);
+void DialogItemRadioButtonGroupSetValPtr(DItem * di,
+ int *val_ptr);
+void DialogItemRadioButtonGroupSetVal(DItem * di, int val);
+
+void DialogItemSliderSetVal(DItem * di, int val);
+void DialogItemSliderSetBounds(DItem * di, int lower, int upper);
+void DialogItemSliderSetUnits(DItem * di, int units);
+void DialogItemSliderSetJump(DItem * di, int jump);
+void DialogItemSliderSetMinLength(DItem * di, int min);
+void DialogItemSliderSetValPtr(DItem * di, int *val_ptr);
+void DialogItemSliderSetOrientation(DItem * di, char horizontal);
+int DialogItemSliderGetVal(DItem * di);
+void DialogItemSliderGetBounds(DItem * di, int *lower,
+ int *upper);
+
+void DialogItemAreaSetSize(DItem * di, int w, int h);
+void DialogItemAreaGetSize(DItem * di, int *w, int *h);
+Win DialogItemAreaGetWindow(DItem * di);
+void DialogItemAreaSetInitFunc(DItem * di,
+ DialogItemCallbackFunc * func);
+void DialogItemAreaSetEventFunc(DItem * di,
+ DialogItemCallbackFunc * func);
+
+DItem *DialogItemAddButton(DItem * parent, const char *text,
+ DialogCallbackFunc * func, int val,
+ char doclose, int image);
+
+void DialogCallbackClose(Dialog * d, int val, void *data);
+
+void DialogsInit(void);
+
+#endif /* ENABLE_DIALOGS */
+
+#endif /* _DIALOG_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "ewins.h"
+#include "iclass.h"
+
+static void
+DockappFindEmptySpotFor(EWin * eapp)
+{
+ EWin *const *lst, *ewin;
+ int num, i, j, x, y, w, h, done;
+ int step_right, step_down;
+
+ x = EoGetX(eapp);
+ y = EoGetY(eapp);
+ w = eapp->client.w;
+ h = eapp->client.h;
+ if (!eapp->state.placed)
+ {
+ x = Conf.dock.startx;
+ if (x < 0)
+ x = 0;
+ else if (x > WinGetW(VROOT) - EoGetW(eapp))
+ x = WinGetW(VROOT) - EoGetW(eapp);
+
+ y = Conf.dock.starty;
+ if (y < 0)
+ y = 0;
+ else if (y > WinGetH(VROOT) - EoGetH(eapp))
+ y = WinGetH(VROOT) - EoGetH(eapp);
+ }
+
+ step_right = Conf.dock.startx < WinGetW(VROOT);
+ step_down = Conf.dock.starty < WinGetH(VROOT);
+
+ lst = EwinListGetAll(&num);
+ for (j = 0; j < num; j++)
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+
+ /* Skip self and non-dockapps */
+ if (ewin == eapp || !ewin->state.docked)
+ continue;
+
+ if ((x + w) <= EoGetX(ewin) || x >= (EoGetX(ewin) + EoGetW(ewin)))
+ done = 1;
+ else if ((y + h) <= EoGetY(ewin)
+ || y > (EoGetY(ewin) + EoGetH(ewin)))
+ done = 1;
+ else
+ done = 0;
+
+ if (!done)
+ {
+ switch (Conf.dock.dirmode)
+ {
+ case DOCK_RIGHT:
+ x = EoGetX(ewin) + EoGetW(ewin);
+ if (x + w >= WinGetW(VROOT))
+ {
+ x = Conf.dock.startx;
+ y += (step_down) ? h : -h;
+ }
+ break;
+ case DOCK_LEFT:
+ x = EoGetX(ewin) - w;
+ if (x < 0)
+ {
+ x = Conf.dock.startx - w;
+ y += (step_down) ? h : -h;
+ }
+ break;
+ case DOCK_DOWN:
+ y = EoGetY(ewin) + EoGetH(ewin);
+ if (y + h >= WinGetH(VROOT))
+ {
+ y = Conf.dock.starty;
+ x += (step_right) ? w : -w;
+ }
+ break;
+ case DOCK_UP:
+ y = EoGetY(ewin) - h;
+ if (y < 0)
+ {
+ y = WinGetH(VROOT) - h;
+ x += (step_right) ? w : -w;
+ }
+ break;
+ }
+ }
+ }
+
+ if (x < 0 || y < 0 || x + w > WinGetW(VROOT) || y + h > WinGetH(VROOT))
+ {
+ x = WinGetW(VROOT) - w / 2;
+ y = WinGetH(VROOT) - h / 2;
+ }
+
+ EoMove(eapp, x, y);
+}
+
+void
+DockIt(EWin * ewin)
+{
+ ImageClass *ic;
+
+ ic = ImageclassFind("DEFAULT_DOCK_BUTTON", 1);
+
+ if (Conf.dock.sticky)
+ EoSetSticky(ewin, 1);
+
+ ewin->props.donthide = 1;
+ ewin->props.focusclick = 1;
+
+ DockappFindEmptySpotFor(ewin);
+ ewin->state.placed = 1;
+
+ if (ewin->icccm.icon_win)
+ {
+ XSetWindowBorderWidth(disp, ewin->icccm.icon_win, 0);
+ XMoveWindow(disp, ewin->icccm.icon_win, 0, 0);
+ XMapWindow(disp, ewin->icccm.icon_win);
+ }
+
+ ImageclassApply(ic, EoGetWin(ewin), 0, 0, STATE_NORMAL, ST_BUTTON);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "piximg.h"
+#include "xwin.h"
+
+#if 0
+#include <X11/bitmaps/gray>
+#include <X11/bitmaps/gray3>
+#else
+/* Include contents of X11/bitmaps/gray+gray3.
+ * (avoid build failure if x11 bitmap package isn't installed) */
+
+#define gray_width 2
+#define gray_height 2
+static const char gray_bits[] = { 0x01, 0x02 };
+
+#define gray3_width 4
+#define gray3_height 4
+static const char gray3_bits[] = { 0x01, 0x00, 0x04, 0x00 };
+#endif
+
+typedef struct {
+ EObj o;
+ Pixmap mask;
+ GC gc;
+} ShapeWin;
+
+static Font font = None; /* Used in mode 1 (technical) */
+
+#define DRAW_H_ARROW(_dr, _gc, x1, x2, y1) \
+ if (((x2) - (x1)) >= 12) \
+ { \
+ XDrawLine(disp, _dr, _gc, (x1), (y1), (x1) + 6, (y1) - 3); \
+ XDrawLine(disp, _dr, _gc, (x1), (y1), (x1) + 6, (y1) + 3); \
+ XDrawLine(disp, _dr, _gc, (x2), (y1), (x2) - 6, (y1) - 3); \
+ XDrawLine(disp, _dr, _gc, (x2), (y1), (x2) - 6, (y1) + 3); \
+ } \
+ if ((x2) >= (x1)) \
+ { \
+ XDrawLine(disp, _dr, _gc, (x1), (y1), (x2), (y1)); \
+ Esnprintf(str, sizeof(str), "%i", (x2) - (x1) + 1); \
+ XDrawString(disp, _dr, _gc, ((x1) + (x2)) / 2, (y1) - 10, str, strlen(str)); \
+ }
+#define DRAW_V_ARROW(_dr, _gc, y1, y2, x1) \
+ if (((y2) - (y1)) >= 12) \
+ { \
+ XDrawLine(disp, _dr, _gc, (x1), (y1), (x1) + 3, (y1) + 6); \
+ XDrawLine(disp, _dr, _gc, (x1), (y1), (x1) - 3, (y1) + 6); \
+ XDrawLine(disp, _dr, _gc, (x1), (y2), (x1) + 3, (y2) - 6); \
+ XDrawLine(disp, _dr, _gc, (x1), (y2), (x1) - 3, (y2) - 6); \
+ } \
+ if ((y2) >= (y1)) \
+ { \
+ XDrawLine(disp, _dr, _gc, (x1), (y1), (x1), (y2)); \
+ Esnprintf(str, sizeof(str), "%i", (y2) - (y1) + 1); \
+ XDrawString(disp, _dr, _gc, (x1) + 10, ((y1) + (y2)) / 2, str, strlen(str)); \
+ }
+
+#define DO_DRAW_MODE_1(_dr, _gc, _a, _b, _c, _d) \
+ do { \
+ if (!font) \
+ font = XLoadFont(disp, "-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*-*"); \
+ XSetFont(disp, _gc, font); \
+ if (_c < 3) _c = 3; \
+ if (_d < 3) _d = 3; \
+ DRAW_H_ARROW(_dr, _gc, _a + bl, _a + bl + _c - 1, _b + bt + _d - 16); \
+ DRAW_H_ARROW(_dr, _gc, 0, _a - 1, _b + bt + (_d / 2)); \
+ DRAW_H_ARROW(_dr, _gc, _a + _c + bl + br, WinGetW(VROOT) - 1, _b + bt + (_d / 2)); \
+ DRAW_V_ARROW(_dr, _gc, _b + bt, _b + bt + _d - 1, _a + bl + 16); \
+ DRAW_V_ARROW(_dr, _gc, 0, _b - 1, _a + bl + (_c / 2)); \
+ DRAW_V_ARROW(_dr, _gc, _b + _d + bt + bb, WinGetH(VROOT) - 1, _a + bl + (_c / 2)); \
+ XDrawLine(disp, _dr, _gc, _a, 0, _a, WinGetH(VROOT)); \
+ XDrawLine(disp, _dr, _gc, _a + _c + bl + br - 1, 0, _a + _c + bl + br - 1, WinGetH(VROOT)); \
+ XDrawLine(disp, _dr, _gc, 0, _b, WinGetW(VROOT), _b); \
+ XDrawLine(disp, _dr, _gc, 0, _b + _d + bt + bb - 1, WinGetW(VROOT), _b + _d + bt + bb - 1); \
+ XDrawRectangle(disp, _dr, _gc, _a + bl + 1, _b + bt + 1, _c - 3, _d - 3); \
+ } while(0)
+
+#define DO_DRAW_MODE_2(_dr, _gc, _a, _b, _c, _d) \
+ do { \
+ if (_c < 3) _c = 3; \
+ if (_d < 3) _d = 3; \
+ XDrawRectangle(disp, _dr, _gc, _a, _b, _c + bl + br - 1, _d + bt + bb - 1); \
+ XDrawRectangle(disp, _dr, _gc, _a + bl + 1, _b + bt + 1, _c - 3, _d - 3); \
+ } while(0)
+
+#define DO_DRAW_MODE_3(_dr, _gc, _a, _b, _c, _d) \
+ do { \
+ XSetFillStyle(disp, _gc, FillStippled); \
+ XSetStipple(disp, _gc, b2); \
+ if ((_c + bl + br > 0) && (bt > 0)) \
+ XFillRectangle(disp, _dr, _gc, _a, _b, _c + bl + br, bt); \
+ if ((_c + bl + br > 0) && (bb > 0)) \
+ XFillRectangle(disp, _dr, _gc, _a, _b + _d + bt, _c + bl + br, bb); \
+ if ((_d > 0) && (bl > 0)) \
+ XFillRectangle(disp, _dr, _gc, _a, _b + bt, bl, _d); \
+ if ((_d > 0) && (br > 0)) \
+ XFillRectangle(disp, _dr, _gc, _a + _c + bl, _b + bt, br, _d); \
+ XSetStipple(disp, _gc, b3); \
+ if ((_c > 0) && (_d > 0)) \
+ XFillRectangle(disp, _dr, _gc, _a + bl + 1, _b + bt + 1, _c - 3, _d - 3); \
+ } while(0)
+
+#define DO_DRAW_MODE_4(_dr, _gc, _a, _b, _c, _d) \
+ do { \
+ XSetFillStyle(disp, _gc, FillStippled); \
+ XSetStipple(disp, _gc, b2); \
+ XFillRectangle(disp, _dr, _gc, _a, _b, _c + bl + br, _d + bt + bb); \
+ } while(0)
+
+#define _SHAPE_SET_RECT(rl, _x, _y, _w, _h) \
+ do { \
+ rl[0].x = (_x); rl[0].y = (_y); rl[0].width = (_w); rl[0].height = 1; \
+ rl[1].x = (_x); rl[1].y = (_y)+(_h)-1; rl[1].width = (_w); rl[1].height = 1; \
+ rl[2].x = (_x); rl[2].y = (_y)+1; rl[2].width = 1; rl[2].height = (_h)-2; \
+ rl[3].x = (_x)+(_w)-1; rl[3].y = (_y)+1; rl[3].width = 1; rl[3].height = (_h)-2; \
+ } while(0)
+
+#define _R(x) (((x) >> 16) & 0xff)
+#define _G(x) (((x) >> 8) & 0xff)
+#define _B(x) (((x) ) & 0xff)
+
+static unsigned int
+_ShapeGetColor(void)
+{
+ static char color_valid = 0;
+ static unsigned int color_value = 0;
+ static unsigned int color_pixel;
+ EColor color;
+
+ if (color_valid && color_value == Conf.movres.color)
+ goto done;
+
+ color_value = Conf.movres.color;
+ SET_COLOR(&color, _R(color_value), _G(color_value), _B(color_value));
+ EAllocColor(WinGetCmap(VROOT), &color);
+ color_pixel = color.pixel;
+ color_valid = 1;
+
+ done:
+ return color_pixel;
+}
+
+static void
+_ShapeWinDestroy(ShapeWin * sw)
+{
+ EoUnmap(sw);
+ EoFini(sw);
+ if (sw->gc)
+ EXFreeGC(sw->gc);
+ if (sw->mask != None)
+ EFreePixmap(sw->mask);
+ Efree(sw);
+}
+
+static ShapeWin *
+_ShapeWinCreate(int md)
+{
+ ShapeWin *sw;
+
+ sw = ECALLOC(ShapeWin, 1);
+ if (!sw)
+ return NULL;
+
+ EoInit(sw, EOBJ_TYPE_MISC, None,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT), 2, "Wires");
+ if (!EoGetWin(sw))
+ goto bail_out;
+
+ EoSetFloating(sw, 1);
+ EoSetLayer(sw, 18);
+ ESetWindowBackground(EoGetWin(sw), _ShapeGetColor());
+#ifdef ShapeInput /* Should really check server too */
+ XShapeCombineRectangles(disp, EoGetXwin(sw),
+ ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted);
+#endif
+
+ if (md == 1)
+ {
+ sw->mask =
+ ECreatePixmap(EoGetWin(sw), WinGetW(VROOT), WinGetH(VROOT), 1);
+ sw->gc = EXCreateGC(sw->mask, 0, NULL);
+ if (sw->mask == None || !sw->gc)
+ goto bail_out;
+ }
+
+ return sw;
+
+ bail_out:
+ _ShapeWinDestroy(sw);
+ return NULL;
+}
+
+static void
+_ShapeSet(ShapeWin * sw, int md, int x, int y, int w, int h,
+ int bl, int br, int bt, int bb, int seqno)
+{
+ int w2, h2;
+
+ w2 = w + bl + br;
+ h2 = h + bt + bb;
+
+ if (md == 1)
+ {
+ char str[32];
+
+ XSetForeground(disp, sw->gc, 0);
+ XFillRectangle(disp, sw->mask, sw->gc,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT));
+ XSetForeground(disp, sw->gc, 1);
+ DO_DRAW_MODE_1(sw->mask, sw->gc, x, y, w, h);
+ if (seqno == 0)
+ EShapeSetMask(EoGetWin(sw), 0, 0, sw->mask);
+ else
+ EShapeUnionMask(EoGetWin(sw), 0, 0, sw->mask);
+ }
+ else
+ {
+ XRectangle rl[8];
+
+ _SHAPE_SET_RECT((&rl[0]), x, y, w2, h2);
+ w = (w > 5) ? w - 2 : 3;
+ h = (h > 5) ? h - 2 : 3;
+ _SHAPE_SET_RECT((&rl[4]), x + bl + 1, y + bt + 1, w, h);
+
+ if (seqno == 0)
+ EShapeSetRects(EoGetWin(sw), 0, 0, rl, 8);
+ else
+ EShapeUnionRects(EoGetWin(sw), 0, 0, rl, 8);
+ }
+ EoShapeUpdate(sw, 0);
+}
+
+static PixImg *root_pi = NULL;
+static PixImg *ewin_pi = NULL;
+static PixImg *draw_pi = NULL;
+
+static void
+_PixImgsCreate(Window root, const EWin * ewin)
+{
+ root_pi = ECreatePixImg(root, WinGetW(VROOT), WinGetH(VROOT));
+ ewin_pi = ECreatePixImg(root, EoGetW(ewin), EoGetH(ewin));
+ draw_pi = ECreatePixImg(root, EoGetW(ewin), EoGetH(ewin));
+}
+
+static void
+_PixImgsDestroy(void)
+{
+ EDestroyPixImg(root_pi);
+ EDestroyPixImg(ewin_pi);
+ EDestroyPixImg(draw_pi);
+ EBlendRemoveShape(NULL, 0, 0, 0);
+ EBlendPixImg(NULL, NULL, NULL, NULL, 0, 0, 0, 0);
+ root_pi = NULL;
+ ewin_pi = NULL;
+ draw_pi = NULL;
+}
+
+void
+DrawEwinShape(EWin * ewin, int md, int x, int y, int w, int h,
+ int firstlast, int seqno)
+{
+ static GC gc = 0;
+ static Pixmap b2 = 0, b3 = 0;
+ Window root = WinGetXwin(VROOT);
+ int x1, y1, w1, h1, dx, dy;
+ int bl, br, bt, bb;
+ char str[32];
+
+ /* Quit if no change */
+ if (firstlast == 1 &&
+ (x == ewin->shape_x && y == ewin->shape_y &&
+ (ewin->state.shaded || (w == ewin->shape_w && h == ewin->shape_h))))
+ return;
+
+ switch (md)
+ {
+ case 0:
+ EwinOpMoveResize(ewin, OPSRC_USER, x, y, w, h);
+ EwinShapeSet(ewin);
+ CoordsShow(ewin);
+ goto done;
+ case 1:
+ case 2:
+ break;
+ case 3:
+ case 4:
+ if (!b2)
+ b2 = XCreateBitmapFromData(disp, root, gray_bits, gray_width,
+ gray_height);
+ if (!b3)
+ b3 = XCreateBitmapFromData(disp, root, gray3_bits, gray3_width,
+ gray3_height);
+ break;
+ case 5:
+ break;
+ }
+
+ if (firstlast == 0)
+ EwinShapeSet(ewin);
+
+ dx = EoGetX(EoGetDesk(ewin));
+ dy = EoGetY(EoGetDesk(ewin));
+ x1 = ewin->shape_x + dx;
+ y1 = ewin->shape_y + dy;
+
+ w1 = ewin->shape_w;
+ h1 = ewin->shape_h;
+
+ ewin->shape_x = x;
+ ewin->shape_y = y;
+ x += dx;
+ y += dy;
+
+ if (!ewin->state.shaded)
+ {
+ ewin->shape_w = w;
+ ewin->shape_h = h;
+ }
+ else
+ {
+ w = ewin->shape_w;
+ h = ewin->shape_h;
+ }
+
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+
+ if (md <= 2 && Conf.movres.avoid_server_grab)
+ {
+ static ShapeWin *shape_win = NULL;
+
+ if (firstlast == 0 && !shape_win)
+ shape_win = _ShapeWinCreate(md);
+ if (!shape_win)
+ return;
+
+ _ShapeSet(shape_win, md, x, y, w, h, bl, br, bt, bb, seqno);
+ EoMap(shape_win, 0);
+
+ CoordsShow(ewin);
+
+ if (firstlast == 2)
+ {
+ _ShapeWinDestroy(shape_win);
+ shape_win = NULL;
+ }
+ goto done;
+ }
+
+ if (!gc)
+ {
+ XGCValues gcv;
+
+ gcv.function = GXxor;
+ gcv.foreground = Dpy.pixel_white;
+ if (gcv.foreground == 0)
+ gcv.foreground = Dpy.pixel_black;
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(root,
+ GCFunction | GCForeground | GCSubwindowMode, &gcv);
+ }
+
+ switch (md)
+ {
+ case 1:
+ if (firstlast > 0)
+ DO_DRAW_MODE_1(root, gc, x1, y1, w1, h1);
+ CoordsShow(ewin);
+ if (firstlast < 2)
+ DO_DRAW_MODE_1(root, gc, x, y, w, h);
+ break;
+ case 2:
+ if (firstlast > 0)
+ DO_DRAW_MODE_2(root, gc, x1, y1, w1, h1);
+ CoordsShow(ewin);
+ if (firstlast < 2)
+ DO_DRAW_MODE_2(root, gc, x, y, w, h);
+ break;
+ case 3:
+ if (firstlast > 0)
+ DO_DRAW_MODE_3(root, gc, x1, y1, w1, h1);
+ CoordsShow(ewin);
+ if (firstlast < 2)
+ DO_DRAW_MODE_3(root, gc, x, y, w, h);
+ break;
+ case 4:
+ if (firstlast > 0)
+ DO_DRAW_MODE_4(root, gc, x1, y1, w1, h1);
+ CoordsShow(ewin);
+ if (firstlast < 2)
+ DO_DRAW_MODE_4(root, gc, x, y, w, h);
+ break;
+ case 5:
+ {
+ if (firstlast == 0)
+ {
+ GC gc2;
+
+ _PixImgsDestroy();
+ _PixImgsCreate(root, ewin);
+ if ((!root_pi) || (!ewin_pi) || (!draw_pi))
+ {
+ _PixImgsDestroy();
+ Conf.movres.mode_move = 0;
+ EUngrabServer();
+ DrawEwinShape(ewin, Conf.movres.mode_move, x, y, w, h,
+ firstlast, seqno);
+ return;
+ }
+ EFillPixmap(root, root_pi->pmap, x1, y1, EoGetW(ewin),
+ EoGetH(ewin));
+ gc2 = EXCreateGC(root_pi->pmap, 0, NULL);
+ XCopyArea(disp, root_pi->pmap, ewin_pi->pmap, gc2, x1, y1,
+ EoGetW(ewin), EoGetH(ewin), 0, 0);
+ EXFreeGC(gc2);
+ EBlendPixImg(EoGetWin(ewin), root_pi, ewin_pi, draw_pi, x, y,
+ EoGetW(ewin), EoGetH(ewin));
+ }
+ else if (firstlast == 1)
+ {
+ int wt, ht;
+ int adx, ady;
+
+ dx = x - x1;
+ dy = y - y1;
+ if (dx < 0)
+ adx = -dx;
+ else
+ adx = dx;
+ if (dy < 0)
+ ady = -dy;
+ else
+ ady = dy;
+ wt = EoGetW(ewin);
+ ht = EoGetH(ewin);
+ if ((adx <= wt) && (ady <= ht))
+ {
+ if (dx < 0)
+ EFillPixmap(root, root_pi->pmap, x, y, -dx, ht);
+ else if (dx > 0)
+ EFillPixmap(root, root_pi->pmap, x + wt - dx, y,
+ dx, ht);
+ if (dy < 0)
+ EFillPixmap(root, root_pi->pmap, x, y, wt, -dy);
+ else if (dy > 0)
+ EFillPixmap(root, root_pi->pmap, x, y + ht - dy,
+ wt, dy);
+ }
+ else
+ EFillPixmap(root, root_pi->pmap, x, y, wt, ht);
+ if ((adx <= wt) && (ady <= ht))
+ {
+ EBlendPixImg(EoGetWin(ewin), root_pi, ewin_pi, draw_pi,
+ x, y, EoGetW(ewin), EoGetH(ewin));
+ if (dx > 0)
+ EPastePixmap(root, root_pi->pmap, x1, y1, dx, ht);
+ else if (dx < 0)
+ EPastePixmap(root, root_pi->pmap, x1 + wt + dx,
+ y1, -dx, ht);
+ if (dy > 0)
+ EPastePixmap(root, root_pi->pmap, x1, y1, wt, dy);
+ else if (dy < 0)
+ EPastePixmap(root, root_pi->pmap, x1,
+ y1 + ht + dy, wt, -dy);
+ }
+ else
+ {
+ EPastePixmap(root, root_pi->pmap, x1, y1, wt, ht);
+ EBlendPixImg(EoGetWin(ewin), root_pi, ewin_pi, draw_pi,
+ x, y, EoGetW(ewin), EoGetH(ewin));
+ }
+ EBlendRemoveShape(EoGetWin(ewin), root_pi->pmap, x, y);
+ }
+ else if (firstlast == 2)
+ {
+ EPastePixmap(root, root_pi->pmap, x1, y1, EoGetW(ewin),
+ EoGetH(ewin));
+ _PixImgsDestroy();
+ }
+ else if (firstlast == 3)
+ {
+ EPastePixmap(root, root_pi->pmap, x, y, EoGetW(ewin),
+ EoGetH(ewin));
+ if (root_pi)
+ EDestroyPixImg(root_pi);
+ root_pi = NULL;
+ }
+ else if (firstlast == 4)
+ {
+ int wt, ht;
+
+ wt = EoGetW(ewin);
+ ht = EoGetH(ewin);
+ root_pi = ECreatePixImg(root, WinGetW(VROOT), WinGetH(VROOT));
+ EFillPixmap(root, root_pi->pmap, x, y, wt, ht);
+ EBlendPixImg(EoGetWin(ewin), root_pi, ewin_pi, draw_pi, x, y,
+ EoGetW(ewin), EoGetH(ewin));
+ }
+ CoordsShow(ewin);
+ }
+ break;
+ }
+
+ if (firstlast == 2)
+ {
+ EXFreeGC(gc);
+ gc = 0;
+ }
+
+ done:
+ if (firstlast == 0 || firstlast == 2 || firstlast == 4)
+ {
+ ewin->req_x = ewin->shape_x;
+ ewin->req_y = ewin->shape_y;
+ if (firstlast == 2)
+ CoordsHide();
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Stuff for compiling without ecore_x.
+ */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <X11/Xatom.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+#include "config.h"
+#include "e16-ecore_hints.h"
+
+/* Window property change actions (must match _NET_WM_STATE_... ones) */
+#define ECORE_X_PROP_LIST_REMOVE 0
+#define ECORE_X_PROP_LIST_ADD 1
+#define ECORE_X_PROP_LIST_TOGGLE 2
+
+#ifdef USE_ECORE_X
+
+extern Display *_ecore_x_disp;
+
+void
+ecore_x_icccm_state_set_iconic(Ecore_X_Window win)
+{
+ ecore_x_icccm_state_set(win, ECORE_X_WINDOW_STATE_HINT_ICONIC);
+}
+
+void
+ecore_x_icccm_state_set_normal(Ecore_X_Window win)
+{
+ ecore_x_icccm_state_set(win, ECORE_X_WINDOW_STATE_HINT_NORMAL);
+}
+
+void
+ecore_x_icccm_state_set_withdrawn(Ecore_X_Window win)
+{
+ ecore_x_icccm_state_set(win, ECORE_X_WINDOW_STATE_HINT_WITHDRAWN);
+}
+
+#else /* USE_ECORE_X */
+
+#define DEBUG_CHECK 0
+#if DEBUG_CHECK
+#include <assert.h>
+#endif
+#include "hints.h"
+#include "xwin.h"
+
+#define _ecore_x_disp disp
+
+#define N_ITEMS(x) (sizeof(x)/sizeof(x[0]))
+
+/*
+ * General stuff
+ */
+
+/*
+ * Send client message (format 32)
+ */
+int
+ecore_x_client_message32_send(Window win, Atom type, long mask, long d0,
+ long d1, long d2, long d3, long d4)
+{
+ XEvent xev;
+
+ xev.xclient.type = ClientMessage;
+ xev.xclient.window = win;
+ xev.xclient.message_type = type;
+ xev.xclient.format = 32;
+ xev.xclient.data.l[0] = d0;
+ xev.xclient.data.l[1] = d1;
+ xev.xclient.data.l[2] = d2;
+ xev.xclient.data.l[3] = d3;
+ xev.xclient.data.l[4] = d4;
+
+ return XSendEvent(_ecore_x_disp, win, False, mask, &xev);
+}
+
+/*
+ * Set CARD32 (array) property
+ */
+void
+ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ unsigned int *val, unsigned int num)
+{
+#if SIZEOF_INT == SIZEOF_LONG
+ XChangeProperty(_ecore_x_disp, win, atom, XA_CARDINAL, 32, PropModeReplace,
+ (unsigned char *)val, num);
+#else
+ unsigned long *pl;
+ unsigned int i;
+
+ pl = malloc(num * sizeof(long));
+ if (!pl)
+ return;
+ for (i = 0; i < num; i++)
+ pl[i] = val[i];
+ XChangeProperty(_ecore_x_disp, win, atom, XA_CARDINAL, 32, PropModeReplace,
+ (unsigned char *)pl, num);
+ free(pl);
+#endif
+}
+
+/*
+ * Get CARD32 (array) property
+ *
+ * At most len items are returned in val.
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_card32_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ unsigned int *val, unsigned int len)
+{
+ unsigned char *prop_ret;
+ Atom type_ret;
+ unsigned long bytes_after, num_ret;
+ int format_ret;
+ unsigned int i;
+ int num;
+
+ prop_ret = NULL;
+ if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
+ XA_CARDINAL, &type_ret, &format_ret, &num_ret,
+ &bytes_after, &prop_ret) != Success)
+ return -1;
+
+ if (type_ret == None || num_ret == 0)
+ {
+ num = 0;
+ }
+ else if (prop_ret && type_ret == XA_CARDINAL && format_ret == 32)
+ {
+ if (num_ret < len)
+ len = num_ret;
+ for (i = 0; i < len; i++)
+ val[i] = ((unsigned long *)prop_ret)[i];
+ num = len;
+ }
+ else
+ {
+ num = -1;
+ }
+ if (prop_ret)
+ XFree(prop_ret);
+
+ return num;
+}
+
+/*
+ * Get CARD32 (array) property of any length
+ *
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_card32_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ unsigned int **plst)
+{
+ unsigned char *prop_ret;
+ Atom type_ret;
+ unsigned long bytes_after, num_ret;
+ int format_ret;
+ unsigned int i, *val;
+ int num;
+
+ prop_ret = NULL;
+ if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
+ XA_CARDINAL, &type_ret, &format_ret, &num_ret,
+ &bytes_after, &prop_ret) != Success)
+ return -1;
+
+ if (type_ret == None || num_ret == 0)
+ {
+ num = 0;
+ *plst = NULL;
+ }
+ else if (prop_ret && type_ret == XA_CARDINAL && format_ret == 32)
+ {
+ val = (unsigned int *)malloc(num_ret * sizeof(unsigned int));
+ for (i = 0; i < num_ret; i++)
+ val[i] = ((unsigned long *)prop_ret)[i];
+ num = num_ret;
+ *plst = val;
+ }
+ else
+ {
+ num = -1;
+ *plst = NULL;
+ }
+ if (prop_ret)
+ XFree(prop_ret);
+
+ return num;
+}
+
+#endif /* USE_ECORE_X */
+
+/*
+ * Set simple string list property
+ */
+void
+ecore_x_window_prop_string_list_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ char **lst, int num)
+{
+ XTextProperty xtp;
+
+ if (XmbTextListToTextProperty(_ecore_x_disp, lst, num,
+ XStdICCTextStyle, &xtp) != Success)
+ return;
+ XSetTextProperty(_ecore_x_disp, win, &xtp, atom);
+ XFree(xtp.value);
+}
+
+/*
+ * Get simple string list property
+ *
+ * If the property was successfully fetched the number of items stored in
+ * lst is returned, otherwise -1 is returned.
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_string_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ char ***plst)
+{
+ char **pstr = NULL;
+ XTextProperty xtp;
+ int i, items;
+ char **list;
+ Status s;
+
+ *plst = NULL;
+
+ if (!XGetTextProperty(_ecore_x_disp, win, &xtp, atom))
+ return -1;
+
+ if (xtp.format == 8)
+ {
+ s = XmbTextPropertyToTextList(_ecore_x_disp, &xtp, &list, &items);
+ if (s == Success)
+ {
+ if (items > 0)
+ {
+ pstr = (char **)malloc(items * sizeof(char *));
+ for (i = 0; i < items; i++)
+ pstr[i] = (list[i] && (*list[i] || i < items - 1)) ?
+ strdup(list[i]) : NULL;
+ }
+ if (list)
+ XFreeStringList(list);
+ goto done;
+ }
+ }
+
+ /* Bad format or XmbTextPropertyToTextList failed - Now what? */
+ pstr = (char **)malloc(sizeof(char *));
+ pstr[0] = (xtp.value) ? strdup((char *)xtp.value) : NULL;
+ items = 1;
+
+ done:
+ XFree(xtp.value);
+
+ *plst = pstr;
+ return items;
+}
+
+#ifndef USE_ECORE_X
+
+/*
+ * Set simple string property
+ */
+void
+ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ const char *str)
+{
+ ecore_x_window_prop_string_list_set(win, atom, (char **)(&str), 1);
+}
+
+/*
+ * Get simple string property
+ */
+char *
+ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom atom)
+{
+ XTextProperty xtp;
+ char *str;
+ int items;
+ char **list;
+ Status s;
+
+ if (!XGetTextProperty(_ecore_x_disp, win, &xtp, atom))
+ return NULL;
+
+ if (xtp.format == 8)
+ {
+ s = XmbTextPropertyToTextList(_ecore_x_disp, &xtp, &list, &items);
+ if ((s == Success) && (items > 0))
+ {
+ str = (*list) ? strdup(*list) : NULL;
+ XFreeStringList(list);
+ }
+ else
+ str = (xtp.value) ? strdup((char *)xtp.value) : NULL;
+ }
+ else
+ str = (xtp.value) ? strdup((char *)xtp.value) : NULL;
+
+ XFree(xtp.value);
+
+ return str;
+}
+
+/*
+ * Set UTF-8 string property
+ */
+static void
+_ecore_x_window_prop_string_utf8_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ const char *str)
+{
+ XChangeProperty(_ecore_x_disp, win, atom, ECORE_X_ATOM_UTF8_STRING, 8,
+ PropModeReplace, (unsigned char *)str, strlen(str));
+}
+
+/*
+ * Get UTF-8 string property
+ */
+static char *
+_ecore_x_window_prop_string_utf8_get(Ecore_X_Window win, Ecore_X_Atom atom)
+{
+ char *str;
+ unsigned char *prop_ret;
+ Atom type_ret;
+ unsigned long bytes_after, num_ret;
+ int format_ret;
+
+ str = NULL;
+ prop_ret = NULL;
+ XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
+ ECORE_X_ATOM_UTF8_STRING, &type_ret,
+ &format_ret, &num_ret, &bytes_after, &prop_ret);
+ if (prop_ret && num_ret > 0 && format_ret == 8)
+ {
+ str = (char *)malloc(num_ret + 1);
+ if (str)
+ {
+ memcpy(str, prop_ret, num_ret);
+ str[num_ret] = '\0';
+ }
+ }
+ if (prop_ret)
+ XFree(prop_ret);
+
+ return str;
+}
+
+/*
+ * Set X ID (array) property
+ */
+void
+ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom type, Ecore_X_ID * lst,
+ unsigned int num)
+{
+#if SIZEOF_INT == SIZEOF_LONG
+ XChangeProperty(_ecore_x_disp, win, atom, type, 32, PropModeReplace,
+ (unsigned char *)lst, num);
+#else
+ unsigned long *pl;
+ unsigned int i;
+
+ pl = malloc(num * sizeof(long));
+ if (!pl)
+ return;
+ for (i = 0; i < num; i++)
+ pl[i] = lst[i];
+ XChangeProperty(_ecore_x_disp, win, atom, type, 32, PropModeReplace,
+ (unsigned char *)pl, num);
+ free(pl);
+#endif
+}
+
+/*
+ * Get X ID (array) property
+ *
+ * At most len items are returned in val.
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_xid_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom type, Ecore_X_ID * lst,
+ unsigned int len)
+{
+ unsigned char *prop_ret;
+ Atom type_ret;
+ unsigned long bytes_after, num_ret;
+ int format_ret;
+ int num;
+ unsigned i;
+
+ prop_ret = NULL;
+ if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
+ type, &type_ret, &format_ret, &num_ret,
+ &bytes_after, &prop_ret) != Success)
+ return -1;
+
+ if (type_ret == None)
+ {
+ num = 0;
+ }
+ else if (prop_ret && type_ret == type && format_ret == 32)
+ {
+ if (num_ret < len)
+ len = num_ret;
+ for (i = 0; i < len; i++)
+ lst[i] = ((unsigned long *)prop_ret)[i];
+ num = len;
+ }
+ else
+ {
+ num = -1;
+ }
+ if (prop_ret)
+ XFree(prop_ret);
+
+ return num;
+}
+
+/*
+ * Get X ID (array) property
+ *
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * The returned array must be freed with free().
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_xid_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom type, Ecore_X_ID ** val)
+{
+ unsigned char *prop_ret;
+ Atom type_ret;
+ unsigned long bytes_after, num_ret;
+ int format_ret;
+ Ecore_X_Atom *alst;
+ int num;
+ unsigned i;
+
+ *val = NULL;
+ prop_ret = NULL;
+ if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
+ type, &type_ret, &format_ret, &num_ret,
+ &bytes_after, &prop_ret) != Success)
+ return -1;
+
+ if (type_ret == None || num_ret == 0)
+ {
+ num = 0;
+ }
+ else if (prop_ret && type_ret == type && format_ret == 32)
+ {
+ alst = (Ecore_X_Atom *) malloc(num_ret * sizeof(Ecore_X_ID));
+ for (i = 0; i < num_ret; i++)
+ alst[i] = ((unsigned long *)prop_ret)[i];
+ *val = alst;
+ num = num_ret;
+ }
+ else
+ {
+ num = -1;
+ }
+ if (prop_ret)
+ XFree(prop_ret);
+
+ return num;
+}
+
+/*
+ * Remove/add/toggle X ID list item.
+ */
+void
+ecore_x_window_prop_xid_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom type, Ecore_X_ID item, int op)
+{
+ Ecore_X_ID *lst;
+ int i, num;
+
+ num = ecore_x_window_prop_xid_list_get(win, atom, type, &lst);
+ if (num < 0)
+ return; /* Error - assuming invalid window */
+
+ /* Is it there? */
+ for (i = 0; i < num; i++)
+ {
+ if (lst[i] == item)
+ break;
+ }
+
+ if (i < num)
+ {
+ /* Was in list */
+ if (op == ECORE_X_PROP_LIST_ADD)
+ goto done;
+ /* Remove it */
+ num--;
+ for (; i < num; i++)
+ lst[i] = lst[i + 1];
+ }
+ else
+ {
+ /* Was not in list */
+ if (op == ECORE_X_PROP_LIST_REMOVE)
+ goto done;
+ /* Add it */
+ num++;
+ lst = (Ecore_X_ID *) realloc(lst, num * sizeof(Ecore_X_ID));
+ lst[i] = item;
+ }
+
+ ecore_x_window_prop_xid_set(win, atom, type, lst, num);
+
+ done:
+ if (lst)
+ free(lst);
+}
+
+/*
+ * Set Atom (array) property
+ */
+void
+ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom * lst, unsigned int num)
+{
+ ecore_x_window_prop_xid_set(win, atom, XA_ATOM, lst, num);
+}
+
+/*
+ * Get Atom (array) property
+ *
+ * At most len items are returned in val.
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom * lst, unsigned int len)
+{
+ return ecore_x_window_prop_xid_get(win, atom, XA_ATOM, lst, len);
+}
+
+/*
+ * Get Atom (array) property
+ *
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * The returned array must be freed with free().
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom ** plst)
+{
+ return ecore_x_window_prop_xid_list_get(win, atom, XA_ATOM, plst);
+}
+
+/*
+ * Remove/add/toggle atom list item.
+ */
+void
+ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Atom item, int op)
+{
+ ecore_x_window_prop_xid_list_change(win, atom, XA_ATOM, item, op);
+}
+
+/*
+ * Set Window (array) property
+ */
+void
+ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Window * lst, unsigned int num)
+{
+ ecore_x_window_prop_xid_set(win, atom, XA_WINDOW, lst, num);
+}
+
+/*
+ * Get Window (array) property
+ *
+ * At most len items are returned in val.
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Window * lst, unsigned int len)
+{
+ return ecore_x_window_prop_xid_get(win, atom, XA_WINDOW, lst, len);
+}
+
+/*
+ * Get Window (array) property
+ *
+ * If the property was successfully fetched the number of items stored in
+ * val is returned, otherwise -1 is returned.
+ * The returned array must be freed with free().
+ * Note: Return value 0 means that the property exists but has no elements.
+ */
+int
+ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
+ Ecore_X_Window ** plst)
+{
+ return ecore_x_window_prop_xid_list_get(win, atom, XA_WINDOW, plst);
+}
+
+#endif /* USE_ECORE_X */
+
+#ifndef USE_ECORE_X
+/*
+ * ICCCM stuff
+ */
+
+static const char *const atoms_icccm_names[] = {
+/* *INDENT-OFF* */
+
+ /* ICCCM */
+ "WM_STATE",
+ "WM_WINDOW_ROLE",
+ "WM_CLIENT_LEADER",
+ "WM_COLORMAP_WINDOWS",
+ "WM_CHANGE_STATE",
+ "WM_PROTOCOLS",
+ "WM_DELETE_WINDOW",
+ "WM_TAKE_FOCUS",
+#if 0
+ "WM_SAVE_YOURSELF",
+#endif
+
+ /* Misc. */
+ "UTF8_STRING",
+
+/* *INDENT-ON* */
+};
+unsigned int atoms_icccm[CHECK_COUNT_ICCCM];
+
+void
+ecore_x_icccm_init(void)
+{
+#if DEBUG_CHECK
+ assert(CHECK_COUNT_ICCCM == N_ITEMS(atoms_icccm));
+#endif
+ AtomListIntern(atoms_icccm_names, N_ITEMS(atoms_icccm), atoms_icccm);
+}
+
+static void
+ecore_x_icccm_state_set(Ecore_X_Window win, unsigned int state)
+{
+ unsigned long c[2];
+
+ c[0] = state;
+ c[1] = 0;
+ XChangeProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_STATE,
+ ECORE_X_ATOM_WM_STATE, 32, PropModeReplace,
+ (unsigned char *)c, 2);
+}
+
+void
+ecore_x_icccm_state_set_iconic(Ecore_X_Window win)
+{
+ ecore_x_icccm_state_set(win, IconicState);
+}
+
+void
+ecore_x_icccm_state_set_normal(Ecore_X_Window win)
+{
+ ecore_x_icccm_state_set(win, NormalState);
+}
+
+void
+ecore_x_icccm_state_set_withdrawn(Ecore_X_Window win)
+{
+ ecore_x_icccm_state_set(win, WithdrawnState);
+}
+
+static void
+ecore_x_icccm_client_message_send(Ecore_X_Window win,
+ Ecore_X_Atom atom, Ecore_X_Time ts)
+{
+ ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS, NoEventMask,
+ atom, ts, 0, 0, 0);
+}
+
+void
+ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time ts)
+{
+ ecore_x_icccm_client_message_send(win, ECORE_X_ATOM_WM_DELETE_WINDOW, ts);
+}
+
+void
+ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time ts)
+{
+ ecore_x_icccm_client_message_send(win, ECORE_X_ATOM_WM_TAKE_FOCUS, ts);
+}
+
+#if 0
+void
+ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time ts)
+{
+ ecore_x_icccm_client_message_send(win, ECORE_X_ATOM_WM_SAVE_YOURSELF, ts);
+}
+#endif
+
+void
+ecore_x_icccm_title_set(Ecore_X_Window win, const char *title)
+{
+ ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_NAME, title);
+}
+
+char *
+ecore_x_icccm_title_get(Ecore_X_Window win)
+{
+ return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_NAME);
+}
+
+void
+ecore_x_icccm_name_class_set(Ecore_X_Window win, const char *name,
+ const char *clss)
+{
+ XClassHint *xch;
+
+ xch = XAllocClassHint();
+ if (!xch)
+ return;
+ xch->res_name = (char *)name;
+ xch->res_class = (char *)clss;
+ XSetClassHint(_ecore_x_disp, win, xch);
+ XFree(xch);
+}
+
+void
+ecore_x_icccm_name_class_get(Ecore_X_Window win, char **name, char **clss)
+{
+ XClassHint xch;
+
+ *name = *clss = NULL;
+ xch.res_name = NULL;
+ xch.res_class = NULL;
+ if (XGetClassHint(_ecore_x_disp, win, &xch))
+ {
+ if (name && xch.res_name)
+ *name = strdup(xch.res_name);
+ if (clss && xch.res_class)
+ *clss = strdup(xch.res_class);
+ XFree(xch.res_name);
+ XFree(xch.res_class);
+ }
+}
+
+#endif /* USE_ECORE_X */
+
+#ifndef USE_ECORE_X
+/*
+ * _NET_WM hints (EWMH)
+ */
+
+static const char *const atoms_netwm_names[] = {
+/* *INDENT-OFF* */
+
+ /* Window manager info */
+ "_NET_SUPPORTED",
+ "_NET_SUPPORTING_WM_CHECK",
+
+ /* Desktop status/requests */
+ "_NET_NUMBER_OF_DESKTOPS",
+ "_NET_VIRTUAL_ROOTS",
+ "_NET_DESKTOP_GEOMETRY",
+ "_NET_DESKTOP_NAMES",
+ "_NET_DESKTOP_VIEWPORT",
+ "_NET_WORKAREA",
+ "_NET_CURRENT_DESKTOP",
+ "_NET_SHOWING_DESKTOP",
+
+ "_NET_ACTIVE_WINDOW",
+ "_NET_CLIENT_LIST",
+ "_NET_CLIENT_LIST_STACKING",
+
+ /* Client window props/client messages */
+ "_NET_WM_NAME",
+ "_NET_WM_VISIBLE_NAME",
+ "_NET_WM_ICON_NAME",
+ "_NET_WM_VISIBLE_ICON_NAME",
+
+ "_NET_WM_DESKTOP",
+
+ "_NET_WM_WINDOW_TYPE",
+ "_NET_WM_WINDOW_TYPE_DESKTOP",
+ "_NET_WM_WINDOW_TYPE_DOCK",
+ "_NET_WM_WINDOW_TYPE_TOOLBAR",
+ "_NET_WM_WINDOW_TYPE_MENU",
+ "_NET_WM_WINDOW_TYPE_UTILITY",
+ "_NET_WM_WINDOW_TYPE_SPLASH",
+ "_NET_WM_WINDOW_TYPE_DIALOG",
+ "_NET_WM_WINDOW_TYPE_NORMAL",
+
+ "_NET_WM_STATE",
+ "_NET_WM_STATE_MODAL",
+ "_NET_WM_STATE_STICKY",
+ "_NET_WM_STATE_MAXIMIZED_VERT",
+ "_NET_WM_STATE_MAXIMIZED_HORZ",
+ "_NET_WM_STATE_SHADED",
+ "_NET_WM_STATE_SKIP_TASKBAR",
+ "_NET_WM_STATE_SKIP_PAGER",
+ "_NET_WM_STATE_HIDDEN",
+ "_NET_WM_STATE_FULLSCREEN",
+ "_NET_WM_STATE_ABOVE",
+ "_NET_WM_STATE_BELOW",
+ "_NET_WM_STATE_DEMANDS_ATTENTION",
+
+ "_NET_WM_ALLOWED_ACTIONS",
+ "_NET_WM_ACTION_MOVE",
+ "_NET_WM_ACTION_RESIZE",
+ "_NET_WM_ACTION_MINIMIZE",
+ "_NET_WM_ACTION_SHADE",
+ "_NET_WM_ACTION_STICK",
+ "_NET_WM_ACTION_MAXIMIZE_HORZ",
+ "_NET_WM_ACTION_MAXIMIZE_VERT",
+ "_NET_WM_ACTION_FULLSCREEN",
+ "_NET_WM_ACTION_CHANGE_DESKTOP",
+ "_NET_WM_ACTION_CLOSE",
+ "_NET_WM_ACTION_ABOVE",
+ "_NET_WM_ACTION_BELOW",
+
+ "_NET_WM_STRUT",
+ "_NET_WM_STRUT_PARTIAL",
+
+ "_NET_FRAME_EXTENTS",
+
+ "_NET_WM_ICON",
+
+ "_NET_WM_USER_TIME",
+
+#if 0 /* Not used */
+ "_NET_WM_ICON_GEOMETRY",
+ "_NET_WM_PID",
+ "_NET_WM_HANDLED_ICONS",
+
+ "_NET_WM_PING",
+#endif
+ "_NET_WM_SYNC_REQUEST",
+ "_NET_WM_SYNC_REQUEST_COUNTER",
+
+ "_NET_WM_WINDOW_OPACITY",
+
+ /* Misc window ops */
+ "_NET_CLOSE_WINDOW",
+ "_NET_MOVERESIZE_WINDOW",
+ "_NET_WM_MOVERESIZE",
+ "_NET_RESTACK_WINDOW",
+
+#if 0 /* Not yet implemented */
+ "_NET_REQUEST_FRAME_EXTENTS",
+#endif
+
+ /* Startup notification */
+ "_NET_STARTUP_ID",
+ "_NET_STARTUP_INFO_BEGIN",
+ "_NET_STARTUP_INFO",
+
+/* *INDENT-ON* */
+};
+unsigned int atoms_netwm[CHECK_COUNT_NETWM];
+
+void
+ecore_x_netwm_init(void)
+{
+#if DEBUG_CHECK
+ assert(CHECK_COUNT_NETWM == N_ITEMS(atoms_netwm));
+#endif
+ AtomListIntern(atoms_netwm_names, N_ITEMS(atoms_netwm), atoms_netwm);
+}
+
+/*
+ * WM identification
+ */
+void
+ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check,
+ const char *wm_name)
+{
+ ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
+ &check, 1);
+ ecore_x_window_prop_window_set(check, ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
+ &check, 1);
+ _ecore_x_window_prop_string_utf8_set(check, ECORE_X_ATOM_NET_WM_NAME,
+ wm_name);
+ /* This one isn't mandatory */
+ _ecore_x_window_prop_string_utf8_set(root, ECORE_X_ATOM_NET_WM_NAME,
+ wm_name);
+}
+
+/*
+ * Desktop configuration and status
+ */
+
+void
+ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks)
+{
+ ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS,
+ &n_desks, 1);
+}
+
+void
+ecore_x_netwm_desk_roots_set(Ecore_X_Window root, Ecore_X_Window * vroots,
+ unsigned int n_desks)
+{
+ ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_VIRTUAL_ROOTS, vroots,
+ n_desks);
+}
+
+void
+ecore_x_netwm_desk_names_set(Ecore_X_Window root, const char **names,
+ unsigned int n_desks)
+{
+ char ss[32], *buf;
+ const char *s;
+ unsigned int i;
+ int l, len;
+
+ buf = NULL;
+ len = 0;
+
+ for (i = 0; i < n_desks; i++)
+ {
+ s = (names) ? names[i] : NULL;
+ if (!s)
+ {
+ /* Default to "Desk-<number>" */
+ sprintf(ss, "Desk-%d", i);
+ s = ss;
+ }
+
+ l = strlen(s) + 1;
+ buf = (char *)realloc(buf, len + l);
+ memcpy(buf + len, s, l);
+ len += l;
+ }
+
+ XChangeProperty(_ecore_x_disp, root, ECORE_X_ATOM_NET_DESKTOP_NAMES,
+ ECORE_X_ATOM_UTF8_STRING, 8, PropModeReplace,
+ (unsigned char *)buf, len);
+
+ free(buf);
+}
+
+void
+ecore_x_netwm_desk_size_set(Ecore_X_Window root, unsigned int width,
+ unsigned int height)
+{
+ unsigned int size[2];
+
+ size[0] = width;
+ size[1] = height;
+ ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_GEOMETRY, size,
+ 2);
+}
+
+void
+ecore_x_netwm_desk_workareas_set(Ecore_X_Window root, unsigned int *areas,
+ unsigned int n_desks)
+{
+ ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_WORKAREA, areas,
+ 4 * n_desks);
+}
+
+void
+ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk)
+{
+ ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk,
+ 1);
+}
+
+void
+ecore_x_netwm_desk_viewports_set(Ecore_X_Window root, unsigned int *origins,
+ unsigned int n_desks)
+{
+ ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_VIEWPORT,
+ origins, 2 * n_desks);
+}
+
+void
+ecore_x_netwm_showing_desktop_set(Ecore_X_Window root, int on)
+{
+ unsigned int val;
+
+ val = (on) ? 1 : 0;
+ ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_SHOWING_DESKTOP, &val,
+ 1);
+}
+
+/*
+ * Client status
+ */
+
+/* Mapping order */
+void
+ecore_x_netwm_client_list_set(Ecore_X_Window root, Ecore_X_Window * p_clients,
+ unsigned int n_clients)
+{
+ ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST, p_clients,
+ n_clients);
+}
+
+/* Stacking order */
+void
+ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
+ Ecore_X_Window * p_clients,
+ unsigned int n_clients)
+{
+ ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST_STACKING,
+ p_clients, n_clients);
+}
+
+void
+ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win)
+{
+ ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW, &win,
+ 1);
+}
+
+/*
+ * Client window properties
+ */
+
+void
+ecore_x_netwm_name_set(Ecore_X_Window win, const char *name)
+{
+ _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
+}
+
+int
+ecore_x_netwm_name_get(Ecore_X_Window win, char **name)
+{
+ char *s;
+
+ s = _ecore_x_window_prop_string_utf8_get(win, ECORE_X_ATOM_NET_WM_NAME);
+ *name = s;
+
+ return s != NULL;
+}
+
+void
+ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name)
+{
+ _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME,
+ name);
+}
+
+int
+ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name)
+{
+ char *s;
+
+ s = _ecore_x_window_prop_string_utf8_get(win,
+ ECORE_X_ATOM_NET_WM_VISIBLE_NAME);
+ *name = s;
+
+ return s != NULL;
+}
+
+void
+ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name)
+{
+ _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
+ name);
+}
+
+int
+ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name)
+{
+ char *s;
+
+ s = _ecore_x_window_prop_string_utf8_get(win, ECORE_X_ATOM_NET_WM_ICON_NAME);
+ *name = s;
+
+ return s != NULL;
+}
+
+void
+ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name)
+{
+ _ecore_x_window_prop_string_utf8_set(win,
+ ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME,
+ name);
+}
+
+int
+ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name)
+{
+ char *s;
+
+ s = _ecore_x_window_prop_string_utf8_get(win,
+ ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME);
+ *name = s;
+
+ return s != NULL;
+}
+
+void
+ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk)
+{
+ ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
+}
+
+int
+ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk)
+{
+ return ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_DESKTOP,
+ desk, 1);
+}
+
+int
+ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *ts)
+{
+ return ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_USER_TIME,
+ ts, 1);
+}
+
+void
+ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity)
+{
+ ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
+ &opacity, 1);
+}
+
+int
+ecore_x_netwm_opacity_get(Ecore_X_Window win, unsigned int *opacity)
+{
+ return ecore_x_window_prop_card32_get(win,
+ ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
+ opacity, 1);
+}
+
+#if 0 /* Not used */
+void
+ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id)
+{
+ _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id);
+}
+#endif
+
+int
+ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id)
+{
+ char *s;
+
+ s = _ecore_x_window_prop_string_utf8_get(win, ECORE_X_ATOM_NET_STARTUP_ID);
+ *id = s;
+
+ return s != NULL;
+}
+
+#endif /* USE_ECORE_X */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifdef USE_ECORE_X
+
+#include <Ecore_X.h>
+#include <Ecore_X_Atoms.h>
+
+#else
+
+#define Ecore_X_ID XID
+#define Ecore_X_Drawable Drawable
+#define Ecore_X_Window Window
+#define Ecore_X_Pixmap Pixmap
+#define Ecore_X_Atom Atom
+#define Ecore_X_Time Time
+#define Ecore_X_GC GC
+
+int ecore_x_client_message32_send(Ecore_X_Window win,
+ Ecore_X_Atom type,
+ long mask,
+ long d0, long d1, long d2,
+ long d3, long d4);
+
+void ecore_x_window_prop_card32_set(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ unsigned int *val,
+ unsigned int num);
+int ecore_x_window_prop_card32_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ unsigned int *val,
+ unsigned int len);
+int ecore_x_window_prop_card32_list_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ unsigned int **plst);
+
+void ecore_x_window_prop_xid_set(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom type,
+ Ecore_X_ID * lst,
+ unsigned int num);
+int ecore_x_window_prop_xid_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom type,
+ Ecore_X_ID * lst,
+ unsigned int len);
+int ecore_x_window_prop_xid_list_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom type,
+ Ecore_X_ID ** plst);
+void ecore_x_window_prop_xid_list_change(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom type,
+ Ecore_X_ID item,
+ int op);
+void ecore_x_window_prop_atom_set(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom * val,
+ unsigned int num);
+int ecore_x_window_prop_atom_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom * val,
+ unsigned int len);
+int ecore_x_window_prop_atom_list_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom ** plst);
+void ecore_x_window_prop_atom_list_change(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Atom item,
+ int op);
+void ecore_x_window_prop_window_set(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Window * val,
+ unsigned int num);
+int ecore_x_window_prop_window_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Window * val,
+ unsigned int len);
+int ecore_x_window_prop_window_list_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ Ecore_X_Window ** plst);
+
+void ecore_x_window_prop_string_set(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ const char *str);
+char *ecore_x_window_prop_string_get(Ecore_X_Window win,
+ Ecore_X_Atom atom);
+
+/* Misc. */
+#include "X11/Xatom.h"
+extern unsigned int atoms_icccm[];
+
+#define ECORE_X_ATOM_UTF8_STRING atoms_icccm[8]
+
+/* ICCCM */
+#define ECORE_X_ATOM_WM_STATE atoms_icccm[0]
+#define ECORE_X_ATOM_WM_WINDOW_ROLE atoms_icccm[1]
+#define ECORE_X_ATOM_WM_CLIENT_LEADER atoms_icccm[2]
+#define ECORE_X_ATOM_WM_COLORMAP_WINDOWS atoms_icccm[3]
+#define ECORE_X_ATOM_WM_CHANGE_STATE atoms_icccm[4]
+#define ECORE_X_ATOM_WM_PROTOCOLS atoms_icccm[5]
+#define ECORE_X_ATOM_WM_DELETE_WINDOW atoms_icccm[6]
+#define ECORE_X_ATOM_WM_TAKE_FOCUS atoms_icccm[7]
+
+#define CHECK_COUNT_ICCCM 9
+
+#define ECORE_X_ATOM_WM_CLASS XA_WM_CLASS
+#define ECORE_X_ATOM_WM_NAME XA_WM_NAME
+#define ECORE_X_ATOM_WM_COMMAND XA_WM_COMMAND
+#define ECORE_X_ATOM_WM_ICON_NAME XA_WM_ICON_NAME
+#define ECORE_X_ATOM_WM_CLIENT_MACHINE XA_WM_CLIENT_MACHINE
+#define ECORE_X_ATOM_WM_HINTS XA_WM_HINTS
+#define ECORE_X_ATOM_WM_NORMAL_HINTS XA_WM_NORMAL_HINTS
+#define ECORE_X_ATOM_WM_TRANSIENT_FOR XA_WM_TRANSIENT_FOR
+
+void ecore_x_icccm_init(void);
+
+void ecore_x_icccm_delete_window_send(Ecore_X_Window win,
+ Ecore_X_Time ts);
+void ecore_x_icccm_take_focus_send(Ecore_X_Window win,
+ Ecore_X_Time ts);
+
+void ecore_x_icccm_title_set(Ecore_X_Window win,
+ const char *title);
+char *ecore_x_icccm_title_get(Ecore_X_Window win);
+void ecore_x_icccm_name_class_set(Ecore_X_Window win,
+ const char *name,
+ const char *clss);
+void ecore_x_icccm_name_class_get(Ecore_X_Window win,
+ char **name, char **clss);
+
+/* NETWM (EWMH) */
+extern unsigned int atoms_netwm[];
+
+/* Window manager info */
+#define ECORE_X_ATOM_NET_SUPPORTED atoms_netwm[0]
+#define ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK atoms_netwm[1]
+
+/* Desktop status/requests */
+#define ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS atoms_netwm[2]
+#define ECORE_X_ATOM_NET_VIRTUAL_ROOTS atoms_netwm[3]
+#define ECORE_X_ATOM_NET_DESKTOP_GEOMETRY atoms_netwm[4]
+#define ECORE_X_ATOM_NET_DESKTOP_NAMES atoms_netwm[5]
+#define ECORE_X_ATOM_NET_DESKTOP_VIEWPORT atoms_netwm[6]
+#define ECORE_X_ATOM_NET_WORKAREA atoms_netwm[7]
+#define ECORE_X_ATOM_NET_CURRENT_DESKTOP atoms_netwm[8]
+#define ECORE_X_ATOM_NET_SHOWING_DESKTOP atoms_netwm[9]
+
+#define ECORE_X_ATOM_NET_ACTIVE_WINDOW atoms_netwm[10]
+#define ECORE_X_ATOM_NET_CLIENT_LIST atoms_netwm[11]
+#define ECORE_X_ATOM_NET_CLIENT_LIST_STACKING atoms_netwm[12]
+
+/* Client window props/client messages */
+#define ECORE_X_ATOM_NET_WM_NAME atoms_netwm[13]
+#define ECORE_X_ATOM_NET_WM_VISIBLE_NAME atoms_netwm[14]
+#define ECORE_X_ATOM_NET_WM_ICON_NAME atoms_netwm[15]
+#define ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME atoms_netwm[16]
+
+#define ECORE_X_ATOM_NET_WM_DESKTOP atoms_netwm[17]
+
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE atoms_netwm[18]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DESKTOP atoms_netwm[19]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DOCK atoms_netwm[20]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_TOOLBAR atoms_netwm[21]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_MENU atoms_netwm[22]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_UTILITY atoms_netwm[23]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_SPLASH atoms_netwm[24]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DIALOG atoms_netwm[25]
+#define ECORE_X_ATOM_NET_WM_WINDOW_TYPE_NORMAL atoms_netwm[26]
+
+#define ECORE_X_ATOM_NET_WM_STATE atoms_netwm[27]
+#define ECORE_X_ATOM_NET_WM_STATE_MODAL atoms_netwm[28]
+#define ECORE_X_ATOM_NET_WM_STATE_STICKY atoms_netwm[29]
+#define ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT atoms_netwm[30]
+#define ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ atoms_netwm[31]
+#define ECORE_X_ATOM_NET_WM_STATE_SHADED atoms_netwm[32]
+#define ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR atoms_netwm[33]
+#define ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER atoms_netwm[34]
+#define ECORE_X_ATOM_NET_WM_STATE_HIDDEN atoms_netwm[35]
+#define ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN atoms_netwm[36]
+#define ECORE_X_ATOM_NET_WM_STATE_ABOVE atoms_netwm[37]
+#define ECORE_X_ATOM_NET_WM_STATE_BELOW atoms_netwm[38]
+#define ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION atoms_netwm[39]
+
+#define ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS atoms_netwm[40]
+#define ECORE_X_ATOM_NET_WM_ACTION_MOVE atoms_netwm[41]
+#define ECORE_X_ATOM_NET_WM_ACTION_RESIZE atoms_netwm[42]
+#define ECORE_X_ATOM_NET_WM_ACTION_MINIMIZE atoms_netwm[43]
+#define ECORE_X_ATOM_NET_WM_ACTION_SHADE atoms_netwm[44]
+#define ECORE_X_ATOM_NET_WM_ACTION_STICK atoms_netwm[45]
+#define ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_HORZ atoms_netwm[46]
+#define ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_VERT atoms_netwm[47]
+#define ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN atoms_netwm[48]
+#define ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP atoms_netwm[49]
+#define ECORE_X_ATOM_NET_WM_ACTION_CLOSE atoms_netwm[50]
+#define ECORE_X_ATOM_NET_WM_ACTION_ABOVE atoms_netwm[51]
+#define ECORE_X_ATOM_NET_WM_ACTION_BELOW atoms_netwm[52]
+
+#define ECORE_X_ATOM_NET_WM_STRUT atoms_netwm[53]
+#define ECORE_X_ATOM_NET_WM_STRUT_PARTIAL atoms_netwm[54]
+
+#define ECORE_X_ATOM_NET_FRAME_EXTENTS atoms_netwm[55]
+
+#define ECORE_X_ATOM_NET_WM_ICON atoms_netwm[56]
+
+#define ECORE_X_ATOM_NET_WM_USER_TIME atoms_netwm[57]
+
+#if 0 /* Not used */
+#define ECORE_X_ATOM_NET_WM_ICON_GEOMETRY atoms_netwm[0]
+#define ECORE_X_ATOM_NET_WM_PID atoms_netwm[0]
+#define ECORE_X_ATOM_NET_WM_HANDLED_ICONS atoms_netwm[0]
+
+#define ECORE_X_ATOM_NET_WM_PING atoms_netwm[0]
+#endif
+#define ECORE_X_ATOM_NET_WM_SYNC_REQUEST atoms_netwm[58]
+#define ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER atoms_netwm[59]
+
+#define ECORE_X_ATOM_NET_WM_WINDOW_OPACITY atoms_netwm[60]
+
+/* Misc window ops */
+#define ECORE_X_ATOM_NET_CLOSE_WINDOW atoms_netwm[61]
+#define ECORE_X_ATOM_NET_MOVERESIZE_WINDOW atoms_netwm[62]
+#define ECORE_X_ATOM_NET_WM_MOVERESIZE atoms_netwm[63]
+#define ECORE_X_ATOM_NET_RESTACK_WINDOW atoms_netwm[64]
+
+#if 0 /* Not yet implemented */
+#define ECORE_X_ATOM_NET_REQUEST_FRAME_EXTENTS atoms_netwm[0]
+#endif
+
+/* Startup notification */
+#define ECORE_X_ATOM_NET_STARTUP_ID atoms_netwm[65]
+#define ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN atoms_netwm[66]
+#define ECORE_X_ATOM_NET_STARTUP_INFO atoms_netwm[67]
+
+#define CHECK_COUNT_NETWM 68
+
+void ecore_x_netwm_init(void);
+
+void ecore_x_netwm_wm_identify(Ecore_X_Window root,
+ Ecore_X_Window check,
+ const char *wm_name);
+
+void ecore_x_netwm_desk_count_set(Ecore_X_Window root,
+ unsigned int n_desks);
+void ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
+ Ecore_X_Window * vroots,
+ unsigned int n_desks);
+void ecore_x_netwm_desk_names_set(Ecore_X_Window root,
+ const char **names,
+ unsigned int n_desks);
+void ecore_x_netwm_desk_size_set(Ecore_X_Window root,
+ unsigned int width,
+ unsigned int height);
+void ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
+ unsigned int *areas,
+ unsigned int n_desks);
+void ecore_x_netwm_desk_current_set(Ecore_X_Window root,
+ unsigned int desk);
+void ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
+ unsigned int *origins,
+ unsigned int n_desks);
+void ecore_x_netwm_showing_desktop_set(Ecore_X_Window root,
+ int on);
+
+void ecore_x_netwm_client_list_set(Ecore_X_Window root,
+ Ecore_X_Window * p_clients,
+ unsigned int n_clients);
+void ecore_x_netwm_client_list_stacking_set(Ecore_X_Window root,
+ Ecore_X_Window *
+ p_clients,
+ unsigned int
+ n_clients);
+void ecore_x_netwm_client_active_set(Ecore_X_Window root,
+ Ecore_X_Window win);
+void ecore_x_netwm_name_set(Ecore_X_Window win,
+ const char *name);
+int ecore_x_netwm_name_get(Ecore_X_Window win, char **name);
+void ecore_x_netwm_icon_name_set(Ecore_X_Window win,
+ const char *name);
+int ecore_x_netwm_icon_name_get(Ecore_X_Window win,
+ char **name);
+void ecore_x_netwm_visible_name_set(Ecore_X_Window win,
+ const char *name);
+int ecore_x_netwm_visible_name_get(Ecore_X_Window win,
+ char **name);
+void ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win,
+ const char *name);
+int ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win,
+ char **name);
+
+void ecore_x_netwm_desktop_set(Ecore_X_Window win,
+ unsigned int desk);
+int ecore_x_netwm_desktop_get(Ecore_X_Window win,
+ unsigned int *desk);
+
+int ecore_x_netwm_user_time_get(Ecore_X_Window win,
+ unsigned int *ts);
+
+void ecore_x_netwm_opacity_set(Ecore_X_Window win,
+ unsigned int opacity);
+int ecore_x_netwm_opacity_get(Ecore_X_Window win,
+ unsigned int *opacity);
+
+void ecore_x_netwm_startup_id_set(Ecore_X_Window win,
+ const char *id);
+int ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id);
+
+#endif
+
+void ecore_x_icccm_state_set_iconic(Ecore_X_Window win);
+void ecore_x_icccm_state_set_normal(Ecore_X_Window win);
+void ecore_x_icccm_state_set_withdrawn(Ecore_X_Window win);
+
+void ecore_x_window_prop_string_list_set(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ char **lst, int num);
+int ecore_x_window_prop_string_list_get(Ecore_X_Window win,
+ Ecore_X_Atom atom,
+ char ***plst);
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler and various contributors (see AUTHORS)
+ *
+ * Copyright (C) Nathan Ingersoll (author)
+ * Copyright (C) Ibukun Olumuyiwa (ewd -> ecore)
+ * Copyright (C) Dan Sinclair (various cleanups)
+ * Copyright (C) Kim Woelders (e16 port/additions)
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Most of this was snatched from e17/libs/ecore/src/lib/ecore/ecore_list.c
+ * revision 1.21, and associated header files.
+ * The pertinent AUTHORS list is e17/libs/ecore/AUTHORS.
+ */
+#include <stdlib.h>
+#include <string.h>
+#include "e16-ecore_list.h"
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#if !USE_ECORE
+
+struct _ecore_list_node {
+ void *data;
+ struct _ecore_list_node *next;
+};
+
+struct _ecore_list {
+ Ecore_List_Node *first; /* The first node in the list */
+ Ecore_List_Node *last; /* The last node in the list */
+ Ecore_List_Node *current; /* The current node in the list */
+
+ Ecore_Free_Cb free_func; /* The callback to free data in nodes */
+
+ int nodes; /* The number of nodes in the list */
+ int index; /* The position from the front of the
+ * list of current node */
+};
+
+/* convenience macros for checking pointer parameters for non-NULL */
+#define ecore_print_warning(txt, s)
+
+#undef CHECK_PARAM_POINTER
+#define CHECK_PARAM_POINTER(sparam, param) \
+ if (!(param)) { \
+ ecore_print_warning(__FUNCTION__, sparam); \
+ return; \
+ }
+
+#define CHECK_PARAM_POINTER_RETURN(sparam, param, ret) \
+ if (!(param)) { \
+ ecore_print_warning(__FUNCTION__, sparam); \
+ return ret; \
+ }
+
+/* Return information about the list */
+static void *_ecore_list_current(Ecore_List * list);
+
+/* Adding functions */
+static int _ecore_list_insert(Ecore_List * list,
+ Ecore_List_Node * node);
+static int _ecore_list_append_0(Ecore_List * list,
+ Ecore_List_Node * node);
+static int _ecore_list_prepend_0(Ecore_List * list,
+ Ecore_List_Node * node);
+
+/* Remove functions */
+static void *_ecore_list_remove_0(Ecore_List * list);
+static void *_ecore_list_first_remove(Ecore_List * list);
+static void *_ecore_list_last_remove(Ecore_List * list);
+
+/* Basic traversal functions */
+static void *_ecore_list_next(Ecore_List * list);
+static void *_ecore_list_last_goto(Ecore_List * list);
+static void *_ecore_list_first_goto(Ecore_List * list);
+static void *_ecore_list_goto(Ecore_List * list, const void *data);
+static void *_ecore_list_index_goto(Ecore_List * list, int indx);
+
+/* Iterative function */
+static int _ecore_list_for_each(Ecore_List * list,
+ Ecore_For_Each function,
+ void *user_data);
+static void *_ecore_list_find(Ecore_List * list,
+ Ecore_Compare_Cb function,
+ const void *user_data);
+
+/**
+ * @defgroup Ecore_Data_List_Creation_Group List Creation/Destruction Functions
+ *
+ * Functions that create, initialize and destroy Ecore_Lists.
+ */
+
+/**
+ * Create and initialize a new list.
+ * @return A new initialized list on success, @c NULL on failure.
+ * @ingroup Ecore_Data_List_Creation_Group
+ */
+EAPI Ecore_List *
+ecore_list_new(void)
+{
+ Ecore_List *list;
+
+ list = (Ecore_List *) malloc(sizeof(Ecore_List));
+ if (!list)
+ return NULL;
+
+ if (!ecore_list_init(list))
+ {
+ free(list);
+ return NULL;
+ }
+
+ return list;
+}
+
+/**
+ * Initialize a list to some sane starting values.
+ * @param list The list to initialize.
+ * @return @c TRUE if successful, @c FALSE if an error occurs.
+ * @ingroup Ecore_Data_List_Creation_Group
+ */
+EAPI int
+ecore_list_init(Ecore_List * list)
+{
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ memset(list, 0, sizeof(Ecore_List));
+
+ return TRUE;
+}
+
+/**
+ * Free a list and all of it's nodes.
+ * @param list The list to be freed.
+ * @ingroup Ecore_Data_List_Creation_Group
+ */
+EAPI void
+ecore_list_destroy(Ecore_List * list)
+{
+ void *data;
+
+ CHECK_PARAM_POINTER("list", list);
+
+ while (list->first)
+ {
+ data = _ecore_list_first_remove(list);
+ if (list->free_func)
+ list->free_func(data);
+ }
+
+ free(list);
+}
+
+/**
+ * Set the function for freeing data.
+ * @param list The list that will use this function when nodes are
+ * destroyed.
+ * @param free_func The function that will free the key data.
+ * @return @c TRUE on successful set, @c FALSE otherwise.
+ */
+EAPI int
+ecore_list_free_cb_set(Ecore_List * list, Ecore_Free_Cb free_func)
+{
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ list->free_func = free_func;
+
+ return TRUE;
+}
+
+/**
+ * Checks the list for any nodes.
+ * @param list The list to check for nodes
+ * @return @c TRUE if no nodes in list, @c FALSE if the list contains nodes
+ */
+EAPI int
+ecore_list_empty_is(Ecore_List * list)
+{
+ int ret = TRUE;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ if (list->nodes)
+ ret = FALSE;
+
+ return ret;
+}
+
+/**
+ * Returns the number of the current node.
+ * @param list The list to return the number of the current node.
+ * @return The number of the current node in the list.
+ */
+EAPI int
+ecore_list_index(Ecore_List * list)
+{
+ int ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ ret = list->index;
+
+ return ret;
+}
+
+/**
+ * Find the number of nodes in the list.
+ * @param list The list to find the number of nodes
+ * @return The number of nodes in the list.
+ */
+EAPI int
+ecore_list_count(Ecore_List * list)
+{
+ int ret = 0;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ ret = list->nodes;
+
+ return ret;
+}
+
+/**
+@defgroup Ecore_Data_List_Add_Item_Group List Item Adding Functions
+
+Functions that are used to add nodes to an Ecore_List.
+*/
+
+/**
+ * Append data to the list.
+ * @param list The list.
+ * @param data The data to append.
+ * @return @c FALSE if an error occurs, @c TRUE if appended successfully
+ * @ingroup Ecore_Data_List_Add_Item_Group
+ */
+EAPI int
+ecore_list_append(Ecore_List * list, void *data)
+{
+ int ret;
+ Ecore_List_Node *node;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ node = ecore_list_node_new();
+ node->data = data;
+
+ ret = _ecore_list_append_0(list, node);
+
+ return ret;
+}
+
+/* For adding items to the end of the list */
+static int
+_ecore_list_append_0(Ecore_List * list, Ecore_List_Node * end)
+{
+ if (list->last)
+ list->last->next = end;
+
+ list->last = end;
+
+ if (list->first == NULL)
+ {
+ list->first = end;
+ list->index = 0;
+ list->current = NULL;
+ }
+
+ if (list->index >= list->nodes)
+ list->index++;
+
+ list->nodes++;
+
+ return TRUE;
+}
+
+/**
+ * Prepend data to the beginning of the list.
+ * @param list The list.
+ * @param data The data to prepend.
+ * @return @c FALSE if an error occurs, @c TRUE if prepended successfully.
+ * @ingroup Ecore_Data_List_Add_Item_Group
+ */
+EAPI int
+ecore_list_prepend(Ecore_List * list, void *data)
+{
+ int ret;
+ Ecore_List_Node *node;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ node = ecore_list_node_new();
+ node->data = data;
+
+ ret = _ecore_list_prepend_0(list, node);
+
+ return ret;
+}
+
+/* For adding items to the beginning of the list */
+static int
+_ecore_list_prepend_0(Ecore_List * list, Ecore_List_Node * start)
+{
+ /* Put it at the beginning of the list */
+ start->next = list->first;
+
+ list->first = start;
+
+ /* If no last node, then the first node is the last node */
+ if (list->last == NULL)
+ list->last = list->first;
+
+ list->nodes++;
+ list->index++;
+
+ return TRUE;
+}
+
+/**
+ * Insert data in front of the current point in the list.
+ * @param list The list to hold the inserted @p data.
+ * @param data The data to insert into @p list.
+ * @return @c FALSE if there is an error, @c TRUE on success
+ * @ingroup Ecore_Data_List_Add_Item_Group
+ */
+EAPI int
+ecore_list_insert(Ecore_List * list, void *data)
+{
+ int ret;
+ Ecore_List_Node *node;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ node = ecore_list_node_new();
+ node->data = data;
+
+ ret = _ecore_list_insert(list, node);
+
+ return ret;
+}
+
+/* For adding items in front of the current position in the list */
+static int
+_ecore_list_insert(Ecore_List * list, Ecore_List_Node * new_node)
+{
+ /*
+ * If the current point is at the beginning of the list, then it's the
+ * same as prepending it to the list.
+ */
+ if (list->current == list->first)
+ return _ecore_list_prepend_0(list, new_node);
+
+ if (list->current == NULL)
+ {
+ int ret_value;
+
+ ret_value = _ecore_list_append_0(list, new_node);
+ list->current = list->last;
+
+ return ret_value;
+ }
+
+ /* Setup the fields of the new node */
+ new_node->next = list->current;
+
+ /* And hook the node into the list */
+ _ecore_list_index_goto(list, ecore_list_index(list) - 1);
+
+ list->current->next = new_node;
+
+ /* Now move the current item to the inserted item */
+ list->current = new_node;
+ list->index++;
+ list->nodes++;
+
+ return TRUE;
+}
+
+/**
+@defgroup Ecore_Data_List_Remove_Item_Group List Item Removing Functions
+
+Functions that remove nodes from an Ecore_List.
+*/
+
+/**
+ * Remove the current item from the list.
+ * @param list The list to remove the current item
+ * @return A pointer to the removed data on success, @c NULL on failure.
+ * @ingroup Ecore_Data_List_Remove_Item_Group
+ */
+EAPI void *
+ecore_list_remove(Ecore_List * list)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_remove_0(list);
+
+ return ret;
+}
+
+/* Remove the current item from the list */
+static void *
+_ecore_list_remove_0(Ecore_List * list)
+{
+ void *ret = NULL;
+ Ecore_List_Node *old;
+
+ if (!list)
+ return NULL;
+
+ if (ecore_list_empty_is(list))
+ return NULL;
+
+ if (!list->current)
+ return NULL;
+
+ if (list->current == list->first)
+ return _ecore_list_first_remove(list);
+
+ if (list->current == list->last)
+ return _ecore_list_last_remove(list);
+
+ old = list->current;
+
+ _ecore_list_index_goto(list, list->index - 1);
+
+ list->current->next = old->next;
+ old->next = NULL;
+ ret = old->data;
+ old->data = NULL;
+
+ _ecore_list_next(list);
+
+ ecore_list_node_destroy(old, NULL);
+ list->nodes--;
+
+ return ret;
+}
+
+/**
+ * Remove and free the data in lists current position.
+ * @param list The list to remove and free the current item.
+ * @return @c TRUE on success, @c FALSE on error
+ * @ingroup Ecore_Data_List_Remove_Item_Group
+ */
+EAPI int
+ecore_list_remove_destroy(Ecore_List * list)
+{
+ void *data;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ data = _ecore_list_remove_0(list);
+ if (list->free_func)
+ list->free_func(data);
+
+ return TRUE;
+}
+
+/**
+ * Remove the first item from the list.
+ * @param list The list to remove the current item
+ * @return Returns a pointer to the removed data on success, @c NULL on
+ * failure.
+ * @ingroup Ecore_Data_List_Remove_Item_Group
+ */
+EAPI void *
+ecore_list_first_remove(Ecore_List * list)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_first_remove(list);
+
+ return ret;
+}
+
+/* Remove the first item from the list */
+static void *
+_ecore_list_first_remove(Ecore_List * list)
+{
+ void *ret = NULL;
+ Ecore_List_Node *old;
+
+ if (!list)
+ return NULL;
+
+ if (ecore_list_empty_is(list))
+ return NULL;
+
+ old = list->first;
+
+ list->first = list->first->next;
+
+ if (list->current == old)
+ list->current = list->first;
+ else
+ (list->index ? list->index-- : 0);
+
+ if (list->last == old)
+ list->last = list->first;
+
+ ret = old->data;
+ old->data = NULL;
+
+ ecore_list_node_destroy(old, NULL);
+ list->nodes--;
+
+ return ret;
+}
+
+/**
+ * Remove the last item from the list.
+ * @param list The list to remove the last node from
+ * @return A pointer to the removed data on success, @c NULL on failure.
+ * @ingroup Ecore_Data_List_Remove_Item_Group
+ */
+EAPI void *
+ecore_list_last_remove(Ecore_List * list)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_last_remove(list);
+
+ return ret;
+}
+
+/* Remove the last item from the list */
+static void *
+_ecore_list_last_remove(Ecore_List * list)
+{
+ void *ret = NULL;
+ Ecore_List_Node *old, *prev;
+
+ if (!list)
+ return NULL;
+
+ if (ecore_list_empty_is(list))
+ return NULL;
+
+ old = list->last;
+ if (list->current == old)
+ list->current = NULL;
+
+ if (list->first == old)
+ list->first = NULL;
+ for (prev = list->first; prev && prev->next != old; prev = prev->next)
+ ;
+ list->last = prev;
+ if (prev)
+ prev->next = NULL;
+
+ old->next = NULL;
+ ret = old->data;
+ old->data = NULL;
+
+ ecore_list_node_destroy(old, NULL);
+ list->nodes--;
+
+ return ret;
+}
+
+/**
+@defgroup Ecore_Data_List_Traverse_Group List Traversal Functions
+
+Functions that can be used to traverse an Ecore_List.
+*/
+
+/**
+ * Make the current item the item with the given index number.
+ * @param list The list.
+ * @param indx The position to move the current item.
+ * @return A pointer to new current item on success, @c NULL on failure.
+ * @ingroup Ecore_Data_List_Traverse_Group
+ */
+EAPI void *
+ecore_list_index_goto(Ecore_List * list, int indx)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_index_goto(list, indx);
+
+ return ret;
+}
+
+/* This is the non-threadsafe version, use this inside internal functions that
+ * already lock the list */
+static void *
+_ecore_list_index_goto(Ecore_List * list, int indx)
+{
+ int i;
+
+ if (!list)
+ return NULL;
+
+ if (ecore_list_empty_is(list))
+ return NULL;
+
+ if (indx > ecore_list_count(list) || indx < 0)
+ return NULL;
+
+ _ecore_list_first_goto(list);
+
+ for (i = 0; i < indx && _ecore_list_next(list); i++)
+ ;
+
+ if (i >= list->nodes)
+ return NULL;
+
+ list->index = i;
+
+ return list->current->data;
+}
+
+/**
+ * Make the current item the node that contains @p data.
+ * @param list The list.
+ * @param data The data to find.
+ * @return A pointer to @p data on success, @c NULL on failure.
+ * @ingroup Ecore_Data_List_Traverse_Group
+ */
+EAPI void *
+ecore_list_goto(Ecore_List * list, const void *data)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_goto(list, data);
+
+ return ret;
+}
+
+/* Set the current position to the node containing data */
+static void *
+_ecore_list_goto(Ecore_List * list, const void *data)
+{
+ int indx;
+ Ecore_List_Node *node;
+
+ if (!list)
+ return NULL;
+
+ indx = 0;
+
+ node = list->first;
+ while (node && node->data)
+ {
+ Ecore_List_Node *next;
+
+ if (node->data == data)
+ break;
+
+ next = node->next;
+
+ node = next;
+
+ indx++;
+ }
+
+ if (!node)
+ return NULL;
+
+ list->current = node;
+ list->index = indx;
+
+ return list->current->data;
+}
+
+/**
+ * Make the current item the first item in the list
+ * @param list The list.
+ * @return A pointer to the first item on success, @c NULL on failure
+ * @ingroup Ecore_Data_List_Traverse_Group
+ */
+EAPI void *
+ecore_list_first_goto(Ecore_List * list)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_first_goto(list);
+
+ return ret;
+}
+
+/* Set the current position to the start of the list */
+static void *
+_ecore_list_first_goto(Ecore_List * list)
+{
+ if (!list->first)
+ return NULL;
+
+ list->current = list->first;
+ list->index = 0;
+
+ return list->current->data;
+}
+
+/**
+ * Make the current item the last item in the list.
+ * @param list The list.
+ * @return A pointer to the last item on success, @c NULL on failure.
+ * @ingroup Ecore_Data_List_Traverse_Group
+ */
+EAPI void *
+ecore_list_last_goto(Ecore_List * list)
+{
+ void *ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ ret = _ecore_list_last_goto(list);
+
+ return ret;
+}
+
+/* Set the current position to the end of the list */
+static void *
+_ecore_list_last_goto(Ecore_List * list)
+{
+ if (!list || !list->last)
+ return NULL;
+
+ list->current = list->last;
+ list->index = (list->nodes - 1);
+
+ return list->current->data;
+}
+
+/**
+ * Retrieve the data pointed to by the current item in @p list.
+ * @param list The list.
+ * @return Returns the data at current position, can be @c NULL.
+ */
+EAPI void *
+ecore_list_current(Ecore_List * list)
+{
+ void *ret;
+
+ ret = _ecore_list_current(list);
+
+ return ret;
+}
+
+/* Return the data of the current node without incrementing */
+static void *
+_ecore_list_current(Ecore_List * list)
+{
+ void *ret;
+
+ if (!list || !list->current)
+ return NULL;
+
+ ret = list->current->data;
+
+ return ret;
+}
+
+/**
+ * Retrieve the data pointed to by the current item, and make the next item
+ * the current item.
+ * @param list The list to retrieve data from.
+ * @return The current item in the list on success, @c NULL on failure.
+ */
+EAPI void *
+ecore_list_next(Ecore_List * list)
+{
+ void *data;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ data = _ecore_list_next(list);
+
+ return data;
+}
+
+/* Return the data contained in the current node and go to the next node */
+static void *
+_ecore_list_next(Ecore_List * list)
+{
+ void *data;
+ Ecore_List_Node *ret;
+ Ecore_List_Node *next;
+
+ if (!list->current)
+ return NULL;
+
+ ret = list->current;
+ next = list->current->next;
+
+ list->current = next;
+ list->index++;
+
+ data = ret->data;
+
+ return data;
+}
+
+/**
+ * Remove all nodes from @p list.
+ * @param list The list.
+ * @return Returns @c TRUE on success, @c FALSE on error.
+ * @note The data for each item on the list is not freed by
+ * @c ecore_list_clear().
+ */
+EAPI int
+ecore_list_clear(Ecore_List * list)
+{
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ while (!ecore_list_empty_is(list))
+ _ecore_list_first_remove(list);
+
+ return TRUE;
+}
+
+/**
+ * Execute function for each node in @p list.
+ * @param list The list.
+ * @param function The function to pass each node from @p list to.
+ * @return Returns @c TRUE on success, @c FALSE on failure.
+ * @ingroup Ecore_Data_List_Traverse_Group
+ */
+EAPI int
+ecore_list_for_each(Ecore_List * list, Ecore_For_Each function, void *user_data)
+{
+ int ret;
+
+ CHECK_PARAM_POINTER_RETURN("list", list, FALSE);
+
+ ret = _ecore_list_for_each(list, function, user_data);
+
+ return ret;
+}
+
+/* The real meat of executing the function for each data node */
+static int
+_ecore_list_for_each(Ecore_List * list, Ecore_For_Each function,
+ void *user_data)
+{
+ Ecore_List_Node *node, *next;
+
+ if (!function)
+ return FALSE;
+
+ for (node = list->first; node; node = next)
+ {
+ next = node->next;
+ function(node->data, user_data);
+ }
+
+ return TRUE;
+}
+
+/**
+ * Find data in @p list using the compare function @p func
+ * @param list The list.
+ * @param function The function to test each node of @p list with
+ * @param user_data Data to match against (used by @p function)
+ * @return the first matching data node, or NULL if none match
+ */
+EAPI void *
+ecore_list_find(Ecore_List * list, Ecore_Compare_Cb function,
+ const void *user_data)
+{
+ CHECK_PARAM_POINTER_RETURN("list", list, NULL);
+
+ return _ecore_list_find(list, function, user_data);
+}
+
+/* The real meat of finding a node via a compare cb */
+static void *
+_ecore_list_find(Ecore_List * list, Ecore_Compare_Cb function,
+ const void *user_data)
+{
+ Ecore_List_Node *node, *next;
+
+ if (!function)
+ return NULL;
+
+ for (node = list->first; node; node = next)
+ {
+ next = node->next;
+ if (!function(node->data, user_data))
+ return node->data;
+ }
+
+ return NULL;
+}
+
+/* Initialize a node to starting values */
+EAPI int
+ecore_list_node_init(Ecore_List_Node * node)
+{
+ CHECK_PARAM_POINTER_RETURN("node", node, FALSE);
+
+ node->next = NULL;
+ node->data = NULL;
+
+ return TRUE;
+}
+
+/**
+@defgroup Ecore_Data_List_Node_Group List Node Functions
+
+Functions that are used in the creation, maintenance and destruction of
+Ecore_List nodes.
+*/
+
+/**
+ * Allocates and initializes a new list node.
+ * @return A new Ecore_List_Node on success, @c NULL otherwise.
+ * @ingroup Ecore_Data_List_Node_Group
+ */
+EAPI Ecore_List_Node *
+ecore_list_node_new(void)
+{
+ Ecore_List_Node *new_node;
+
+ new_node = (Ecore_List_Node *) malloc(sizeof(Ecore_List_Node));
+
+ if (!ecore_list_node_init(new_node))
+ {
+ free(new_node);
+ return NULL;
+ }
+
+ return new_node;
+}
+
+/**
+ * Calls the function to free the data and the node.
+ * @param node Node to destroy.
+ * @param free_func Function to call if @p node points to data to free.
+ * @return @c TRUE.
+ * @ingroup Ecore_Data_List_Node_Group
+ */
+EAPI int
+ecore_list_node_destroy(Ecore_List_Node * node, Ecore_Free_Cb free_func)
+{
+ CHECK_PARAM_POINTER_RETURN("node", node, FALSE);
+
+ if (free_func && node->data)
+ free_func(node->data);
+
+ free(node);
+
+ return TRUE;
+}
+
+#endif /* !USE_ECORE */
+
+/*
+ * E16 additions
+ */
+
+EAPI void *
+ecore_list_node_remove(Ecore_List * list, void *_data)
+{
+ void *data;
+
+ data = ecore_list_goto(list, _data);
+ if (data)
+ ecore_list_remove(list);
+
+ return data;
+}
+
+EAPI void **
+ecore_list_items_get(Ecore_List * list, int *pnum)
+{
+ void **lst, *b;
+ int i, num;
+
+ *pnum = 0;
+ num = ecore_list_count(list);
+ if (num <= 0)
+ return NULL;
+
+ lst = (void **)malloc(num * sizeof(void *));
+ if (!lst)
+ return NULL;
+
+ for (i = 0, ecore_list_first_goto(list);
+ (b = ecore_list_next(list)) != NULL;)
+ lst[i++] = b;
+
+ *pnum = num;
+ return lst;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler and various contributors (see AUTHORS)
+ *
+ * Copyright (C) Nathan Ingersoll (author)
+ * Copyright (C) Ibukun Olumuyiwa (ewd -> ecore)
+ * Copyright (C) Dan Sinclair (various cleanups)
+ * Copyright (C) Kim Woelders (e16 port/additions)
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Most of this was snatched from e17/libs/ecore/src/lib/ecore/ecore_list.c
+ * revision 1.21, and associated header files.
+ * The pertinent AUTHORS list is e17/libs/ecore/AUTHORS.
+ */
+#ifndef _E16_ECORE_LIST_H_
+#define _E16_ECORE_LIST_H_
+
+#if USE_ECORE
+
+#include <Ecore_Data.h>
+
+#else
+
+#undef EAPI
+#define EAPI
+
+typedef struct _ecore_list Ecore_List;
+typedef struct _ecore_list_node Ecore_List_Node;
+
+typedef int (*Ecore_Compare_Cb) (const void *data, const void *match);
+typedef void (*Ecore_For_Each) (void *value, void *user_data);
+typedef void (*Ecore_Free_Cb) (void *data);
+
+/* Creating and initializing new list structures */
+EAPI Ecore_List *ecore_list_new(void);
+EAPI int ecore_list_init(Ecore_List * list);
+
+/* Adding items to the list */
+EAPI int ecore_list_append(Ecore_List * list, void *_data);
+EAPI int ecore_list_prepend(Ecore_List * list, void *_data);
+EAPI int ecore_list_insert(Ecore_List * list, void *_data);
+
+/* Removing items from the list */
+EAPI int ecore_list_remove_destroy(Ecore_List * list);
+EAPI void *ecore_list_remove(Ecore_List * list);
+EAPI void *ecore_list_first_remove(Ecore_List * list);
+EAPI void *ecore_list_last_remove(Ecore_List * list);
+
+/* Retrieve the current position in the list */
+EAPI void *ecore_list_current(Ecore_List * list);
+EAPI int ecore_list_index(Ecore_List * list);
+EAPI int ecore_list_count(Ecore_List * list);
+
+/* Traversing the list */
+EAPI int ecore_list_for_each(Ecore_List * list,
+ Ecore_For_Each function,
+ void *user_data);
+EAPI void *ecore_list_first_goto(Ecore_List * list);
+EAPI void *ecore_list_last_goto(Ecore_List * list);
+EAPI void *ecore_list_index_goto(Ecore_List * list, int index);
+EAPI void *ecore_list_goto(Ecore_List * list, const void *_data);
+
+/* Traversing the list and returning data */
+EAPI void *ecore_list_next(Ecore_List * list);
+EAPI void *ecore_list_find(Ecore_List * list,
+ Ecore_Compare_Cb function,
+ const void *match);
+
+/* Check to see if there is any data in the list */
+EAPI int ecore_list_empty_is(Ecore_List * list);
+
+/* Remove every node in the list without freeing the list itself */
+EAPI int ecore_list_clear(Ecore_List * list);
+
+/* Free the list and it's contents */
+EAPI void ecore_list_destroy(Ecore_List * list);
+
+/* Creating and initializing list nodes */
+EAPI Ecore_List_Node *ecore_list_node_new(void);
+EAPI int ecore_list_node_init(Ecore_List_Node * newNode);
+
+/* Destroying nodes */
+EAPI int ecore_list_node_destroy(Ecore_List_Node * _e_node,
+ Ecore_Free_Cb free_func);
+
+EAPI int ecore_list_free_cb_set(Ecore_List * list,
+ Ecore_Free_Cb free_func);
+
+#endif /* USE_ECORE */
+
+/* e16 additions */
+#if __cplusplus
+#define ECORE_LIST_FOR_EACH(list, p) \
+ for (ecore_list_first_goto(list); (p = (typeof(p))ecore_list_next(list)) != NULL;)
+#else
+#define ECORE_LIST_FOR_EACH(list, p) \
+ for (ecore_list_first_goto(list); (p = ecore_list_next(list)) != NULL;)
+#endif
+
+EAPI void *ecore_list_node_remove(Ecore_List * list, void *_data);
+EAPI void **ecore_list_items_get(Ecore_List * list, int *pnum);
+
+#endif /* _E16_ECORE_LIST_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * This code was originally derived from xcompmgr.c, see original copyright
+ * notice at end.
+ * It has been mostly rewritten since, only the shadow code is more or less
+ * intact.
+ */
+
+#include "E.h"
+#if USE_COMPOSITE
+#include "desktops.h"
+#include "ecompmgr.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "events.h"
+#include "hints.h"
+#include "timers.h"
+#include "windowmatch.h"
+#include "xwin.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <math.h>
+#include <unistd.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/extensions/shape.h>
+#include <X11/extensions/Xcomposite.h>
+#include <X11/extensions/Xdamage.h>
+#include <X11/extensions/Xfixes.h>
+#include <X11/extensions/Xrender.h>
+
+#define ENABLE_SHADOWS 1
+
+#define USE_DESK_EXPOSE 0
+#define USE_DESK_VISIBILITY 1
+
+#define USE_CLIP_RELATIVE_TO_DESK 1
+
+/* Composite Overlay Window (client) availability */
+#if (1000 * COMPOSITE_MAJOR + COMPOSITE_MINOR) >= 3
+#define USE_COMPOSITE_OVERLAY_WINDOW 1
+#else
+#define USE_COMPOSITE_OVERLAY_WINDOW 0
+#endif
+
+#define ENABLE_DEBUG 1
+#if ENABLE_DEBUG
+#define D1printf(fmt...) if(EDebug(EDBUG_TYPE_COMPMGR))Eprintf(fmt)
+#define D2printf(fmt...) if(EDebug(EDBUG_TYPE_COMPMGR2))Eprintf(fmt)
+#define D3printf(fmt...) if(EDebug(EDBUG_TYPE_COMPMGR3))Eprintf(fmt)
+#else
+#define D1printf(fmt...)
+#define D2printf(fmt...)
+#define D3printf(fmt...)
+#endif /* ENABLE_DEBUG */
+
+#define DEBUG_OPACITY 0
+
+#define INV_POS 0x01
+#define INV_SIZE 0x02
+#define INV_SHAPE 0x04
+#define INV_CLIP 0x08
+#define INV_OPACITY 0x10
+#define INV_SHADOW 0x20
+#define INV_PIXMAP 0x40
+#define INV_PICTURE 0x80
+#define INV_GEOM (INV_POS | INV_SIZE | INV_SHAPE)
+#define INV_ALL (INV_POS | INV_SIZE | INV_CLIP | INV_OPACITY | INV_SHADOW | INV_PIXMAP)
+
+typedef struct _cmhook ECmWinInfo;
+
+struct _cmhook {
+ EObj *next; /* Paint order */
+ EObj *prev; /* Paint order */
+ Pixmap pixmap;
+ int rcx, rcy, rcw, rch;
+ int mode;
+ unsigned damaged:1;
+ unsigned fadeout:1;
+ unsigned has_shadow:1;
+ unsigned have_shape:1; /* Region validity - shape */
+ unsigned have_extents:1; /* Region validity - extents */
+ unsigned have_clip:1; /* Region validity - clip */
+ Damage damage;
+ Picture picture;
+ Picture pict_alpha; /* Solid, current opacity */
+ XserverRegion shape;
+ XserverRegion extents;
+ XserverRegion clip;
+ int shape_x, shape_y;
+#if ENABLE_SHADOWS
+ Picture shadow_alpha; /* Solid, sharp * current opacity */
+ Picture shadow_pict; /* Blurred shaped shadow */
+ int shadow_dx;
+ int shadow_dy;
+ int shadow_width;
+ int shadow_height;
+#endif
+ unsigned int opacity;
+
+ unsigned long damage_sequence; /* sequence when damage was created */
+
+ Animator *anim_fade;
+ unsigned int opacity_to;
+};
+
+/*
+ * Configuration
+ */
+#if ENABLE_SHADOWS
+#define ECM_SHADOWS_OFF 0
+#define ECM_SHADOWS_SHARP 1 /* use window alpha for shadow; sharp, but precise */
+#define ECM_SHADOWS_ECHO 3 /* use window for shadow; sharp, but precise */
+#define ECM_SHADOWS_BLURRED 2 /* use window extents for shadow, blurred */
+#endif
+
+#define ECM_OR_UNREDIRECTED 0
+#define ECM_OR_ON_MAP 1
+#define ECM_OR_ON_MAPUNMAP 2
+#define ECM_OR_ON_CREATE 3
+
+static struct {
+ char enable;
+ char resize_fix_enable;
+ char use_name_pixmap;
+#if USE_COMPOSITE_OVERLAY_WINDOW
+ char use_cow;
+#endif
+ int mode;
+ struct {
+ int mode;
+ int offset_x, offset_y;
+ struct {
+ int opacity;
+ int radius;
+ } blur;
+ struct {
+ int opacity;
+ } sharp;
+ unsigned int color;
+ } shadows;
+ struct {
+ char enable;
+ unsigned int time; /* Fading time, ms */
+ } fading;
+ struct {
+ int mode;
+ int opacity;
+ } override_redirect;
+} Conf_compmgr;
+
+/*
+ * State
+ */
+#define ECM_MODE_OFF 0
+#define ECM_MODE_ROOT 1
+#define ECM_MODE_WINDOW 2
+#define ECM_MODE_AUTO 3
+
+static struct {
+ int mode;
+ Window root;
+#if USE_COMPOSITE_OVERLAY_WINDOW
+ Window cow;
+#endif
+ Pixmap pmap; /* Compositing buffer */
+ char active;
+ char use_pixmap;
+ char reorder;
+ char ghosts;
+ EObj *eo_first;
+ EObj *eo_last;
+ XserverRegion damage;
+ char got_damage;
+ XserverRegion rgn_screen;
+ XserverRegion rgn_clip;
+ int shadow_mode;
+ float opac_blur; /* 0. -> 1. */
+ float opac_sharp; /* 0. -> 1. */
+} Mode_compmgr;
+
+/* FIXME - Optimize according to what actually changed */
+#define _ECM_SET_CLIP_CHANGED() Mode_compmgr.reorder = 1
+#define _ECM_SET_STACK_CHANGED() Mode_compmgr.reorder = 1
+#define _ECM_SET_SHADOW_CHANGED() Mode_compmgr.reorder = 1
+
+static Picture rootPicture;
+static Picture rootBuffer;
+
+static XserverRegion rgn_tmp; /* Region for temporary use */
+static XserverRegion rgn_tmp2; /* Region for temporary use */
+
+static ESelection *wm_cm_sel = NULL;
+
+#define OPAQUE 0xffffffff
+#define OP32To8(op) (((unsigned int)(op)) >> 24)
+
+#define WINDOW_UNREDIR 0
+#define WINDOW_SOLID 1
+#define WINDOW_TRANS 2
+#define WINDOW_ARGB 3
+
+static void ECompMgrDamageAll(void);
+static void ECompMgrHandleRootEvent(Win win, XEvent * ev, void *prm);
+static void ECompMgrHandleWindowEvent(Win win, XEvent * ev, void *prm);
+static int doECompMgrWinFade(void *data);
+static void ECompMgrWinInvalidate(EObj * eo, int what);
+static void ECompMgrWinSetPicts(EObj * eo);
+static void ECompMgrWinFadeEnd(EObj * eo, int done);
+static int ECompMgrDetermineOrder(EObj * const *lst, int num,
+ EObj ** first, EObj ** last,
+ Desk * dsk, XserverRegion clip);
+
+#define PIXMAP_DESTROY(pmap) \
+ if (pmap != None) { XFreePixmap(disp, pmap); pmap = None; }
+#define PICTURE_DESTROY(pict) \
+ if (pict != None) { XRenderFreePicture(disp, pict); pict = None; }
+#define REGION_DESTROY(rgn) \
+ if (rgn != None) { ERegionDestroy(rgn); rgn = None; }
+
+/*
+ * Regions
+ */
+#define DEBUG_REGIONS 0
+
+#if DEBUG_REGIONS
+static int n_rgn_c = 0;
+static int n_rgn_d = 0;
+#endif
+
+static XserverRegion
+ERegionCreate(void)
+{
+ XserverRegion rgn;
+
+ rgn = XFixesCreateRegion(disp, NULL, 0);
+
+#if DEBUG_REGIONS
+ n_rgn_c++;
+ Eprintf("%s: %#lx %d %d %d\n", __func__, rgn,
+ n_rgn_c - n_rgn_d, n_rgn_c, n_rgn_d);
+#endif
+ return rgn;
+}
+
+static XserverRegion
+ERegionCreateRect(int x, int y, int w, int h)
+{
+ XserverRegion rgn;
+ XRectangle rct;
+
+ rct.x = x;
+ rct.y = y;
+ rct.width = w;
+ rct.height = h;
+ rgn = XFixesCreateRegion(disp, &rct, 1);
+
+#if DEBUG_REGIONS
+ n_rgn_c++;
+ Eprintf("%s: %#lx %d %d %d\n", __func__, rgn,
+ n_rgn_c - n_rgn_d, n_rgn_c, n_rgn_d);
+#endif
+ return rgn;
+}
+
+#if USE_DESK_EXPOSE
+static XserverRegion
+ERegionCreateFromRects(XRectangle * rectangles, int nrectangles)
+{
+ XserverRegion rgn;
+
+ rgn = XFixesCreateRegion(disp, rectangles, nrectangles);
+
+#if DEBUG_REGIONS
+ n_rgn_c++;
+ Eprintf("%s: %#lx %d %d %d\n", __func__, rgn,
+ n_rgn_c - n_rgn_d, n_rgn_c, n_rgn_d);
+#endif
+ return rgn;
+}
+#endif
+
+static XserverRegion
+ERegionCreateFromWindow(Win win)
+{
+ XserverRegion rgn;
+
+ rgn =
+ XFixesCreateRegionFromWindow(disp, WinGetXwin(win), WindowRegionBounding);
+
+#if DEBUG_REGIONS
+ n_rgn_c++;
+ Eprintf("%s: %#lx %d %d %d\n", __func__, rgn,
+ n_rgn_c - n_rgn_d, n_rgn_c, n_rgn_d);
+#endif
+ return rgn;
+}
+
+static XserverRegion
+ERegionCopy(XserverRegion rgn, XserverRegion src)
+{
+ XFixesCopyRegion(disp, rgn, src);
+ return rgn;
+}
+
+static XserverRegion
+ERegionClone(XserverRegion src)
+{
+ XserverRegion rgn;
+
+ rgn = ERegionCreate();
+ ERegionCopy(rgn, src);
+
+ return rgn;
+}
+
+static void
+ERegionDestroy(XserverRegion rgn)
+{
+#if DEBUG_REGIONS
+ n_rgn_d++;
+ Eprintf("%s: %#lx %d %d %d\n", __func__, rgn,
+ n_rgn_c - n_rgn_d, n_rgn_c, n_rgn_d);
+#endif
+ XFixesDestroyRegion(disp, rgn);
+}
+
+static void
+ERegionEmpty(XserverRegion rgn)
+{
+ XFixesSetRegion(disp, rgn, NULL, 0);
+}
+
+static void
+ERegionSetRect(XserverRegion rgn, int x, int y, int w, int h)
+{
+ XRectangle rct;
+
+ rct.x = x;
+ rct.y = y;
+ rct.width = w;
+ rct.height = h;
+ XFixesSetRegion(disp, rgn, &rct, 1);
+}
+
+static void
+ERegionTranslate(XserverRegion rgn, int dx, int dy)
+{
+ if (dx == 0 && dy == 0)
+ return;
+ XFixesTranslateRegion(disp, rgn, dx, dy);
+}
+
+static void
+ERegionIntersect(XserverRegion dst, XserverRegion src)
+{
+ XFixesIntersectRegion(disp, dst, dst, src);
+}
+
+static void
+ERegionUnion(XserverRegion dst, XserverRegion src)
+{
+ XFixesUnionRegion(disp, dst, dst, src);
+}
+
+static void
+ERegionSubtract(XserverRegion dst, XserverRegion src)
+{
+ XFixesSubtractRegion(disp, dst, dst, src);
+}
+
+static void
+ERegionSubtractOffset(XserverRegion dst, int dx, int dy, XserverRegion src)
+{
+ Display *dpy = disp;
+ XserverRegion rgn;
+
+ rgn = src;
+ if (dx != 0 || dy != 0)
+ {
+ rgn = ERegionCopy(rgn_tmp, src);
+ XFixesTranslateRegion(dpy, rgn, dx, dy);
+ }
+ XFixesSubtractRegion(dpy, dst, dst, rgn);
+}
+
+static void
+ERegionUnionOffset(XserverRegion dst, int dx, int dy, XserverRegion src)
+{
+ Display *dpy = disp;
+ XserverRegion rgn;
+
+ rgn = src;
+ if (dx != 0 || dy != 0)
+ {
+ rgn = ERegionCopy(rgn_tmp, src);
+ XFixesTranslateRegion(dpy, rgn, dx, dy);
+ }
+ XFixesUnionRegion(dpy, dst, dst, rgn);
+}
+
+#if 0 /* Unused (for debug) */
+static int
+ERegionIsEmpty(XserverRegion rgn)
+{
+ int nr;
+ XRectangle *pr;
+
+ pr = XFixesFetchRegion(disp, rgn, &nr);
+ if (pr)
+ XFree(pr);
+ return nr == 0;
+}
+#endif
+
+static void
+ERegionShow(const char *txt, XserverRegion rgn)
+{
+ int i, nr;
+ XRectangle *pr;
+
+ if (rgn == None)
+ {
+ Eprintf(" - region: %s %#lx is None\n", txt, rgn);
+ return;
+ }
+
+ pr = XFixesFetchRegion(disp, rgn, &nr);
+ if (!pr || nr <= 0)
+ {
+ Eprintf(" - region: %s %#lx is empty\n", txt, rgn);
+ goto done;
+ }
+
+ Eprintf(" - region: %s %#lx:\n", txt, rgn);
+ for (i = 0; i < nr; i++)
+ Eprintf("%4d: %4d+%4d %4dx%4d\n", i, pr[i].x, pr[i].y, pr[i].width,
+ pr[i].height);
+
+ done:
+ if (pr)
+ XFree(pr);
+}
+
+void
+ECompMgrWinClipToGC(EObj * eo, GC gc)
+{
+ XserverRegion rgn = rgn_tmp2;
+
+ if (!eo || !eo->cmhook)
+ return;
+
+ ERegionCopy(rgn, Mode_compmgr.rgn_screen);
+ ERegionSubtract(rgn, eo->cmhook->clip);
+ XFixesSetGCClipRegion(disp, gc, 0, 0, rgn);
+}
+
+/*
+ * Pictures
+ */
+
+#define _R(x) (((x) >> 16) & 0xff)
+#define _G(x) (((x) >> 8) & 0xff)
+#define _B(x) (((x) ) & 0xff)
+
+static Picture
+EPictureCreateSolid(Bool argb, unsigned int a, unsigned int rgb)
+{
+ Display *dpy = disp;
+ Pixmap pmap;
+ Picture pict;
+ XRenderPictFormat *pictfmt;
+ XRenderPictureAttributes pa;
+ XRenderColor c;
+
+ pmap = XCreatePixmap(dpy, Mode_compmgr.root, 1, 1, argb ? 32 : 8);
+ pictfmt = XRenderFindStandardFormat(dpy,
+ argb ? PictStandardARGB32 :
+ PictStandardA8);
+ pa.repeat = True;
+ pict = XRenderCreatePicture(dpy, pmap, pictfmt, CPRepeat, &pa);
+
+ c.alpha = (unsigned short)(a * 0x101);
+ c.red = (unsigned short)(_R(rgb) * 0x101);
+ c.green = (unsigned short)(_G(rgb) * 0x101);
+ c.blue = (unsigned short)(_B(rgb) * 0x101);
+ XRenderFillRectangle(dpy, PictOpSrc, pict, &c, 0, 0, 1, 1);
+
+ XFreePixmap(dpy, pmap);
+
+ return pict;
+}
+
+static Picture
+EPictureCreateBuffer(Win win, int w, int h, Pixmap * ppmap)
+{
+ Picture pict;
+ Pixmap pmap;
+ XRenderPictFormat *pictfmt;
+
+ pmap = XCreatePixmap(disp, WinGetXwin(win), w, h, WinGetDepth(win));
+ pictfmt = XRenderFindVisualFormat(disp, WinGetVisual(win));
+ pict = XRenderCreatePicture(disp, pmap, pictfmt, 0, 0);
+ if (ppmap)
+ *ppmap = pmap;
+ else
+ XFreePixmap(disp, pmap);
+
+ return pict;
+}
+
+#if 0
+static Picture
+EPictureCreate(Window win, int depth, Visual * vis)
+{
+ Picture pict;
+ XRenderPictFormat *pictfmt;
+
+ pictfmt = XRenderFindVisualFormat(disp, vis);
+ pict = XRenderCreatePicture(disp, win, pictfmt, 0, 0);
+
+ return pict;
+}
+#endif
+
+/* Hack to fix redirected window resize bug(?) */
+void
+ECompMgrMoveResizeFix(EObj * eo, int x, int y, int w, int h)
+{
+ Picture pict;
+ int wo, ho;
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (!cw || !Conf_compmgr.resize_fix_enable)
+ {
+ EMoveResizeWindow(EobjGetWin(eo), x, y, w, h);
+ return;
+ }
+
+ wo = ho = 0;
+ EGetGeometry(EobjGetWin(eo), NULL, NULL, NULL, &wo, &ho, NULL, NULL);
+ if (wo <= 0 || ho <= 0 || (wo == w && ho == h))
+ {
+ EMoveResizeWindow(EobjGetWin(eo), x, y, w, h);
+ return;
+ }
+
+ /* Resizing - grab old contents */
+ pict = EPictureCreateBuffer(EobjGetWin(eo), wo, ho, NULL);
+ XRenderComposite(disp, PictOpSrc, cw->picture, None, pict, 0, 0, 0, 0, 0, 0,
+ wo, ho);
+
+ /* Resize (+move) */
+ EMoveResizeWindow(EobjGetWin(eo), x, y, w, h);
+
+ /* Paste old contents back in */
+ if (w < wo)
+ w = wo;
+ if (h < ho)
+ h = ho;
+ XRenderComposite(disp, PictOpSrc, pict, None, cw->picture,
+ 0, 0, 0, 0, 0, 0, w, h);
+ XRenderFreePicture(disp, pict);
+}
+
+#if !USE_BG_WIN_ON_ALL_DESKS
+/*
+ * Desk background
+ */
+
+int
+ECompMgrDeskConfigure(Desk * dsk)
+{
+ EObj *eo;
+ ECmWinInfo *cw;
+ Picture pict;
+ XRenderPictFormat *pictfmt;
+ XRenderPictureAttributes pa;
+ Pixmap pmap;
+
+ if (!Mode_compmgr.active)
+ return 0;
+
+ eo = dsk->bg.o;
+ if (!eo)
+ return 1;
+
+ ECompMgrWinInvalidate(eo, INV_PICTURE);
+
+ if (!dsk->viewable && dsk->bg.bg)
+ return 1;
+
+ if (dsk->bg.pmap == None)
+ {
+ GC gc;
+
+ pmap = XCreatePixmap(disp, Mode_compmgr.root, 1, 1, WinGetDepth(VROOT));
+ gc = EXCreateGC(pmap, 0, NULL);
+ XSetClipMask(disp, gc, 0);
+ XSetFillStyle(disp, gc, FillSolid);
+ XSetForeground(disp, gc, dsk->bg.pixel);
+ XFillRectangle(disp, pmap, gc, 0, 0, 1, 1);
+ EXFreeGC(gc);
+ }
+ else
+ {
+ pmap = dsk->bg.pmap;
+ }
+
+ pa.repeat = True;
+ pictfmt = XRenderFindVisualFormat(disp, WinGetVisual(VROOT));
+ pict = XRenderCreatePicture(disp, pmap, pictfmt, CPRepeat, &pa);
+
+ if (pmap != dsk->bg.pmap)
+ XFreePixmap(disp, pmap);
+
+ /* New background, all must be repainted */
+ ECompMgrDamageAll();
+
+ cw = eo->cmhook;
+ cw->picture = pict;
+
+ D1printf
+ ("ECompMgrDeskConfigure: Desk %d: using pixmap %#lx picture=%#lx\n",
+ dsk->num, pmap, cw->picture);
+
+ return 1;
+}
+#endif
+
+#if USE_DESK_VISIBILITY
+static void
+ECompMgrDeskVisibility(EObj * eo, XEvent * ev)
+{
+ Desk *dsk;
+ int visible;
+
+ switch (eo->type)
+ {
+ default:
+ return;
+ case EOBJ_TYPE_DESK:
+ dsk = (Desk *) eo;
+ break;
+ case EOBJ_TYPE_ROOT_BG:
+ dsk = DeskGet(0);
+ break;
+ }
+
+ visible = dsk->viewable && ev->xvisibility.state != VisibilityFullyObscured;
+ if (dsk->visible == visible)
+ return;
+ dsk->visible = visible;
+ if (!visible)
+ return;
+
+ /*
+ * A viewable desk is no longer fully obscured. Assume this happened due
+ * to a VT switch to our display and repaint all. This may happen in other
+ * situations as well, but most likely when we must repaint everything
+ * anyway.
+ */
+ ECompMgrDamageAll();
+}
+#endif
+
+/*
+ * Root (?)
+ */
+
+static void
+ECompMgrDamageMerge(XserverRegion damage)
+{
+ if (Mode_compmgr.got_damage)
+ {
+ if (EDebug(EDBUG_TYPE_COMPMGR3))
+ ERegionShow("ECompMgrDamageMerge add:", damage);
+
+ ERegionUnion(Mode_compmgr.damage, damage);
+ }
+ else if (Mode_compmgr.damage != None)
+ {
+ ERegionCopy(Mode_compmgr.damage, damage);
+ }
+ else
+ {
+ Mode_compmgr.damage = ERegionClone(damage);
+ }
+ Mode_compmgr.got_damage = 1;
+
+ if (EDebug(EDBUG_TYPE_COMPMGR3))
+ ERegionShow("ECompMgrDamageMerge all:", Mode_compmgr.damage);
+}
+
+static void
+ECompMgrDamageMergeObject(EObj * eo, XserverRegion damage)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ Desk *dsk = eo->desk;
+
+ if (!Mode_compmgr.active || damage == None)
+ return;
+
+ if (dsk->num > 0 && !dsk->viewable && eo->ilayer < 512)
+ return;
+
+ if (Mode_compmgr.reorder)
+ ECompMgrDetermineOrder(NULL, 0, &Mode_compmgr.eo_first,
+ &Mode_compmgr.eo_last, DeskGet(0), None);
+
+ damage = ERegionCopy(rgn_tmp, damage);
+
+#if USE_CLIP_RELATIVE_TO_DESK
+ if (cw->have_clip && eo->type != EOBJ_TYPE_DESK)
+ ERegionSubtract(damage, cw->clip);
+#endif
+
+ if (EoGetX(dsk) != 0 || EoGetY(dsk) != 0)
+ ERegionTranslate(damage, EoGetX(dsk), EoGetY(dsk));
+
+#if !USE_CLIP_RELATIVE_TO_DESK
+ if (cw->have_clip && eo->type != EOBJ_TYPE_DESK)
+ ERegionSubtract(damage, cw->clip);
+#endif
+ if (!eo->ghost)
+ Mode.events.damage_count++;
+
+ ECompMgrDamageMerge(damage);
+}
+
+static void
+ECompMgrDamageAll(void)
+{
+ ECompMgrDamageMerge(Mode_compmgr.rgn_screen);
+}
+
+#if ENABLE_SHADOWS
+
+static Picture transBlackPicture;
+
+typedef struct {
+ int size;
+ double *data;
+} conv;
+
+static conv *gaussianMap = NULL;
+
+static double
+gaussian(double r, double x, double y)
+{
+ return ((1 / (sqrt(2 * M_PI * r))) * exp((-(x * x + y * y)) / (2 * r * r)));
+}
+
+static conv *
+make_gaussian_map(double r)
+{
+ conv *c;
+ int size = ((int)ceil((r * 3)) + 1) & ~1;
+ int center = size / 2;
+ int x, y;
+ double t;
+ double g;
+
+ c = (conv *) EMALLOC(char, sizeof(conv) + size * size * sizeof(double));
+
+ c->size = size;
+ c->data = (double *)(c + 1);
+ t = 0.0;
+ for (y = 0; y < size; y++)
+ for (x = 0; x < size; x++)
+ {
+ g = gaussian(r, (double)(x - center), (double)(y - center));
+ t += g;
+ c->data[y * size + x] = g;
+ }
+/* printf ("gaussian total %f\n", t); */
+ for (y = 0; y < size; y++)
+ for (x = 0; x < size; x++)
+ {
+ c->data[y * size + x] /= t;
+ }
+ return c;
+}
+
+/*
+ * A picture will help
+ *
+ * -center 0 width width+center
+ * -center +-----+-------------------+-----+
+ * | | | |
+ * | | | |
+ * 0 +-----+-------------------+-----+
+ * | | | |
+ * | | | |
+ * | | | |
+ * height +-----+-------------------+-----+
+ * | | | |
+ * height+ | | | |
+ * center +-----+-------------------+-----+
+ */
+
+static unsigned char
+sum_gaussian(conv * map, double opacity, int x, int y, int width, int height)
+{
+ int fx, fy;
+ double *g_data;
+ double *g_line = map->data;
+ int g_size = map->size;
+ int center = g_size / 2;
+ int fx_start, fx_end;
+ int fy_start, fy_end;
+ double v;
+
+ /*
+ * Compute set of filter values which are "in range",
+ * that's the set with:
+ * 0 <= x + (fx-center) && x + (fx-center) < width &&
+ * 0 <= y + (fy-center) && y + (fy-center) < height
+ *
+ * 0 <= x + (fx - center) x + fx - center < width
+ * center - x <= fx fx < width + center - x
+ */
+
+ fx_start = center - x;
+ if (fx_start < 0)
+ fx_start = 0;
+ fx_end = width + center - x;
+ if (fx_end > g_size)
+ fx_end = g_size;
+
+ fy_start = center - y;
+ if (fy_start < 0)
+ fy_start = 0;
+ fy_end = height + center - y;
+ if (fy_end > g_size)
+ fy_end = g_size;
+
+ g_line = g_line + fy_start * g_size + fx_start;
+
+ v = 0;
+ for (fy = fy_start; fy < fy_end; fy++)
+ {
+ g_data = g_line;
+ g_line += g_size;
+
+ for (fx = fx_start; fx < fx_end; fx++)
+ v += *g_data++;
+ }
+ if (v > 1)
+ v = 1;
+
+ return ((unsigned char)(v * opacity * 255.0));
+}
+
+static XImage *
+make_shadow(double opacity, int width, int height)
+{
+ Display *dpy = disp;
+ XImage *ximage;
+ unsigned char *data;
+ int gsize = gaussianMap->size;
+ int ylimit, xlimit;
+ int swidth = width + gsize;
+ int sheight = height + gsize;
+ int center = gsize / 2;
+ int x, y;
+ unsigned char d;
+ int x_diff;
+
+ data = ECALLOC(unsigned char, swidth * sheight);
+
+ if (!data)
+ return NULL;
+
+ ximage = XCreateImage(dpy, DefaultVisual(dpy, DefaultScreen(dpy)),
+ 8, ZPixmap, 0,
+ (char *)data,
+ swidth, sheight, 8, swidth * sizeof(unsigned char));
+ if (!ximage)
+ {
+ Efree(data);
+ return NULL;
+ }
+
+ /*
+ * Build the gaussian in sections
+ */
+
+#if 1
+ /* FIXME - Handle properly - shaped/non-shaped/offset */
+ /*
+ * center (fill the complete data array)
+ */
+ d = sum_gaussian(gaussianMap, opacity, center, center, width, height);
+ memset(data, d, sheight * swidth);
+#endif
+
+ /*
+ * corners
+ */
+ ylimit = gsize;
+ if (ylimit > sheight / 2)
+ ylimit = (sheight + 1) / 2;
+ xlimit = gsize;
+ if (xlimit > swidth / 2)
+ xlimit = (swidth + 1) / 2;
+
+ for (y = 0; y < ylimit; y++)
+ for (x = 0; x < xlimit; x++)
+ {
+ d = sum_gaussian(gaussianMap, opacity, x - center, y - center, width,
+ height);
+ data[y * swidth + x] = d;
+ data[(sheight - y - 1) * swidth + x] = d;
+ data[(sheight - y - 1) * swidth + (swidth - x - 1)] = d;
+ data[y * swidth + (swidth - x - 1)] = d;
+ }
+
+ /*
+ * top/bottom
+ */
+ x_diff = swidth - (gsize * 2);
+ if (x_diff > 0 && ylimit > 0)
+ {
+ for (y = 0; y < ylimit; y++)
+ {
+ d = sum_gaussian(gaussianMap, opacity, center, y - center, width,
+ height);
+ memset(&data[y * swidth + gsize], d, x_diff);
+ memset(&data[(sheight - y - 1) * swidth + gsize], d, x_diff);
+ }
+ }
+
+ /*
+ * sides
+ */
+ for (x = 0; x < xlimit; x++)
+ {
+ d = sum_gaussian(gaussianMap, opacity, x - center, center, width,
+ height);
+ for (y = gsize; y < sheight - gsize; y++)
+ {
+ data[y * swidth + x] = d;
+ data[y * swidth + (swidth - x - 1)] = d;
+ }
+ }
+
+ return ximage;
+}
+
+static Picture
+shadow_picture(double opacity, int width, int height, int *wp, int *hp)
+{
+ Display *dpy = disp;
+ XImage *shadowImage;
+ Pixmap shadowPixmap;
+ Picture shadowPicture;
+ GC gc;
+
+ shadowImage = make_shadow(opacity, width, height);
+ if (!shadowImage)
+ return None;
+
+ shadowPixmap = XCreatePixmap(dpy, Mode_compmgr.root,
+ shadowImage->width, shadowImage->height, 8);
+ shadowPicture = XRenderCreatePicture(dpy, shadowPixmap,
+ XRenderFindStandardFormat(dpy,
+ PictStandardA8),
+ 0, 0);
+ gc = XCreateGC(dpy, shadowPixmap, 0, 0);
+
+ XPutImage(dpy, shadowPixmap, gc, shadowImage, 0, 0, 0, 0,
+ shadowImage->width, shadowImage->height);
+ *wp = shadowImage->width;
+ *hp = shadowImage->height;
+ XFreeGC(dpy, gc);
+ XDestroyImage(shadowImage);
+ XFreePixmap(dpy, shadowPixmap);
+
+ return shadowPicture;
+}
+
+#endif /* ENABLE_SHADOWS */
+
+static void ECompMgrWinSetShape(EObj * eo);
+
+/* Region of window in screen coordinates, including shadows */
+static void
+ECompMgrWinSetExtents(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ XRectangle r, sr;
+ unsigned int bw;
+
+ /* FIXME - Get this right */
+ bw = EobjGetBW(eo);
+ if (Mode_compmgr.use_pixmap)
+ {
+ cw->rcx = EobjGetX(eo);
+ cw->rcy = EobjGetY(eo);
+ cw->rcw = EobjGetW(eo) + 2 * bw;
+ cw->rch = EobjGetH(eo) + 2 * bw;
+ }
+ else
+ {
+ cw->rcx = EobjGetX(eo) + bw;
+ cw->rcy = EobjGetY(eo) + bw;
+ cw->rcw = EobjGetW(eo);
+ cw->rch = EobjGetH(eo);
+ }
+
+ if (eo->noredir && bw)
+ {
+ r.x = EobjGetX(eo);
+ r.y = EobjGetY(eo);
+ r.width = EobjGetW(eo) + 2 * bw;
+ r.height = EobjGetH(eo) + 2 * bw;
+ }
+ else
+ {
+ r.x = cw->rcx;
+ r.y = cw->rcy;
+ r.width = cw->rcw;
+ r.height = cw->rch;
+ }
+
+ if (cw->extents == None)
+ cw->extents = ERegionCreate();
+
+#if ENABLE_SHADOWS
+ cw->has_shadow = (Mode_compmgr.shadow_mode != ECM_SHADOWS_OFF) &&
+ eo->shadow && (EShapeCheck(EobjGetWin(eo)) >= 0);
+ if (!cw->has_shadow)
+ goto skip_shadow;
+
+ switch (Mode_compmgr.shadow_mode)
+ {
+ default:
+ goto skip_shadow;
+
+ case ECM_SHADOWS_SHARP:
+ case ECM_SHADOWS_ECHO:
+ cw->shadow_dx = Conf_compmgr.shadows.offset_x;
+ cw->shadow_dy = Conf_compmgr.shadows.offset_y;
+ cw->shadow_width = cw->rcw;
+ cw->shadow_height = cw->rch;
+ break;
+
+ case ECM_SHADOWS_BLURRED:
+ if (EobjIsShaped(eo) /* || cw->mode == WINDOW_ARGB */ )
+ goto skip_shadow;
+
+ if (!gaussianMap)
+ {
+ gaussianMap =
+ make_gaussian_map((double)Conf_compmgr.shadows.blur.radius);
+ if (!gaussianMap)
+ goto skip_shadow;
+ }
+
+ cw->shadow_dx = Conf_compmgr.shadows.offset_x - gaussianMap->size / 2;
+ cw->shadow_dy = Conf_compmgr.shadows.offset_y - gaussianMap->size / 2;
+ if (!cw->shadow_pict)
+ cw->shadow_pict = shadow_picture(Mode_compmgr.opac_blur,
+ cw->rcw, cw->rch,
+ &cw->shadow_width,
+ &cw->shadow_height);
+ break;
+ }
+ sr.x = cw->rcx + cw->shadow_dx;
+ sr.y = cw->rcy + cw->shadow_dy;
+ sr.width = cw->shadow_width;
+ sr.height = cw->shadow_height;
+ if (sr.x < r.x)
+ {
+ r.width = (r.x + r.width) - sr.x;
+ r.x = sr.x;
+ }
+ if (sr.y < r.y)
+ {
+ r.height = (r.y + r.height) - sr.y;
+ r.y = sr.y;
+ }
+ if (sr.x + sr.width > r.x + r.width)
+ r.width = sr.x + sr.width - r.x;
+ if (sr.y + sr.height > r.y + r.height)
+ r.height = sr.y + sr.height - r.y;
+
+ ERegionSetRect(cw->extents, r.x, r.y, r.width, r.height);
+ goto done;
+
+ skip_shadow:
+#endif
+
+ /* No shadow - extents = shape */
+ if (!cw->have_shape)
+ ECompMgrWinSetShape(eo);
+ ERegionCopy(cw->extents, cw->shape);
+
+ done:
+ cw->have_extents = 1;
+
+ D1printf("extents %#lx %d %d %d %d\n", EobjGetXwin(eo), r.x, r.y, r.width,
+ r.height);
+
+ if (EDebug(EDBUG_TYPE_COMPMGR))
+ ERegionShow("extents", cw->extents);
+}
+
+/* Region of shaped window in screen coordinates */
+static void
+ECompMgrWinSetShape(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ int x, y;
+
+ if (cw->shape == None)
+ {
+ cw->shape = ERegionCreateFromWindow(EobjGetWin(eo));
+
+ if (WinIsShaped(EobjGetWin(eo)))
+ {
+ /* Intersect with window size to get effective bounding region */
+ ERegionSetRect(rgn_tmp, 0, 0, EobjGetW(eo), EobjGetH(eo));
+ ERegionIntersect(cw->shape, rgn_tmp);
+ }
+ x = EobjGetX(eo) + EobjGetBW(eo);
+ y = EobjGetY(eo) + EobjGetBW(eo);
+ }
+ else
+ {
+ x = EobjGetX(eo) + EobjGetBW(eo) - cw->shape_x;
+ y = EobjGetY(eo) + EobjGetBW(eo) - cw->shape_y;
+ }
+
+ ERegionTranslate(cw->shape, x, y);
+
+ cw->shape_x = EobjGetX(eo) + EobjGetBW(eo);
+ cw->shape_y = EobjGetY(eo) + EobjGetBW(eo);
+ cw->have_shape = 1;
+
+ D1printf("shape %#lx: %d %d\n", EobjGetXwin(eo), cw->shape_x, cw->shape_y);
+ if (EDebug(EDBUG_TYPE_COMPMGR))
+ ERegionShow("shape", cw->shape);
+}
+
+static Pixmap
+EWindowGetNamePixmap(const struct _xwin *win)
+{
+ XWindowAttributes xwa;
+
+ if (XGetWindowAttributes(disp, win->xwin, &xwa) == 0 ||
+ xwa.map_state == IsUnmapped)
+ return None;
+
+ return XCompositeNameWindowPixmap(disp, WinGetXwin(win));
+}
+
+Pixmap
+ECompMgrWinGetPixmap(const EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (!cw)
+ return None;
+
+ if (cw->pixmap != None)
+ return cw->pixmap;
+
+ if (eo->noredir)
+ return None;
+
+ cw->pixmap = EWindowGetNamePixmap(EobjGetWin(eo));
+
+ return cw->pixmap;
+}
+
+static void
+ECompMgrWinInvalidate(EObj * eo, int what)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ Display *dpy = disp;
+
+ if (!cw)
+ return;
+
+ D2printf("ECompMgrWinInvalidate %#lx: %#x\n", EobjGetXwin(eo), what);
+
+ if ((what & (INV_SIZE | INV_PIXMAP)) && cw->pixmap != None)
+ {
+ XFreePixmap(dpy, cw->pixmap);
+ cw->pixmap = None;
+ if (Mode_compmgr.use_pixmap)
+ what |= INV_PICTURE;
+#if USE_GLX
+ EobjTextureInvalidate(eo);
+#endif
+ }
+
+ if (what & (INV_SIZE | INV_SHAPE))
+ REGION_DESTROY(cw->shape);
+ if (what & INV_GEOM)
+ cw->have_shape = 0;
+
+ if (what & INV_PICTURE)
+ PICTURE_DESTROY(cw->picture);
+
+ if (what & INV_OPACITY)
+ PICTURE_DESTROY(cw->pict_alpha);
+
+ if (what & (INV_CLIP | INV_GEOM))
+ cw->have_clip = 0;
+
+#if ENABLE_SHADOWS
+ if (what & (INV_SIZE | INV_SHADOW))
+ PICTURE_DESTROY(cw->shadow_pict);
+ if (what & (INV_OPACITY | INV_SHADOW))
+ PICTURE_DESTROY(cw->shadow_alpha);
+#endif
+
+ if (what & (INV_GEOM | INV_SHADOW))
+ cw->have_extents = 0;
+}
+
+static void
+ECompMgrWinSetOpacity(EObj * eo, unsigned int opacity)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ int mode;
+
+ if (!cw || cw->opacity == opacity)
+ return;
+
+ cw->opacity = opacity;
+
+ D1printf("ECompMgrWinSetOpacity: %#lx opacity=%#x\n", EobjGetXwin(eo),
+ cw->opacity);
+
+ if (eo->shown || cw->fadeout)
+ ECompMgrDamageMergeObject(eo, cw->extents);
+
+ /* Invalidate stuff changed by opacity */
+ ECompMgrWinInvalidate(eo, INV_OPACITY);
+
+ if (eo->noredir)
+ mode = WINDOW_UNREDIR;
+ else if (EobjGetWin(eo)->argb)
+ mode = WINDOW_ARGB;
+ else if (cw->opacity != OPAQUE)
+ mode = WINDOW_TRANS;
+ else
+ mode = WINDOW_SOLID;
+
+ if (mode != cw->mode)
+ _ECM_SET_CLIP_CHANGED();
+
+ cw->mode = mode;
+}
+
+static int
+doECompMgrWinFade(void *data)
+{
+ EObj *eo;
+ ECmWinInfo *cw;
+ unsigned int op, step;
+
+ eo = (EObj *) data;
+
+ /* May be gone */
+ if (EobjListStackCheck(eo) < 0)
+ return 0;
+
+ cw = eo->cmhook;
+ op = cw->opacity_to;
+
+#if DEBUG_OPACITY
+ Eprintf("doECompMgrWinFade %#lx, %d/%d, %#x->%#x\n", EobjGetXwin(eo),
+ eo->fading, cw->fadeout, cw->opacity, op);
+#endif
+ if (!eo->fading)
+ goto done;
+
+ eo->fading = cw->fadeout;
+
+ step = Conf_compmgr.fading.time / Conf.animation.step;
+ if (step == 0)
+ step = 1;
+ step = 0xffffffff / step;
+ if (op == cw->opacity)
+ {
+ op = eo->opacity;
+ ECompMgrWinFadeEnd(eo, 0);
+ }
+ else if (op > cw->opacity)
+ {
+ if (op - cw->opacity > step)
+ {
+ op = cw->opacity + step;
+ eo->fading = 1;
+ }
+ }
+ else
+ {
+ if (cw->opacity - op > step)
+ {
+ op = cw->opacity - step;
+ eo->fading = 1;
+ }
+ }
+
+#if DEBUG_OPACITY
+ Eprintf("doECompMgrWinFade %#lx, %#x\n", EobjGetXwin(eo), op);
+#endif
+ ECompMgrWinSetOpacity(eo, op);
+
+ if (eo->fading)
+ return 1;
+
+ if (eo->type == EOBJ_TYPE_EWIN)
+ ModulesSignal(eo->shown ? ESIGNAL_EWIN_CHANGE : ESIGNAL_EWIN_UNMAP, eo);
+
+ done:
+ cw->anim_fade = NULL;
+ return 0;
+}
+
+static void
+ECompMgrWinFade(EObj * eo, unsigned int op_from, unsigned int op_to)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (op_from == op_to && op_to == eo->opacity)
+ {
+ if (eo->fading)
+ ECompMgrWinFadeEnd(eo, 0);
+ return;
+ }
+
+ if (!cw->anim_fade)
+ cw->anim_fade = AnimatorAdd(doECompMgrWinFade, eo);
+ cw->opacity_to = op_to;
+
+ eo->fading = 1;
+ ECompMgrWinSetOpacity(eo, op_from);
+}
+
+static void
+ECompMgrWinFadeIn(EObj * eo)
+{
+#if DEBUG_OPACITY
+ Eprintf("ECompMgrWinFadeIn %#lx %#x -> %#x\n", EobjGetXwin(eo), 0x10000000,
+ eo->opacity);
+#endif
+ if (eo->fading)
+ ECompMgrWinFadeEnd(eo, 0);
+
+ ECompMgrWinFade(eo, 0x10000000, eo->opacity);
+}
+
+static void
+ECompMgrWinFadeOut(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+#if DEBUG_OPACITY
+ Eprintf("ECompMgrWinFadeOut %#lx %#x -> %#x\n", EobjGetXwin(eo), cw->opacity,
+ 0x10000000);
+#endif
+ cw->fadeout = 1;
+ ECompMgrWinInvalidate(eo, INV_PICTURE);
+ ECompMgrWinFade(eo, cw->opacity, 0x10000000);
+}
+
+static void
+ECompMgrWinFadeEnd(EObj * eo, int done)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+#if DEBUG_OPACITY
+ Eprintf("ECompMgrWinFadeEnd %#lx\n", EobjGetXwin(eo));
+#endif
+ if (cw->fadeout)
+ {
+ cw->fadeout = 0;
+ ECompMgrWinInvalidate(eo, INV_PIXMAP | INV_PICTURE);
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ _ECM_SET_CLIP_CHANGED();
+ }
+ eo->fading = 0;
+ if (done)
+ {
+ AnimatorDel(cw->anim_fade);
+ cw->anim_fade = NULL;
+ }
+}
+
+void
+ECompMgrWinChangeOpacity(EObj * eo, unsigned int opacity)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (!cw)
+ return;
+
+ if (eo->shown && Conf_compmgr.fading.enable && eo->fade)
+ ECompMgrWinFade(eo, cw->opacity, opacity);
+ else
+ ECompMgrWinSetOpacity(eo, opacity);
+}
+
+void
+ECompMgrWinMap(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (!cw)
+ {
+ ECompMgrWinNew(eo);
+ cw = eo->cmhook;
+ if (!cw)
+ return;
+ }
+
+ D1printf("ECompMgrWinMap %#lx\n", EobjGetXwin(eo));
+
+ if (!cw->have_extents)
+ ECompMgrWinSetExtents(eo);
+
+ _ECM_SET_STACK_CHANGED();
+ ECompMgrDamageMergeObject(eo, cw->extents);
+
+ if (Conf_compmgr.fading.enable && eo->fade)
+ ECompMgrWinFadeIn(eo);
+}
+
+void
+ECompMgrWinUnmap(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ D1printf("ECompMgrWinUnmap %#lx shown=%d\n", EobjGetXwin(eo), eo->shown);
+ if (!eo->shown) /* Sometimes we get a synthetic one too */
+ return;
+
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ _ECM_SET_STACK_CHANGED();
+ if (Conf_compmgr.fading.enable && eo->fade && !eo->gone)
+ ECompMgrWinFadeOut(eo);
+ else
+ ECompMgrWinInvalidate(eo, INV_PIXMAP);
+}
+
+static void
+ECompMgrWinSetPicts(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (cw->pixmap == None && eo->shown && !eo->noredir &&
+ (Mode_compmgr.use_pixmap || (eo->fade && Conf_compmgr.fading.enable)))
+ {
+ cw->pixmap = EWindowGetNamePixmap(EobjGetWin(eo));
+ D2printf("ECompMgrWinSetPicts %#lx: Pmap=%#lx\n", EobjGetXwin(eo),
+ cw->pixmap);
+ }
+
+ if (cw->picture == None)
+ {
+ XRenderPictFormat *pictfmt;
+ XRenderPictureAttributes pa;
+ Drawable draw = EobjGetXwin(eo);
+
+ if ((cw->pixmap && Mode_compmgr.use_pixmap) || (cw->fadeout))
+ draw = cw->pixmap;
+ if (draw == None)
+ return;
+
+ pictfmt = XRenderFindVisualFormat(disp, WinGetVisual(EobjGetWin(eo)));
+ pa.subwindow_mode = IncludeInferiors;
+ cw->picture = XRenderCreatePicture(disp, draw,
+ pictfmt, CPSubwindowMode, &pa);
+ D2printf("ECompMgrWinSetPicts %#lx: Pict=%#lx (drawable=%#lx)\n",
+ EobjGetXwin(eo), cw->picture, draw);
+
+ if (draw == cw->pixmap)
+ {
+ XserverRegion clip;
+
+ clip = ERegionCreateFromWindow(EobjGetWin(eo));
+ XFixesSetPictureClipRegion(disp, cw->picture, 0, 0, clip);
+ ERegionDestroy(clip);
+ }
+ }
+}
+
+void
+ECompMgrWinNew(EObj * eo)
+{
+ ECmWinInfo *cw;
+
+ if (!Mode_compmgr.active) /* FIXME - Here? */
+ return;
+
+ if (eo->inputonly || EobjGetWin(eo) == VROOT)
+ {
+ eo->noredir = 1;
+ return;
+ }
+
+ cw = ECALLOC(ECmWinInfo, 1);
+ if (!cw)
+ return;
+
+ D1printf("ECompMgrWinNew %#lx\n", EobjGetXwin(eo));
+
+ eo->cmhook = cw;
+
+ if (eo->type == EOBJ_TYPE_EXT &&
+ Conf_compmgr.override_redirect.mode == ECM_OR_UNREDIRECTED)
+ {
+ eo->noredir = 1;
+ eo->fade = 0;
+ eo->shadow = 0;
+ }
+
+ if (eo->noredir)
+ {
+ /* If already auto-redirected undo that */
+ if (Mode_compmgr.mode == ECM_MODE_ROOT)
+ {
+ XCompositeUnredirectWindow(disp, EobjGetXwin(eo),
+ CompositeRedirectManual);
+ if (eo->type == EOBJ_TYPE_DESK)
+ XCompositeRedirectSubwindows(disp, EobjGetXwin(eo),
+ CompositeRedirectManual);
+ }
+ }
+ else
+ {
+ if (Mode_compmgr.mode == ECM_MODE_WINDOW)
+ XCompositeRedirectWindow(disp, EobjGetXwin(eo),
+ CompositeRedirectManual);
+ cw->damage_sequence = NextRequest(disp);
+ cw->damage =
+ XDamageCreate(disp, EobjGetXwin(eo), XDamageReportNonEmpty);
+ }
+
+ if (eo->type == EOBJ_TYPE_EXT)
+ eo->opacity = OpacityFromPercent(Conf_compmgr.override_redirect.opacity);
+ if (eo->opacity == 0)
+ eo->opacity = 0xFFFFFFFF;
+
+ if (eo->type == EOBJ_TYPE_DESK || eo->type == EOBJ_TYPE_ROOT_BG)
+ {
+ ESelectInputChange(EobjGetWin(eo), VisibilityChangeMask, 0);
+ }
+
+ if (eo->type != EOBJ_TYPE_EWIN)
+ WindowMatchEobjOps(eo);
+
+ cw->opacity = 0xdeadbeef;
+ ECompMgrWinSetOpacity(eo, eo->opacity);
+
+ EventCallbackRegister(EobjGetWin(eo), 0, ECompMgrHandleWindowEvent, eo);
+}
+
+void
+ECompMgrWinMoveResize(EObj * eo, int change_xy, int change_wh, int change_bw)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ int invalidate;
+
+ D1printf("ECompMgrWinMoveResize %#lx xy=%d wh=%d bw=%d\n",
+ EobjGetXwin(eo), change_xy, change_wh, change_bw);
+
+ invalidate = 0;
+ if (change_xy || change_bw)
+ invalidate |= INV_POS;
+ if (change_wh || change_bw)
+ invalidate |= INV_SIZE;
+
+ if (!invalidate)
+ return;
+
+ if (cw->fadeout)
+ ECompMgrWinFadeEnd(eo, 1);
+
+ if (!eo->shown)
+ {
+ ECompMgrWinInvalidate(eo, invalidate);
+ return;
+ }
+
+ if (EDebug(EDBUG_TYPE_COMPMGR3))
+ ERegionShow("old-extents:", cw->extents);
+
+#if 0 /* FIXME - We shouldn't have to update clip if transparent */
+ if (cw->mode == WINDOW_UNREDIR || cw->mode == WINDOW_SOLID)
+#endif
+ _ECM_SET_CLIP_CHANGED();
+
+ if (cw->have_extents)
+ {
+ /* Invalidate old window region */
+ ERegionCopy(rgn_tmp2, cw->extents);
+ ECompMgrWinInvalidate(eo, invalidate);
+ /* Invalidate new window region */
+ ECompMgrWinSetExtents(eo);
+ ERegionUnion(rgn_tmp2, cw->extents);
+ ECompMgrDamageMergeObject(eo, rgn_tmp2);
+ }
+ else
+ {
+ ECompMgrWinInvalidate(eo, invalidate);
+ /* Invalidate new window region */
+ ECompMgrWinSetExtents(eo);
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ }
+}
+
+void
+ECompMgrWinDamageArea(EObj * eo, int x __UNUSED__, int y __UNUSED__,
+ int w __UNUSED__, int h __UNUSED__)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ ECompMgrDamageMergeObject(eo, cw->shape);
+}
+
+void
+ECompMgrWinChangeShadow(EObj * eo, int shadow)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (!cw || !eo->shown)
+ goto done;
+
+ if (!shadow && eo->shadow)
+ {
+ /* Disable shadow */
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ ECompMgrWinInvalidate(eo, INV_SHADOW);
+ }
+ else if (shadow && !eo->shadow)
+ {
+ /* Enable shadow */
+ ECompMgrWinInvalidate(eo, INV_SHADOW);
+ eo->shadow = shadow;
+ ECompMgrWinSetExtents(eo);
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ }
+ done:
+ eo->shadow = shadow;
+}
+
+static void
+ECompMgrWinConfigure(EObj * eo, XEvent * ev)
+{
+ int x, y, w, h, bw;
+ int change_xy, change_wh, change_bw;
+
+ x = ev->xconfigure.x;
+ y = ev->xconfigure.y;
+ w = ev->xconfigure.width;
+ h = ev->xconfigure.height;
+ bw = ev->xconfigure.border_width;
+
+ change_xy = EobjGetX(eo) != x || EobjGetY(eo) != y;
+ change_wh = EobjGetW(eo) != w || EobjGetH(eo) != h;
+ change_bw = EobjGetBW(eo) != bw;
+
+ EWindowSetGeometry(EobjGetWin(eo), x, y, w, h, bw);
+
+ ECompMgrWinMoveResize(eo, change_xy, change_wh, change_bw);
+}
+
+void
+ECompMgrWinReparent(EObj * eo, Desk * dsk, int change_xy)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ D1printf("ECompMgrWinReparent %#lx %#lx d=%d->%d x,y=%d,%d %d\n",
+ EobjGetXwin(eo), cw->extents,
+ (eo->desk) ? (int)eo->desk->num : -1, dsk->num,
+ EobjGetX(eo), EobjGetY(eo), change_xy);
+
+ if (!eo->shown)
+ {
+ if (change_xy)
+ ECompMgrWinInvalidate(eo, INV_POS);
+ return;
+ }
+
+ /* Invalidate old window region */
+ if (EDebug(EDBUG_TYPE_COMPMGR3))
+ ERegionShow("old-extents:", cw->extents);
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ if (change_xy)
+ {
+ ECompMgrWinInvalidate(eo, INV_POS);
+
+ /* Find new window region */
+ ECompMgrWinSetExtents(eo);
+ }
+ eo->desk = dsk;
+ _ECM_SET_STACK_CHANGED();
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ ECompMgrWinInvalidate(eo, INV_PIXMAP);
+}
+
+static void
+ECompMgrWinCirculate(EObj * eo, XEvent * ev)
+{
+ D1printf("ECompMgrWinCirculate %#lx %#lx\n", ev->xany.window,
+ EobjGetXwin(eo));
+
+ _ECM_SET_STACK_CHANGED();
+}
+
+void
+ECompMgrWinChangeShape(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ D1printf("ECompMgrWinChangeShape %#lx\n", EobjGetXwin(eo));
+ if (cw->extents == None)
+ return;
+
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ ECompMgrWinInvalidate(eo, INV_SHAPE); /* Invalidate extents and shape */
+ ECompMgrWinSetExtents(eo);
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ _ECM_SET_CLIP_CHANGED();
+}
+
+void
+ECompMgrWinRaiseLower(EObj * eo, int delta)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ D1printf("ECompMgrWinRaiseLower %#lx delta=%d\n", EobjGetXwin(eo), delta);
+
+ if (delta < 0) /* Raise */
+ _ECM_SET_STACK_CHANGED();
+ ECompMgrDamageMergeObject(eo, cw->extents);
+ if (delta > 0) /* Lower */
+ _ECM_SET_STACK_CHANGED();
+}
+
+void
+ECompMgrWinDel(EObj * eo)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ if (!cw)
+ return;
+
+ D1printf("ECompMgrWinDel %#lx\n", EobjGetXwin(eo));
+
+ if (eo->fading)
+ ECompMgrWinFadeEnd(eo, 1);
+
+ EventCallbackUnregister(EobjGetWin(eo), 0, ECompMgrHandleWindowEvent, eo);
+
+ if (!eo->gone)
+ {
+ ECompMgrWinInvalidate(eo, INV_PICTURE);
+
+ if (eo->noredir)
+ {
+ if (Mode_compmgr.mode == ECM_MODE_ROOT &&
+ eo->type == EOBJ_TYPE_DESK)
+ XCompositeUnredirectSubwindows(disp, EobjGetXwin(eo),
+ CompositeRedirectManual);
+ }
+ else
+ {
+ if (cw->damage != None)
+ XDamageDestroy(disp, cw->damage);
+
+ if (Mode_compmgr.mode == ECM_MODE_WINDOW)
+ XCompositeUnredirectWindow(disp, EobjGetXwin(eo),
+ CompositeRedirectManual);
+ }
+ }
+
+ ECompMgrWinInvalidate(eo, INV_ALL);
+ REGION_DESTROY(cw->extents);
+ REGION_DESTROY(cw->clip);
+
+ Efree(eo->cmhook);
+ eo->cmhook = NULL;
+
+ _ECM_SET_STACK_CHANGED();
+}
+
+static void
+ECompMgrWinDamage(EObj * eo, XEvent * ev __UNUSED__)
+{
+ ECmWinInfo *cw = eo->cmhook;
+ Display *dpy = disp;
+ XDamageNotifyEvent *de = (XDamageNotifyEvent *) ev;
+ XserverRegion parts;
+
+ D2printf("ECompMgrWinDamage %#lx %#lx damaged=%d %d,%d %dx%d\n",
+ ev->xany.window, EobjGetXwin(eo), cw->damaged,
+ de->area.x, de->area.y, de->area.width, de->area.height);
+
+ if (!cw->damaged)
+ {
+ parts = cw->extents;
+ XDamageSubtract(dpy, cw->damage, None, None);
+ cw->damaged = 1;
+ }
+ else
+ {
+ parts = rgn_tmp;
+ XDamageSubtract(dpy, cw->damage, None, parts);
+ ERegionTranslate(parts, EobjGetX(eo) + EobjGetBW(eo),
+ EobjGetY(eo) + EobjGetBW(eo));
+ }
+ eo->serial = ev->xany.serial;
+ ECompMgrDamageMergeObject(eo, parts);
+
+ if (eo->type == EOBJ_TYPE_EWIN)
+ ModulesSignal(ESIGNAL_EWIN_DAMAGE, eo);
+}
+
+static void
+ECompMgrWinDumpInfo(const char *txt, EObj * eo, XserverRegion rgn, int force)
+{
+ ECmWinInfo *cw = eo->cmhook;
+
+ Eprintf("%s %#lx: %d,%d %dx%d: %s\n", txt, EobjGetXwin(eo),
+ EobjGetX(eo), EobjGetY(eo), EobjGetW(eo), EobjGetH(eo),
+ EobjGetName(eo));
+ if (!cw)
+ {
+ Eprintf("Not managed\n");
+ return;
+ }
+
+ if (force || EDebug(EDBUG_TYPE_COMPMGR3))
+ {
+ Eprintf(" - pict=%#lx pmap=%#lx\n", cw->picture, cw->pixmap);
+
+ ERegionShow("win extents", cw->extents);
+ ERegionShow("win shape ", cw->shape);
+ ERegionShow("win clip ", cw->clip);
+ if (rgn != None)
+ ERegionShow("region", rgn);
+ }
+}
+
+static void
+ECompMgrDestroyClip(void)
+{
+ EObj *eo, *const *lst;
+ ECmWinInfo *cw;
+ int i, num;
+
+ lst = EobjListStackGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ eo = lst[i];
+ cw = eo->cmhook;
+ if (!cw)
+ continue;
+ cw->have_clip = 0;
+ }
+}
+
+static int
+ECompMgrDetermineOrder(EObj * const *lst, int num, EObj ** first,
+ EObj ** last, Desk * dsk, XserverRegion clip)
+{
+ EObj *eo, *eo_prev, *eo_first;
+ int i, stop;
+ ECmWinInfo *cw;
+
+ D1printf("ECompMgrDetermineOrder %d\n", dsk->num);
+ if (!lst)
+ lst = EobjListStackGet(&num);
+ if (clip == None)
+ {
+ ECompMgrDestroyClip();
+ clip = Mode_compmgr.rgn_clip;
+ ERegionEmpty(clip);
+ }
+
+ /* Determine overall paint order, top to bottom */
+ stop = 0;
+ eo_first = eo_prev = NULL;
+ Mode_compmgr.ghosts = 0;
+
+ for (i = 0; i < num; i++)
+ {
+ eo = lst[i];
+
+ cw = eo->cmhook;
+
+ if (!cw)
+ continue;
+
+ if ((!eo->shown && !eo->fading) || eo->desk != dsk)
+ continue;
+
+ /* Region of shaped window in screen coordinates */
+ if (!cw->have_shape)
+ ECompMgrWinSetShape(eo);
+
+ /* Region of window in screen coordinates, including shadows */
+ if (!cw->have_extents)
+ ECompMgrWinSetExtents(eo);
+
+ D3printf(" - %#lx desk=%d shown=%d fading=%d fadeout=%d\n",
+ EobjGetXwin(eo), eo->desk->num, eo->shown, eo->fading,
+ cw->fadeout);
+
+ if (eo->type == EOBJ_TYPE_DESK)
+ {
+ EObj *eo1, *eo2;
+ Desk *d = (Desk *) eo;
+
+ if (!d->viewable)
+ continue;
+
+#if USE_CLIP_RELATIVE_TO_DESK
+ ERegionTranslate(clip, -EoGetX(d), -EoGetY(d));
+#endif
+ stop = ECompMgrDetermineOrder(lst, num, &eo1, &eo2, d, clip);
+#if USE_CLIP_RELATIVE_TO_DESK
+ ERegionTranslate(clip, EoGetX(d), EoGetY(d));
+#endif
+ if (eo1)
+ {
+ if (!eo_first)
+ eo_first = eo1;
+ if (eo_prev)
+ eo_prev->cmhook->next = eo1;
+ eo1->cmhook->prev = eo_prev;
+ eo_prev = eo2;
+ }
+
+#if USE_BG_WIN_ON_ALL_DESKS /* Only if using per desk bg overlay */
+ /* FIXME - We should break when the clip region becomes empty */
+ if (EobjGetX(eo) == 0 && EobjGetY(eo) == 0)
+ stop = 1;
+ if (stop)
+ break;
+#endif
+ }
+
+ if (cw->clip == None)
+ cw->clip = ERegionCreate();
+ ERegionCopy(cw->clip, clip);
+ cw->have_clip = 1;
+
+ ECompMgrWinSetPicts(eo);
+
+ D3printf(" - %#lx desk=%d shown=%d dam=%d pict=%#lx\n",
+ EobjGetXwin(eo), eo->desk->num, eo->shown, cw->damaged,
+ cw->picture);
+
+#if 0 /* FIXME - Need this? */
+ if (!cw->damaged)
+ continue;
+#endif
+ if (cw->picture == None && !eo->noredir)
+ continue;
+
+ if (eo->ghost)
+ {
+ Mode_compmgr.ghosts = 1;
+ continue;
+ }
+
+ D3printf
+ ("ECompMgrDetermineOrder hook in %d - %#lx desk=%d shown=%d\n",
+ dsk->num, EobjGetXwin(eo), eo->desk->num, eo->shown);
+
+ if (!eo_first)
+ eo_first = eo;
+ cw->prev = eo_prev;
+ if (eo_prev)
+ eo_prev->cmhook->next = eo;
+ eo_prev = eo;
+
+ switch (cw->mode)
+ {
+ case WINDOW_UNREDIR:
+ case WINDOW_SOLID:
+ D3printf("- clip %#lx %#lx %d,%d %dx%d: %s\n", EobjGetXwin(eo),
+ cw->clip, EobjGetX(eo), EobjGetY(eo), EobjGetW(eo),
+ EobjGetH(eo), EobjGetName(eo));
+#if USE_CLIP_RELATIVE_TO_DESK
+ ERegionUnionOffset(clip, 0, 0, cw->shape);
+#else
+ ERegionUnionOffset(clip, EoGetX(dsk), EoGetY(dsk), cw->shape);
+#endif
+ break;
+
+ default:
+ D3printf("- noclip %#lx %#lx %d,%d %dx%d: %s\n", EobjGetXwin(eo),
+ cw->clip, EobjGetX(eo), EobjGetY(eo), EobjGetW(eo),
+ EobjGetH(eo), EobjGetName(eo));
+ break;
+ }
+
+#if !USE_BG_WIN_ON_ALL_DESKS /* Not if using per desk bg overlay */
+ /* FIXME - We should break when the clip region becomes empty */
+ if (eo->type == EOBJ_TYPE_DESK &&
+ EobjGetX(eo) == 0 && EobjGetY(eo) == 0)
+ stop = 1;
+ if (stop)
+ break;
+#endif
+ }
+ if (eo_prev)
+ eo_prev->cmhook->next = NULL;
+
+ *first = eo_first;
+ *last = eo_prev;
+
+ Mode_compmgr.reorder = 0;
+ return stop;
+}
+
+static XserverRegion
+ECompMgrRepaintObjSetClip(XserverRegion rgn, XserverRegion damage,
+ XserverRegion clip, int x, int y)
+{
+ ERegionCopy(rgn, damage);
+#if USE_CLIP_RELATIVE_TO_DESK
+ ERegionSubtractOffset(rgn, x, y, clip);
+#else
+ ERegionSubtractOffset(rgn, 0, 0, clip);
+ x = y = 0;
+#endif
+ return rgn;
+}
+
+static void
+ECompMgrRepaintObj(Picture pbuf, XserverRegion region, EObj * eo, int mode)
+{
+ static XserverRegion rgn_clip = None;
+ Display *dpy = disp;
+ ECmWinInfo *cw;
+ Desk *dsk = eo->desk;
+ int x, y;
+ XserverRegion clip;
+ Picture alpha;
+
+ cw = eo->cmhook;
+
+ if (rgn_clip == None)
+ rgn_clip = ERegionCreate();
+
+ x = EoGetX(dsk);
+ y = EoGetY(dsk);
+
+ if (mode == 0)
+ {
+ /* Painting opaque windows top down. */
+#if 0
+ if (ERegionIsEmpty(clip))
+ {
+ D2printf(" - Quit - repaint region is empty\n");
+ return;
+ }
+#endif
+
+ switch (cw->mode)
+ {
+ case WINDOW_UNREDIR:
+ case WINDOW_SOLID:
+ clip = ECompMgrRepaintObjSetClip(rgn_clip, region, cw->clip, x, y);
+ if (EDebug(EDBUG_TYPE_COMPMGR2))
+ ECompMgrWinDumpInfo("ECompMgrRepaintObj solid", eo, clip, 0);
+ XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, clip);
+ XRenderComposite(dpy, PictOpSrc, cw->picture, None, pbuf,
+ 0, 0, 0, 0, x + cw->rcx, y + cw->rcy, cw->rcw,
+ cw->rch);
+ break;
+ }
+ }
+ else
+ {
+ /* Painting trans stuff bottom up. */
+
+ switch (cw->mode)
+ {
+ default:
+ clip = None;
+ break;
+
+ case WINDOW_TRANS:
+ case WINDOW_ARGB:
+ clip = ECompMgrRepaintObjSetClip(rgn_clip, region, cw->clip, x, y);
+ if (EDebug(EDBUG_TYPE_COMPMGR2))
+ ECompMgrWinDumpInfo("ECompMgrRepaintObj trans", eo, clip, 0);
+ XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, clip);
+ if (cw->opacity != OPAQUE && !cw->pict_alpha)
+ cw->pict_alpha =
+ EPictureCreateSolid(True, OP32To8(cw->opacity),
+ Conf_compmgr.shadows.color);
+ XRenderComposite(dpy, PictOpOver, cw->picture, cw->pict_alpha,
+ pbuf, 0, 0, 0, 0, x + cw->rcx, y + cw->rcy,
+ cw->rcw, cw->rch);
+ break;
+ }
+
+#if ENABLE_SHADOWS
+ if (!cw->has_shadow)
+ return;
+
+ if (clip == None)
+ clip = ECompMgrRepaintObjSetClip(rgn_clip, region, cw->clip, x, y);
+ ERegionSubtractOffset(clip, x, y, cw->shape);
+ XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, clip);
+
+ switch (Mode_compmgr.shadow_mode)
+ {
+ case ECM_SHADOWS_SHARP:
+ case ECM_SHADOWS_ECHO:
+ if (cw->opacity != OPAQUE && !cw->shadow_alpha)
+ cw->shadow_alpha =
+ EPictureCreateSolid(True,
+ OP32To8(cw->opacity *
+ Mode_compmgr.opac_sharp),
+ Conf_compmgr.shadows.color);
+ alpha = cw->shadow_alpha ? cw->shadow_alpha : transBlackPicture;
+ if (Mode_compmgr.shadow_mode == ECM_SHADOWS_SHARP)
+ XRenderComposite(dpy, PictOpOver, alpha, cw->picture, pbuf,
+ 0, 0, 0, 0,
+ x + cw->rcx + cw->shadow_dx,
+ y + cw->rcy + cw->shadow_dy,
+ cw->shadow_width, cw->shadow_height);
+ else
+ XRenderComposite(dpy, PictOpOver, cw->picture, alpha, pbuf,
+ 0, 0, 0, 0,
+ x + cw->rcx + cw->shadow_dx,
+ y + cw->rcy + cw->shadow_dy,
+ cw->shadow_width, cw->shadow_height);
+ break;
+
+ case ECM_SHADOWS_BLURRED:
+ if (cw->shadow_pict == None)
+ break;
+
+ if (cw->opacity != OPAQUE && !cw->pict_alpha)
+ cw->pict_alpha =
+ EPictureCreateSolid(True, OP32To8(cw->opacity),
+ Conf_compmgr.shadows.color);
+ alpha = (cw->pict_alpha) ? cw->pict_alpha : transBlackPicture;
+ XRenderComposite(dpy, PictOpOver, alpha, cw->shadow_pict, pbuf,
+ 0, 0, 0, 0,
+ x + cw->rcx + cw->shadow_dx,
+ y + cw->rcy + cw->shadow_dy,
+ cw->shadow_width, cw->shadow_height);
+ break;
+ }
+#endif
+ }
+}
+
+static void
+ECompMgrPaintGhosts(Picture pict, XserverRegion damage)
+{
+ EObj *eo, *const *lst;
+ int i, num;
+
+ lst = EobjListStackGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ eo = lst[i];
+ if (!eo->shown || !eo->ghost)
+ continue;
+
+ switch (eo->cmhook->mode)
+ {
+ case WINDOW_UNREDIR:
+ case WINDOW_SOLID:
+ ECompMgrRepaintObj(pict, Mode_compmgr.rgn_screen, eo, 0);
+ break;
+ case WINDOW_TRANS:
+ case WINDOW_ARGB:
+ ECompMgrRepaintObj(pict, Mode_compmgr.rgn_screen, eo, 1);
+ break;
+ }
+
+ /* Subtract window region from damage region */
+ ERegionSubtractOffset(damage, 0, 0, eo->cmhook->shape);
+ }
+}
+
+void
+ECompMgrRepaint(void)
+{
+ Display *dpy = disp;
+ EObj *eo;
+ Picture pbuf;
+ Desk *dsk = DeskGet(0);
+
+ if (!Mode_compmgr.active || !Mode_compmgr.got_damage)
+ return;
+
+ ERegionIntersect(Mode_compmgr.damage, Mode_compmgr.rgn_screen);
+
+ D2printf("ECompMgrRepaint rootBuffer=%#lx rootPicture=%#lx\n",
+ rootBuffer, rootPicture);
+ if (EDebug(EDBUG_TYPE_COMPMGR2))
+ ERegionShow("damage", Mode_compmgr.damage);
+
+ pbuf = rootBuffer;
+
+ if (!dsk)
+ return;
+
+ /* Do paint order list linking */
+ if (Mode_compmgr.reorder)
+ ECompMgrDetermineOrder(NULL, 0, &Mode_compmgr.eo_first,
+ &Mode_compmgr.eo_last, dsk, None);
+
+ /* Paint opaque windows top down */
+ for (eo = Mode_compmgr.eo_first; eo; eo = eo->cmhook->next)
+ ECompMgrRepaintObj(pbuf, Mode_compmgr.damage, eo, 0);
+
+#if 0 /* FIXME - NoBg? */
+ Picture pict;
+
+ if (EDebug(EDBUG_TYPE_COMPMGR2))
+ ERegionShow("after opaque", region);
+
+ /* Repaint background, clipped by damage region and opaque windows */
+ pict = dsk->o.cmhook->picture;
+ D1printf("ECompMgrRepaint desk picture=%#lx\n", pict);
+ XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, region);
+ XRenderComposite(dpy, PictOpSrc, pict, None, pbuf,
+ 0, 0, 0, 0, 0, 0, WinGetW(VROOT), WinGetH(VROOT));
+#endif
+
+ /* Paint trans windows and shadows bottom up */
+ for (eo = Mode_compmgr.eo_last; eo; eo = eo->cmhook->prev)
+ ECompMgrRepaintObj(pbuf, Mode_compmgr.damage, eo, 1);
+
+ /* Paint any ghost windows (adjusting damage region) */
+ if (Mode_compmgr.ghosts)
+ ECompMgrPaintGhosts(rootPicture, Mode_compmgr.damage);
+
+ if (pbuf != rootPicture)
+ {
+ XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, Mode_compmgr.damage);
+ XRenderComposite(dpy, PictOpSrc, pbuf, None, rootPicture,
+ 0, 0, 0, 0, 0, 0, WinGetW(VROOT), WinGetH(VROOT));
+ }
+
+ Mode_compmgr.got_damage = 0;
+}
+
+static void
+_ECompMgrIdler(void *data __UNUSED__)
+{
+ /* Do we get here on auto? */
+ if (!Mode_compmgr.got_damage /* || Mode_compmgr.mode == ECM_MODE_AUTO */ )
+ return;
+ ECompMgrRepaint();
+}
+
+static void
+ECompMgrRootBufferCreate(unsigned int w, unsigned int h)
+{
+ /* Root buffer picture and pixmap */
+ rootBuffer = EPictureCreateBuffer(VROOT, w, h, &Mode_compmgr.pmap);
+
+ /* Screen region */
+ Mode_compmgr.rgn_screen = ERegionCreateRect(0, 0, w, h);
+
+ /* Overall clip region used while recalculating window clip regions */
+ Mode_compmgr.rgn_clip = ERegionCreate();
+}
+
+static void
+ECompMgrRootBufferDestroy(void)
+{
+ PICTURE_DESTROY(rootBuffer);
+ PIXMAP_DESTROY(Mode_compmgr.pmap);
+
+ REGION_DESTROY(Mode_compmgr.rgn_screen);
+ REGION_DESTROY(Mode_compmgr.rgn_clip);
+}
+
+Pixmap
+ECompMgrGetRootBuffer(void)
+{
+ return Mode_compmgr.pmap;
+}
+
+static void
+ECompMgrRootConfigure(void *prm __UNUSED__, XEvent * ev)
+{
+ D1printf("ECompMgrRootConfigure root\n");
+
+ ECompMgrRootBufferDestroy();
+ ECompMgrRootBufferCreate(ev->xconfigure.width, ev->xconfigure.height);
+}
+
+#if USE_DESK_EXPOSE /* FIXME - Remove? */
+static void
+ECompMgrRootExpose(void *prm __UNUSED__, XEvent * ev)
+{
+ static XRectangle *expose_rects = 0;
+ static int size_expose = 0;
+ static int n_expose = 0;
+ int more = ev->xexpose.count + 1;
+
+ if (ev->xexpose.window != WinGetXwin(VROOT))
+ return;
+
+ D1printf("ECompMgrRootExpose %d %d %d\n", n_expose, size_expose,
+ ev->xexpose.count);
+
+ if (n_expose == size_expose)
+ {
+ expose_rects = EREALLOC(XRectangle, expose_rects, size_expose + more);
+ size_expose += more;
+ }
+ expose_rects[n_expose].x = ev->xexpose.x;
+ expose_rects[n_expose].y = ev->xexpose.y;
+ expose_rects[n_expose].width = ev->xexpose.width;
+ expose_rects[n_expose].height = ev->xexpose.height;
+ n_expose++;
+ if (ev->xexpose.count == 0)
+ {
+ XserverRegion region;
+
+ region = ERegionCreateFromRects(expose_rects, n_expose);
+
+ ECompMgrDamageMerge(region);
+ ERegionDestroy(region);
+ n_expose = 0;
+ }
+}
+#endif
+
+#if ENABLE_SHADOWS
+static void
+ECompMgrShadowsInit(int mode, int cleanup)
+{
+ Mode_compmgr.shadow_mode = mode;
+
+ Conf_compmgr.shadows.blur.opacity =
+ OpacityFix(Conf_compmgr.shadows.blur.opacity, 100);
+ Mode_compmgr.opac_blur = .01 * Conf_compmgr.shadows.blur.opacity;
+ Conf_compmgr.shadows.sharp.opacity =
+ OpacityFix(Conf_compmgr.shadows.sharp.opacity, 100);
+ Mode_compmgr.opac_sharp = .01 * Conf_compmgr.shadows.sharp.opacity;
+
+ Efree(gaussianMap);
+ gaussianMap = NULL;
+
+ if (mode != ECM_SHADOWS_OFF)
+ {
+ if (mode == ECM_SHADOWS_BLURRED)
+ transBlackPicture =
+ EPictureCreateSolid(True, 255, Conf_compmgr.shadows.color);
+ else
+ transBlackPicture =
+ EPictureCreateSolid(True,
+ OP32To8(Mode_compmgr.opac_sharp * OPAQUE),
+ Conf_compmgr.shadows.color);
+ }
+ else
+ {
+ PICTURE_DESTROY(transBlackPicture);
+ }
+
+ if (cleanup)
+ {
+ EObj *const *lst;
+ int i, num;
+
+ lst = EobjListStackGet(&num);
+ for (i = 0; i < num; i++)
+ ECompMgrWinInvalidate(lst[i], INV_SHADOW);
+ _ECM_SET_SHADOW_CHANGED(); /* Force extents/shadow update */
+ }
+}
+#else
+#define ECompMgrShadowsInit(mode, cleanup)
+#endif
+
+int
+ECompMgrIsActive(void)
+{
+ return Mode_compmgr.active;
+}
+
+static void
+ECompMgrStart(void)
+{
+ EObj *const *lst;
+ int i, num;
+ XRenderPictFormat *pictfmt;
+ XRenderPictureAttributes pa;
+
+ if (Mode_compmgr.active || Conf_compmgr.mode == ECM_MODE_OFF)
+ return;
+ Conf_compmgr.enable = Mode_compmgr.active = 1;
+ Mode_compmgr.mode = Conf_compmgr.mode;
+
+ Conf_compmgr.override_redirect.opacity =
+ OpacityFix(Conf_compmgr.override_redirect.opacity, 100);
+
+ ECompMgrRootBufferCreate(WinGetW(VROOT), WinGetH(VROOT));
+
+ Mode_compmgr.root = WinGetXwin(VROOT);
+#if USE_COMPOSITE_OVERLAY_WINDOW
+ if (Conf_compmgr.use_cow && !Mode.wm.window)
+ {
+ Mode_compmgr.cow = XCompositeGetOverlayWindow(disp, WinGetXwin(VROOT));
+ if (Mode_compmgr.cow != None)
+ {
+ /* Ok, got the cow! */
+ Mode_compmgr.root = Mode_compmgr.cow;
+ /* It is possible to get it stacked below others?!? */
+ XRaiseWindow(disp, Mode_compmgr.cow);
+ /* Pass all input events through */
+ XShapeCombineRectangles(disp, Mode_compmgr.cow, ShapeInput, 0, 0,
+ NULL, 0, ShapeSet, Unsorted);
+ D1printf("COW/CMroot=%#lx/%#lx\n",
+ Mode_compmgr.cow, Mode_compmgr.root);
+ }
+ }
+ else
+ {
+ Mode_compmgr.cow = None;
+ }
+#endif
+
+ pa.subwindow_mode = IncludeInferiors;
+ pictfmt = XRenderFindVisualFormat(disp, WinGetVisual(VROOT));
+ rootPicture =
+ XRenderCreatePicture(disp, Mode_compmgr.root, pictfmt, CPSubwindowMode,
+ &pa);
+
+ ECompMgrShadowsInit(Conf_compmgr.shadows.mode, 0);
+
+ EGrabServer();
+
+ switch (Mode_compmgr.mode)
+ {
+ case ECM_MODE_ROOT:
+ XCompositeRedirectSubwindows(disp, WinGetXwin(VROOT),
+ CompositeRedirectManual);
+#if USE_DESK_EXPOSE /* FIXME - Remove? */
+ ESelectInputChange(WinGetXwin(VROOT), ExposureMask, 0);
+#endif
+ break;
+ case ECM_MODE_WINDOW:
+#if USE_DESK_EXPOSE /* FIXME - Remove? */
+ ESelectInputChange(WinGetXwin(VROOT), ExposureMask, 0);
+#endif
+ break;
+ case ECM_MODE_AUTO:
+ XCompositeRedirectSubwindows(disp, WinGetXwin(VROOT),
+ CompositeRedirectAutomatic);
+ break;
+ }
+
+ Mode_compmgr.got_damage = 0;
+
+ rgn_tmp = ERegionCreate();
+ rgn_tmp2 = ERegionCreate();
+
+ EventCallbackRegister(VROOT, 0, ECompMgrHandleRootEvent, NULL);
+
+ wm_cm_sel = SelectionAcquire("_NET_WM_CM_S", NULL, NULL);
+
+ lst = EobjListStackGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ ECompMgrWinNew(lst[i]);
+ if (lst[i]->shown)
+ ECompMgrWinMap(lst[i]);
+ }
+
+#if !USE_BG_WIN_ON_ALL_DESKS
+ DesksBackgroundRefresh(NULL, DESK_BG_RECONFIGURE_ALL);
+#endif
+ _ECM_SET_CLIP_CHANGED();
+ EUngrabServer();
+ ESync(0);
+}
+
+static void
+ECompMgrStop(void)
+{
+ EObj *const *lst1, **lst;
+ int i, num;
+
+ if (!Mode_compmgr.active)
+ return;
+ Conf_compmgr.enable = Mode_compmgr.active = 0;
+
+ EGrabServer();
+
+ SelectionRelease(wm_cm_sel);
+ wm_cm_sel = NULL;
+
+ PICTURE_DESTROY(rootPicture);
+
+ ECompMgrRootBufferDestroy();
+
+ ECompMgrShadowsInit(ECM_SHADOWS_OFF, 0);
+
+ lst1 = EobjListStackGet(&num);
+ if (num > 0)
+ {
+ lst = EMALLOC(EObj *, num);
+ if (lst)
+ {
+ memcpy(lst, lst1, num * sizeof(EObj *));
+ for (i = 0; i < num; i++)
+ {
+ if (lst[i]->type == EOBJ_TYPE_EXT)
+ EobjUnregister(lst[i]); /* Modifies the object stack! */
+ else
+ ECompMgrWinDel(lst[i]);
+ }
+ Efree(lst);
+ }
+ }
+
+ Mode_compmgr.got_damage = 0;
+ REGION_DESTROY(Mode_compmgr.damage);
+ REGION_DESTROY(rgn_tmp);
+ REGION_DESTROY(rgn_tmp2);
+
+ if (Mode_compmgr.mode == ECM_MODE_ROOT)
+ XCompositeUnredirectSubwindows(disp, WinGetXwin(VROOT),
+ CompositeRedirectManual);
+
+ EventCallbackUnregister(VROOT, 0, ECompMgrHandleRootEvent, NULL);
+
+#if USE_COMPOSITE_OVERLAY_WINDOW
+ if (Mode_compmgr.cow != None)
+ {
+ XCompositeReleaseOverlayWindow(disp, WinGetXwin(VROOT));
+ Mode_compmgr.cow = None;
+ }
+#endif
+
+#if !USE_BG_WIN_ON_ALL_DESKS
+ DesksBackgroundRefresh(NULL, DESK_BG_RECONFIGURE_ALL);
+#endif
+ EUngrabServer();
+ ESync(0);
+}
+
+void
+ECompMgrConfigGet(cfg_composite * cfg)
+{
+ cfg->enable = Conf_compmgr.enable;
+ cfg->shadow = Conf_compmgr.shadows.mode;
+ cfg->fading = Conf_compmgr.fading.enable;
+ cfg->opacity_focused = Conf.opacity.focused;
+ cfg->opacity_unfocused = Conf.opacity.unfocused;
+ cfg->opacity_override = Conf_compmgr.override_redirect.opacity;
+ cfg->fade_speed = 100 - (Conf_compmgr.fading.time / 10);
+}
+
+void
+ECompMgrConfigSet(const cfg_composite * cfg)
+{
+ if (Conf_compmgr.mode == ECM_MODE_OFF)
+ {
+ if (cfg->enable)
+ DialogOK("Enable Composite Error",
+ _("Cannot enable Composite Manager.\n"
+ "Use xdpyinfo to check that\n"
+ "Composite, Damage, Fixes, and Render\n"
+ "extensions are loaded."));
+ return;
+ }
+
+ if (cfg->enable != Conf_compmgr.enable)
+ {
+ Conf_compmgr.enable = cfg->enable;
+ Conf_compmgr.shadows.mode = cfg->shadow;
+ if (cfg->enable)
+ ECompMgrStart();
+ else
+ ECompMgrStop();
+ }
+ else
+ {
+ if (cfg->shadow != Conf_compmgr.shadows.mode)
+ {
+ Conf_compmgr.shadows.mode = cfg->shadow;
+ if (Conf_compmgr.enable)
+ {
+ ECompMgrShadowsInit(Conf_compmgr.shadows.mode, 1);
+ ECompMgrDamageAll();
+ }
+ }
+ }
+
+ Conf_compmgr.fading.enable = cfg->fading;
+ Conf_compmgr.fading.time = (100 - cfg->fade_speed) * 10;
+
+ Conf.opacity.focused = cfg->opacity_focused;
+ Conf.opacity.unfocused = cfg->opacity_unfocused;
+ Conf_compmgr.override_redirect.opacity = cfg->opacity_override;
+
+ EobjsOpacityUpdate(Conf_compmgr.override_redirect.opacity);
+
+ autosave();
+}
+
+/*
+ * Event handlers
+ */
+#define USE_WINDOW_EVENTS 0
+
+static void
+ECompMgrHandleWindowEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ EObj *eo = (EObj *) prm;
+
+ D2printf("ECompMgrHandleWindowEvent: type=%d\n", ev->type);
+
+ switch (ev->type)
+ {
+#if USE_WINDOW_EVENTS
+ case ConfigureNotify:
+ ECompMgrWinConfigure(eo, ev);
+ break;
+
+ case MapNotify:
+ ECompMgrWinMap(eo);
+ break;
+ case UnmapNotify:
+ if (eo->type == EOBJ_TYPE_EXT && eo->cmhook)
+ {
+ ECompMgrWinUnmap(eo);
+ eo->shown = 0;
+ }
+ break;
+
+ case CirculateNotify:
+ ECompMgrWinCirculate(eo, ev);
+ break;
+#endif
+
+#if USE_DESK_VISIBILITY
+ case VisibilityNotify:
+ ECompMgrDeskVisibility(eo, ev);
+ break;
+#endif
+
+ case EX_EVENT_DAMAGE_NOTIFY:
+ ECompMgrWinDamage(eo, ev);
+ break;
+ }
+}
+
+static void
+ECompMgrHandleRootEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Window xwin;
+ EObj *eo;
+
+ D2printf("ECompMgrHandleRootEvent: type=%d\n", ev->type);
+
+ switch (ev->type)
+ {
+ case CreateNotify:
+ xwin = ev->xcreatewindow.window;
+ case_CreateNotify:
+ if (Conf_compmgr.override_redirect.mode != ECM_OR_ON_CREATE)
+ break;
+ eo = EobjListStackFind(xwin);
+ if (!eo)
+ EobjRegister(xwin, EOBJ_TYPE_EXT);
+ break;
+
+ case DestroyNotify:
+ xwin = ev->xdestroywindow.window;
+ case_DestroyNotify:
+ eo = EobjListStackFind(xwin);
+ if (eo && eo->type == EOBJ_TYPE_EXT)
+ {
+ if (ev->type == DestroyNotify)
+ eo->gone = 1;
+ EobjUnregister(eo);
+ }
+ break;
+
+ case ReparentNotify:
+ case EX_EVENT_REPARENT_GONE:
+ xwin = ev->xreparent.window;
+ if (ev->xreparent.parent == WinGetXwin(VROOT))
+ goto case_CreateNotify;
+ else
+ goto case_DestroyNotify;
+
+ case ConfigureNotify:
+ if (ev->xconfigure.window == WinGetXwin(VROOT))
+ {
+ ECompMgrRootConfigure(prm, ev);
+ }
+ else
+ {
+ eo = EobjListStackFind(ev->xconfigure.window);
+ if (eo && eo->type == EOBJ_TYPE_EXT && eo->cmhook)
+ {
+ ECompMgrWinConfigure(eo, ev);
+ }
+ }
+ break;
+
+ case MapNotify:
+#if USE_COMPOSITE_OVERLAY_WINDOW
+ if (ev->xmap.window == Mode_compmgr.cow)
+ break;
+#endif
+ eo = EobjListStackFind(ev->xmap.window);
+ if (!eo)
+ eo = EobjRegister(ev->xmap.window, EOBJ_TYPE_EXT);
+ if (eo && eo->type == EOBJ_TYPE_EXT && eo->cmhook)
+ {
+ eo->shown = 1;
+ EobjListStackRaise(eo, 0);
+ ECompMgrWinMap(eo);
+ }
+ break;
+
+ case UnmapNotify:
+ case EX_EVENT_UNMAP_GONE:
+ eo = EobjListStackFind(ev->xunmap.window);
+ if (eo && eo->type == EOBJ_TYPE_EXT && eo->cmhook)
+ {
+ if (ev->type == EX_EVENT_UNMAP_GONE)
+ eo->gone = 1;
+#if 0
+ /* No. Unredirection seems to cause map/unmap => loop */
+ if (Conf_compmgr.override_redirect.mode == ECM_OR_ON_MAPUNMAP)
+ {
+ EobjUnregister(eo);
+ }
+ else
+#endif
+ {
+ ECompMgrWinUnmap(eo);
+ eo->shown = 0;
+ }
+ }
+ break;
+
+ case CirculateNotify:
+ eo = EobjListStackFind(ev->xcirculate.window);
+ if (eo && eo->cmhook)
+ ECompMgrWinCirculate(eo, ev);
+ break;
+
+#if USE_DESK_EXPOSE /* FIXME - Remove? */
+ case Expose:
+ if (Mode_compmgr.shadow_mode != ECM_SHADOWS_OFF)
+ ECompMgrRootExpose(prm, ev);
+ break;
+#endif
+ }
+}
+
+/*
+ * Module functions
+ */
+
+static void
+ECompMgrInit(void)
+{
+ if (!XEXT_AVAILABLE(XEXT_CM_ALL))
+ {
+ Conf_compmgr.mode = ECM_MODE_OFF;
+ goto done;
+ }
+
+ Mode_compmgr.use_pixmap = Conf_compmgr.use_name_pixmap;
+
+#if 0 /* TBD - Force ECM_MODE_ROOT at startup */
+ if (Conf_compmgr.mode == ECM_MODE_OFF)
+#endif
+ Conf_compmgr.mode = ECM_MODE_ROOT;
+
+ done:
+ if (Conf_compmgr.mode == ECM_MODE_OFF)
+ Conf_compmgr.enable = 0;
+ D1printf("ECompMgrInit: enable=%d mode=%d\n", Conf_compmgr.enable,
+ Conf_compmgr.mode);
+}
+
+static void
+ECompMgrSighan(int sig, void *prm __UNUSED__)
+{
+ if (sig != ESIGNAL_INIT && Mode_compmgr.mode == ECM_MODE_OFF)
+ return;
+
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ ECompMgrInit();
+ if (Conf_compmgr.enable)
+ ECompMgrStart();
+ IdlerAdd(_ECompMgrIdler, NULL);
+ break;
+ }
+}
+
+static void
+CompMgrIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ IpcPrintf("CompMgr - on=%d\n", Mode_compmgr.active);
+ }
+ else if (!strcmp(cmd, "start"))
+ {
+ ECompMgrStart();
+ autosave();
+ }
+ else if (!strcmp(cmd, "stop"))
+ {
+ ECompMgrStop();
+ autosave();
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ /* TBD */
+ }
+ else if (!strncmp(cmd, "oi", 2))
+ {
+ Window win;
+ EObj *eo;
+
+ win = None;
+ sscanf(prm, "%lx", &win);
+ eo = EobjListStackFind(win);
+ if (eo)
+ ECompMgrWinDumpInfo("EObj", eo, None, 1);
+ }
+}
+
+static const IpcItem CompMgrIpcArray[] = {
+ {
+ CompMgrIpc,
+ "compmgr", "cm",
+ "Composite manager functions",
+ " cm ? Show info\n"
+ " cm start Start composite manager\n"
+ " cm stop Stop composite manager\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(CompMgrIpcArray)/sizeof(IpcItem))
+
+static const CfgItem CompMgrCfgItems[] = {
+ CFG_ITEM_BOOL(Conf_compmgr, enable, 0),
+ CFG_ITEM_INT(Conf_compmgr, mode, ECM_MODE_ROOT),
+ CFG_ITEM_INT(Conf_compmgr, shadows.mode, 0),
+ CFG_ITEM_INT(Conf_compmgr, shadows.offset_x, 3),
+ CFG_ITEM_INT(Conf_compmgr, shadows.offset_y, 5),
+ CFG_ITEM_INT(Conf_compmgr, shadows.blur.radius, 5),
+ CFG_ITEM_INT(Conf_compmgr, shadows.blur.opacity, 75),
+ CFG_ITEM_INT(Conf_compmgr, shadows.sharp.opacity, 30),
+ CFG_ITEM_HEX(Conf_compmgr, shadows.color, 0),
+ CFG_ITEM_BOOL(Conf_compmgr, resize_fix_enable, 0),
+ CFG_ITEM_BOOL(Conf_compmgr, use_name_pixmap, 0),
+#if USE_COMPOSITE_OVERLAY_WINDOW
+ CFG_ITEM_BOOL(Conf_compmgr, use_cow, 1),
+#endif
+ CFG_ITEM_BOOL(Conf_compmgr, fading.enable, 1),
+ CFG_ITEM_INT(Conf_compmgr, fading.time, 200),
+ CFG_ITEM_INT(Conf_compmgr, override_redirect.mode, 1),
+ CFG_ITEM_INT(Conf_compmgr, override_redirect.opacity, 90),
+};
+#define N_CFG_ITEMS (sizeof(CompMgrCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModCompMgr;
+const EModule ModCompMgr = {
+ "compmgr", "cm",
+ ECompMgrSighan,
+ {N_IPC_FUNCS, CompMgrIpcArray},
+ {N_CFG_ITEMS, CompMgrCfgItems}
+};
+
+#endif /* USE_COMPOSITE */
+
+/*
+ * $Id: xcompmgr.c,v 1.26 2004/08/14 21:39:51 keithp Exp $
+ *
+ * Copyright © 2003 Keith Packard
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+/*
+ * Modified by Matthew Hawn. I don't know what to say here so follow what it
+ * says above. Not that I can really do anything about it
+ */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ECOMPMGR_H
+#define _ECOMPMGR_H
+
+#if USE_COMPOSITE
+
+#include "eobj.h"
+#include "etypes.h"
+
+typedef struct {
+ char enable;
+ int shadow;
+ char fading;
+ int fade_speed;
+ int opacity_focused;
+ int opacity_unfocused;
+ int opacity_override;
+} cfg_composite;
+
+int ECompMgrIsActive(void);
+
+int ECompMgrDeskConfigure(Desk * dsk);
+
+Pixmap ECompMgrGetRootBuffer(void);
+
+void ECompMgrWinNew(EObj * eo);
+void ECompMgrWinDel(EObj * eo);
+void ECompMgrWinMap(EObj * eo);
+void ECompMgrWinUnmap(EObj * eo);
+void ECompMgrWinMoveResize(EObj * eo, int change_xy,
+ int change_wh, int change_bw);
+void ECompMgrWinDamageArea(EObj * eo, int x, int y, int w,
+ int h);
+void ECompMgrWinReparent(EObj * eo, Desk * dsk, int change_xy);
+void ECompMgrWinRaiseLower(EObj * eo, int delta);
+void ECompMgrWinChangeShape(EObj * eo);
+void ECompMgrWinChangeOpacity(EObj * eo, unsigned int opacity);
+void ECompMgrWinChangeShadow(EObj * eo, int shadow);
+Pixmap ECompMgrWinGetPixmap(const EObj * eo);
+void ECompMgrWinClipToGC(EObj * eo, GC gc);
+
+void ECompMgrConfigGet(cfg_composite * cfg);
+void ECompMgrConfigSet(const cfg_composite * cfg);
+
+void ECompMgrMoveResizeFix(EObj * eo, int x, int y, int w,
+ int h);
+
+void ECompMgrRepaint(void);
+
+#else
+
+#define ECompMgrIsActive() 0
+
+#define ECompMgrDeskConfigure(dsk) 0
+
+#define ECompMgrGetRootBuffer() None
+
+#endif
+
+#endif /* _ECOMPMGR_H */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "econfig.h"
+#include "emodule.h"
+#include <ctype.h>
+
+/*
+ * Braindead flat ASCII config file implementation
+ */
+
+typedef struct {
+ char *key;
+ char *value;
+} ECfgFileItem;
+
+typedef struct {
+ FILE *fs;
+ int nitms;
+ ECfgFileItem *pitms;
+} ECfgFile;
+
+static void CfgItemSetFromString(const CfgItem * ci, const char *str,
+ int set_dflt);
+
+static ECfgFile *
+e16_db_open(const char *name)
+{
+ ECfgFile *ecf;
+ FILE *fs;
+
+ fs = fopen(name, "w");
+ if (!fs)
+ return NULL;
+
+ ecf = ECALLOC(ECfgFile, 1);
+ if (!ecf)
+ goto done;
+
+ ecf->fs = fs;
+
+ done:
+ if (!ecf)
+ fclose(fs);
+ return ecf;
+}
+
+static ECfgFile *
+e16_db_open_read(const char *name)
+{
+ ECfgFile *ecf;
+ FILE *fs;
+ char buf[4096], key[128], *s;
+ int i, len;
+
+ fs = fopen(name, "r");
+ if (!fs)
+ return NULL;
+
+ ecf = ECALLOC(ECfgFile, 1);
+ if (!ecf)
+ goto done;
+
+ for (;;)
+ {
+ s = fgets(buf, sizeof(buf), fs);
+ if (!s)
+ break;
+
+ /* Strip comment and trailing whitespace */
+ i = strcspn(s, "#\r\n");
+ for (; i > 0; i--)
+ if (!isspace(s[i - 1]))
+ break;
+ s[i] = '\0';
+
+ len = 0;
+ i = sscanf(s, "%100s = %n", key, &len);
+ if (i <= 0 || len <= 0)
+ continue; /* Ignore bad format */
+
+ i = ecf->nitms++;
+ ecf->pitms = EREALLOC(ECfgFileItem, ecf->pitms, ecf->nitms);
+ ecf->pitms[i].key = Estrdup(key);
+ ecf->pitms[i].value = Estrdup(s + len);
+ }
+
+ done:
+ fclose(fs);
+ return ecf;
+}
+
+static void
+e16_db_close(ECfgFile * ecf)
+{
+ int i;
+
+ if (ecf->pitms)
+ {
+ for (i = 0; i < ecf->nitms; i++)
+ {
+ Efree(ecf->pitms[i].key);
+ Efree(ecf->pitms[i].value);
+ }
+ Efree(ecf->pitms);
+ }
+ if (ecf->fs)
+ fclose(ecf->fs);
+ Efree(ecf);
+}
+
+static void
+e16_db_flush(void)
+{
+}
+
+static const char *
+ECfgFileFindValue(ECfgFile * ecf, const char *key)
+{
+ int i;
+
+ for (i = 0; i < ecf->nitms; i++)
+ if (!strcmp(key, ecf->pitms[i].key))
+ return ecf->pitms[i].value;
+
+ return NULL;
+}
+
+/*
+ * Configuration handling.
+ */
+
+static void
+CfgItemLoad(ECfgFile * ecf, const char *prefix, const CfgItem * ci)
+{
+ char buf[1024];
+ const char *name = buf;
+ const char *value;
+
+ if (prefix)
+ Esnprintf(buf, sizeof(buf), "%s.%s", prefix, ci->name);
+ else
+ name = ci->name;
+
+ if (EDebug(EDBUG_TYPE_CONFIG) > 1)
+ Eprintf("CfgItemLoad %s\n", name);
+
+ if (!ci->ptr)
+ return;
+
+ value = (ecf) ? ECfgFileFindValue(ecf, name) : NULL;
+ CfgItemSetFromString(ci, value, 1);
+}
+
+static void
+CfgItemSave(ECfgFile * ecf, const char *prefix, const CfgItem * ci)
+{
+ char buf[1024], buf2[1024];
+ const char *name = buf;
+
+ if (prefix)
+ Esnprintf(buf, sizeof(buf), "%s.%s", prefix, ci->name);
+ else
+ name = ci->name;
+
+ if (EDebug(EDBUG_TYPE_CONFIG) > 1)
+ Eprintf("CfgItemSave %s\n", name);
+
+ if (!ci->ptr)
+ return;
+
+ CfgItemToString(ci, buf2, sizeof(buf2));
+ fprintf(ecf->fs, "%s = %s\n", name, buf2);
+}
+
+static const char *
+ConfigurationGetFile(char *buf, int len)
+{
+ Esnprintf(buf, len, "%s.cfg", EGetSavePrefix());
+ return buf;
+}
+
+void
+ConfigurationLoad(void)
+{
+ int i, nml, j, ncl;
+ const EModule **pml, *pm;
+ const CfgItem *pcl;
+ char buf[4096];
+ ECfgFile *ecf;
+
+ if (EDebug(EDBUG_TYPE_CONFIG))
+ Eprintf("ConfigurationLoad\n");
+
+ memset(&Conf, 0, sizeof(EConf));
+
+ ecf = e16_db_open_read(ConfigurationGetFile(buf, sizeof(buf)));
+ /* NB! We have to assign the defaults even if it doesn't exist */
+
+ /* Load module configs */
+ pml = ModuleListGet(&nml);
+ for (i = 0; i < nml; i++)
+ {
+ pm = pml[i];
+ ncl = pm->cfg.num;
+ pcl = pm->cfg.lst;
+ for (j = 0; j < ncl; j++)
+ CfgItemLoad(ecf, pm->name, pcl + j);
+ }
+ ModuleListFree(pml);
+
+ if (ecf)
+ e16_db_close(ecf);
+}
+
+void
+ConfigurationSave(void)
+{
+ int i, nml, j, ncl;
+ const EModule **pml, *pm;
+ const CfgItem *pcl;
+ char buf[4096];
+ ECfgFile *ecf;
+
+ if (EDebug(EDBUG_TYPE_CONFIG))
+ Eprintf("ConfigurationSave\n");
+
+ ecf = e16_db_open(ConfigurationGetFile(buf, sizeof(buf)));
+ if (ecf == NULL)
+ return;
+
+ /* Load module configs */
+ pml = ModuleListGet(&nml);
+ for (i = 0; i < nml; i++)
+ {
+ pm = pml[i];
+ ncl = pm->cfg.num;
+ pcl = pm->cfg.lst;
+ for (j = 0; j < ncl; j++)
+ CfgItemSave(ecf, pm->name, pcl + j);
+ }
+ ModuleListFree(pml);
+
+ e16_db_close(ecf);
+ e16_db_flush();
+}
+
+const CfgItem *
+CfgItemFind(const CfgItem * pcl, int ncl, const char *name)
+{
+ int i;
+
+ for (i = 0; i < ncl; i++, pcl++)
+ if (!strcmp(name, pcl->name))
+ return pcl;
+ return NULL;
+}
+
+static void
+CfgItemSetFromString(const CfgItem * ci, const char *str, int set_dflt)
+{
+ int ival;
+
+#ifdef ITEM_TYPE_FLOAT
+ int n;
+ float fval;
+#endif
+ char *ptr;
+
+ ptr = (char *)str;
+ switch (ci->type)
+ {
+ case ITEM_TYPE_BOOL:
+ ival = (str) ? strtoul(str, &ptr, 0) : 0;
+ if (ptr <= str)
+ {
+ if (!set_dflt)
+ break;
+ ival = (ci->dflt) ? 1 : 0;
+ }
+ *((char *)ci->ptr) = ival;
+ break;
+ case ITEM_TYPE_INT:
+ case ITEM_TYPE_HEX:
+ ival = (str) ? strtoul(str, &ptr, 0) : 0;
+ if (ptr <= str)
+ {
+ if (!set_dflt)
+ break;
+ ival = ci->dflt;
+ }
+ *((int *)ci->ptr) = ival;
+ break;
+#ifdef ITEM_TYPE_FLOAT
+ case ITEM_TYPE_FLOAT:
+ n = (str) ? sscanf(str, "%f", &fval) : 0;
+ if (n <= 0)
+ {
+ if (!set_dflt)
+ break;
+ fval = ci->dflt;
+ }
+ *((float *)ci->ptr) = fval;
+ break;
+#endif
+ case ITEM_TYPE_STRING:
+ Efree(*(char **)ci->ptr);
+ if (str && *str == '\0')
+ str = NULL;
+ *((char **)ci->ptr) = Estrdup(str);
+ break;
+ }
+}
+
+void
+CfgItemToString(const CfgItem * ci, char *buf, int len)
+{
+ buf[0] = '\0';
+ switch (ci->type)
+ {
+ case ITEM_TYPE_BOOL:
+ Esnprintf(buf, len, "%d", *((char *)ci->ptr));
+ break;
+ case ITEM_TYPE_INT:
+ Esnprintf(buf, len, "%d", *((int *)ci->ptr));
+ break;
+ case ITEM_TYPE_HEX:
+ Esnprintf(buf, len, "%#x", *((unsigned int *)ci->ptr));
+ break;
+#ifdef ITEM_TYPE_FLOAT
+ case ITEM_TYPE_FLOAT:
+ Esnprintf(buf, len, "%.3f", *((float *)ci->ptr));
+ break;
+#endif
+ case ITEM_TYPE_STRING:
+ if (*((char **)ci->ptr))
+ Esnprintf(buf, len, "%s", *((char **)ci->ptr));
+ break;
+ }
+}
+
+int
+CfgItemListNamedItemSet(const CfgItem * pcl, int ncl, const char *item,
+ const char *value)
+{
+ const CfgItem *ci;
+
+ ci = CfgItemFind(pcl, ncl, item);
+ if (!ci)
+ return -1;
+
+ if (ci->func)
+ ci->func(ci->ptr, value);
+ else
+ CfgItemSetFromString(ci, value, 0);
+
+ return 0;
+}
+
+#if 0 /* Unused */
+int
+CfgItemListNamedItemToString(const CfgItem * pcl, int ncl, const char *item,
+ char *buf, int len)
+{
+ const CfgItem *ci;
+
+ ci = CfgItemFind(pcl, ncl, item);
+ if (!ci)
+ return -1;
+ CfgItemToString(ci, buf, len);
+
+ return 0;
+}
+#endif
+
+/*
+ * Set <module>.<item> <value>
+ */
+void
+ConfigurationSet(const char *params)
+{
+ const char *p;
+ char name[1024];
+ char item[1024];
+ unsigned int len;
+
+ if (!params)
+ return;
+
+ p = strchr(params, '.');
+ if (!p)
+ {
+ Eprintf("ConfigurationSet - missed: %s\n", params);
+ return;
+ }
+
+ len = p - params;
+ if (len >= sizeof(name))
+ len = sizeof(name) - 1;
+ memcpy(name, params, len);
+ name[len] = '\0';
+ p++;
+ len = 0;
+ sscanf(p, "%1000s %n", item, &len);
+ p += len;
+ ModuleConfigSet(name, item, p);
+
+ /* Save changed configuration */
+ autosave();
+}
+
+/*
+ * Show <module>.<item> <value>
+ */
+void
+ConfigurationShow(const char *params)
+{
+ const char *p;
+ char name[1024];
+ char item[1024];
+ unsigned int len;
+
+ /* No parameters - All */
+ if (!params || params[0] == '\0')
+ {
+ ModulesConfigShow();
+ return;
+ }
+
+ /* No '.' - All for module */
+ p = strchr(params, '.');
+ if (!p)
+ {
+ ModuleConfigShow(params, NULL);
+ return;
+ }
+
+ /* Specific module, specific item. */
+ len = p - params;
+ if (len >= sizeof(name))
+ len = sizeof(name) - 1;
+ memcpy(name, params, len);
+ name[len] = '\0';
+ p++;
+ sscanf(p, "%s", item);
+ ModuleConfigShow(name, item);
+}
--- /dev/null
+/*
+ * Copyright (C) 2003-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ECONFIG_H_
+#define _ECONFIG_H_
+
+typedef struct {
+ const char *name;
+ void *ptr;
+ char type;
+ long dflt;
+ void (*func) (void *item, const char *value);
+} CfgItem;
+
+typedef struct {
+ int num;
+ const CfgItem *lst;
+} CfgItemList;
+
+#define ITEM_TYPE_BOOL 0
+#define ITEM_TYPE_INT 1
+#define ITEM_TYPE_HEX 2
+#define ITEM_TYPE_STRING 3
+
+#define CFG_ITEM_BOOL(conf, name, dflt) { #name, &conf.name, ITEM_TYPE_BOOL, dflt, NULL }
+#define CFG_ITEM_INT(conf, name, dflt) { #name, &conf.name, ITEM_TYPE_INT, dflt, NULL }
+#define CFG_ITEM_HEX(conf, name, dflt) { #name, &conf.name, ITEM_TYPE_HEX, dflt, NULL }
+#define CFG_ITEM_STR(conf, name) { #name, &conf.name, ITEM_TYPE_STRING, 0, NULL }
+
+#define CFG_FUNC_BOOL(conf, name, dflt, func) { #name, &conf.name, ITEM_TYPE_BOOL, dflt, func }
+#define CFG_FUNC_INT(conf, name, dflt, func) { #name, &conf.name, ITEM_TYPE_INT, dflt, func }
+#define CFG_FUNC_STR(conf, name, func) { #name, &conf.name, ITEM_TYPE_STRING, 0, func }
+
+/* Change to this? */
+#define CFR_ITEM_BOOL(conf, name, dflt) { #name, &conf, ITEM_TYPE_BOOL, dflt, NULL }
+
+const CfgItem *CfgItemFind(const CfgItem * pcl, int ncl, const char *name);
+void CfgItemToString(const CfgItem * ci, char *buf, int len);
+
+int CfgItemListNamedItemSet(const CfgItem * pcl, int ncl,
+ const char *item,
+ const char *value);
+
+#endif /* _ECONFIG_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "edbus.h"
+#include "events.h"
+#include "ipc.h"
+#include "xwin.h"
+#include <dbus/dbus.h>
+
+#define ENABLE_INTROSPECTION 1
+
+#define DEBUG_DBUS 1
+#if DEBUG_DBUS
+#define Dprintf(fmt...) if(EDebug(EDBUG_TYPE_DBUS))Eprintf(fmt)
+#define D2printf(fmt...) if(EDebug(EDBUG_TYPE_DBUS)>1)Eprintf(fmt)
+#else
+#define Dprintf(fmt...)
+#define D2printf(fmt...)
+#endif
+
+typedef struct {
+ char *name;
+ DBusConnection *conn;
+ DBusWatch *watch;
+ int fd;
+} DbusData;
+
+static DbusData dbus_data;
+
+static EventFdDesc *db_efd = NULL;
+
+static dbus_bool_t
+DbusWatchAdd(DBusWatch * watch, void *data __UNUSED__)
+{
+ dbus_data.watch = watch;
+ dbus_data.fd = dbus_watch_get_unix_fd(watch);
+
+ D2printf("DbusWatchAdd fd=%d flags=%d\n", dbus_data.fd,
+ dbus_watch_get_flags(dbus_data.watch));
+
+ return TRUE;
+}
+
+static void
+DbusWatchRemove(DBusWatch * watch __UNUSED__, void *data __UNUSED__)
+{
+ D2printf("DbusWatchRemove\n");
+}
+
+#if 0 /* Don't need this */
+static void
+DbusWatchToggle(DBusWatch * watch __UNUSED__, void *data __UNUSED__)
+{
+ D2printf("DbusWatchToggle\n");
+}
+#else
+#define DbusWatchToggle NULL
+#endif
+
+static void
+DbusReplyString(DBusConnection * conn, DBusMessage * msg, const char *str)
+{
+ DBusMessage *reply;
+ DBusMessageIter args;
+
+ reply = dbus_message_new_method_return(msg);
+
+ dbus_message_iter_init_append(reply, &args);
+ if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &str))
+ goto done;
+ if (!dbus_connection_send(conn, reply, NULL))
+ goto done;
+ dbus_connection_flush(conn);
+
+ done:
+ dbus_message_unref(reply);
+}
+
+static void
+DbusIpcReply(void *data, const char *str)
+{
+ DBusMessage *msg = (DBusMessage *) data;
+
+ if (!str)
+ str = "ok";
+ DbusReplyString(dbus_data.conn, msg, str);
+}
+
+static void
+DbusMethodCommand(DBusConnection * conn, DBusMessage * msg)
+{
+ DBusMessageIter args;
+ const char *param = "";
+
+ if (!dbus_message_iter_init(msg, &args) ||
+ dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_STRING)
+ {
+ DbusReplyString(conn, msg, "String arg required\n");
+ return;
+ }
+ else
+ dbus_message_iter_get_basic(&args, ¶m);
+
+ IpcExecReply(param, DbusIpcReply, msg);
+}
+
+#if ENABLE_INTROSPECTION
+/* *INDENT-OFF* */
+static const char dbus_introspect_data[] =
+ "<!DOCTYPE node PUBLIC '-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'\n"
+ "'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>\n"
+ "<node>\n"
+ " <interface name='org.freedesktop.DBus.Introspectable'>\n"
+ " <method name='Introspect'>\n"
+ " <arg name='data' direction='out' type='s'/>\n"
+ " </method>\n"
+ " </interface>\n"
+ " <interface name='%s'>\n"
+ " <method name='Command'>\n"
+ " <arg name='data' direction='out' type='s'/>\n"
+ " </method>\n"
+ " <signal name='Signal'>\n"
+ " <arg name='data' direction='in' type='s'/>\n"
+ " </signal>\n"
+ " </interface>\n"
+ "</node>";
+/* *INDENT-ON* */
+
+static void
+DbusMsgIntrospect(DBusConnection * conn, DBusMessage * msg)
+{
+ char buf[1024];
+
+ D2printf("Introspect\n");
+
+ Esnprintf(buf, sizeof(buf), dbus_introspect_data, dbus_data.name);
+ if (!strcmp(dbus_message_get_path(msg), "/"))
+ DbusReplyString(conn, msg, buf);
+ else
+ DbusReplyString(conn, msg, "");
+}
+#endif
+
+static DBusHandlerResult
+DbusMsgHandler(DBusConnection * conn, DBusMessage * msg,
+ void *user_data __UNUSED__)
+{
+ int msg_type;
+ const char *msg_dest, *msg_ifc, *msg_memb;
+
+ D2printf("DbusMsgHandler\n");
+
+ msg_type = dbus_message_get_type(msg);
+ msg_dest = dbus_message_get_destination(msg);
+ msg_ifc = dbus_message_get_interface(msg);
+ msg_memb = dbus_message_get_member(msg);
+
+ switch (msg_type)
+ {
+ default: /* Should not be possible */
+ Dprintf("MESSAGE type=%d\n", msg_type);
+ break;
+
+ case DBUS_MESSAGE_TYPE_METHOD_CALL:
+ Dprintf("METHOD %s %s\n", msg_ifc, msg_memb);
+ if (strcmp(msg_dest, dbus_data.name))
+ break;
+ if (!strcmp(msg_ifc, "org.e16"))
+ {
+ if (!strcmp(msg_memb, "Command"))
+ DbusMethodCommand(conn, msg);
+ else
+ DbusReplyString(conn, msg, "Error");
+ }
+#if ENABLE_INTROSPECTION
+ else if (!strcmp(msg_ifc, "org.freedesktop.DBus.Introspectable"))
+ {
+ if (!strcmp(msg_memb, "Introspect"))
+ DbusMsgIntrospect(conn, msg);
+ }
+#endif
+ break;
+
+ case DBUS_MESSAGE_TYPE_SIGNAL:
+ Dprintf("SIGNAL %s %s\n", msg_ifc, msg_memb);
+ if (!strcmp(msg_ifc, "org.e16"))
+ {
+ Dprintf("... for me!\n");
+ }
+ break;
+ }
+
+ D2printf("sender = %s\n", dbus_message_get_sender(msg));
+ D2printf("dest = %s\n", dbus_message_get_destination(msg));
+ D2printf("path = %s\n", dbus_message_get_path(msg));
+ D2printf("interface = %s\n", dbus_message_get_interface(msg));
+ D2printf("member = %s\n", dbus_message_get_member(msg));
+
+ return DBUS_HANDLER_RESULT_HANDLED;
+}
+
+static void
+DbusHandleFd(void)
+{
+ int rc;
+
+ D2printf("DbusHandleFd flags=%d\n", dbus_watch_get_flags(dbus_data.watch));
+ dbus_watch_handle(dbus_data.watch,
+ DBUS_WATCH_READABLE | DBUS_WATCH_WRITABLE);
+
+ for (;;)
+ {
+ D2printf("DbusHandleFd: Dispatch flags=%d\n",
+ dbus_watch_get_flags(dbus_data.watch));
+ rc = dbus_connection_dispatch(dbus_data.conn);
+ if (rc == DBUS_DISPATCH_COMPLETE)
+ break;
+ }
+}
+
+void
+DbusInit(void)
+{
+ DBusError dberr;
+ int err;
+ char buf[128];
+
+ if (Mode.wm.window)
+ {
+ sprintf(buf, "org.e16.wm.p%u", (unsigned int)Mode.wm.pid);
+ }
+ else
+ {
+ const char *s;
+
+ s = strchr(Dpy.name, ':');
+ if (!s)
+ return;
+ sprintf(buf, "org.e16.wm.d%ds%d", atoi(s + 1), Dpy.screen);
+ }
+ dbus_data.name = Estrdup(buf);
+ Esetenv("ENL_DBUS_NAME", dbus_data.name);
+
+ dbus_error_init(&dberr);
+
+ dbus_data.fd = -1;
+
+ dbus_data.conn = dbus_bus_get(DBUS_BUS_SESSION, &dberr);
+ if (dbus_error_is_set(&dberr))
+ goto bail_out;
+ dbus_connection_set_exit_on_disconnect(dbus_data.conn, FALSE);
+
+ err = dbus_bus_request_name(dbus_data.conn, dbus_data.name,
+ DBUS_NAME_FLAG_DO_NOT_QUEUE, &dberr);
+ if (dbus_error_is_set(&dberr))
+ goto bail_out;
+ if (err != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
+ {
+ Eprintf("*** DbusInit error: Not Primary Owner (%d)\n", err);
+ return;
+ }
+
+ Esnprintf(buf, sizeof(buf), "type='signal',destination='%s'",
+ dbus_data.name);
+ if (EDebug(EDBUG_TYPE_DBUS) > 1) /* Catch all signals if extra debug is enabled */
+ dbus_bus_add_match(dbus_data.conn, "type='signal'", &dberr);
+ else
+ dbus_bus_add_match(dbus_data.conn, buf, &dberr);
+ if (dbus_error_is_set(&dberr))
+ goto bail_out;
+ Esnprintf(buf, sizeof(buf), "type='method_call',destination='%s'",
+ dbus_data.name);
+ dbus_bus_add_match(dbus_data.conn, buf, &dberr);
+ if (dbus_error_is_set(&dberr))
+ goto bail_out;
+#if 0 /* Debug */
+ dbus_bus_add_match(dbus_data.conn, "type='method_return'", &dberr);
+ if (dbus_error_is_set(&dberr))
+ goto bail_out;
+ dbus_bus_add_match(dbus_data.conn, "type='error'", &dberr);
+ if (dbus_error_is_set(&dberr))
+ goto bail_out;
+#endif
+
+ if (!dbus_connection_add_filter(dbus_data.conn, DbusMsgHandler, NULL, NULL))
+ return;
+
+ err = dbus_connection_set_watch_functions(dbus_data.conn,
+ DbusWatchAdd, DbusWatchRemove,
+ DbusWatchToggle, NULL, NULL);
+
+ /* Handle pending D-Bus stuff */
+ DbusHandleFd();
+ db_efd = EventFdRegister(dbus_data.fd, DbusHandleFd);
+ return;
+
+ bail_out:
+ if (dbus_error_is_set(&dberr))
+ {
+ Eprintf("*** DbusInit error: %s\n", dberr.message);
+ dbus_error_free(&dberr);
+ }
+ return;
+}
+
+#if 0 /* No need? */
+void
+DbusExit(void)
+{
+}
+#endif
--- /dev/null
+/*
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EDBUS_H_
+#define _EDBUS_H_
+
+void DbusInit(void);
+void DbusExit(void);
+
+#endif /* _EDBUS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2006-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EDEBUG_H_
+#define _EDEBUG_H_
+
+#include "util.h"
+
+#define ENABLE_DEBUG_EVENTS 1
+
+#if ENABLE_DEBUG_EVENTS
+
+#define EDBUG_TYPE_EWINS 128
+#define EDBUG_TYPE_FOCUS 129
+#define EDBUG_TYPE_COMPRESSION 130
+#define EDBUG_TYPE_STACKING 131
+#define EDBUG_TYPE_RAISELOWER 132
+#define EDBUG_TYPE_MOVERESIZE 133
+#define EDBUG_TYPE_SESSION 134
+#define EDBUG_TYPE_SNAPS 135
+#define EDBUG_TYPE_DESKS 136
+#define EDBUG_TYPE_GRABS 137
+#define EDBUG_TYPE_DISPATCH 138
+#define EDBUG_TYPE_MODULES 139
+#define EDBUG_TYPE_CONFIG 140
+#define EDBUG_TYPE_IPC 141
+#define EDBUG_TYPE_EVENTS 142
+#define EDBUG_TYPE_ICONBOX 143
+#define EDBUG_TYPE_VERBOSE 144
+#define EDBUG_TYPE_SYNC 145
+#define EDBUG_TYPE_PAGER 146
+#define EDBUG_TYPE_SELECTION 147
+#define EDBUG_TYPE_FONTS 148
+#define EDBUG_TYPE_DBUS 149
+#define EDBUG_TYPE_TIMERS 150
+#define EDBUG_TYPE_IDLERS 151
+#define EDBUG_TYPE_SOUND 152
+
+#define EDBUG_TYPE_COMPMGR 161
+#define EDBUG_TYPE_COMPMGR2 162
+#define EDBUG_TYPE_COMPMGR3 163
+
+#define EDBUG_TYPE_GLX 170
+
+void EDebugInit(const char *s);
+void EDebugSet(unsigned int type, int value);
+__EXPORT__ int EDebug(unsigned int type);
+
+#else
+
+#define EDebugInit(str) do{}while(0)
+#define EDebugSet(type, value)
+#define EDebug(type) 0
+
+#endif
+
+#endif /* _EDEBUG_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "menus.h" /* FIXME - Should not be here */
+#include "timers.h"
+#include "xwin.h"
+
+static EObj *w1 = NULL, *w2 = NULL, *w3 = NULL, *w4 = NULL;
+static Timer *edge_timer = NULL;
+
+static int
+EdgeTimeout(void *data)
+{
+ int val;
+ int ax, ay, aw, ah, dx, dy, dax, day;
+ EWin *ewin;
+
+ if (MenusActive())
+ goto done;
+ if (Conf.desks.edge_flip_mode == EDGE_FLIP_OFF)
+ goto done;
+
+ /* Quit if pointer has left screen */
+ if (!EQueryPointer(NULL, NULL, NULL, NULL, NULL))
+ goto done;
+
+ /* Quit if in fullscreen window */
+ ewin = GetEwinPointerInClient();
+ if (ewin && ewin->state.fullscreen)
+ goto done;
+
+ DeskCurrentGetArea(&ax, &ay);
+ DesksGetAreaSize(&aw, &ah);
+ val = PTR2INT(data);
+ dx = 0;
+ dy = 0;
+ dax = 0;
+ day = 0;
+ switch (val)
+ {
+ case 0:
+ if (ax == 0 && !Conf.desks.areas_wraparound)
+ goto done;
+ dx = WinGetW(VROOT) - 2;
+ dax = -1;
+ break;
+ case 1:
+ if (ax == (aw - 1) && !Conf.desks.areas_wraparound)
+ goto done;
+ dx = -(WinGetW(VROOT) - 2);
+ dax = 1;
+ break;
+ case 2:
+ if (ay == 0 && !Conf.desks.areas_wraparound)
+ goto done;
+ dy = WinGetH(VROOT) - 2;
+ day = -1;
+ break;
+ case 3:
+ if (ay == (ah - 1) && !Conf.desks.areas_wraparound)
+ goto done;
+ dy = -(WinGetH(VROOT) - 2);
+ day = 1;
+ break;
+ default:
+ break;
+ }
+ if (aw == 1)
+ dx = 0;
+ if (ah == 1)
+ dy = 0;
+ Mode.events.px = Mode.events.mx;
+ Mode.events.py = Mode.events.my;
+ Mode.events.mx = Mode.events.cx += dx;
+ Mode.events.my = Mode.events.cy += dy;
+ EXWarpPointer(WinGetXwin(VROOT), Mode.events.mx, Mode.events.my);
+ DeskCurrentMoveAreaBy(dax, day);
+ Mode.events.px = Mode.events.mx;
+ Mode.events.py = Mode.events.my;
+
+ done:
+ edge_timer = NULL;
+ return 0;
+}
+
+static void
+EdgeEvent(int dir)
+{
+ static int lastdir = -1;
+
+#if 0
+ Eprintf("EdgeEvent %d -> %d\n", lastdir, dir);
+#endif
+ if (lastdir == dir || Conf.desks.edge_flip_mode == EDGE_FLIP_OFF)
+ return;
+
+ if (Conf.desks.edge_flip_mode == EDGE_FLIP_MOVE && Mode.mode != MODE_MOVE)
+ return;
+
+ TIMER_DEL(edge_timer);
+ if (dir >= 0)
+ {
+ if (Conf.desks.edge_flip_resistance <= 0)
+ Conf.desks.edge_flip_resistance = 1;
+ TIMER_ADD(edge_timer, ((double)Conf.desks.edge_flip_resistance) / 100.0,
+ EdgeTimeout, INT2PTR(dir));
+ }
+ lastdir = dir;
+}
+
+static void
+EdgeHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ int dir;
+
+ dir = (long)prm;
+
+ switch (ev->type)
+ {
+ default:
+ break;
+
+ case EnterNotify:
+ EdgeEvent(dir);
+ break;
+
+ case LeaveNotify:
+ EdgeEvent(-1);
+ break;
+ }
+}
+
+void
+EdgeCheckMotion(int x, int y)
+{
+ int dir;
+
+ if (x == 0)
+ dir = 0;
+ else if (x == WinGetW(VROOT) - 1)
+ dir = 1;
+ else if (y == 0)
+ dir = 2;
+ else if (y == WinGetH(VROOT) - 1)
+ dir = 3;
+ else
+ dir = -1;
+ EdgeEvent(dir);
+}
+
+static void
+EdgeWindowShow(int which, int on)
+{
+ EObj *eo;
+ int x, y, w, h;
+
+ x = y = 0;
+ w = h = 1;
+
+ switch (which)
+ {
+ default:
+ case 1: /* Left */
+ eo = w1;
+ h = WinGetH(VROOT);
+ break;
+ case 2: /* Right */
+ eo = w2;
+ x = WinGetW(VROOT) - 1;
+ h = WinGetH(VROOT);
+ break;
+ case 3: /* Top */
+ eo = w3;
+ w = WinGetW(VROOT);
+ break;
+ case 4: /* Bottom */
+ eo = w4;
+ y = WinGetH(VROOT) - 1;
+ w = WinGetW(VROOT);
+ break;
+ }
+
+ if (on)
+ {
+ EobjMoveResize(eo, x, y, w, h);
+ EobjMap(eo, 0);
+ }
+ else
+ {
+ EobjUnmap(eo);
+ }
+}
+
+void
+EdgeWindowsShow(void)
+{
+ int ax, ay, cx, cy;
+
+ if (Conf.desks.edge_flip_mode == EDGE_FLIP_OFF)
+ {
+ EdgeWindowsHide();
+ return;
+ }
+
+ if (!w1)
+ {
+ w1 = EobjWindowCreate(EOBJ_TYPE_EVENT,
+ 0, 0, 1, WinGetH(VROOT), 0, "Edge-L");
+ w2 = EobjWindowCreate(EOBJ_TYPE_EVENT,
+ WinGetW(VROOT) - 1, 0, 1, WinGetH(VROOT),
+ 0, "Edge-R");
+ w3 = EobjWindowCreate(EOBJ_TYPE_EVENT,
+ 0, 0, WinGetW(VROOT), 1, 0, "Edge-T");
+ w4 = EobjWindowCreate(EOBJ_TYPE_EVENT,
+ 0, WinGetH(VROOT) - 1, WinGetW(VROOT), 1,
+ 0, "Edge-B");
+ ESelectInput(EobjGetWin(w1), EnterWindowMask | LeaveWindowMask);
+ ESelectInput(EobjGetWin(w2), EnterWindowMask | LeaveWindowMask);
+ ESelectInput(EobjGetWin(w3), EnterWindowMask | LeaveWindowMask);
+ ESelectInput(EobjGetWin(w4), EnterWindowMask | LeaveWindowMask);
+ EventCallbackRegister(EobjGetWin(w1), 0, EdgeHandleEvents, (void *)0);
+ EventCallbackRegister(EobjGetWin(w2), 0, EdgeHandleEvents, (void *)1);
+ EventCallbackRegister(EobjGetWin(w3), 0, EdgeHandleEvents, (void *)2);
+ EventCallbackRegister(EobjGetWin(w4), 0, EdgeHandleEvents, (void *)3);
+ }
+ DeskCurrentGetArea(&cx, &cy);
+ DesksGetAreaSize(&ax, &ay);
+
+ EdgeWindowShow(1, cx != 0 || Conf.desks.areas_wraparound);
+ EdgeWindowShow(2, cx != (ax - 1) || Conf.desks.areas_wraparound);
+ EdgeWindowShow(3, cy != 0 || Conf.desks.areas_wraparound);
+ EdgeWindowShow(4, cy != (ay - 1) || Conf.desks.areas_wraparound);
+}
+
+void
+EdgeWindowsHide(void)
+{
+ if (!w1)
+ return;
+
+ EobjUnmap(w1);
+ EobjUnmap(w2);
+ EobjUnmap(w3);
+ EobjUnmap(w4);
+}
--- /dev/null
+/*
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#define GLX_GLXEXT_PROTOTYPES 1
+#include "E.h"
+#include "eglx.h"
+#include "eimage.h"
+#include <GL/gl.h>
+#include <GL/glu.h>
+#include <GL/glx.h>
+#include <X11/extensions/Xcomposite.h>
+#include <X11/extensions/Xrender.h>
+
+#define ENABLE_DEBUG 1
+#if ENABLE_DEBUG
+#define Dprintf(fmt...) do { if(EDebug(EDBUG_TYPE_GLX))Eprintf(fmt); } while(0)
+#define D2printf(fmt...) do { if(EDebug(EDBUG_TYPE_GLX)>1)Eprintf(fmt); } while(0)
+#else
+#define Dprintf(fmt...)
+#define D2printf(fmt...)
+#endif /* ENABLE_DEBUG */
+
+#define ETEX_TYPE_IMAGE 1
+#define ETEX_TYPE_PIXMAP 2
+
+#if 1
+#define TEXTURE_TARGET GL_TEXTURE_2D
+#else
+#define TEXTURE_TARGET GLX_TEXTURE_RECTANGLE_EXT
+#endif
+
+#ifdef HAVE_GLX_glXBindTexImageEXT
+
+#define _glXBindTexImageEXT glXBindTexImageEXT
+#define _glXReleaseTexImageEXT glXReleaseTexImageEXT
+
+#else
+
+#include <dlfcn.h>
+
+/* GL functions and helper */
+typedef void (*glXBindTexImageEXT_func) (Display * dpy,
+ GLXDrawable drawable,
+ int buffer,
+ const int *attrib_list);
+typedef void (*glXReleaseTexImageEXT_func) (Display * dpy,
+ GLXDrawable drawable,
+ int buffer);
+typedef void (*glXFuncPtr) (void);
+typedef glXFuncPtr(*glXGetProcAddress_func) (const GLubyte *);
+
+static glXBindTexImageEXT_func _glXBindTexImageEXT;
+static glXReleaseTexImageEXT_func _glXReleaseTexImageEXT;
+static glXGetProcAddress_func glx_get_proc_address;
+
+static glXFuncPtr
+get_func_addr(const char *name)
+{
+ glXFuncPtr ret = NULL;
+
+ if (glx_get_proc_address)
+ ret = glx_get_proc_address((const GLubyte *)name);
+ if (!ret)
+ ret = (glXFuncPtr) dlsym(RTLD_DEFAULT, name);
+
+ return ret;
+}
+
+static int
+glx_funcs_init(void)
+{
+ glx_get_proc_address = (glXGetProcAddress_func)
+ get_func_addr("glXGetProcAddress");
+ if (!glx_get_proc_address)
+ glx_get_proc_address = (glXGetProcAddress_func)
+ get_func_addr("glXGetProcAddressARB");
+
+ _glXBindTexImageEXT = (glXBindTexImageEXT_func)
+ get_func_addr("glXBindTexImageEXT");
+
+ _glXReleaseTexImageEXT = (glXReleaseTexImageEXT_func)
+ get_func_addr("glXReleaseTexImageEXT");
+
+ return !_glXBindTexImageEXT || !_glXReleaseTexImageEXT;
+}
+
+#endif /* HAVE_GLX_glXBindTexImageEXT */
+
+static void EobjTexturesFree(void);
+
+typedef struct {
+ XVisualInfo *vi;
+ GLXContext ctx;
+ GLXFBConfig fbc;
+ unsigned ctx_initialised:1;
+} EGlContext;
+
+static EGlContext egl;
+
+#define FBCATTR(fbc, attr, want) _EGlFbcAttrib(fbc, #attr, attr, want)
+static int
+_EGlFbcAttrib(GLXFBConfig fbc, const char *name, int attr, int want)
+{
+ int err, value;
+
+ value = 0xabbabeef;
+ err = glXGetFBConfigAttrib(disp, fbc, attr, &value);
+ if (err)
+ Eprintf(" %s *** Error %d ***\n", name, err);
+ else if (want > 0)
+ D2printf(" %s=%#x (want %#x)\n", name, value, want);
+ else
+ D2printf(" %s=%#x\n", name, value);
+
+ return value;
+}
+
+int
+EGlInit(void)
+{
+/* From NV's README.txt (AddARGBGLXVisuals) */
+ static const int attrs[] = {
+ GLX_VISUAL_CAVEAT_EXT, GLX_NONE_EXT,
+ GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT | GLX_PIXMAP_BIT,
+ GLX_RENDER_TYPE, GLX_RGBA_BIT,
+ GLX_RED_SIZE, 1,
+ GLX_GREEN_SIZE, 1,
+ GLX_BLUE_SIZE, 1,
+ GLX_ALPHA_SIZE, 1,
+ GLX_DOUBLEBUFFER, True,
+ GLX_DEPTH_SIZE, 1,
+ 0
+ };
+ XVisualInfo *vi;
+ GLXFBConfig *fbc;
+ int i, ix, num;
+ int value;
+ char *s;
+ XID vid = None;
+ XRenderPictFormat *pictFormat;
+
+ Dprintf("EGlInit\n");
+
+ memset(&egl, 0, sizeof(EGlContext));
+
+ s = getenv("EVISUAL");
+ if (s)
+ {
+ vid = strtoul(s, NULL, 0);
+ Eprintf("Want Visual Id=%#lx\n", vid);
+ }
+
+ /* Create a GLX context */
+ fbc = glXChooseFBConfig(disp, DefaultScreen(disp), attrs, &num);
+ if (!fbc)
+ {
+ Eprintf("No FB configs\n");
+ return -1;
+ }
+
+ D2printf("Visuals found: %d\n", num);
+ ix = -1;
+ for (i = 0; i < num; i++)
+ {
+ vi = glXGetVisualFromFBConfig(disp, fbc[i]);
+ if (!vi)
+ continue;
+
+ D2printf("Checking Visual ID=%#lx depth=%d\n", vi->visualid, vi->depth);
+ if (vid && vi->visualid != vid)
+ continue;
+
+#if 1
+ value = FBCATTR(fbc[i], GLX_FBCONFIG_ID, -1);
+ value = FBCATTR(fbc[i], GLX_CONFIG_CAVEAT, GLX_NONE);
+ value = FBCATTR(fbc[i], GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT);
+ value = FBCATTR(fbc[i], GLX_RENDER_TYPE, -1);
+ value = FBCATTR(fbc[i], GLX_X_VISUAL_TYPE, -1);
+ value = FBCATTR(fbc[i], GLX_X_RENDERABLE, -1);
+ value = FBCATTR(fbc[i], GLX_BUFFER_SIZE, -1);
+ value = FBCATTR(fbc[i], GLX_LEVEL, -1);
+ value = FBCATTR(fbc[i], GLX_TRANSPARENT_TYPE, -1);
+#endif
+
+#if 1
+ value = FBCATTR(fbc[i], GLX_BIND_TO_TEXTURE_RGBA_EXT, 1);
+ value = FBCATTR(fbc[i], GLX_BIND_TO_TEXTURE_RGB_EXT, 1);
+ if (!value)
+ continue;
+ value = FBCATTR(fbc[i], GLX_BIND_TO_MIPMAP_TEXTURE_EXT, -1);
+ value = FBCATTR(fbc[i], GLX_BIND_TO_TEXTURE_TARGETS_EXT,
+ GLX_TEXTURE_2D_BIT_EXT);
+#if 0
+ if (!(value & GLX_TEXTURE_2D_BIT_EXT))
+ continue;
+#endif
+ value = FBCATTR(fbc[i], GLX_Y_INVERTED_EXT, -1);
+#endif
+
+#if 1
+ /* We want an ARGB visual */
+ pictFormat = XRenderFindVisualFormat(disp, vi->visual);
+ if (!pictFormat)
+ continue;
+ if (pictFormat->direct.alphaMask == 0)
+ continue;
+#endif
+
+ D2printf(" - passed\n");
+ if (ix < 0)
+ ix = i;
+
+ XFree(vi);
+ }
+
+ if (ix >= 0)
+ egl.fbc = fbc[ix];
+ XFree(fbc);
+
+ if (ix < 0)
+ {
+ Eprintf("No FB config match\n");
+ return -1;
+ }
+
+#ifndef HAVE_GLX_glXBindTexImageEXT
+ if (glx_funcs_init())
+ {
+ Eprintf("glXBindTexImageEXT or glXReleaseTexImageEXT not available\n");
+ return -1;
+ }
+#endif
+
+ egl.vi = glXGetVisualFromFBConfig(disp, egl.fbc);
+
+ egl.ctx = glXCreateNewContext(disp, egl.fbc, GLX_RGBA_TYPE, NULL, True);
+
+ Dprintf("Direct Rendering %s\n",
+ glXIsDirect(disp, egl.ctx) ? "enabled" : "not available");
+ Dprintf("Visual ID=%#lx depth %d\n", egl.vi->visualid, egl.vi->depth);
+
+ return 0;
+}
+
+void
+EGlExit(void)
+{
+ Dprintf("EGlExit\n");
+
+ EobjTexturesFree();
+
+ if (egl.vi)
+ {
+ XFree(egl.vi);
+ egl.vi = NULL;
+ }
+
+ if (egl.ctx)
+ {
+ EGlWindowDisconnect();
+ glXDestroyContext(disp, egl.ctx);
+ egl.ctx = NULL;
+ }
+}
+
+Visual *
+EGlGetVisual(void)
+{
+ if (!egl.vi)
+ EGlInit();
+ return (egl.vi) ? egl.vi->visual : NULL;
+}
+
+unsigned int
+EGlGetDepth(void)
+{
+ if (!egl.vi)
+ EGlInit();
+ return (egl.vi) ? egl.vi->depth : 0;
+}
+
+#if 0
+Win
+EGlWindowCreate(Win parent, int x, int y, unsigned int width,
+ unsigned int height)
+{
+ return ECreateWindowVD(parent, x, y, width, height, egl.vi->visual,
+ egl.vi->depth);
+}
+#endif
+
+void
+EGlWindowConnect(Window xwin)
+{
+ glXMakeContextCurrent(disp, xwin, xwin, egl.ctx);
+
+ if (egl.ctx_initialised)
+ return;
+
+ /* First time */
+ glEnable(TEXTURE_TARGET);
+
+ glShadeModel(GL_SMOOTH);
+ glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ glClearDepth(1.0f);
+ glEnable(GL_DEPTH_TEST);
+ glDepthFunc(GL_LEQUAL);
+ glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
+
+ egl.ctx_initialised = 1;
+}
+
+void
+EGlWindowDisconnect(void)
+{
+ if (!glXMakeContextCurrent(disp, None, None, NULL))
+ {
+ Eprintf("Failed to release GL context.\n");
+ }
+}
+
+ETexture *
+EGlTextureFromImage(EImage * im, int mode)
+{
+ ETexture *et;
+ int w, h;
+ unsigned char *data;
+
+ if (!im)
+ return NULL;
+
+ et = Ecalloc(1, sizeof(ETexture));
+ if (!et)
+ return NULL;
+
+ et->type = ETEX_TYPE_IMAGE;
+ et->target = TEXTURE_TARGET;
+ glGenTextures(1, &et->texture);
+ glBindTexture(et->target, et->texture);
+
+ EImageGetSize(im, &w, &h);
+ data = EImageGetData(im);
+
+ switch (mode)
+ {
+ case 0: /* No filtering */
+ glTexImage2D(et->target, 0, GL_RGB8, w, h, 0, GL_BGRA,
+ GL_UNSIGNED_BYTE, data);
+ glTexParameteri(et->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ glTexParameteri(et->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ break;
+ case 1: /* Linear filtering */
+ glTexImage2D(et->target, 0, GL_RGB8, w, h, 0, GL_BGRA,
+ GL_UNSIGNED_BYTE, data);
+ glTexParameteri(et->target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ glTexParameteri(et->target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ break;
+ case 2: /* Mipmapping */
+ gluBuild2DMipmaps(et->target, GL_RGB8, w, h, GL_BGRA,
+ GL_UNSIGNED_BYTE, data);
+ glTexParameteri(et->target, GL_TEXTURE_MIN_FILTER,
+ GL_LINEAR_MIPMAP_NEAREST);
+ glTexParameteri(et->target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ break;
+ }
+
+ return et;
+}
+
+static GLXPixmap
+GetGlPixmap(Window xwin, Drawable draw)
+{
+ static const int attrs[] = {
+ GLX_TEXTURE_FORMAT_EXT, GLX_TEXTURE_FORMAT_RGB_EXT,
+ 0
+ };
+ Pixmap pixmap;
+ GLXPixmap glxpixmap;
+
+ if (xwin == None && draw == None)
+ return 0;
+
+ pixmap = (draw) ? draw : XCompositeNameWindowPixmap(disp, xwin);
+ glxpixmap = glXCreatePixmap(disp, egl.fbc, pixmap, attrs);
+ Dprintf("GetGlPixmap: Window=%#lx Drawable=%#lx glxpixmap=%#lx\n",
+ xwin, draw, glxpixmap);
+
+ return glxpixmap;
+}
+
+static void
+_EGlTextureFromDrawable(ETexture * et, Drawable draw, int mode)
+{
+ if (!et || draw == None)
+ return;
+
+ glBindTexture(et->target, et->texture);
+ et->glxpmap = GetGlPixmap(draw, (mode & 0x100) ? None : draw);
+ if (et->glxpmap == None)
+ return;
+
+ _glXBindTexImageEXT(disp, et->glxpmap, GLX_FRONT_LEFT_EXT, NULL);
+#if 0 /* No! */
+ glXDestroyPixmap(disp, et->glxpmap);
+#endif
+}
+
+ETexture *
+EGlTextureFromDrawable(Drawable draw, int mode)
+{
+ ETexture *et;
+
+ if (draw == None)
+ return NULL;
+
+ et = Ecalloc(1, sizeof(ETexture));
+ if (!et)
+ return NULL;
+
+ et->type = ETEX_TYPE_PIXMAP;
+ et->target = TEXTURE_TARGET;
+ glGenTextures(1, &et->texture);
+ glBindTexture(et->target, et->texture);
+
+ _EGlTextureFromDrawable(et, draw, mode);
+
+ return et;
+}
+
+void
+EGlTextureDestroy(ETexture * et)
+{
+ if (!et)
+ return;
+
+ Dprintf("EGlTextureDestroy %d type=%u pmap=%#x\n", et->texture, et->type,
+ et->glxpmap);
+
+ EGlTextureInvalidate(et);
+ glDeleteTextures(1, &et->texture);
+ Efree(et);
+}
+
+void
+EGlTextureInvalidate(ETexture * et)
+{
+ if (!et)
+ return;
+
+ Dprintf("EGlTextureInvalidate %d type=%u pmap=%#x\n", et->texture, et->type,
+ et->glxpmap);
+
+ switch (et->type)
+ {
+ case ETEX_TYPE_IMAGE:
+ break;
+ case ETEX_TYPE_PIXMAP:
+ if (!et->glxpmap)
+ break;
+ _glXReleaseTexImageEXT(disp, et->glxpmap, GLX_FRONT_LEFT_EXT);
+ glXDestroyPixmap(disp, et->glxpmap);
+ et->glxpmap = None;
+ break;
+ }
+}
+
+#include "eobj.h"
+
+static void
+EobjTexturesFree(void)
+{
+ int i, num;
+ EObj *const *eol;
+
+ eol = EobjListStackGet(&num);
+ for (i = 0; i < num; i++)
+ EobjTextureDestroy(eol[i]);
+}
+
+ETexture *
+EobjGetTexture(EObj * eo)
+{
+ if (eo->glhook)
+ {
+ if (eo->glhook->glxpmap)
+ return eo->glhook;
+
+ _EGlTextureFromDrawable(eo->glhook, EobjGetPixmap(eo), 0);
+ return eo->glhook;
+ }
+
+ return EobjTextureCreate(eo);
+}
+
+ETexture *
+EobjTextureCreate(EObj * eo)
+{
+ Pixmap pmap;
+
+ pmap = EobjGetPixmap(eo);
+ if (pmap == None)
+ return NULL;
+
+ eo->glhook = EGlTextureFromDrawable(pmap, 0);
+
+ return eo->glhook;
+}
+
+void
+EobjTextureDestroy(EObj * eo)
+{
+ EGlTextureDestroy(eo->glhook);
+ eo->glhook = NULL;
+}
+
+void
+EobjTextureInvalidate(EObj * eo)
+{
+ EGlTextureInvalidate(eo->glhook);
+}
--- /dev/null
+/*
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EGLX_H_
+#define _EGLX_H_
+
+#include "eimage.h"
+#include "xwin.h"
+
+#define _glhook _etexture
+
+typedef struct _etexture ETexture;
+
+struct _etexture {
+ unsigned int texture;
+ unsigned short target;
+ unsigned char type;
+ unsigned int glxpmap;
+};
+
+int EGlInit(void);
+void EGlExit(void);
+
+Visual *EGlGetVisual(void);
+unsigned int EGlGetDepth(void);
+
+Win EGlWindowCreate(Win parent, int x, int y,
+ unsigned int width, unsigned int height);
+
+void EGlWindowConnect(Window xwin);
+void EGlWindowDisconnect(void);
+
+ETexture *EGlTextureFromImage(EImage * im, int mode);
+ETexture *EGlTextureFromDrawable(Drawable draw, int mode);
+void EGlTextureDestroy(ETexture * et);
+void EGlTextureInvalidate(ETexture * et);
+
+#endif /* _EGLX_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "eimage.h"
+#include "xwin.h"
+#include <Imlib2.h>
+#if HAVE_X11_EXTENSIONS_XRENDER_H
+#include <X11/extensions/Xrender.h>
+#endif
+
+void
+EImageInit(void)
+{
+ imlib_set_cache_size(2048 * 1024);
+ imlib_set_font_cache_size(512 * 1024);
+
+ imlib_set_color_usage(128);
+
+ imlib_context_set_display(disp);
+ imlib_context_set_visual(WinGetVisual(VROOT));
+ imlib_context_set_colormap(WinGetCmap(VROOT));
+
+#ifdef HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD
+ imlib_context_set_mask_alpha_threshold(Conf.testing.mask_alpha_threshold);
+#endif
+
+ imlib_context_set_anti_alias(0);
+ imlib_context_set_dither(1);
+}
+
+void
+EImageExit(int quit __UNUSED__)
+{
+#if HAVE_IMLIB_CONTEXT_DISCONNECT_DISPLAY
+ imlib_context_disconnect_display();
+#endif
+}
+
+int
+EImageSetCacheSize(int size)
+{
+ int size_old;
+
+ size_old = imlib_get_cache_size();
+ imlib_set_cache_size(size);
+
+ return size_old;
+}
+
+static void
+_EImageFlagsSet(int flags)
+{
+ if (flags & EIMAGE_ANTI_ALIAS)
+ imlib_context_set_anti_alias(1);
+ if (flags & EIMAGE_BLEND)
+ imlib_context_set_blend(1);
+#ifdef HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD
+ if (flags & EIMAGE_HIGH_MASK_THR)
+ imlib_context_set_mask_alpha_threshold(128);
+#endif
+}
+
+static void
+_EImageFlagsReset(void)
+{
+ imlib_context_set_anti_alias(0);
+ imlib_context_set_blend(0);
+#ifdef HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD
+ imlib_context_set_mask_alpha_threshold(Conf.testing.mask_alpha_threshold);
+#endif
+}
+
+EImage *
+EImageLoad(const char *file)
+{
+ return imlib_load_image(file);
+}
+
+void
+EImageSave(EImage * im, const char *file)
+{
+ imlib_context_set_image(im);
+ imlib_image_set_format("png");
+ imlib_save_image(file);
+}
+
+EImage *
+EImageCreate(int w, int h)
+{
+ EImage *im;
+
+ im = imlib_create_image(w, h);
+
+ return im;
+}
+
+EImage *
+EImageCreateFromData(int w, int h, unsigned int *data)
+{
+ EImage *im;
+
+ im = imlib_create_image_using_copied_data(w, h, data);
+
+ return im;
+}
+
+EImage *
+EImageCreateScaled(EImage * im, int sx, int sy, int sw, int sh, int dw, int dh)
+{
+ imlib_context_set_image(im);
+ if (sw <= 0)
+ sw = imlib_image_get_width();
+ if (sh <= 0)
+ sh = imlib_image_get_height();
+ if (dw <= 0)
+ dw = sw;
+ if (dh <= 0)
+ dh = sh;
+ return imlib_create_cropped_scaled_image(sx, sy, sw, sh, dw, dh);
+}
+
+void
+EImageFree(EImage * im)
+{
+ imlib_context_set_image(im);
+ imlib_free_image();
+}
+
+void
+EImageDecache(EImage * im)
+{
+ imlib_context_set_image(im);
+ imlib_free_image_and_decache();
+}
+
+static int
+_EImageCheckAlpha(void)
+{
+ static const short oink = 3; /* For endianness checking */
+ unsigned char *pb, *pe;
+
+ if (!imlib_image_has_alpha())
+ return 0;
+
+ pb = (unsigned char *)imlib_image_get_data_for_reading_only();
+ if (!pb)
+ return 0;
+
+ pe = pb + 4 * imlib_image_get_width() * imlib_image_get_height();
+ pb += *((char *)(&oink));
+ for (; pb < pe; pb += 4)
+ if (*pb != 0xff)
+ return 1;
+
+ return 0;
+}
+
+void
+EImageCheckAlpha(EImage * im)
+{
+ imlib_context_set_image(im);
+
+ if (imlib_image_has_alpha() && !_EImageCheckAlpha())
+ {
+#if 0
+ Eprintf("Alpha set but no shape %s\n", is->real_file);
+#endif
+ imlib_image_set_has_alpha(0);
+ }
+}
+
+void
+EImageSetHasAlpha(EImage * im, int has_alpha)
+{
+ imlib_context_set_image(im);
+ imlib_image_set_has_alpha(has_alpha);
+}
+
+void
+EImageSetBorder(EImage * im, EImageBorder * border)
+{
+ Imlib_Border ib;
+
+ ib.left = border->left;
+ ib.right = border->right;
+ ib.top = border->top;
+ ib.bottom = border->bottom;
+ imlib_context_set_image(im);
+ imlib_image_set_border(&ib);
+}
+
+int
+EImageHasAlpha(EImage * im)
+{
+ imlib_context_set_image(im);
+ return imlib_image_has_alpha();
+}
+
+void
+EImageGetSize(EImage * im, int *pw, int *ph)
+{
+ imlib_context_set_image(im);
+ *pw = imlib_image_get_width();
+ *ph = imlib_image_get_height();
+}
+
+void *
+EImageGetData(EImage * im)
+{
+ imlib_context_set_image(im);
+ return imlib_image_get_data_for_reading_only();
+}
+
+void
+EImageFill(EImage * im, int x, int y, int w, int h, int r, int g, int b, int a)
+{
+ imlib_context_set_image(im);
+ imlib_context_set_color(r, g, b, a);
+ imlib_context_set_blend(0);
+ imlib_image_fill_rectangle(x, y, w, h);
+}
+
+void
+EImageOrientate(EImage * im, int orientation)
+{
+ imlib_context_set_image(im);
+ imlib_image_orientate(orientation);
+}
+
+void
+EImageBlend(EImage * im, EImage * src, int flags,
+ int sx, int sy, int sw, int sh,
+ int dx, int dy, int dw, int dh, int merge_alpha)
+{
+ imlib_context_set_image(im);
+ if (flags)
+ _EImageFlagsSet(flags);
+ imlib_blend_image_onto_image(src, merge_alpha, sx, sy, sw, sh,
+ dx, dy, dw, dh);
+ if (flags)
+ _EImageFlagsReset();
+}
+
+void
+EImageBlendCM(EImage * im, EImage * src, EImageColorModifier * icm)
+{
+ int w, h, iw, ih;
+
+ imlib_context_set_image(src);
+ iw = imlib_image_get_width();
+ ih = imlib_image_get_height();
+ imlib_context_set_image(im);
+ w = imlib_image_get_width();
+ h = imlib_image_get_height();
+
+ imlib_context_set_blend(1);
+ if (icm)
+ imlib_context_set_color_modifier(icm);
+ imlib_context_set_operation(IMLIB_OP_COPY);
+ imlib_blend_image_onto_image(src, 0, 0, 0, iw, ih, 0, 0, w, h);
+ imlib_context_set_blend(0);
+ if (icm)
+ imlib_context_set_color_modifier(NULL);
+}
+
+void
+EImageTile(EImage * im, EImage * tile, int flags, int tw, int th,
+ int dx, int dy, int dw, int dh, int ox, int oy)
+{
+ Imlib_Image tim;
+ int x, y, tx, ty, ww, hh;
+ int sw, sh;
+
+ if (tw <= 0 || th <= 0)
+ return;
+
+ if (flags)
+ _EImageFlagsSet(flags);
+
+ imlib_context_set_image(tile);
+ sw = imlib_image_get_width();
+ sh = imlib_image_get_height();
+ if (sw == tw && sh == th)
+ {
+ tim = tile;
+ }
+ else
+ {
+ tim = imlib_create_image(tw, th);
+ imlib_context_set_image(tim);
+ imlib_context_set_blend(0);
+ imlib_context_set_anti_alias(1);
+ imlib_blend_image_onto_image(tile, 0, 0, 0, sw, sh, 0, 0, tw, th);
+ imlib_context_set_anti_alias(0);
+ }
+ imlib_context_set_image(im);
+
+ if (ox)
+ {
+ ox = tw - ox;
+ ox %= tw;
+ if (ox < 0)
+ ox += tw;
+ }
+ if (oy)
+ {
+ oy = th - oy;
+ oy %= th;
+ if (oy < 0)
+ oy += th;
+ }
+ dw += dx;
+ dh += dy;
+ y = dy;
+ ty = oy;
+ hh = th - oy;
+ for (;;)
+ {
+ if (y + hh >= dh)
+ hh = dh - y;
+ if (hh <= 0)
+ break;
+ x = dx;
+ tx = ox;
+ ww = tw - ox;
+ for (;;)
+ {
+ if (x + ww >= dw)
+ ww = dw - x;
+ if (ww <= 0)
+ break;
+ imlib_blend_image_onto_image(tim, 0, tx, ty, ww, hh, x, y, ww, hh);
+ tx = 0;
+ x += ww;
+ ww = tw;
+ }
+ ty = 0;
+ y += hh;
+ hh = th;
+ }
+ if (tim != tile)
+ {
+ imlib_context_set_image(tim);
+ imlib_free_image();
+ imlib_context_set_image(im); /* FIXME - Remove */
+ }
+
+ if (flags)
+ _EImageFlagsReset();
+}
+
+EImage *
+EImageGrabDrawable(Drawable draw, Pixmap mask, int x, int y, int w, int h,
+ int grab)
+{
+ EImage *im;
+ Colormap cm;
+
+ cm = imlib_context_get_colormap();
+ imlib_context_set_colormap(None); /* Fix for grabbing bitmaps */
+ imlib_context_set_drawable(draw);
+ im = imlib_create_image_from_drawable(mask, x, y, w, h, grab);
+ imlib_context_set_colormap(cm);
+
+ return im;
+}
+
+EImage *
+EImageGrabDrawableScaled(Win win, Drawable draw, Pixmap mask,
+ int x, int y, int w, int h,
+ int iw, int ih, int grab, int get_mask_from_shape)
+{
+ EImage *im;
+ Visual *vis;
+
+ imlib_context_set_drawable(draw);
+ vis = (win) ? WinGetVisual(win) : NULL;
+ if (vis)
+ imlib_context_set_visual(vis);
+
+ im = imlib_create_scaled_image_from_drawable(mask, x, y, w, h, iw, ih, grab,
+ get_mask_from_shape);
+
+ if (vis)
+ imlib_context_set_visual(WinGetVisual(VROOT));
+
+ return im;
+}
+
+void
+EImageRenderOnDrawable(EImage * im, Win win, Drawable draw, int flags,
+ int x, int y, int w, int h)
+{
+ Visual *vis;
+
+ imlib_context_set_image(im);
+ imlib_context_set_drawable((draw != None) ? draw : WinGetXwin(win));
+ vis = (win) ? WinGetVisual(win) : NULL;
+ if (vis)
+ imlib_context_set_visual(vis);
+
+ if (flags)
+ _EImageFlagsSet(flags);
+ imlib_render_image_on_drawable_at_size(x, y, w, h);
+ if (flags)
+ _EImageFlagsReset();
+
+ if (vis)
+ imlib_context_set_visual(WinGetVisual(VROOT));
+}
+
+void
+EImageRenderPixmaps(EImage * im, Win win, int flags,
+ Pixmap * pmap, Pixmap * mask, int w, int h)
+{
+ Visual *vis;
+ Pixmap m;
+
+ imlib_context_set_image(im);
+ imlib_context_set_drawable((win) ? WinGetXwin(win) : WinGetXwin(VROOT));
+ vis = (win) ? WinGetVisual(win) : NULL;
+ if (vis)
+ imlib_context_set_visual(vis);
+
+ *pmap = None;
+ if (!mask) /* Imlib2 <= 1.3.0 needs a mask pointer */
+ mask = &m; /* ... to avoid bogus error messages */
+ if (mask)
+ *mask = None;
+
+ if (flags)
+ _EImageFlagsSet(flags);
+ if (w <= 0 || h <= 0)
+ imlib_render_pixmaps_for_whole_image(pmap, mask);
+ else
+ imlib_render_pixmaps_for_whole_image_at_size(pmap, mask, w, h);
+ if (flags)
+ _EImageFlagsReset();
+
+ if (vis)
+ imlib_context_set_visual(WinGetVisual(VROOT));
+}
+
+void
+EImagePixmapsFree(Pixmap pmap, Pixmap mask __UNUSED__)
+{
+ imlib_free_pixmap_and_mask(pmap);
+}
+
+void
+EImageApplyToWin(EImage * im, Win win, int flags, int w, int h)
+{
+ Pixmap pmap, mask;
+
+ EImageRenderPixmaps(im, win, flags, &pmap, &mask, w, h);
+ ESetWindowBackgroundPixmap(win, pmap);
+ if ((mask != None) || (mask == None && WinIsShaped(win)))
+ EShapeSetMask(win, 0, 0, mask);
+ EImagePixmapsFree(pmap, mask);
+ EClearWindow(win);
+}
+
+void
+ScaleRect(Win wsrc, Drawable src, Win wdst, Pixmap dst,
+ int sx, int sy, int sw, int sh,
+ int dx, int dy, int dw, int dh, int flags)
+{
+#if HAVE_X11_EXTENSIONS_XRENDER_H
+ if (Conf.testing.use_render_for_scaling)
+ {
+ XRenderPictFormat *pictfmt;
+ XRenderPictureAttributes pa;
+ XTransform tr;
+ Picture psrc, pdst;
+ double scale_x, scale_y;
+
+ scale_x = (double)sw / (double)dw;
+ scale_y = (double)sh / (double)dh;
+ memset(&tr, 0, sizeof(tr));
+ tr.matrix[0][0] = XDoubleToFixed(scale_x);
+ tr.matrix[1][1] = XDoubleToFixed(scale_y);
+ tr.matrix[2][2] = XDoubleToFixed(1.);
+
+ pa.subwindow_mode = IncludeInferiors;
+ pictfmt = XRenderFindVisualFormat(disp, wsrc->visual);
+ psrc = XRenderCreatePicture(disp, src, pictfmt, CPSubwindowMode, &pa);
+ pictfmt = XRenderFindVisualFormat(disp, wdst->visual);
+ pdst = XRenderCreatePicture(disp, dst, pictfmt, CPSubwindowMode, &pa);
+
+ XRenderSetPictureFilter(disp, psrc, (flags & EIMAGE_ANTI_ALIAS) ?
+ FilterBest : FilterNearest, NULL, 0);
+ XRenderSetPictureTransform(disp, psrc, &tr);
+ XRenderComposite(disp, PictOpSrc, psrc, None, pdst,
+ (int)(sx / scale_x + .5), (int)(sy / scale_y + .5),
+ 0, 0, dx, dy, dw, dh);
+ XRenderFreePicture(disp, psrc);
+ XRenderFreePicture(disp, pdst);
+ }
+ else
+#endif
+ {
+ int scale;
+ Imlib_Image im;
+
+ if (flags & (EIMAGE_ISCALE))
+ {
+ scale = (flags & EIMAGE_ISCALE) >> 8;
+ im = EImageGrabDrawableScaled(wsrc, src, None, sx, sy, sw, sh,
+ scale * dw, scale * dh, 0, 0);
+ flags |= EIMAGE_ANTI_ALIAS;
+ }
+ else
+ {
+ im = EImageGrabDrawableScaled(wsrc, src, None, sx, sy, sw, sh,
+ sw, sh, 0, 0);
+ }
+
+ EImageRenderOnDrawable(im, wdst, dst, flags, dx, dy, dw, dh);
+ imlib_free_image();
+ }
+}
+
+void
+ScaleTile(Win wsrc, Drawable src, Win wdst, Pixmap dst,
+ int dx, int dy, int dw, int dh, int scale)
+{
+ Imlib_Image im, tim;
+ int sw, sh, stw, sth, tw, th;
+
+ sw = WinGetW(wsrc);
+ sh = WinGetH(wsrc);
+ EXGetGeometry(src, NULL, NULL, NULL, &stw, &sth, NULL, NULL);
+ if (stw >= sw && sth >= sh)
+ {
+ ScaleRect(wsrc, src, wdst, dst, 0, 0, sw, sh, dx, dy, dw, dh, scale);
+ return;
+ }
+
+ /* Source Drawawble is smaller than source window - do scaled tiling */
+
+ scale = (scale) ? 2 : 1;
+
+ tw = (int)((double)(stw * scale * dw) / sw + .5);
+ th = (int)((double)(sth * scale * dh) / sh + .5);
+#if 0
+ Eprintf("ScaleTile: Tile %#lx %dx%d -> %dx%d T %dx%d -> %dx%d\n", src,
+ stw, sth, tw, th, scale * dw, scale * dh, dw, dh);
+#endif
+ tim =
+ EImageGrabDrawableScaled(wsrc, src, None, 0, 0, stw, sth, tw, th, 0, 0);
+ im = EImageCreate(scale * dw, scale * dh);
+ EImageTile(im, tim, 0, tw, th, 0, 0, scale * dw, scale * dh, 0, 0);
+ EImageFree(tim);
+
+ EImageRenderOnDrawable(im, wdst, dst, EIMAGE_ANTI_ALIAS, dx, dy, dw, dh);
+ imlib_free_image();
+}
+
+#if 0 /* Unused */
+void
+EDrawableDumpImage(Drawable draw, const char *txt)
+{
+ static int seqn = 0;
+ char buf[1024];
+ Imlib_Image im;
+ int w, h;
+
+ w = h = 0;
+ EXGetGeometry(draw, NULL, NULL, NULL, &w, &h, NULL, NULL);
+ if (w <= 0 || h <= 0)
+ return;
+ imlib_context_set_drawable(draw);
+ im = imlib_create_image_from_drawable(None, 0, 0, w, h, !EServerIsGrabbed());
+ imlib_context_set_image(im);
+ imlib_image_set_format("png");
+ sprintf(buf, "%s-%#lx-%d.png", txt, draw, seqn++);
+ Eprintf("EDrawableDumpImage: %s\n", buf);
+ imlib_save_image(buf);
+ imlib_free_image_and_decache();
+}
+#endif
+
+void
+FreePmapMask(PmapMask * pmm)
+{
+ /* type !=0: Created by imlib_render_pixmaps_for_whole_image... */
+ if (pmm->pmap)
+ {
+ if (pmm->type == 0)
+ EFreePixmap(pmm->pmap);
+ else
+ imlib_free_pixmap_and_mask(pmm->pmap);
+ pmm->pmap = 0;
+ }
+
+ if (pmm->mask)
+ {
+ if (pmm->type == 0)
+ EFreePixmap(pmm->mask);
+ pmm->mask = 0;
+ }
+}
+
+EImageColorModifier *
+EImageColorModifierCreate(void)
+{
+ return imlib_create_color_modifier();
+}
+
+void
+EImageColorModifierSetTables(EImageColorModifier * icm,
+ unsigned char *r, unsigned char *g,
+ unsigned char *b, unsigned char *a)
+{
+ if (!icm)
+ return;
+
+ imlib_context_set_color_modifier(icm);
+#if 0 /* Useful in this context? */
+ imlib_modify_color_modifier_gamma(0.5);
+ imlib_modify_color_modifier_brightness(0.5);
+ imlib_modify_color_modifier_contrast(0.5);
+#endif
+ imlib_set_color_modifier_tables(r, g, b, a);
+ imlib_context_set_color_modifier(NULL);
+}
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EIMAGE_H_
+#define _EIMAGE_H_
+
+#include <X11/X.h>
+#include "xtypes.h"
+
+typedef void EImage;
+typedef void EImageColorModifier;
+
+typedef struct {
+ int left, right, top, bottom;
+} EImageBorder;
+
+#define EIMAGE_BLEND 0x0001
+#define EIMAGE_ANTI_ALIAS 0x0002
+#define EIMAGE_HIGH_MASK_THR 0x0004
+#define EIMAGE_ISCALE 0x0f00 /* Intermediate scaling */
+
+void EImageInit(void);
+void EImageExit(int quit);
+int EImageSetCacheSize(int size);
+
+EImage *EImageCreate(int w, int h);
+EImage *EImageCreateFromData(int w, int h, unsigned int *data);
+EImage *EImageCreateScaled(EImage * im, int sx, int sy,
+ int sw, int sh, int dw, int dh);
+
+void EImageFree(EImage * im);
+void EImageDecache(EImage * im);
+
+void EImageSave(EImage * im, const char *file);
+EImage *EImageLoad(const char *file);
+
+void EImageCheckAlpha(EImage * im);
+
+void EImageSetHasAlpha(EImage * im, int has_alpha);
+void EImageSetBorder(EImage * im, EImageBorder * border);
+
+int EImageHasAlpha(EImage * im);
+void EImageGetSize(EImage * im, int *pw, int *ph);
+void *EImageGetData(EImage * im);
+
+void EImageFill(EImage * im, int x, int y, int w, int h, int r,
+ int g, int b, int a);
+void EImageOrientate(EImage * im, int orientation);
+
+void EImageBlend(EImage * im, EImage * src, int flags,
+ int sx, int sy, int sw, int sh,
+ int dx, int dy, int dw, int dh,
+ int merge_alpha);
+void EImageBlendCM(EImage * im, EImage * src,
+ EImageColorModifier * icm);
+void EImageTile(EImage * im, EImage * tile, int flags, int tw,
+ int th, int dx, int dy, int dw, int dh, int ox,
+ int oy);
+
+EImage *EImageGrabDrawable(Drawable draw, Pixmap mask,
+ int x, int y, int w, int h, int grab);
+EImage *EImageGrabDrawableScaled(Win win,
+ Drawable draw, Pixmap mask,
+ int x, int y, int w, int h,
+ int iw, int ih, int grab,
+ int get_mask_from_shape);
+
+void EImageRenderOnDrawable(EImage * im, Win win, Drawable draw,
+ int flags,
+ int x, int y, int w, int h);
+
+void EImageRenderPixmaps(EImage * im, Win win, int flags,
+ Pixmap * pmap, Pixmap * mask,
+ int w, int h);
+void EImagePixmapsFree(Pixmap pmap, Pixmap mask);
+
+void EImageApplyToWin(EImage * im, Win win, int flags,
+ int w, int h);
+
+EImageColorModifier *EImageColorModifierCreate(void);
+void EImageColorModifierSetTables(EImageColorModifier * icm,
+ unsigned char *r,
+ unsigned char *g,
+ unsigned char *b,
+ unsigned char *a);
+
+void ScaleRect(Win wsrc, Drawable src, Win wdst, Pixmap dst,
+ int sx, int sy, int sw, int sh,
+ int dx, int dy, int dw, int dh, int flags);
+void ScaleTile(Win wsrc, Drawable src, Win wdst, Pixmap dst,
+ int dx, int dy, int dw, int dh, int flags);
+
+void EDrawableDumpImage(Drawable draw, const char *txt);
+
+EImage *ThemeImageLoad(const char *file);
+
+#endif /* _EIMAGE_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2003-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "emodule.h"
+
+#if 0 /* No dynamic registration yet */
+void
+EModuleRegister(EModule * em)
+{
+ p_modules = EREALLOC(EModule *, p_modules, n_modules + 1);
+ p_modules[n_modules++] = em;
+}
+#endif
+
+const EModule **
+ModuleListGet(int *num)
+{
+ *num = n_modules;
+ return p_modules;
+}
+
+void
+ModuleListFree(const EModule ** lst __UNUSED__)
+{
+}
+
+static const EModule *
+EModuleFind(const char *name)
+{
+ int i;
+ const EModule *pm;
+
+ for (i = 0; i < n_modules; i++)
+ {
+ pm = p_modules[i];
+ if (!strncmp(name, pm->name, 4) ||
+ (pm->nick && !strcmp(name, pm->nick)))
+ return pm;
+ }
+ return NULL;
+}
+
+int
+ModuleConfigSet(const char *name, const char *item, const char *params)
+{
+ const EModule *em;
+
+ em = EModuleFind(name);
+ if (!em)
+ return -1;
+
+ if (em->cfg.num <= 0)
+ return -1;
+
+ CfgItemListNamedItemSet(em->cfg.lst, em->cfg.num, item, params);
+
+ return 0;
+}
+
+static void
+EmodCfgItemShow(const EModule * em, const CfgItem * ci)
+{
+ char buf[1024];
+
+ if (!ci)
+ return;
+
+ CfgItemToString(ci, buf, sizeof(buf));
+ IpcPrintf(" %s.%s = %s\n", em->name, ci->name, buf);
+}
+
+static void
+EmodCfgNamedItemShow(const EModule * em, const char *item)
+{
+ const CfgItem *ci;
+
+ ci = CfgItemFind(em->cfg.lst, em->cfg.num, item);
+ if (ci)
+ EmodCfgItemShow(em, ci);
+ else
+ IpcPrintf("! %s.%s *** Not found ***\n", em->name, item);
+}
+
+int
+ModuleConfigShow(const char *name, const char *item)
+{
+ const EModule *em;
+ int i;
+
+#if 0
+ Eprintf("ModuleConfigShow: %s:%s\n", name, item);
+#endif
+ em = EModuleFind(name);
+ if (!em)
+ return -1;
+
+ if (item)
+ {
+ EmodCfgNamedItemShow(em, item);
+ }
+ else
+ {
+ for (i = 0; i < em->cfg.num; i++)
+ EmodCfgItemShow(em, em->cfg.lst + i);
+ }
+
+ return 0;
+}
+
+void
+ModulesSignal(int sig, void *prm)
+{
+ int i;
+
+ for (i = 0; i < n_modules; i++)
+ if (p_modules[i]->Signal)
+ p_modules[i]->Signal(sig, prm);
+}
+
+#if 0
+void
+ModulesGetCfgItems(const CfgItem *** ppi, int *pni)
+{
+ int i, j, k, n;
+ const CfgItem **pi;
+
+ pi = *ppi;
+ k = *pni;
+ for (i = 0; i < n_modules; i++)
+ {
+ if (p_modules[i]->cfg.lst)
+ {
+ n = p_modules[i]->cfg.num;
+ pi = EREALLOC(CfgItem *, pi, k + n);
+ for (j = 0; j < n; j++)
+ pi[k++] = &(p_modules[i]->cfg.lst[j]);
+ }
+ }
+ *ppi = pi;
+ *pni = k;
+}
+#endif
+
+void
+ModulesGetIpcItems(const IpcItem *** ppi, int *pni)
+{
+ int i, j, k, n;
+ const IpcItem **pi;
+
+ pi = *ppi;
+ k = *pni;
+ for (i = 0; i < n_modules; i++)
+ {
+ if (p_modules[i]->ipc.lst)
+ {
+ n = p_modules[i]->ipc.num;
+ pi = EREALLOC(const IpcItem *, pi, k + n);
+
+ for (j = 0; j < n; j++)
+ pi[k++] = &(p_modules[i]->ipc.lst[j]);
+ }
+ }
+ *ppi = pi;
+ *pni = k;
+}
+
+void
+ModulesConfigShow(void)
+{
+ int i, nml;
+ const EModule **pml;
+
+ /* Load module configs */
+ pml = ModuleListGet(&nml);
+ for (i = 0; i < nml; i++)
+ {
+ /* Somewhat inefficient but ... later */
+ ModuleConfigShow(pml[i]->name, NULL);
+ }
+ ModuleListFree(pml);
+}
--- /dev/null
+/*
+ * Copyright (C) 2003-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EMODULE_H_
+#define _EMODULE_H_
+
+#include "econfig.h"
+#include "ipc.h"
+
+typedef struct {
+ const char *name;
+ const char *nick;
+ void (*Signal) (int sig, void *prm);
+ IpcItemList ipc;
+ CfgItemList cfg;
+} EModule;
+
+typedef enum {
+ ESIGNAL_NONE,
+ ESIGNAL_INIT,
+ ESIGNAL_CONFIGURE,
+ ESIGNAL_START,
+ ESIGNAL_EXIT,
+ ESIGNAL_AREA_CONFIGURED,
+ ESIGNAL_AREA_SWITCH_START,
+ ESIGNAL_AREA_SWITCH_DONE,
+ ESIGNAL_DESK_ADDED,
+ ESIGNAL_DESK_REMOVED,
+ ESIGNAL_DESK_SWITCH_START,
+ ESIGNAL_DESK_SWITCH_DONE,
+ ESIGNAL_DESK_RESIZE,
+ ESIGNAL_BACKGROUND_CHANGE,
+ ESIGNAL_ANIMATION_SUSPEND,
+ ESIGNAL_ANIMATION_RESUME,
+ ESIGNAL_EWIN_CREATE,
+ ESIGNAL_EWIN_DESTROY,
+ ESIGNAL_EWIN_UNMAP,
+ ESIGNAL_EWIN_ICONIFY,
+ ESIGNAL_EWIN_DEICONIFY,
+ ESIGNAL_EWIN_CHANGE_ICON,
+ ESIGNAL_EWIN_CHANGE,
+ ESIGNAL_EWIN_DAMAGE,
+ ESIGNAL_THEME_TRANS_CHANGE,
+} e_signal_t;
+
+#if 0 /* Maybe later */
+void EModuleRegister(EModule * em);
+#endif
+
+extern const EModule *p_modules[];
+extern int n_modules;
+
+const EModule **ModuleListGet(int *num);
+void ModuleListFree(const EModule ** lst);
+
+int ModuleConfigSet(const char *name, const char *item,
+ const char *params);
+int ModuleConfigShow(const char *name, const char *item);
+
+void ModulesSignal(int signal, void *prm);
+void ModulesConfigShow(void);
+
+#if 0
+void ModulesGetCfgItems(const CfgItem *** pi, int *ni);
+#endif
+void ModulesGetIpcItems(const IpcItem *** pi, int *ni);
+
+#endif /* _EMODULE_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "e16-ecore_hints.h"
+#include "ecompmgr.h"
+#include "eobj.h"
+#include "ewins.h" /* FIXME - Should not be here */
+#include "hints.h"
+#include "xwin.h"
+
+int
+OpacityFix(int op, int op_0)
+{
+ if (op <= 0)
+ op = op_0;
+ else if (op > 255)
+ op = 100;
+ else if (op > 100) /* Hack to convert old 0-255 range */
+ op = (100 * op) / 255;
+ return op;
+}
+
+unsigned int
+OpacityFromPercent(int opx)
+{
+ unsigned int op = (unsigned int)opx;
+
+ /* op is 0-100, extend to 32 bit */
+ /* op <= 0 and op > 100 is mapped to 100 (opaque) */
+ if (op >= 100)
+ return 0xffffffff;
+ return op * 42949672;
+}
+
+int
+OpacityToPercent(unsigned int opacity)
+{
+ return (int)(opacity / 42949672);
+}
+
+void
+EobjSetLayer(EObj * eo, int layer)
+{
+ int ilayer = eo->ilayer;
+
+ eo->layer = layer;
+ /*
+ * For usual EWin's the internal layer is the "old" E-layer * 10.
+ *
+ * Internal layers:
+ * 0: Root
+ * 3: Desktop type apps
+ * 5: Below buttons
+ * 10: Lowest ewins
+ * 15: Normal buttons
+ * 20: Normal below ewins
+ * 40: Normal ewins
+ * 60: Above ewins
+ * 75: Above buttons
+ * 80: Ontop ewins
+ * 100: E-Dialogs
+ * 512-: Floating windows
+ * + 0: Virtual desktops
+ * +30: E-Menus
+ * +40: Override redirects
+ * +40: E-Tooltips
+ */
+
+ switch (eo->type)
+ {
+ case EOBJ_TYPE_EWIN:
+ eo->ilayer = 10 * eo->layer;
+ if (eo->ilayer == 0)
+ eo->ilayer = 3;
+ break;
+
+ case EOBJ_TYPE_BUTTON:
+ if (eo->layer > 0)
+ eo->ilayer = 75; /* Ontop */
+ else if (eo->layer == 0)
+ eo->ilayer = 15; /* Normal */
+ else if (eo->layer < 0)
+ eo->ilayer = 5; /* Below */
+ if (eo->layer > 0 && eo->sticky)
+ eo->floating = 1;
+ break;
+
+ default:
+ eo->ilayer = 10 * eo->layer;
+ break;
+ }
+
+ if (eo->floating)
+ eo->ilayer |= 512;
+ else
+ eo->ilayer &= ~512;
+ if (eo->ghost)
+ eo->ilayer |= 1024;
+
+ if (eo->ilayer != ilayer)
+ EobjRaise(eo);
+}
+
+void
+EobjSetFloating(EObj * eo, int floating)
+{
+ if (floating == eo->floating)
+ return;
+
+#if 0
+ switch (eo->type)
+ {
+ default:
+ break;
+ case EOBJ_TYPE_EWIN:
+ if (floating > 1)
+ eo->desk = 0;
+ break;
+ }
+#endif
+
+ eo->floating = floating;
+ EobjSetLayer(eo, eo->layer);
+}
+
+#if 1 /* FIXME - Remove */
+int
+EobjIsShaped(const EObj * eo)
+{
+ switch (eo->type)
+ {
+ default:
+ return 0; /* FIXME */
+ case EOBJ_TYPE_EWIN:
+ return ((EWin *) eo)->state.shaped;
+ }
+}
+#endif
+
+#if USE_GLX
+#define WINTYPE(t) ((t == EOBJ_TYPE_GLX) ? WIN_TYPE_GLX : WIN_TYPE_INTERNAL)
+#else
+#define WINTYPE(t) WIN_TYPE_INTERNAL
+#endif
+
+void
+EobjInit(EObj * eo, int type, Win win, int x, int y, int w, int h,
+ int su, const char *name)
+{
+ if (!eo->desk)
+ eo->desk = DeskGet(0);
+
+ if (!win)
+ {
+ if (type == EOBJ_TYPE_EVENT)
+ {
+ win = ECreateEventWindow(VROOT, x, y, w, h);
+ eo->inputonly = 1;
+ }
+ else
+ {
+ win = ECreateObjectWindow(EoGetWin(eo->desk), x, y, w, h, su,
+ WINTYPE(type), NULL);
+ }
+ }
+ eo->type = type;
+ eo->win = win;
+ eo->shaped = -1;
+ if (!win)
+ return;
+
+ if (type == EOBJ_TYPE_EXT)
+ {
+ eo->icccm.wm_name = ecore_x_icccm_title_get(WinGetXwin(win));
+ ecore_x_icccm_name_class_get(WinGetXwin(win),
+ &eo->icccm.wm_res_name,
+ &eo->icccm.wm_res_class);
+ }
+ else if (name)
+ eo->icccm.wm_name = Estrdup(name);
+ if (!eo->icccm.wm_name)
+ eo->icccm.wm_name = Estrdup("-?-");
+
+ if (type != EOBJ_TYPE_EWIN && type != EOBJ_TYPE_EXT)
+ HintsSetWindowName(EobjGetWin(eo), eo->icccm.wm_name);
+
+#if USE_COMPOSITE
+ switch (type)
+ {
+ case EOBJ_TYPE_EVENT:
+ case EOBJ_TYPE_MISC_NR:
+ case EOBJ_TYPE_ROOT_BG:
+ eo->noredir = 1;
+ break;
+ }
+ ECompMgrWinNew(eo);
+#endif
+ if (EobjGetXwin(eo) != WinGetXwin(VROOT))
+ EobjListStackAdd(eo, 1);
+
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EobjInit: %#lx %s\n", EobjGetXwin(eo), EobjGetName(eo));
+}
+
+void
+EobjFini(EObj * eo)
+{
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EobjFini: %#lx %s\n", EobjGetXwin(eo), EobjGetName(eo));
+
+ EobjListStackDel(eo);
+
+#if USE_COMPOSITE
+ if (!eo->external)
+ eo->gone = 1; /* Actually not yet (but soon) */
+
+ if (eo->cmhook)
+ ECompMgrWinDel(eo);
+#endif
+
+ if (eo->external)
+ EUnregisterWindow(EobjGetWin(eo));
+ else
+ EDestroyWindow(EobjGetWin(eo));
+
+ Efree(eo->icccm.wm_name);
+ Efree(eo->icccm.wm_res_name);
+ Efree(eo->icccm.wm_res_class);
+}
+
+void
+EobjDestroy(EObj * eo)
+{
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EobjDestroy: %#lx %s\n", EobjGetXwin(eo), EobjGetName(eo));
+
+ EobjFini(eo);
+
+ Efree(eo);
+}
+
+EObj *
+EobjWindowCreate(int type, int x, int y, int w, int h, int su, const char *name)
+{
+ EObj *eo;
+
+ eo = ECALLOC(EObj, 1);
+
+ eo->floating = 1;
+ EobjSetLayer(eo, 20);
+ EobjInit(eo, type, EobjGetWin(eo), x, y, w, h, su, name);
+ if (eo->win == NULL)
+ {
+ Efree(eo);
+ eo = NULL;
+ }
+
+ return eo;
+}
+
+void
+EobjWindowDestroy(EObj * eo)
+{
+ EobjDestroy(eo);
+}
+
+EObj *
+EobjRegister(Window xwin, int type)
+{
+ EObj *eo;
+ XWindowAttributes attr;
+ Win win;
+
+ eo = EobjListStackFind(xwin);
+ if (eo)
+ return eo;
+
+ if (!XGetWindowAttributes(disp, xwin, &attr))
+ return NULL;
+
+ if (type == EOBJ_TYPE_EXT && !attr.override_redirect)
+ return NULL;
+
+ win = ERegisterWindow(xwin, &attr);
+ if (!win)
+ return NULL;
+
+ eo = ECALLOC(EObj, 1);
+ if (!eo)
+ return eo;
+
+#if __cplusplus
+ if (attr.c_class == InputOnly)
+#else
+ if (attr.class == InputOnly)
+#endif
+ eo->inputonly = 1;
+
+ eo->external = 1;
+ eo->fade = 1;
+ eo->shadow = 1;
+
+ EobjInit(eo, type, win, attr.x, attr.y, attr.width, attr.height, 0, NULL);
+
+#if 1 /* FIXME - TBD */
+ if (type == EOBJ_TYPE_EXT)
+ {
+ eo->shaped = 0; /* FIXME - Assume unshaped for now */
+ EobjSetFloating(eo, 1);
+ EobjSetLayer(eo, 4);
+ }
+#endif
+#if 0
+ Eprintf("EobjRegister: %#lx type=%d or=%d: %s\n", xwin, type,
+ attr.override_redirect, EobjGetName(eo));
+#endif
+
+ return eo;
+}
+
+void
+EobjUnregister(EObj * eo)
+{
+#if 0
+ Eprintf("EobjUnregister: %#lx type=%d: %s\n", eo->win, eo->type,
+ EobjGetName(eo));
+#endif
+ EobjDestroy(eo);
+}
+
+void
+EobjMap(EObj * eo, int raise)
+{
+ if (eo->shown)
+ return;
+ eo->shown = 1;
+
+ if (raise)
+ EobjListStackRaise(eo, 0);
+
+ if (eo->stacked <= 0 || raise > 1)
+ DeskRestack(eo->desk);
+
+ if (eo->shaped < 0)
+ EobjShapeUpdate(eo, 0);
+
+ EMapWindow(EobjGetWin(eo));
+#if USE_COMPOSITE
+ ECompMgrWinMap(eo);
+#endif
+}
+
+void
+EobjUnmap(EObj * eo)
+{
+ if (!eo->shown)
+ return;
+
+#if USE_COMPOSITE
+ if (eo->cmhook)
+ ECompMgrWinUnmap(eo);
+#endif
+ EUnmapWindow(EobjGetWin(eo));
+ eo->shown = 0;
+}
+
+void
+EobjMoveResize(EObj * eo, int x, int y, int w, int h)
+{
+ int move, resize;
+
+ move = x != EobjGetX(eo) || y != EobjGetY(eo);
+ resize = w != EobjGetW(eo) || h != EobjGetH(eo);
+#if USE_COMPOSITE
+ if (eo->type == EOBJ_TYPE_EWIN)
+ {
+ ECompMgrMoveResizeFix(eo, x, y, w, h);
+ }
+ else
+#endif
+ {
+ EMoveResizeWindow(EobjGetWin(eo), x, y, w, h);
+ }
+#if USE_COMPOSITE
+ if (eo->cmhook)
+ ECompMgrWinMoveResize(eo, move, resize, 0);
+#endif
+}
+
+void
+EobjMove(EObj * eo, int x, int y)
+{
+ EobjMoveResize(eo, x, y, EobjGetW(eo), EobjGetH(eo));
+}
+
+void
+EobjResize(EObj * eo, int w, int h)
+{
+ EobjMoveResize(eo, EobjGetX(eo), EobjGetY(eo), w, h);
+}
+
+void
+EobjDamage(EObj * eo)
+{
+#if USE_COMPOSITE
+ if (eo->cmhook)
+ ECompMgrWinDamageArea(eo, 0, 0, 0, 0);
+#else
+ eo = NULL;
+#endif
+}
+
+void
+EobjReparent(EObj * eo, EObj * dst, int x, int y)
+{
+ int move;
+
+ move = x != EobjGetX(eo) || y != EobjGetY(eo);
+
+ EReparentWindow(EobjGetWin(eo), EobjGetWin(dst), x, y);
+ if (dst->type == EOBJ_TYPE_DESK)
+ {
+ Desk *dsk = (Desk *) dst;
+
+ if (eo->stacked < 0)
+ {
+ eo->desk = NULL;
+ eo->stacked = 0;
+ }
+ if (eo->desk != dsk)
+ DeskSetDirtyStack(dsk, eo);
+#if USE_COMPOSITE
+ if (eo->cmhook)
+ ECompMgrWinReparent(eo, dsk, move);
+#endif
+ eo->desk = dsk;
+ }
+ else
+ {
+ EobjListStackDel(eo);
+#if USE_COMPOSITE
+ if (eo->cmhook)
+ ECompMgrWinDel(eo);
+#endif
+ }
+}
+
+int
+EobjRaise(EObj * eo)
+{
+#if USE_COMPOSITE
+ int num;
+
+ num = EobjListStackRaise(eo, 1);
+ if (num == 0)
+ return num;
+
+ if (num < 0)
+ num = EobjListStackRaise(eo, 0);
+ if (eo->shown && eo->cmhook)
+ ECompMgrWinRaiseLower(eo, num);
+ if (num > 0)
+ num = EobjListStackRaise(eo, 0);
+
+ return num;
+#else
+ return EobjListStackRaise(eo, 0);
+#endif
+}
+
+int
+EobjLower(EObj * eo)
+{
+#if USE_COMPOSITE
+ int num;
+
+ num = EobjListStackLower(eo, 1);
+ if (num == 0)
+ return num;
+
+ if (num < 0)
+ num = EobjListStackLower(eo, 0);
+ if (eo->shown && eo->cmhook)
+ ECompMgrWinRaiseLower(eo, num);
+ if (num > 0)
+ num = EobjListStackLower(eo, 0);
+
+ return num;
+#else
+ return EobjListStackLower(eo, 0);
+#endif
+}
+
+void
+EobjShapeUpdate(EObj * eo, int propagate)
+{
+#if USE_COMPOSITE
+ int was_shaped = eo->shaped;
+#endif
+
+ if (propagate)
+ eo->shaped = EShapePropagate(EobjGetWin(eo)) != 0;
+ else
+ eo->shaped = EShapeCheck(EobjGetWin(eo)) != 0;
+
+#if USE_COMPOSITE
+ if (was_shaped <= 0 && eo->shaped <= 0)
+ return;
+
+ /* Shape may still be unchanged. Well ... */
+ if (eo->shown && eo->cmhook)
+ ECompMgrWinChangeShape(eo);
+#endif
+}
+
+Pixmap
+EobjGetPixmap(const EObj * eo)
+{
+ Pixmap pmap = None;
+
+#if USE_COMPOSITE
+ pmap = ECompMgrWinGetPixmap(eo);
+#else
+ eo = NULL;
+#endif
+ return pmap;
+}
+
+void
+EobjChangeOpacity(EObj * eo, unsigned int opacity)
+{
+#if USE_COMPOSITE
+ if (eo->opacity == opacity)
+ return;
+ eo->opacity = opacity;
+ ECompMgrWinChangeOpacity(eo, opacity);
+#else
+ eo = NULL;
+ opacity = 0;
+#endif
+}
+
+#if USE_COMPOSITE
+void
+EobjChangeShadow(EObj * eo, int shadow)
+{
+ ECompMgrWinChangeShadow(eo, shadow);
+}
+#endif
+
+void
+EobjSlideTo(EObj * eo, int fx, int fy, int tx, int ty, int speed)
+{
+ int k, x, y;
+
+ EGrabServer();
+
+ ETimedLoopInit(0, 1024, speed);
+ for (k = 0; k <= 1024;)
+ {
+ x = ((fx * (1024 - k)) + (tx * k)) >> 10;
+ y = ((fy * (1024 - k)) + (ty * k)) >> 10;
+ EobjMove(eo, x, y);
+
+ k = ETimedLoopNext();
+ }
+ EobjMove(eo, tx, ty);
+
+ EUngrabServer();
+}
+
+void
+EobjsSlideBy(EObj ** peo, int num, int dx, int dy, int speed)
+{
+ int i, k, x, y;
+ struct _xy {
+ int x, y;
+ } *xy;
+
+ if (num <= 0)
+ return;
+
+ xy = EMALLOC(struct _xy, num);
+ if (!xy)
+ return;
+
+ for (i = 0; i < num; i++)
+ {
+ xy[i].x = EobjGetX(peo[i]);
+ xy[i].y = EobjGetY(peo[i]);
+ }
+
+ ETimedLoopInit(0, 1024, speed);
+ for (k = 0; k <= 1024;)
+ {
+ for (i = 0; i < num; i++)
+ {
+ x = ((xy[i].x * (1024 - k)) + ((xy[i].x + dx) * k)) >> 10;
+ y = ((xy[i].y * (1024 - k)) + ((xy[i].y + dy) * k)) >> 10;
+ EobjMove(peo[i], x, y);
+ }
+
+ k = ETimedLoopNext();
+ }
+
+ for (i = 0; i < num; i++)
+ EobjMove(peo[i], xy[i].x + dx, xy[i].y + dy);
+
+ Efree(xy);
+}
+
+void
+EobjSlideSizeTo(EObj * eo, int fx, int fy, int tx, int ty, int fw, int fh,
+ int tw, int th, int speed)
+{
+ int k, x, y, w, h;
+
+ ETimedLoopInit(0, 1024, speed);
+ for (k = 0; k <= 1024;)
+ {
+ x = ((fx * (1024 - k)) + (tx * k)) >> 10;
+ y = ((fy * (1024 - k)) + (ty * k)) >> 10;
+ w = ((fw * (1024 - k)) + (tw * k)) >> 10;
+ h = ((fh * (1024 - k)) + (th * k)) >> 10;
+ EobjMoveResize(eo, x, y, w, h);
+
+ k = ETimedLoopNext();
+ }
+ EobjMoveResize(eo, tx, ty, tw, th);
+}
+
+void
+EobjsRepaint(void)
+{
+#if USE_COMPOSITE
+ if (ECompMgrIsActive())
+ ECompMgrRepaint();
+ else
+#endif
+ ESync(0);
+}
+
+#if USE_COMPOSITE
+void
+EobjsOpacityUpdate(int op_or)
+{
+ EObj *eo, *const *lst;
+ int i, num;
+
+ lst = EobjListStackGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ eo = lst[i];
+ switch (eo->type)
+ {
+ default:
+ break;
+ case EOBJ_TYPE_EWIN:
+ EwinUpdateOpacity((EWin *) eo);
+ break;
+ case EOBJ_TYPE_EXT:
+ EobjChangeOpacity(eo, OpacityFromPercent(op_or));
+ break;
+ }
+ }
+}
+#endif
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EOBJ_H_
+#define _EOBJ_H_
+
+#include "etypes.h"
+#include "xwin.h"
+
+typedef struct _eobj EObj;
+
+struct _eobj {
+ Win win; /* The top level window */
+ short type; /* Ewin, button, other, ... */
+ short ilayer; /* Internal stacking layer */
+ short layer; /* Stacking layer */
+ signed char stacked;
+ signed char shaped;
+ Desk *desk; /* Belongs on desk */
+ char sticky;
+ char floating;
+ unsigned external:1;
+ unsigned inputonly:1;
+ unsigned shown:1;
+ unsigned gone:1;
+ unsigned noredir:1; /* Do not redirect */
+ unsigned shadow:1; /* Enable shadows */
+ unsigned fade:1; /* Enable fading */
+ unsigned fading:1; /* Is fading */
+ unsigned ghost:1; /* Ghost window */
+ struct {
+ char *wm_name;
+ char *wm_res_name;
+ char *wm_res_class;
+ } icccm;
+#if USE_COMPOSITE
+ unsigned int serial;
+ unsigned int opacity;
+ struct _cmhook *cmhook;
+#endif
+#if USE_GLX
+ struct _glhook *glhook;
+#endif
+};
+
+#define EOBJ_TYPE_EWIN 0
+#define EOBJ_TYPE_BUTTON 1
+#define EOBJ_TYPE_DESK 2
+#define EOBJ_TYPE_MISC 3
+#define EOBJ_TYPE_EVENT 4 /* Unredirected */
+#define EOBJ_TYPE_EXT 5
+#define EOBJ_TYPE_MISC_NR 6 /* Unredirected */
+#define EOBJ_TYPE_ROOT_BG 7
+#define EOBJ_TYPE_GLX 8
+
+#define EobjGetWin(eo) ((eo)->win)
+#define EobjGetXwin(eo) WinGetXwin(EobjGetWin(eo))
+#define EobjGetX(eo) WinGetX(EobjGetWin(eo))
+#define EobjGetY(eo) WinGetY(EobjGetWin(eo))
+#define EobjGetW(eo) WinGetW(EobjGetWin(eo))
+#define EobjGetH(eo) WinGetH(EobjGetWin(eo))
+#define EobjGetBW(eo) WinGetBorderWidth(EobjGetWin(eo))
+#define EobjGetType(eo) ((eo)->type)
+#define EobjGetDesk(eo) ((eo)->desk)
+#define EobjGetName(eo) ((eo)->icccm.wm_name)
+#define EobjGetCName(eo) ((eo)->icccm.wm_res_name)
+#define EobjGetClass(eo) ((eo)->icccm.wm_res_class)
+
+#define EoObj(eo) (&((eo)->o))
+#define EoGetWin(eo) EobjGetWin(EoObj(eo))
+#define EoGetXwin(eo) EobjGetXwin(EoObj(eo))
+#define EoGetType(eo) EobjGetType(EoObj(eo))
+#define EoGetDesk(eo) EobjGetDesk(EoObj(eo))
+#define EoGetName(eo) EobjGetName(EoObj(eo))
+#define EoGetCName(eo) EobjGetCName(EoObj(eo))
+#define EoGetClass(eo) EobjGetClass(EoObj(eo))
+#define EoGetX(eo) EobjGetX(EoObj(eo))
+#define EoGetY(eo) EobjGetY(EoObj(eo))
+#define EoGetW(eo) EobjGetW(EoObj(eo))
+#define EoGetH(eo) EobjGetH(EoObj(eo))
+#define EoIsGone(eo) (EoObj(eo)->gone)
+#define EoIsSticky(eo) (EoObj(eo)->sticky)
+#define EoIsFloating(eo) (EoObj(eo)->floating)
+#define EoIsShown(eo) (EoObj(eo)->shown)
+#define EoGetDeskNum(eo) (EoGetDesk(eo)->num)
+#define EoGetLayer(eo) (EoObj(eo)->layer)
+#define EoGetPixmap(eo) EobjGetPixmap(EoObj(eo))
+
+#define EoSetGone(eo) EoObj(eo)->gone = 1
+#define EoSetSticky(eo, _x) EoObj(eo)->sticky = ((_x)?1:0)
+#define EoSetFloating(eo, _f) EobjSetFloating(EoObj(eo), (_f))
+#define EoSetDesk(eo, _x) EoObj(eo)->desk = (_x)
+#define EoSetLayer(eo, _l) EobjSetLayer(EoObj(eo), (_l))
+#define EoChangeOpacity(eo, _o) EobjChangeOpacity(EoObj(eo), _o)
+#define EoSetFade(eo, _x) EoObj(eo)->fade = (_x)
+#define EoSetNoRedirect(eo, _x) EoObj(eo)->noredir = (_x)
+#define EoSetOpacity(eo, _o) EoObj(eo)->opacity = (_o)
+#define EoSetShadow(eo, _x) EoObj(eo)->shadow = (_x)
+#if USE_COMPOSITE
+#define EoGetOpacity(eo) (EoObj(eo)->opacity)
+#define EoGetFade(eo) (EoObj(eo)->fade)
+#define EoChangeShadow(eo, _x) EobjChangeShadow(EoObj(eo), _x)
+#define EoGetShadow(eo) (EoObj(eo)->shadow)
+#define EoGetNoRedirect(eo) (EoObj(eo)->noredir)
+#define EoGetSerial(eo) (EoObj(eo)->serial)
+#else
+#define EoGetSerial(eo) 0
+#endif
+
+#define EoInit(eo, type, win, x, y, w, h, su, name) \
+ EobjInit(EoObj(eo), type, win, x, y, w, h, su, name)
+#define EoFini(eo) EobjFini(EoObj(eo));
+#define EoMap(eo, raise) EobjMap(EoObj(eo), raise)
+#define EoUnmap(eo) EobjUnmap(EoObj(eo))
+#define EoMove(eo, x, y) EobjMove(EoObj(eo), x, y)
+#define EoResize(eo, w, h) EobjResize(EoObj(eo), w, h)
+#define EoMoveResize(eo, x, y, w, h) EobjMoveResize(EoObj(eo), x, y, w, h)
+#define EoReparent(eo, d, x, y) EobjReparent(EoObj(eo), d, x, y)
+#define EoRaise(eo) EobjRaise(EoObj(eo))
+#define EoLower(eo) EobjLower(EoObj(eo))
+#define EoShapeUpdate(eo, p) EobjShapeUpdate(EoObj(eo), p)
+
+/* eobj.c */
+void EobjInit(EObj * eo, int type, Win win, int x, int y,
+ int w, int h, int su, const char *name);
+void EobjFini(EObj * eo);
+void EobjDestroy(EObj * eo);
+
+EObj *EobjWindowCreate(int type, int x, int y, int w, int h,
+ int su, const char *name);
+void EobjWindowDestroy(EObj * eo);
+
+EObj *EobjRegister(Window win, int type);
+void EobjUnregister(EObj * eo);
+
+void EobjMap(EObj * eo, int raise);
+void EobjUnmap(EObj * eo);
+void EobjMove(EObj * eo, int x, int y);
+void EobjResize(EObj * eo, int w, int h);
+void EobjMoveResize(EObj * eo, int x, int y, int w, int h);
+void EobjDamage(EObj * eo);
+void EobjReparent(EObj * eo, EObj * dst, int x, int y);
+int EobjRaise(EObj * eo);
+int EobjLower(EObj * eo);
+void EobjShapeUpdate(EObj * eo, int propagate);
+void EobjsRepaint(void);
+Pixmap EobjGetPixmap(const EObj * eo);
+
+#if USE_GLX
+struct _etexture *EobjGetTexture(EObj * eo);
+struct _etexture *EobjTextureCreate(EObj * eo);
+void EobjTextureDestroy(EObj * eo);
+void EobjTextureInvalidate(EObj * eo);
+#endif
+void EobjChangeOpacity(EObj * eo, unsigned int opacity);
+void EobjChangeShadow(EObj * eo, int shadow);
+void EobjSetLayer(EObj * eo, int layer);
+void EobjSetFloating(EObj * eo, int floating);
+int EobjIsShaped(const EObj * eo);
+void EobjSlideTo(EObj * eo, int fx, int fy, int tx, int ty,
+ int speed);
+void EobjsSlideBy(EObj ** peo, int num, int dx, int dy,
+ int speed);
+void EobjSlideSizeTo(EObj * eo, int fx, int fy, int tx, int ty,
+ int fw, int fh, int tw, int th, int speed);
+
+void EobjsOpacityUpdate(int op_or);
+
+/* stacking.c */
+void EobjListStackAdd(EObj * eo, int ontop);
+void EobjListStackDel(EObj * eo);
+int EobjListStackRaise(EObj * eo, int test);
+int EobjListStackLower(EObj * eo, int test);
+int EobjListStackCheck(EObj * eo);
+EObj *EobjListStackFind(Window win);
+EObj *const *EobjListStackGet(int *num);
+EObj *const *EobjListStackGetForDesk(int *num, Desk * dsk);
+void EobjListFocusAdd(EObj * eo, int ontop);
+void EobjListFocusDel(EObj * eo);
+int EobjListFocusRaise(EObj * eo);
+void EobjListOrderAdd(EObj * eo);
+void EobjListOrderDel(EObj * eo);
+
+/* Hmmm. */
+int OpacityFix(int op, int op_0);
+unsigned int OpacityFromPercent(int op);
+int OpacityToPercent(unsigned int opacity);
+
+#endif /* _EOBJ_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ETYPES_H_
+#define _ETYPES_H_
+
+/*
+ * Opaque types
+ */
+typedef struct _background Background;
+
+typedef struct _border Border;
+
+typedef struct _button Button;
+
+typedef struct _desk Desk;
+
+typedef struct _ecursor ECursor;
+
+typedef struct _ewin EWin;
+typedef struct _ewinbit EWinBit;
+
+typedef struct _group Group;
+
+typedef struct _action Action;
+typedef struct _actionclass ActionClass;
+
+typedef struct _imageclass ImageClass;
+typedef struct _imagestate ImageState;
+
+typedef struct _textclass TextClass;
+typedef struct _textstate TextState;
+
+typedef struct _snapshot Snapshot;
+
+typedef struct _timer Timer;
+typedef struct _idler Idler;
+typedef struct _animator Animator;
+
+#endif /* _ETYPES_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "emodule.h"
+#include "events.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "xwin.h"
+#include <sys/time.h>
+#include <X11/Xutil.h>
+#include <X11/extensions/shape.h>
+#if USE_XSYNC
+#include <X11/extensions/sync.h>
+#endif
+#if USE_XSCREENSAVER
+#include <X11/extensions/scrnsaver.h>
+#endif
+#if USE_XRANDR
+#include <X11/extensions/Xrandr.h>
+#endif
+#if USE_COMPOSITE
+#include <X11/extensions/Xcomposite.h>
+#include <X11/extensions/Xdamage.h>
+#include <X11/extensions/Xfixes.h>
+#include <X11/extensions/Xrender.h>
+#endif
+#if USE_GLX
+#include <GL/glx.h>
+#endif
+
+#if ENABLE_DEBUG_EVENTS
+static const char *EventName(unsigned int type);
+#endif
+
+/*
+ * Server extension handling
+ */
+
+typedef struct {
+ int event_base, error_base;
+ int major, minor;
+} EServerExtData;
+
+typedef struct {
+ const char *name;
+ unsigned int ix;
+ int (*query_ext) (Display * dpy, int *event, int *error);
+ int (*query_ver) (Display * dpy, int *major, int *minor);
+ void (*init) (int avaliable);
+} EServerExt;
+
+static EServerExtData ExtData[8];
+
+#define event_base_shape ExtData[XEXT_SHAPE].event_base
+#define event_base_randr ExtData[XEXT_RANDR].event_base
+#define event_base_damage ExtData[XEXT_DAMAGE].event_base
+#define event_base_saver ExtData[XEXT_SCRSAVER].event_base
+
+static void
+ExtInitShape(int available)
+{
+ if (available)
+ return;
+
+ AlertX(_("X server setup error"), _("OK"), NULL, NULL,
+ _("FATAL ERROR:\n" "\n"
+ "This Xserver does not support the Shape extension.\n"
+ "This is required for Enlightenment to run.\n" "\n"
+ "Your Xserver probably is too old or mis-configured.\n" "\n"
+ "Exiting.\n"));
+ EExit(1);
+}
+
+#if USE_XSYNC
+static void
+ExtInitSync(int available)
+{
+ int i, num;
+ XSyncSystemCounter *xssc;
+
+ if (!available)
+ return;
+
+ xssc = XSyncListSystemCounters(disp, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (!strcmp(xssc[i].name, "SERVERTIME"))
+ Mode.display.server_time = xssc[i].counter;
+ if (EDebug(EDBUG_TYPE_SYNC))
+ Eprintf(" Sync counter %2d: %10s %#lx %#x:%#x\n", i,
+ xssc[i].name, xssc[i].counter,
+ XSyncValueHigh32(xssc[i].resolution),
+ XSyncValueLow32(xssc[i].resolution));
+ }
+ XSyncFreeSystemCounterList(xssc);
+
+ if (Mode.display.server_time == None)
+ Conf.movres.enable_sync_request = 0;
+}
+#endif
+
+#if USE_XSCREENSAVER
+static void
+ExtInitSS(int available)
+{
+ if (!available)
+ return;
+
+ if (EDebug(EDBUG_TYPE_VERBOSE))
+ {
+ XScreenSaverInfo *xssi = XScreenSaverAllocInfo();
+
+ XScreenSaverQueryInfo(disp, WinGetXwin(VROOT), xssi);
+ Eprintf(" Screen saver window=%#lx\n", xssi->window);
+ XFree(xssi);
+ }
+ XScreenSaverSelectInput(disp, WinGetXwin(VROOT),
+ ScreenSaverNotifyMask | ScreenSaverCycleMask);
+}
+#endif
+
+#if USE_XRANDR
+static void
+ExtInitRR(int available)
+{
+ if (!available)
+ return;
+
+ /* Listen for RandR events */
+ XRRSelectInput(disp, WinGetXwin(VROOT), RRScreenChangeNotifyMask);
+}
+#endif
+
+static const EServerExt Extensions[] = {
+ {"Shape", XEXT_SHAPE, XShapeQueryExtension, XShapeQueryVersion,
+ ExtInitShape},
+#if USE_XSYNC
+ {"Sync", XEXT_SYNC, XSyncQueryExtension, XSyncInitialize, ExtInitSync},
+#endif
+#if USE_XSCREENSAVER
+ {"ScrSaver", XEXT_SCRSAVER, XScreenSaverQueryExtension,
+ XScreenSaverQueryVersion, ExtInitSS},
+#endif
+#if USE_XRANDR
+ {"RandR", XEXT_RANDR, XRRQueryExtension, XRRQueryVersion, ExtInitRR},
+#endif
+#if USE_COMPOSITE
+ {"Composite", XEXT_COMPOSITE, XCompositeQueryExtension,
+ XCompositeQueryVersion, NULL},
+ {"Damage", XEXT_DAMAGE, XDamageQueryExtension, XDamageQueryVersion, NULL},
+ {"Fixes", XEXT_FIXES, XFixesQueryExtension, XFixesQueryVersion, NULL},
+ {"Render", XEXT_RENDER, XRenderQueryExtension, XRenderQueryVersion, NULL},
+#endif
+#if USE_GLX
+ {"GLX", XEXT_GLX, glXQueryExtension, glXQueryVersion, NULL},
+#endif
+};
+
+static void
+ExtQuery(const EServerExt * ext)
+{
+ int available;
+ EServerExtData *exd = ExtData + ext->ix;
+
+ available = ext->query_ext(disp, &(exd->event_base), &(exd->error_base));
+
+ if (available)
+ {
+ Mode.server.extensions |= 1 << ext->ix;
+
+ ext->query_ver(disp, &(exd->major), &(exd->minor));
+
+ if (EDebug(EDBUG_TYPE_VERBOSE))
+ Eprintf("Found extension %-10s version %d.%d -"
+ " Event/error base = %d/%d\n", ext->name,
+ exd->major, exd->minor, exd->event_base, exd->error_base);
+ }
+
+ if (ext->init)
+ ext->init(available);
+}
+
+/*
+ * File descriptor handling
+ */
+
+struct _EventFdDesc {
+ const char *name;
+ int fd;
+ void (*handler) (void);
+};
+
+static int nfds = 0;
+static EventFdDesc *pfds = NULL;
+
+EventFdDesc *
+EventFdRegister(int fd, EventFdHandler * handler)
+{
+ nfds++;
+ pfds = EREALLOC(EventFdDesc, pfds, nfds);
+ pfds[nfds - 1].fd = fd;
+ pfds[nfds - 1].handler = handler;
+
+ return pfds + (nfds - 1);
+}
+
+void
+EventFdUnregister(EventFdDesc * efd)
+{
+ efd->fd = -1;
+}
+
+/*
+ * Event handling
+ */
+
+#define DOUBLE_CLICK_TIME 250 /* Milliseconds */
+
+void
+EventsInit(void)
+{
+ unsigned int i;
+
+ memset(ExtData, 0, sizeof(ExtData));
+
+ for (i = 0; i < sizeof(Extensions) / sizeof(EServerExt); i++)
+ ExtQuery(Extensions + i);
+
+#if USE_COMPOSITE
+#define XEXT_MASK_CM_ALL ((1 << XEXT_COMPOSITE) | (1 << XEXT_DAMAGE) | \
+ (1 << XEXT_FIXES) | (1 << XEXT_RENDER))
+ if (((Mode.server.extensions & XEXT_MASK_CM_ALL) == XEXT_MASK_CM_ALL) &&
+ (ExtData[XEXT_COMPOSITE].major > 0 ||
+ ExtData[XEXT_COMPOSITE].minor >= 2))
+ Mode.server.extensions |= 1 << XEXT_CM_ALL;
+#endif
+
+ EventFdRegister(ConnectionNumber(disp), NULL);
+}
+
+int
+EventsGetXY(int *px, int *py)
+{
+ int ss;
+
+ ss = EQueryPointer(NULL, px, py, NULL, NULL);
+ Mode.events.cx = *px;
+ Mode.events.cy = *py;
+
+ return ss;
+}
+
+static void
+ModeGetXY(Window rwin, int rx, int ry)
+{
+ Window child;
+
+ if (Mode.wm.window)
+ {
+ XTranslateCoordinates(disp, rwin, WinGetXwin(VROOT), rx, ry,
+ &Mode.events.cx, &Mode.events.cy, &child);
+ }
+ else
+ {
+ Mode.events.cx = rx;
+ Mode.events.cy = ry;
+ }
+}
+
+static void
+HandleEvent(XEvent * ev)
+{
+ Win win;
+
+#if ENABLE_DEBUG_EVENTS
+ if (EDebug(ev->type))
+ EventShow(ev);
+#endif
+
+ win = ELookupXwin(ev->xany.window);
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ Mode.events.last_keycode = ev->xkey.keycode;
+ Mode.events.last_keystate = ev->xkey.state;
+ case KeyRelease:
+ Mode.events.time = ev->xkey.time;
+ ModeGetXY(ev->xbutton.root, ev->xkey.x_root, ev->xkey.y_root);
+#if 0 /* FIXME - Why? */
+ if (ev->xkey.root != WinGetXwin(VROOT))
+ {
+ XSetInputFocus(disp, ev->xkey.root, RevertToPointerRoot,
+ CurrentTime);
+ ESync();
+ ev->xkey.time = CurrentTime;
+ EXSendEvent(ev->xkey.root, 0, ev);
+ return;
+ }
+#endif
+ Mode.events.on_screen = ev->xkey.same_screen;
+ goto do_stuff;
+
+ case ButtonPress:
+ case ButtonRelease:
+ Mode.events.time = ev->xbutton.time;
+ ModeGetXY(ev->xbutton.root, ev->xbutton.x_root, ev->xbutton.y_root);
+ Mode.events.on_screen = ev->xbutton.same_screen;
+ TooltipsHide();
+ goto do_stuff;
+
+ case MotionNotify:
+ Mode.events.time = ev->xmotion.time;
+ Mode.events.px = Mode.events.mx;
+ Mode.events.py = Mode.events.my;
+ ModeGetXY(ev->xmotion.root, ev->xmotion.x_root, ev->xmotion.y_root);
+ Mode.events.mx = Mode.events.cx;
+ Mode.events.my = Mode.events.cy;
+ Mode.events.on_screen = ev->xmotion.same_screen;
+ break;
+
+ case EnterNotify:
+ Mode.context_win = win;
+ Mode.events.time = ev->xcrossing.time;
+ Mode.events.on_screen = ev->xcrossing.same_screen;
+ if (ev->xcrossing.mode == NotifyGrab &&
+ ev->xcrossing.detail == NotifyInferior)
+ {
+ Mode.grabs.pointer_grab_window = ev->xany.window;
+ if (!Mode.grabs.pointer_grab_active)
+ Mode.grabs.pointer_grab_active = 2;
+ }
+ ModeGetXY(ev->xcrossing.root, ev->xcrossing.x_root,
+ ev->xcrossing.y_root);
+ TooltipsHide();
+ goto do_stuff;
+
+ case LeaveNotify:
+ Mode.events.time = ev->xcrossing.time;
+ Mode.events.on_screen = ev->xcrossing.same_screen;
+ if (ev->xcrossing.mode == NotifyGrab &&
+ ev->xcrossing.detail == NotifyInferior)
+ {
+ Mode.grabs.pointer_grab_window = None;
+ Mode.grabs.pointer_grab_active = 0;
+ }
+ ModeGetXY(ev->xcrossing.root, ev->xcrossing.x_root,
+ ev->xcrossing.y_root);
+ TooltipsHide();
+ goto do_stuff;
+
+ case PropertyNotify:
+ Mode.events.time = ev->xproperty.time;
+ break;
+
+ do_stuff:
+ if (ev->xany.window == WinGetXwin(VROOT))
+ ActionclassesGlobalEvent(ev);
+ break;
+ }
+
+ switch (ev->type)
+ {
+ case KeyPress: /* 2 */
+ case KeyRelease: /* 3 */
+ /* Unfreeze keyboard in case we got here by keygrab */
+ XAllowEvents(disp, AsyncKeyboard, CurrentTime);
+ break;
+
+ case ButtonPress: /* 4 */
+ SoundPlay(SOUND_BUTTON_CLICK);
+
+ Mode.events.double_click =
+ ((ev->xbutton.time - Mode.events.last_btime < DOUBLE_CLICK_TIME) &&
+ ev->xbutton.button == Mode.events.last_button &&
+ ev->xbutton.window == Mode.events.last_bpress2);
+
+ Mode.events.last_bpress = ev->xbutton.window;
+ Mode.events.last_bpress2 = ev->xbutton.window;
+ Mode.events.last_btime = ev->xbutton.time;
+ Mode.events.last_button = ev->xbutton.button;
+ break;
+ case ButtonRelease: /* 5 */
+ SoundPlay(SOUND_BUTTON_RAISE);
+ break;
+ }
+
+ /* The new event dispatcher */
+ EventCallbacksProcess(win, ev);
+
+ /* Post-event stuff TBD */
+ switch (ev->type)
+ {
+ case ButtonRelease: /* 5 */
+ Mode.events.last_bpress = 0;
+ Mode.action_inhibit = 0;
+ break;
+
+#if 1 /* Do this here? */
+ case DestroyNotify:
+ EUnregisterXwin(ev->xdestroywindow.window);
+ break;
+#endif
+
+ case MappingNotify:
+ XRefreshKeyboardMapping(&ev->xmapping);
+ if (Conf.testing.bindings_reload)
+ ActionclassesReload();
+ break;
+ }
+}
+
+static void
+EventsCompress(XEvent * evq, int count)
+{
+ XEvent *ev, *ev2;
+ int i, j, n;
+ int xa, ya, xb, yb;
+ int type;
+
+#if ENABLE_DEBUG_EVENTS
+ /* Debug - should be taken out */
+ if (EDebug(EDBUG_TYPE_COMPRESSION))
+ for (i = 0; i < count; i++)
+ if (evq[i].type)
+ Eprintf("EventsCompress-1 %3d %s w=%#lx\n", i,
+ EventName(evq[i].type), evq[i].xany.window);
+#endif
+
+ /* Loop through event list, starting with latest */
+ for (i = count - 1; i >= 0; i--)
+ {
+ ev = evq + i;
+
+ type = ev->type;
+ switch (type)
+ {
+ case 0:
+ /* Already thrown away */
+ default:
+ break;
+
+ case MotionNotify:
+ /* Discard all but last motion event */
+ j = i - 1;
+ n = 0;
+ for (; j >= 0; j--)
+ {
+ ev2 = evq + j;
+ if (ev2->type == type)
+ {
+ n++;
+ ev2->type = 0;
+ }
+ }
+#if ENABLE_DEBUG_EVENTS
+ if (n && EDebug(EDBUG_TYPE_COMPRESSION))
+ Eprintf("EventsCompress n=%4d %s %#lx x,y = %d,%d\n",
+ n, EventName(type), ev->xmotion.window,
+ ev->xmotion.x, ev->xmotion.y);
+#endif
+ break;
+
+ case LeaveNotify:
+ for (j = i - 1; j >= 0; j--)
+ {
+ ev2 = evq + j;
+ if (ev2->type == EnterNotify)
+ {
+ if (ev2->xcrossing.window == ev->xcrossing.window)
+ goto do_enter_leave_nuked;
+ }
+ }
+ break;
+ do_enter_leave_nuked:
+ ev2->type = ev->type = 0;
+ for (n = i - 1; n > j; n--)
+ {
+ ev2 = evq + n;
+ if (ev2->type == MotionNotify)
+ {
+ if (ev2->xmotion.window != ev->xmotion.window)
+ continue;
+ ev2->type = 0;
+ }
+ }
+#if ENABLE_DEBUG_EVENTS
+ if (EDebug(EDBUG_TYPE_COMPRESSION))
+ Eprintf("EventsCompress n=%4d %s %#lx\n",
+ 1, EventName(type), ev->xcrossing.window);
+#endif
+ break;
+
+ case DestroyNotify:
+ for (j = i - 1; j >= 0; j--)
+ {
+ ev2 = evq + j;
+ switch (ev2->type)
+ {
+ case CreateNotify:
+ if (ev2->xcreatewindow.window !=
+ ev->xdestroywindow.window)
+ continue;
+ ev2->type = EX_EVENT_CREATE_GONE;
+ j = -1; /* Break for() */
+ break;
+ case DestroyNotify:
+ break;
+ case UnmapNotify:
+ if (ev2->xunmap.window != ev->xdestroywindow.window)
+ continue;
+ ev2->type = EX_EVENT_UNMAP_GONE;
+ break;
+ case MapNotify:
+ if (ev2->xmap.window != ev->xdestroywindow.window)
+ continue;
+ ev2->type = EX_EVENT_MAP_GONE;
+ break;
+ case MapRequest:
+ if (ev2->xmaprequest.window != ev->xdestroywindow.window)
+ continue;
+ ev2->type = EX_EVENT_MAPREQUEST_GONE;
+ break;
+ case ReparentNotify:
+ if (ev2->xreparent.window != ev->xdestroywindow.window)
+ continue;
+ ev2->type = EX_EVENT_REPARENT_GONE;
+ break;
+ case ConfigureRequest:
+ if (ev2->xconfigurerequest.window !=
+ ev->xdestroywindow.window)
+ continue;
+ ev2->type = 0;
+ break;
+ default:
+ /* Nuke all other events on a destroyed window */
+ if (ev2->xany.window != ev->xdestroywindow.window)
+ continue;
+ ev2->type = 0;
+ break;
+ }
+ }
+ break;
+
+ case Expose:
+ n = 0;
+ xa = ev->xexpose.x;
+ xb = xa + ev->xexpose.width;
+ ya = ev->xexpose.y;
+ yb = ya + ev->xexpose.height;
+ for (j = i - 1; j >= 0; j--)
+ {
+ ev2 = evq + j;
+ if (ev2->type == type &&
+ ev2->xexpose.window == ev->xexpose.window)
+ {
+ n++;
+ ev2->type = 0;
+ if (xa > ev2->xexpose.x)
+ xa = ev2->xexpose.x;
+ if (xb < ev2->xexpose.x + ev2->xexpose.width)
+ xb = ev2->xexpose.x + ev2->xexpose.width;
+ if (ya > ev2->xexpose.y)
+ ya = ev2->xexpose.y;
+ if (yb < ev2->xexpose.y + ev2->xexpose.height)
+ yb = ev2->xexpose.y + ev2->xexpose.height;
+ }
+ }
+ if (n)
+ {
+ ev->xexpose.x = xa;
+ ev->xexpose.width = xb - xa;
+ ev->xexpose.y = ya;
+ ev->xexpose.height = yb - ya;
+ }
+#if ENABLE_DEBUG_EVENTS
+ if (EDebug(EDBUG_TYPE_COMPRESSION))
+ Eprintf("EventsCompress n=%4d %s %#lx x=%4d-%4d y=%4d-%4d\n",
+ n, EventName(type), ev->xexpose.window, xa, xb, ya, yb);
+#endif
+ break;
+
+ case EX_EVENT_SHAPE_NOTIFY:
+ n = 0;
+ for (j = i - 1; j >= 0; j--)
+ {
+ ev2 = evq + j;
+ if (ev2->type == type && ev2->xany.window == ev->xany.window)
+ {
+ n++;
+ ev2->type = 0;
+ }
+ }
+#if ENABLE_DEBUG_EVENTS
+ if (n && EDebug(EDBUG_TYPE_COMPRESSION))
+ Eprintf("EventsCompress n=%4d %s %#lx\n",
+ n, EventName(type), ev->xmotion.window);
+#endif
+ break;
+
+ case GraphicsExpose:
+ case NoExpose:
+ /* Not using these */
+ ev->type = 0;
+ break;
+ }
+ }
+
+#if ENABLE_DEBUG_EVENTS
+ /* Debug - should be taken out */
+ if (EDebug(EDBUG_TYPE_COMPRESSION))
+ for (i = 0; i < count; i++)
+ if (evq[i].type)
+ Eprintf("EventsCompress-2 %3d %s w=%#lx\n", i,
+ EventName(evq[i].type), evq[i].xany.window);
+#endif
+}
+
+static int
+EventsFetch(XEvent ** evq_p, int *evq_n)
+{
+ int i, n, count;
+ XEvent *evq = *evq_p, *ev;
+ int qsz = *evq_n;
+
+ /* Fetch the entire event queue */
+ for (i = count = 0; (n = XPending(disp)) > 0;)
+ {
+ count += n;
+ if (count > qsz)
+ {
+ qsz = count;
+ evq = EREALLOC(XEvent, evq, qsz);
+ }
+ ev = evq + i;
+ for (; i < count; i++, ev++)
+ {
+ XNextEvent(disp, ev);
+
+ /* Map some event types to E internals */
+ if (ev->type == event_base_shape + ShapeNotify)
+ ev->type = EX_EVENT_SHAPE_NOTIFY;
+#if USE_XRANDR
+ else if (ev->type == event_base_randr + RRScreenChangeNotify)
+ ev->type = EX_EVENT_SCREEN_CHANGE_NOTIFY;
+#endif
+#if USE_COMPOSITE
+ else if (ev->type == event_base_damage + XDamageNotify)
+ ev->type = EX_EVENT_DAMAGE_NOTIFY;
+#endif
+#if USE_XSCREENSAVER
+ else if (ev->type == event_base_saver + ScreenSaverNotify)
+ ev->type = EX_EVENT_SAVER_NOTIFY;
+#endif
+ }
+ }
+
+ EventsCompress(evq, count);
+
+ *evq_p = evq;
+ *evq_n = qsz;
+
+ return count;
+}
+
+static int
+EventsProcess(XEvent ** evq_p, int *evq_n, int *evq_f)
+{
+ int i, n, count;
+ XEvent *evq;
+
+ /* Fetch the entire event queue */
+ n = EventsFetch(evq_p, evq_n);
+ evq = *evq_p;
+
+ if (EDebug(EDBUG_TYPE_EVENTS))
+ Eprintf("EventsProcess-B %d\n", n);
+
+ for (i = count = 0; i < n; i++)
+ {
+ if (evq[i].type == 0)
+ continue;
+
+ if (EDebug(EDBUG_TYPE_EVENTS) > 1)
+ EventShow(evq + i);
+
+ count++;
+ HandleEvent(evq + i);
+ evq[i].type = 0;
+ }
+
+ if (EDebug(EDBUG_TYPE_EVENTS))
+ Eprintf("EventsProcess-E %d/%d\n", count, n);
+
+ if (n > *evq_f)
+ *evq_f = n;
+
+ return count;
+}
+
+/*
+ * This is the primary event loop. Everything that is going to happen in the
+ * window manager has to start here at some point. This is where all the
+ * events from the X server are interpreted, timer events are inserted, etc
+ */
+void
+EventsMain(void)
+{
+ static int evq_alloc = 0;
+ static int evq_fetch = 0;
+ static XEvent *evq_ptr = NULL;
+ fd_set fdset;
+ struct timeval tval;
+ double time1, time2, dt;
+ int count, pfetch;
+ int fdsize, fd, i;
+
+ time1 = GetTime();
+
+ for (;;)
+ {
+ pfetch = 0;
+ count = EventsProcess(&evq_ptr, &evq_alloc, &pfetch);
+
+ if (pfetch)
+ {
+ evq_fetch =
+ (pfetch > evq_fetch) ? pfetch : (3 * evq_fetch + pfetch) / 4;
+ if (EDebug(EDBUG_TYPE_EVENTS))
+ Eprintf("EventsMain - Alloc/fetch/pfetch/peak=%d/%d/%d/%d)\n",
+ evq_alloc, evq_fetch, pfetch, count);
+ if ((evq_ptr) && ((evq_alloc - evq_fetch) > 64))
+ {
+ evq_alloc = 0;
+ Efree(evq_ptr);
+ evq_ptr = NULL;
+ }
+ }
+
+ /* Run idlers */
+ IdlersRun();
+
+ /* time2 = current time */
+ time2 = GetTime();
+ dt = time2 - time1;
+ time1 = time2;
+ /* dt = time spent since we last were here */
+
+ /* Run all expired timers, get time to first non-expired (0. means none) */
+ time2 = TimersRun(time2);
+
+ if (Mode.wm.exit_mode)
+ break;
+
+ if (XPending(disp))
+ continue;
+
+ FD_ZERO(&fdset);
+ fdsize = -1;
+ for (i = 0; i < nfds; i++)
+ {
+ fd = pfds[i].fd;
+ if (fd < 0)
+ continue;
+ if (fdsize < fd)
+ fdsize = fd;
+ FD_SET(fd, &fdset);
+ }
+ fdsize++;
+
+ if (time2 > 0.)
+ {
+ tval.tv_sec = (long)time2;
+ tval.tv_usec = (long)((time2 - ((double)tval.tv_sec)) * 1000000);
+ count = select(fdsize, &fdset, NULL, NULL, &tval);
+ }
+ else
+ {
+ count = select(fdsize, &fdset, NULL, NULL, NULL);
+ }
+
+ if (EDebug(EDBUG_TYPE_EVENTS))
+ Eprintf
+ ("EventsMain - count=%d xfd=%d:%d dt=%lf time2=%lf\n",
+ count, pfds[0].fd, FD_ISSET(pfds[0].fd, &fdset), dt, time2);
+
+ if (count == 0)
+ {
+ /* We can only get here by timeout in select */
+ TimersRun(0.);
+ }
+ else if (count > 0)
+ {
+ /* Excluding X fd */
+ for (i = 1; i < nfds; i++)
+ {
+ fd = pfds[i].fd;
+ if ((fd >= 0) && (FD_ISSET(fd, &fdset)))
+ {
+ if (EDebug(EDBUG_TYPE_EVENTS))
+ Eprintf("Event fd %d\n", i);
+ pfds[i].handler();
+ }
+ }
+ }
+ }
+}
+
+#if ENABLE_DEBUG_EVENTS
+/*
+ * Event debug stuff
+ */
+
+static const char *const TxtEventNames[] = {
+ "Error", "Reply", "KeyPress", "KeyRelease", "ButtonPress",
+ "ButtonRelease", "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn",
+ "FocusOut", "KeymapNotify", "Expose", "GraphicsExpose", "NoExpose",
+ "VisibilityNotify", "CreateNotify", "DestroyNotify", "UnmapNotify",
+ "MapNotify",
+ "MapRequest", "ReparentNotify", "ConfigureNotify", "ConfigureRequest",
+ "GravityNotify",
+ "ResizeRequest", "CirculateNotify", "CirculateRequest", "PropertyNotify",
+ "SelectionClear",
+ "SelectionRequest", "SelectionNotify", "ColormapNotify", "ClientMessage",
+ "MappingNotify"
+};
+#define N_EVENT_NAMES (sizeof(TxtEventNames)/sizeof(char*))
+
+static const char *
+EventName(unsigned int type)
+{
+ static char buf[16];
+
+ if (type < N_EVENT_NAMES)
+ return TxtEventNames[type];
+
+ switch (type)
+ {
+ case EX_EVENT_CREATE_GONE:
+ return "Create-Gone";
+ case EX_EVENT_UNMAP_GONE:
+ return "Unmap-Gone";
+ case EX_EVENT_MAP_GONE:
+ return "Map-Gone";
+ case EX_EVENT_MAPREQUEST_GONE:
+ return "MapRequest-Gone";
+ case EX_EVENT_REPARENT_GONE:
+ return "Reparent-Gone";
+ case EX_EVENT_SHAPE_NOTIFY:
+ return "ShapeNotify";
+#if USE_XSCREENSAVER
+ case EX_EVENT_SAVER_NOTIFY:
+ return "ScreenSaverNotify";
+#endif
+#if USE_XRANDR
+ case EX_EVENT_SCREEN_CHANGE_NOTIFY:
+ return "ScreenChangeNotify";
+#endif
+#if USE_COMPOSITE
+ case EX_EVENT_DAMAGE_NOTIFY:
+ return "DamageNotify";
+#endif
+ }
+
+ sprintf(buf, "%d", type);
+ return buf;
+}
+
+static const char *const TxtEventNotifyModeNames[] = {
+ "NotifyNormal", "NotifyGrab", "NotifyUngrab", "NotifyWhileGrabbed"
+};
+#define N_EVENT_NOTIFY_MODE_NAMES (sizeof(TxtEventNotifyModeNames)/sizeof(char*))
+
+static const char *
+EventNotifyModeName(unsigned int mode)
+{
+ if (mode < N_EVENT_NOTIFY_MODE_NAMES)
+ return TxtEventNotifyModeNames[mode];
+
+ return "Unknown";
+}
+
+static const char *const TxtEventNotifyDetailNames[] = {
+ "NotifyAncestor", "NotifyVirtual", "NotifyInferior", "NotifyNonlinear",
+ "NotifyNonlinearVirtual", "NotifyPointer", "NotifyPointerRoot",
+ "NotifyDetailNone"
+};
+#define N_EVENT_NOTIFY_DETAIL_NAMES (sizeof(TxtEventNotifyDetailNames)/sizeof(char*))
+
+static const char *
+EventNotifyDetailName(unsigned int detail)
+{
+ if (detail < N_EVENT_NOTIFY_DETAIL_NAMES)
+ return TxtEventNotifyDetailNames[detail];
+
+ return "Unknown";
+}
+
+void
+EventShow(const XEvent * ev)
+{
+ char *txt, buf[64];
+
+ Esnprintf(buf, sizeof(buf), "%#08lx %cEV-%s ev=%#lx",
+ ev->xany.serial, (ev->xany.send_event) ? '*' : ' ',
+ EventName(ev->type), ev->xany.window);
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ case KeyRelease:
+ Eprintf("%s sub=%#lx x,y=%d,%d state=%#x keycode=%#x ss=%d\n", buf,
+ ev->xkey.subwindow, ev->xkey.x, ev->xkey.y,
+ ev->xkey.state, ev->xkey.keycode, ev->xkey.same_screen);
+ break;
+ case ButtonPress:
+ case ButtonRelease:
+ Eprintf("%s sub=%#lx x,y=%d,%d state=%#x button=%#x ss=%d\n", buf,
+ ev->xbutton.subwindow, ev->xbutton.x, ev->xbutton.y,
+ ev->xbutton.state, ev->xbutton.button, ev->xbutton.same_screen);
+ break;
+ case MotionNotify:
+ Eprintf("%s sub=%#lx x,y=%d,%d rx,ry=%d,%d ss=%d\n", buf,
+ ev->xmotion.subwindow, ev->xmotion.x, ev->xmotion.y,
+ ev->xmotion.x_root, ev->xmotion.y_root,
+ ev->xmotion.same_screen);
+ break;
+ case EnterNotify:
+ case LeaveNotify:
+ Eprintf("%s sub=%#lx x,y=%d,%d m=%s d=%s ss=%d focus=%d\n", buf,
+ ev->xcrossing.subwindow, ev->xcrossing.x, ev->xcrossing.y,
+ EventNotifyModeName(ev->xcrossing.mode),
+ EventNotifyDetailName(ev->xcrossing.detail),
+ ev->xcrossing.same_screen, ev->xcrossing.focus);
+ break;
+ case FocusIn:
+ case FocusOut:
+ Eprintf("%s m=%s d=%s\n", buf, EventNotifyModeName(ev->xfocus.mode),
+ EventNotifyDetailName(ev->xfocus.detail));
+ break;
+ case KeymapNotify:
+ case Expose:
+ case GraphicsExpose:
+ Eprintf("%sx %d+%d %dx%d\n", buf,
+ ev->xexpose.x, ev->xexpose.y,
+ ev->xexpose.width, ev->xexpose.height);
+ break;
+ case VisibilityNotify:
+ Eprintf("%s state=%d\n", buf, ev->xvisibility.state);
+ break;
+ case CreateNotify:
+ case DestroyNotify:
+ case UnmapNotify:
+ case MapRequest:
+ case EX_EVENT_CREATE_GONE:
+ case EX_EVENT_UNMAP_GONE:
+ case EX_EVENT_MAPREQUEST_GONE:
+ Eprintf("%s win=%#lx\n", buf, ev->xcreatewindow.window);
+ break;
+ case MapNotify:
+ case EX_EVENT_MAP_GONE:
+ Eprintf("%s win=%#lx or=%d\n", buf, ev->xmap.window,
+ ev->xmap.override_redirect);
+ break;
+ case ReparentNotify:
+ case EX_EVENT_REPARENT_GONE:
+ Eprintf("%s win=%#lx parent=%#lx %d+%d\n", buf,
+ ev->xreparent.window, ev->xreparent.parent,
+ ev->xreparent.x, ev->xreparent.y);
+ break;
+ case ConfigureNotify:
+ Eprintf("%s win=%#lx %d+%d %dx%d bw=%d above=%#lx\n", buf,
+ ev->xconfigure.window, ev->xconfigure.x,
+ ev->xconfigure.y, ev->xconfigure.width, ev->xconfigure.height,
+ ev->xconfigure.border_width, ev->xconfigure.above);
+ break;
+ case ConfigureRequest:
+ Eprintf("%s win=%#lx m=%#lx %d+%d %dx%d bw=%d above=%#lx stk=%d\n",
+ buf, ev->xconfigurerequest.window,
+ ev->xconfigurerequest.value_mask, ev->xconfigurerequest.x,
+ ev->xconfigurerequest.y, ev->xconfigurerequest.width,
+ ev->xconfigurerequest.height,
+ ev->xconfigurerequest.border_width, ev->xconfigurerequest.above,
+ ev->xconfigurerequest.detail);
+ break;
+ case GravityNotify:
+ goto case_common;
+ case ResizeRequest:
+ Eprintf("%s %dx%d\n", buf,
+ ev->xresizerequest.width, ev->xresizerequest.height);
+ break;
+ case CirculateNotify:
+ case CirculateRequest:
+ goto case_common;
+ case PropertyNotify:
+ txt = XGetAtomName(disp, ev->xproperty.atom);
+ Eprintf("%s Atom=%s(%ld)\n", buf, txt, ev->xproperty.atom);
+ XFree(txt);
+ break;
+ case SelectionClear:
+ case SelectionRequest:
+ case SelectionNotify:
+ case ColormapNotify:
+ goto case_common;
+ case ClientMessage:
+ txt = XGetAtomName(disp, ev->xclient.message_type);
+ Eprintf("%s ev_type=%s(%ld) data: %08lx %08lx %08lx %08lx %08lx\n",
+ buf, txt, ev->xclient.message_type,
+ ev->xclient.data.l[0], ev->xclient.data.l[1],
+ ev->xclient.data.l[2], ev->xclient.data.l[3],
+ ev->xclient.data.l[4]);
+ XFree(txt);
+ break;
+ case MappingNotify:
+ Eprintf("%s req=%d first=%d count=%d\n",
+ buf, ev->xmapping.request,
+ ev->xmapping.first_keycode, ev->xmapping.count);
+ break;
+
+ case EX_EVENT_SHAPE_NOTIFY:
+#define se ((XShapeEvent *)ev)
+ Eprintf("%s kind=%d shaped=%d %d,%d %dx%d\n", buf,
+ se->kind, se->shaped, se->x, se->y, se->width, se->height);
+#undef se
+ break;
+#if USE_XSCREENSAVER
+ case EX_EVENT_SAVER_NOTIFY:
+#define se ((XScreenSaverNotifyEvent *)ev)
+ Eprintf("%s state=%d kind=%d\n", buf, se->state, se->kind);
+#undef se
+ break;
+#endif
+#if USE_XRANDR
+ case EX_EVENT_SCREEN_CHANGE_NOTIFY:
+ Eprintf("%s\n", buf);
+ break;
+#endif
+#if USE_COMPOSITE
+#define de ((XDamageNotifyEvent *)ev)
+ case EX_EVENT_DAMAGE_NOTIFY:
+ Eprintf("%s level=%d more=%x %d+%d %dx%d\n", buf,
+ de->level, de->more,
+ de->area.x, de->area.y, de->area.width, de->area.height);
+ break;
+#undef de
+#endif
+ default:
+ case_common:
+ Eprintf("%s\n", buf);
+ break;
+ }
+}
+#endif /* ENABLE_DEBUG_EVENTS */
--- /dev/null
+/*
+ * Copyright (C) 2006-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EVENTS_H_
+#define _EVENTS_H_
+
+#include <X11/Xlib.h>
+
+/* Re-mapped X-events */
+#define EX_EVENT_CREATE_GONE 64
+#define EX_EVENT_UNMAP_GONE 65
+#define EX_EVENT_MAP_GONE 66
+#define EX_EVENT_MAPREQUEST_GONE 67
+#define EX_EVENT_REPARENT_GONE 68
+
+#define EX_EVENT_SHAPE_NOTIFY 71
+#define EX_EVENT_SAVER_NOTIFY 72
+#define EX_EVENT_SCREEN_CHANGE_NOTIFY 73
+#define EX_EVENT_DAMAGE_NOTIFY 74
+
+void EventsInit(void);
+void EventsMain(void);
+void EventShow(const XEvent * ev);
+
+typedef struct _EventFdDesc EventFdDesc;
+typedef void (EventFdHandler) (void);
+EventFdDesc *EventFdRegister(int fd, EventFdHandler * handler);
+void EventFdUnregister(EventFdDesc * efd);
+
+int EventsGetXY(int *px, int *py);
+
+#endif /* _EVENTS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "borders.h"
+#include "desktops.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "ewin-ops.h"
+#include "focus.h"
+#include "groups.h"
+#include "hints.h"
+#include "iclass.h" /* FIXME - Should not be here */
+#include "screen.h"
+#include "snaps.h"
+#include "timers.h"
+#include "xwin.h"
+
+static const WinOp winops[] = {
+ {"border", 2, 1, 0, EWIN_OP_BORDER},
+ {"title", 2, 1, 1, EWIN_OP_TITLE},
+
+ {"focusclick", 0, 1, 1, EWIN_OP_FOCUS_CLICK}, /* Place before "focus" */
+
+ {"close", 2, 1, 0, EWIN_OP_CLOSE},
+ {"kill", 0, 1, 0, EWIN_OP_KILL},
+ {"iconify", 2, 1, 1, EWIN_OP_ICONIFY},
+ {"alone", 0, 1, 0, EWIN_OP_ALONE},
+ {"opacity", 2, 1, 1, EWIN_OP_OPACITY},
+ {"focused_opacity", 0, 1, 1, EWIN_OP_FOCUSED_OPACITY},
+ {"shadow", 0, 1, 1, EWIN_OP_SHADOW}, /* Place before "shade" */
+ {"shade", 2, 1, 1, EWIN_OP_SHADE},
+ {"stick", 2, 1, 1, EWIN_OP_STICK},
+ {"focus", 2, 1, 0, EWIN_OP_FOCUS},
+
+ {"desk", 2, 1, 1, EWIN_OP_DESK},
+ {"area", 2, 1, 1, EWIN_OP_AREA},
+ {"move", 2, 1, 1, EWIN_OP_MOVE},
+ {"size", 2, 1, 1, EWIN_OP_SIZE},
+ {"sz", 2, 1, 1, EWIN_OP_SIZE},
+ {"move_relative", 0, 1, 0, EWIN_OP_MOVE_REL},
+ {"mr", 2, 1, 0, EWIN_OP_MOVE_REL},
+ {"resize_relative", 0, 1, 0, EWIN_OP_SIZE_REL},
+ {"sr", 2, 1, 0, EWIN_OP_SIZE_REL},
+
+ {"toggle_width", 0, 1, 0, EWIN_OP_MAX_WIDTH},
+ {"tw", 2, 1, 0, EWIN_OP_MAX_WIDTH},
+ {"toggle_height", 0, 1, 0, EWIN_OP_MAX_HEIGHT},
+ {"th", 0, 1, 0, EWIN_OP_MAX_HEIGHT},
+ {"toggle_size", 0, 1, 0, EWIN_OP_MAX_SIZE},
+ {"ts", 2, 1, 0, EWIN_OP_MAX_SIZE},
+ {"fullscreen", 2, 1, 1, EWIN_OP_FULLSCREEN},
+ {"zoom", 2, 1, 0, EWIN_OP_ZOOM},
+
+ {"layer", 2, 1, 1, EWIN_OP_LAYER},
+ {"raise", 2, 1, 0, EWIN_OP_RAISE},
+ {"lower", 2, 1, 0, EWIN_OP_LOWER},
+
+ {"snap", 0, 1, 0, EWIN_OP_SNAP},
+
+ {"never_use_area", 0, 1, 1, EWIN_OP_NEVER_USE_AREA},
+ {"no_button_grabs", 0, 1, 1, EWIN_OP_NO_BUTTON_GRABS},
+ {"skiplists", 4, 1, 1, EWIN_OP_SKIP_LISTS},
+ {"autoshade", 0, 1, 1, EWIN_OP_AUTOSHADE},
+
+ {"no_app_focus", 0, 1, 1, EWIN_OP_INH_APP_FOCUS},
+ {"no_app_move", 0, 1, 1, EWIN_OP_INH_APP_MOVE},
+ {"no_app_size", 0, 1, 1, EWIN_OP_INH_APP_SIZE},
+ {"no_user_close", 0, 1, 1, EWIN_OP_INH_USER_CLOSE},
+ {"no_user_move", 0, 1, 1, EWIN_OP_INH_USER_MOVE},
+ {"no_user_size", 0, 1, 1, EWIN_OP_INH_USER_SIZE},
+ {"no_wm_focus", 0, 1, 1, EWIN_OP_INH_WM_FOCUS},
+
+ {"fade", 0, 1, 1, EWIN_OP_FADE},
+ {"no_redir", 4, 1, 1, EWIN_OP_NO_REDIRECT},
+ {"no_argb", 0, 1, 1, EWIN_OP_NO_ARGB},
+
+ {NULL, 0, 0, 0, EWIN_OP_INVALID} /* Terminator */
+};
+
+const WinOp *
+EwinOpFind(const char *op)
+{
+ const WinOp *wop;
+
+ wop = winops;
+ for (; wop->name; wop++)
+ {
+ if (wop->len)
+ {
+ if (!strncmp(op, wop->name, wop->len))
+ return wop;
+ }
+ else
+ {
+ if (!strcmp(op, wop->name))
+ return wop;
+ }
+ }
+
+ return NULL;
+}
+
+static void
+EwinDetermineArea(EWin * ewin)
+{
+ Desk *dsk;
+ int ax, ay;
+
+ dsk = EoGetDesk(ewin);
+ ewin->vx = dsk->current_area_x * EoGetW(dsk) + EoGetX(ewin);
+ ewin->vy = dsk->current_area_y * EoGetH(dsk) + EoGetY(ewin);
+
+ if (EwinIsOnScreen(ewin))
+ {
+ ax = dsk->current_area_x;
+ ay = dsk->current_area_y;
+ }
+ else
+ {
+ ax = (ewin->vx + EoGetW(ewin) / 2) / EoGetW(dsk);
+ ay = (ewin->vy + EoGetH(ewin) / 2) / EoGetH(dsk);
+ DesksFixArea(&ax, &ay);
+ }
+
+ if (ax != ewin->area_x || ay != ewin->area_y)
+ {
+ ewin->area_x = ax;
+ ewin->area_y = ay;
+ HintsSetWindowArea(ewin);
+ }
+}
+
+#define MRF_DESK (1<<0)
+#define MRF_MOVE (1<<1)
+#define MRF_RESIZE (1<<2)
+#define MRF_RAISE (1<<3)
+#define MRF_FLOAT (1<<4)
+#define MRF_UNFLOAT (1<<5)
+
+static void
+doEwinMoveResize(EWin * ewin, Desk * dsk, int x, int y, int w, int h, int flags)
+{
+ static int call_depth = 0;
+ int dx, dy, sw, sh, xo, yo;
+ char move, resize, reparent, raise, floating, configure;
+ EWin **lst;
+ int i, num;
+ Desk *pdesk;
+
+ if (call_depth > 256)
+ return;
+ call_depth++;
+
+ if (EDebug(EDBUG_TYPE_MOVERESIZE))
+ Eprintf("doEwinMoveResize(%d,%d) %#lx f=%x d=%d %d+%d %d*%d %s\n",
+ call_depth, Mode.mode, EwinGetClientXwin(ewin), flags,
+ (dsk) ? (int)dsk->num : -1, x, y, w, h, EwinGetTitle(ewin));
+
+ pdesk = (ewin->o.stacked >= 0) ? EoGetDesk(ewin) : NULL;
+ reparent = move = resize = raise = 0;
+ floating = EoIsFloating(ewin);
+
+ if (flags & (MRF_DESK | MRF_FLOAT | MRF_UNFLOAT))
+ {
+ if (flags & MRF_FLOAT)
+ {
+ if (EoIsFloating(ewin) == 0)
+ {
+ dsk = (pdesk == NULL) ? EoGetDesk(ewin) : pdesk;
+ floating = 1;
+ }
+ else if (EoIsFloating(ewin) == 1)
+ {
+ dsk = DeskGet(0);
+ floating = 2;
+ }
+ flags |= MRF_RAISE;
+ }
+ else if (flags & MRF_UNFLOAT)
+ {
+ floating = 0;
+ flags |= MRF_RAISE;
+ }
+ else
+ {
+ if (EoIsSticky(ewin) && !EoIsFloating(ewin))
+ dsk = DesksGetCurrent();
+ }
+ if (dsk != pdesk)
+ reparent = 1;
+ }
+ else
+ {
+ dsk = EoGetDesk(ewin);
+ }
+
+ if (Mode.mode == MODE_NONE && Mode.move.check)
+ {
+ /* Don't throw windows offscreen */
+ sw = WinGetW(VROOT);
+ sh = WinGetH(VROOT);
+ if (EoIsSticky(ewin))
+ {
+ xo = yo = 0;
+ }
+ else
+ {
+ int ax, ay;
+
+ DeskGetArea(dsk, &ax, &ay);
+ xo = -ax * sw;
+ yo = -ay * sh;
+ sw *= Conf.desks.areas_nx;
+ sh *= Conf.desks.areas_ny;
+ }
+
+ if (ewin->state.shaded)
+ {
+ /* Keep shaded windows entirely on-screen */
+ dx = EoGetW(ewin);
+ dy = EoGetH(ewin);
+ }
+ else
+ {
+ /* Keep at least 8 pixels on-screen */
+ dx = EoGetW(ewin) / 4;
+ if (dx > 8)
+ dx = 8;
+ dy = EoGetH(ewin) / 4;
+ if (dy > 8)
+ dy = 8;
+ }
+
+ if (x < xo - EoGetW(ewin) + dx)
+ x = xo - EoGetW(ewin) + dx;
+ else if (x > xo + sw - dx)
+ x = xo + sw - dx;
+ if (y < yo - EoGetH(ewin) + dy)
+ y = yo - EoGetH(ewin) + dy;
+ else if (y > yo + sh - dy)
+ y = yo + sh - dy;
+ }
+
+ if (flags & MRF_RAISE)
+ raise = 1;
+
+ if (!(flags & MRF_MOVE))
+ {
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ }
+
+ if (!(flags & MRF_RESIZE))
+ {
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+ }
+ else
+ {
+ if (ewin->ops && ewin->ops->Layout)
+ {
+ ewin->ops->Layout(ewin, &x, &y, &w, &h);
+ }
+ else
+ {
+ ICCCM_SizeMatch(ewin, w, h, &w, &h);
+ }
+ if (w <= 0)
+ w = 1;
+ if (h <= 0)
+ h = 1;
+
+ if ((w != ewin->client.w) || (h != ewin->client.h))
+ resize = 2;
+ ewin->client.w = w;
+ ewin->client.h = h;
+
+ /* Don't touch frame size while shaded */
+ if (ewin->state.shaded)
+ {
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+ }
+ else
+ {
+ w = ewin->client.w + ewin->border->border.left +
+ ewin->border->border.right;
+ h = ewin->client.h + ewin->border->border.top +
+ ewin->border->border.bottom;
+ }
+ }
+
+ dx = x - EoGetX(ewin);
+ dy = y - EoGetY(ewin);
+ if ((dx != 0) || (dy != 0))
+ move = 1;
+ ewin->client.x = x + ewin->border->border.left;
+ ewin->client.y = y + ewin->border->border.top;
+
+#if 0
+ Eprintf("repa=%d float=%d raise=%d move=%d resz=%d\n",
+ reparent, floating, raise, move, resize);
+#endif
+ if (EoIsShown(ewin) && (move || reparent))
+ ModulesSignal(ESIGNAL_EWIN_CHANGE, ewin);
+
+ if (reparent)
+ EoReparent(ewin, EoObj(dsk), x, y);
+ else
+ EoMoveResize(ewin, x, y, w, h);
+
+ configure = 0;
+ if (Mode.mode == MODE_NONE || resize || Conf.movres.update_while_moving)
+ {
+ configure = 1;
+#if USE_XSYNC
+ if (Conf.movres.enable_sync_request)
+ EwinSyncRequestSend(ewin);
+#endif
+ }
+
+ if (flags & MRF_RESIZE)
+ {
+ if (!ewin->state.shaded)
+ EMoveResizeWindow(ewin->win_container,
+ ewin->border->border.left,
+ ewin->border->border.top,
+ ewin->client.w, ewin->client.h);
+#if 0
+ else
+ EMoveResizeWindow(ewin->win_container, -30, -30, 1, 1);
+#endif
+
+ EMoveResizeWindow(EwinGetClientWin(ewin), 0, 0, ewin->client.w,
+ ewin->client.h);
+ EwinBorderCalcSizes(ewin, 0);
+
+ /* Clear maximized state on resize */
+ if (resize && !ewin->state.maximizing && !ewin->state.shading)
+ {
+ if (ewin->state.maximized_horz || ewin->state.maximized_vert)
+ {
+ ewin->state.maximized_horz = 0;
+ ewin->state.maximized_vert = 0;
+ HintsSetWindowState(ewin);
+ }
+ }
+ if (resize && ewin->state.shaped)
+ ewin->update.shape = 1;
+ }
+
+ EwinPropagateShapes(ewin);
+
+ if (raise)
+ {
+ EoSetFloating(ewin, floating);
+ EwinRaise(ewin);
+ }
+
+ if (configure)
+ {
+ if (!resize)
+ ICCCM_Configure(ewin);
+#if USE_XSYNC
+ if (Conf.movres.enable_sync_request)
+ EwinSyncRequestWait(ewin);
+#endif
+ }
+
+ if (flags & (MRF_DESK | MRF_MOVE | MRF_FLOAT | MRF_UNFLOAT))
+ {
+ lst = EwinListTransients(ewin, &num, 0);
+ for (i = 0; i < num; i++)
+ doEwinMoveResize(lst[i], dsk, EoGetX(lst[i]) + dx,
+ EoGetY(lst[i]) + dy, 0, 0,
+ flags & (MRF_DESK | MRF_MOVE |
+ MRF_FLOAT | MRF_UNFLOAT));
+ Efree(lst);
+ }
+
+ EwinDetermineArea(ewin);
+ if (Mode.op_source == OPSRC_USER)
+ EwinSetPlacementGravity(ewin, x, y);
+
+ if ((flags & (MRF_MOVE | MRF_RESIZE)) && ewin->ops && ewin->ops->MoveResize)
+ ewin->ops->MoveResize(ewin, resize);
+
+ if (Mode.mode == MODE_NONE)
+ {
+ if (TransparencyUpdateNeeded())
+ EwinBorderDraw(ewin, resize, 1); /* Update the border */
+
+ SnapshotEwinUpdate(ewin, SNAP_USE_POS | SNAP_USE_SIZE);
+
+ if (EoIsShown(ewin))
+ ModulesSignal(ESIGNAL_EWIN_CHANGE, ewin);
+ }
+
+ if (dsk != pdesk)
+ {
+ HintsSetWindowDesktop(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_DESK);
+ }
+
+ call_depth--;
+}
+
+void
+EwinMove(EWin * ewin, int x, int y)
+{
+ doEwinMoveResize(ewin, NULL, x, y, 0, 0, MRF_MOVE);
+}
+
+void
+EwinResize(EWin * ewin, int w, int h)
+{
+ doEwinMoveResize(ewin, NULL, 0, 0, w, h, MRF_RESIZE);
+}
+
+void
+EwinMoveResize(EWin * ewin, int x, int y, int w, int h)
+{
+ doEwinMoveResize(ewin, NULL, x, y, w, h, MRF_MOVE | MRF_RESIZE);
+}
+
+void
+EwinMoveResizeWithGravity(EWin * ewin, int x, int y, int w, int h, int grav)
+{
+ EwinGetPosition(ewin, x, y, grav, &x, &y);
+ doEwinMoveResize(ewin, NULL, x, y, w, h, MRF_MOVE | MRF_RESIZE);
+}
+
+void
+EwinMoveToDesktop(EWin * ewin, Desk * dsk)
+{
+ doEwinMoveResize(ewin, dsk, 0, 0, 0, 0, MRF_DESK);
+}
+
+void
+EwinMoveToDesktopAt(EWin * ewin, Desk * dsk, int x, int y)
+{
+ doEwinMoveResize(ewin, dsk, x, y, 0, 0, MRF_DESK | MRF_MOVE);
+}
+
+void
+EwinOpMove(EWin * ewin, int source, int x, int y)
+{
+ Mode.op_source = source;
+ EwinMove(ewin, x, y);
+ Mode.op_source = 0;
+}
+
+void
+EwinOpResize(EWin * ewin, int source, int w, int h)
+{
+ Mode.op_source = source;
+ EwinResize(ewin, w, h);
+ Mode.op_source = 0;
+}
+
+void
+EwinOpMoveResize(EWin * ewin, int source, int x, int y, int w, int h)
+{
+ Mode.op_source = source;
+ EwinMoveResize(ewin, x, y, w, h);
+ Mode.op_source = 0;
+}
+
+void
+EwinOpMoveToDesktopAt(EWin * ewin, int source, Desk * dsk, int x, int y)
+{
+ Mode.op_source = source;
+ EwinMoveToDesktopAt(ewin, dsk, x, y);
+ Mode.op_source = 0;
+}
+
+void
+EwinOpFloatAt(EWin * ewin, int source, int x, int y)
+{
+ Mode.op_source = source;
+ doEwinMoveResize(ewin, EoGetDesk(ewin), x, y, 0, 0, MRF_MOVE | MRF_FLOAT);
+ Mode.op_source = 0;
+}
+
+void
+EwinOpUnfloatAt(EWin * ewin, int source, Desk * dsk, int x, int y)
+{
+ Mode.op_source = source;
+ doEwinMoveResize(ewin, dsk, x, y, 0, 0, MRF_MOVE | MRF_UNFLOAT);
+ Mode.op_source = 0;
+}
+
+void
+EwinIconify(EWin * ewin)
+{
+ static int call_depth = 0;
+ EWin **lst, *e;
+ int i, num;
+ char was_shaded;
+
+ if (!ewin)
+ return;
+
+ if (GetZoomEWin() == ewin)
+ Zoom(NULL);
+
+ if (ewin->state.inhibit_iconify)
+ return;
+
+ if (ewin->state.state != EWIN_STATE_MAPPED)
+ return;
+
+ if (call_depth > 256)
+ return;
+ call_depth++;
+
+ was_shaded = ewin->state.shaded;
+
+ if (!EwinIsTransient(ewin))
+ ModulesSignal(ESIGNAL_EWIN_ICONIFY, ewin);
+
+ ewin->state.iconified = 1;
+ EwinHide(ewin);
+
+ /* Save position at which the window was iconified */
+ EwinRememberPositionSet(ewin);
+
+ if (was_shaded != ewin->state.shaded)
+ EwinInstantShade(ewin, 0);
+
+ ICCCM_Iconify(ewin);
+
+ lst = EwinListTransients(ewin, &num, 0);
+ for (i = 0; i < num; i++)
+ {
+ e = lst[i];
+ if (e->state.iconified)
+ continue;
+
+ EwinIconify(e);
+ }
+#if ENABLE_GNOME
+ if (lst && call_depth == 1)
+ GNOME_SetClientList();
+#endif
+ Efree(lst);
+
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+
+ call_depth--;
+}
+
+void
+EwinAlone(EWin * ewin)
+{
+ EWin *const *lst, *item;
+ int i, num;
+
+ lst = EwinListGetForDesk(&num, EoGetDesk(ewin));
+
+ for (i = 0; i < num; i++)
+ {
+ item = lst[i];
+
+ if (item == ewin || EwinIsTransient(item) ||
+ item->state.iconified || item->state.donthide ||
+ item->area_x != ewin->area_x || item->area_y != ewin->area_y)
+ continue;
+ EwinIconify(item);
+ }
+}
+
+static void
+GetOnScreenPos(int x, int y, int w, int h, int *px, int *py)
+{
+ int dx, dy;
+
+ if (x + w > 4 && x <= WinGetW(VROOT) - 4 &&
+ y + h > 4 && y <= WinGetH(VROOT) - 4)
+ goto done;
+
+ dx = w / 2;
+ dy = h / 2;
+ x = (x + dx) % WinGetW(VROOT);
+ if (x < 0)
+ x += WinGetW(VROOT);
+ x -= dx;
+ y = (y + dy) % WinGetH(VROOT);
+ if (y < 0)
+ y += WinGetH(VROOT);
+ y -= dy;
+
+ done:
+ *px = x;
+ *py = y;
+}
+
+static void
+EwinDeIconify1(EWin * ewin, int dx, int dy)
+{
+ static int call_depth = 0;
+ EWin **lst, *e;
+ int i, num;
+ int x, y;
+
+ if (call_depth > 256)
+ return;
+ call_depth++;
+
+ if (ewin->state.state != EWIN_STATE_ICONIC || !ewin->state.iconified)
+ return;
+
+ EwinRememberPositionGet(ewin, DesksGetCurrent(), &x, &y);
+
+ EwinMoveToDesktopAt(ewin, DesksGetCurrent(), x + dx, y + dy);
+
+ if (!EwinIsTransient(ewin))
+ ModulesSignal(ESIGNAL_EWIN_DEICONIFY, ewin);
+
+ ewin->state.iconified = 0;
+ ewin->state.showingdesk = 0;
+
+ EwinRaise(ewin);
+ EwinShow(ewin);
+ ICCCM_DeIconify(ewin);
+
+ lst = EwinListTransients(ewin, &num, 0);
+ for (i = 0; i < num; i++)
+ {
+ e = lst[i];
+ if (!e->state.iconified)
+ continue;
+
+ EwinDeIconify1(e, dx, dy);
+ }
+#if ENABLE_GNOME
+ if (lst && call_depth == 1)
+ GNOME_SetClientList();
+#endif
+ Efree(lst);
+
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+
+ call_depth--;
+}
+
+void
+EwinDeIconify(EWin * ewin)
+{
+ int x, y, ox, oy, dx, dy;
+
+ EwinRememberPositionGet(ewin, DesksGetCurrent(), &x, &y);
+ ox = x;
+ oy = y;
+
+ /* If we iconified an offscreen window, get it back on screen */
+ if (!ewin->state.showingdesk)
+ GetOnScreenPos(x, y, EoGetW(ewin), EoGetH(ewin), &x, &y);
+
+ dx = x - ox;
+ dy = y - oy;
+
+ EwinDeIconify1(ewin, dx, dy);
+}
+
+static void
+EwinUnStick(EWin * ewin)
+{
+ if (!EoIsSticky(ewin))
+ return;
+
+ SoundPlay(SOUND_WINDOW_UNSTICK);
+
+ EoSetSticky(ewin, 0);
+ EwinMoveToDesktopAt(ewin, DesksGetCurrent(), EoGetX(ewin), EoGetY(ewin));
+ EwinBorderUpdateState(ewin);
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ HintsSetWindowDesktop(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_STICKY);
+}
+
+static void
+EwinStick(EWin * ewin)
+{
+ int x, y, dx, dy;
+
+ if (EoIsSticky(ewin))
+ return;
+
+ SoundPlay(SOUND_WINDOW_STICK);
+
+ /* Avoid "losing" windows made sticky while not in the current viewport */
+ dx = EoGetW(ewin) / 2;
+ dy = EoGetH(ewin) / 2;
+ x = (EoGetX(ewin) + dx) % WinGetW(VROOT);
+ if (x < 0)
+ x += WinGetW(VROOT);
+ x -= dx;
+ y = (EoGetY(ewin) + dy) % WinGetH(VROOT);
+ if (y < 0)
+ y += WinGetH(VROOT);
+ y -= dy;
+
+ EoSetSticky(ewin, 1);
+ EwinMoveToDesktopAt(ewin, DesksGetCurrent(), x, y);
+ EwinBorderUpdateState(ewin);
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ HintsSetWindowDesktop(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_STICKY);
+}
+
+void
+EwinInstantShade(EWin * ewin, int force)
+{
+ XSetWindowAttributes att;
+ int x, y, w, h;
+ int minw, minh;
+
+ if ((ewin->border->border.left == 0) && (ewin->border->border.right == 0)
+ && (ewin->border->border.top == 0) && (ewin->border->border.bottom == 0))
+ return;
+ if (GetZoomEWin() == ewin)
+ return;
+ if (ewin->state.shaded && !force)
+ return;
+
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+
+ EwinBorderMinShadeSize(ewin, &minw, &minh);
+
+ switch (ewin->border->shadedir)
+ {
+ default:
+ case 0:
+ att.win_gravity = EastGravity;
+ w = minw;
+ break;
+ case 1:
+ att.win_gravity = WestGravity;
+ if (!Mode.wm.startup)
+ x = x + w - minw;
+ w = minw;
+ break;
+ case 2:
+ att.win_gravity = SouthGravity;
+ h = minh;
+ break;
+ case 3:
+ att.win_gravity = SouthGravity;
+ if (!Mode.wm.startup)
+ y = y + h - minh;
+ h = minh;
+ break;
+ }
+
+ EChangeWindowAttributes(EwinGetClientWin(ewin), CWWinGravity, &att);
+ ewin->state.shaded = 2;
+ EoMoveResize(ewin, x, y, w, h);
+ EMoveResizeWindow(ewin->win_container, -30, -30, 1, 1);
+ EwinBorderCalcSizes(ewin, 1);
+}
+
+void
+EwinInstantUnShade(EWin * ewin)
+{
+ XSetWindowAttributes att;
+ int x, y, w, h;
+
+ if (GetZoomEWin() == ewin)
+ return;
+ if (!ewin->state.shaded)
+ return;
+
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+
+ switch (ewin->border->shadedir)
+ {
+ default:
+ case 0:
+ w = ewin->client.w + ewin->border->border.left +
+ ewin->border->border.right;
+ break;
+ case 1:
+ w = ewin->client.w + ewin->border->border.left +
+ ewin->border->border.right;
+ x = x + EoGetW(ewin) - w;
+ break;
+ case 2:
+ h = ewin->client.h + ewin->border->border.top +
+ ewin->border->border.bottom;
+ break;
+ case 3:
+ h = ewin->client.h + ewin->border->border.top +
+ ewin->border->border.bottom;
+ y = y + EoGetH(ewin) - h;
+ break;
+ }
+
+ /* Reset gravity */
+ att.win_gravity = NorthWestGravity;
+ EChangeWindowAttributes(EwinGetClientWin(ewin), CWWinGravity, &att);
+
+ ewin->state.shaded = 0;
+ EwinMoveResize(ewin, x, y, ewin->client.w, ewin->client.h);
+}
+
+#define _EWIN_ADJUST_SHAPE(ewin, xo, yo) \
+ do { \
+ EShapeSetShape(ewin->win_container, xo, yo, EwinGetClientWin(ewin)); \
+ ewin->update.shape = 1; \
+ } while (0)
+
+typedef struct {
+ int x, y, w, h;
+} _xywh;
+typedef struct {
+ EWin *ewin;
+ int k, dk;
+ _xywh start;
+ _xywh final;
+ int a, b, c, d;
+} _ewin_shade_data;
+
+static void
+_EwinShadeStart(_ewin_shade_data * esd)
+{
+ EWin *ewin = esd->ewin;
+ int minw, minh;
+ XSetWindowAttributes att;
+
+ esd->k = 0;
+ esd->dk = 1024 * Conf.shading.speed * Conf.animation.step / 1000000;
+
+ esd->start.x = EoGetX(ewin);
+ esd->start.y = EoGetY(ewin);
+ esd->start.w = EoGetW(ewin);
+ esd->start.h = EoGetH(ewin);
+ esd->final = esd->start;
+
+ ewin->state.shading = 1;
+
+ EwinBorderMinShadeSize(ewin, &minw, &minh);
+
+#if 0
+ Eprintf("EwinShade-B %d\n", ewin->border->shadedir);
+ EGrabServer();
+#endif
+
+ switch (ewin->border->shadedir)
+ {
+ default:
+ case 0:
+ att.win_gravity = EastGravity;
+ esd->a = esd->start.w;
+ esd->b = minw;
+ esd->final.w = esd->b;
+ break;
+ case 1:
+ att.win_gravity = WestGravity;
+ esd->a = esd->start.w;
+ esd->b = minw;
+ esd->c = esd->start.x + esd->start.w;
+ esd->final.x = esd->c - esd->b;
+ esd->final.w = esd->b;
+ break;
+ case 2:
+ att.win_gravity = SouthGravity;
+ esd->a = esd->start.h;
+ esd->b = minh;
+ esd->final.h = esd->b;
+ break;
+ case 3:
+ att.win_gravity = SouthGravity;
+ esd->a = esd->start.h;
+ esd->b = minh;
+ esd->c = esd->start.y + esd->start.h;
+ esd->final.y = esd->c - esd->b;
+ esd->final.h = esd->b;
+ break;
+ }
+
+ EChangeWindowAttributes(EwinGetClientWin(ewin), CWWinGravity, &att);
+}
+
+static void
+_EwinShadeEnd(_ewin_shade_data * esd)
+{
+ EWin *ewin = esd->ewin;
+
+ EoMoveResize(ewin, esd->final.x, esd->final.y, esd->final.w, esd->final.h);
+ ewin->state.shaded = 2;
+ EMoveResizeWindow(ewin->win_container, -30, -30, 1, 1);
+ if (ewin->state.shaped)
+ _EWIN_ADJUST_SHAPE(ewin, 0, 0);
+
+ EwinMoveResize(ewin, EoGetX(ewin), EoGetY(ewin), ewin->client.w,
+ ewin->client.h);
+
+#if 0
+ EUngrabServer();
+ Eprintf("EwinShade-E\n");
+#endif
+
+ ewin->state.shading = 0;
+
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_SHADED);
+
+ Efree(esd);
+}
+
+static int
+_EwinShadeRun(void *data)
+{
+ _ewin_shade_data *esd = (_ewin_shade_data *) data;
+ EWin *ewin = esd->ewin;
+ int k, x, y, w, h, ww, hh, cow, coh, shx, shy;
+
+ if (!EwinFindByPtr(ewin)) /* Check, window may be gone */
+ {
+ Efree(esd);
+ return 0;
+ }
+
+ k = esd->k;
+
+ x = esd->start.x;
+ y = esd->start.y;
+ w = esd->start.w;
+ h = esd->start.h;
+
+ cow = ewin->client.w;
+ coh = ewin->client.h;
+
+ shx = shy = 0;
+
+ switch (ewin->border->shadedir)
+ {
+ default:
+ case 0:
+ w = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ if (w < 1)
+ w = 1;
+ ww = w - ewin->border->border.left - ewin->border->border.right;
+ if (ww < 1)
+ ww = 1;
+ cow = ww;
+ shx = ww - ewin->client.w;
+ break;
+ case 1:
+ w = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ if (w < 1)
+ w = 1;
+ x = esd->c - w;
+ ww = w - ewin->border->border.left - ewin->border->border.right;
+ if (ww < 1)
+ ww = 1;
+ cow = ww;
+ break;
+ case 2:
+ h = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ if (h < 1)
+ h = 1;
+ hh = h - ewin->border->border.top - ewin->border->border.bottom;
+ if (hh < 1)
+ hh = 1;
+ coh = hh;
+ shy = hh - ewin->client.h;
+ break;
+ case 3:
+ h = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ if (h < 1)
+ h = 1;
+ y = esd->c - h;
+ hh = h - ewin->border->border.top - ewin->border->border.bottom;
+ if (hh < 1)
+ hh = 1;
+ coh = hh;
+ shy = hh - ewin->client.h;
+ break;
+ }
+ EMoveResizeWindow(ewin->win_container,
+ ewin->border->border.left,
+ ewin->border->border.top, cow, coh);
+ if (ewin->state.shaped)
+ _EWIN_ADJUST_SHAPE(ewin, shx, shy);
+ EoMoveResize(ewin, x, y, w, h);
+ EwinBorderCalcSizes(ewin, 1);
+
+ esd->k = k += esd->dk;
+ if (k < 1024)
+ return 1;
+
+ _EwinShadeEnd(esd);
+ return 0;
+}
+
+void
+EwinShade(EWin * ewin)
+{
+ _ewin_shade_data *esd;
+
+ if ((ewin->border->border.left == 0) && (ewin->border->border.right == 0) &&
+ (ewin->border->border.top == 0) && (ewin->border->border.bottom == 0))
+ return;
+ if (GetZoomEWin() == ewin)
+ return;
+ if (ewin->state.shaded || ewin->state.shading || ewin->state.iconified)
+ return;
+ if ((ewin->border) && (!strcmp(ewin->border->name, "BORDERLESS")))
+ return;
+
+ SoundPlay(SOUND_SHADE);
+
+ DeskRestack(EoGetDesk(ewin)); /* Do any pending stacking ops now */
+
+ esd = EMALLOC(_ewin_shade_data, 1);
+ esd->ewin = ewin;
+ _EwinShadeStart(esd);
+ if ((Conf.shading.animate) || (ewin->type == EWIN_TYPE_MENU))
+ AnimatorAdd(_EwinShadeRun, esd);
+ else
+ _EwinShadeEnd(esd);
+}
+
+static void
+_EwinUnshadeStart(_ewin_shade_data * esd)
+{
+ EWin *ewin = esd->ewin;
+ int cow, coh, clx, cly;
+ XSetWindowAttributes att;
+
+ esd->k = 0;
+ esd->dk = 1024 * Conf.shading.speed * Conf.animation.step / 1000000;
+
+ esd->start.x = EoGetX(ewin);
+ esd->start.y = EoGetY(ewin);
+ esd->start.w = EoGetW(ewin);
+ esd->start.h = EoGetH(ewin);
+ esd->final = esd->start;
+
+ ewin->state.shading = 1;
+ ewin->state.shaded = 0;
+
+ cow = ewin->client.w;
+ coh = ewin->client.h;
+
+ clx = cly = 0;
+
+#if 0
+ Eprintf("EwinUnShade-B %d\n", ewin->border->shadedir);
+ EGrabServer();
+#endif
+
+ switch (ewin->border->shadedir)
+ {
+ default:
+ case 0:
+ att.win_gravity = EastGravity;
+ esd->a = ewin->border->border.left + ewin->border->border.right;
+ esd->b = ewin->client.w + esd->a;
+ esd->c = 0; /* Not used */
+ esd->final.w = esd->b;
+ cow = 1;
+ clx = -ewin->client.w;
+ break;
+ case 1:
+ att.win_gravity = WestGravity;
+ esd->a = ewin->border->border.left + ewin->border->border.right;
+ esd->b = ewin->client.w + esd->a;
+ esd->c = esd->start.x + esd->start.w; /* NB! w != a is possible */
+ esd->final.x = esd->c - esd->b;
+ esd->final.w = esd->b;
+ cow = 1;
+ break;
+ case 2:
+ att.win_gravity = SouthGravity;
+ esd->a = ewin->border->border.top + ewin->border->border.bottom;
+ esd->b = ewin->client.h + esd->a;
+ esd->c = 0; /* Not used */
+ esd->final.h = esd->b;
+ coh = 1;
+ cly = 1 - ewin->client.h;
+ break;
+ case 3:
+ att.win_gravity = SouthGravity;
+ esd->a = ewin->border->border.top + ewin->border->border.bottom;
+ esd->b = ewin->client.h + esd->a;
+ esd->c = esd->start.y + esd->start.h; /* NB! h != a is possible */
+ esd->final.y = esd->c - esd->b;
+ esd->final.h = esd->b;
+ coh = 1;
+ cly = 1 - ewin->client.h;
+ break;
+ }
+
+ EChangeWindowAttributes(EwinGetClientWin(ewin), CWWinGravity, &att);
+ EMoveResizeWindow(ewin->win_container,
+ ewin->border->border.left, ewin->border->border.top,
+ cow, coh);
+ EWindowSync(EwinGetClientWin(ewin)); /* Gravity - recache */
+ EMoveResizeWindow(EwinGetClientWin(ewin), clx, cly,
+ ewin->client.w, ewin->client.h);
+ EMapWindow(EwinGetClientWin(ewin));
+ EMapWindow(ewin->win_container);
+}
+
+static void
+_EwinUnshadeEnd(_ewin_shade_data * esd)
+{
+ EWin *ewin = esd->ewin;
+ XSetWindowAttributes att;
+
+ EoMoveResize(ewin, esd->final.x, esd->final.y, esd->final.w, esd->final.h);
+
+ /* Reset gravity */
+ att.win_gravity = NorthWestGravity;
+ EChangeWindowAttributes(EwinGetClientWin(ewin), CWWinGravity, &att);
+
+ EMoveResizeWindow(EwinGetClientWin(ewin), 0, 0, ewin->client.w,
+ ewin->client.h);
+ EMoveResizeWindow(ewin->win_container, ewin->border->border.left,
+ ewin->border->border.top, ewin->client.w, ewin->client.h);
+
+ if (ewin->state.shaped)
+ _EWIN_ADJUST_SHAPE(ewin, 0, 0);
+
+ EwinMoveResize(ewin, EoGetX(ewin), EoGetY(ewin), ewin->client.w,
+ ewin->client.h);
+
+#if 0
+ EUngrabServer();
+ Eprintf("EwinUnShade-E\n");
+#endif
+
+ ewin->state.shading = 0;
+
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_SHADED);
+
+ Efree(esd);
+}
+
+static int
+_EwinUnshadeRun(void *data)
+{
+ _ewin_shade_data *esd = (_ewin_shade_data *) data;
+ EWin *ewin = esd->ewin;
+ int k, x, y, w, h, ww, hh, cow, coh, shx, shy;
+
+ if (!EwinFindByPtr(ewin)) /* Check, window may be gone */
+ {
+ Efree(esd);
+ return 0;
+ }
+
+ k = esd->k;
+
+ x = esd->start.x;
+ y = esd->start.y;
+ w = esd->start.w;
+ h = esd->start.h;
+
+ cow = ewin->client.w;
+ coh = ewin->client.h;
+
+ shx = shy = 0;
+
+ switch (ewin->border->shadedir)
+ {
+ default:
+ case 0:
+ w = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ ww = w - esd->a;
+ if (ww <= 0)
+ ww = 1;
+ cow = ww;
+ shx = ww - ewin->client.w;
+ break;
+ case 1:
+ w = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ x = esd->c - w;
+ ww = w - esd->a;
+ if (ww <= 0)
+ ww = 1;
+ cow = ww;
+ break;
+ case 2:
+ h = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ hh = h - esd->a;
+ if (hh <= 0)
+ hh = 1;
+ coh = hh;
+ shy = hh - ewin->client.h;
+ break;
+ case 3:
+ h = ((esd->a * (1024 - k)) + (esd->b * k)) >> 10;
+ y = esd->c - h;
+ hh = h - esd->a;
+ if (hh <= 0)
+ hh = 1;
+ coh = hh;
+ shy = hh - ewin->client.h;
+ break;
+ }
+ EMoveResizeWindow(ewin->win_container,
+ ewin->border->border.left,
+ ewin->border->border.top, cow, coh);
+ if (ewin->state.shaped)
+ _EWIN_ADJUST_SHAPE(ewin, shx, shy);
+ EoMoveResize(ewin, x, y, w, h);
+ EwinBorderCalcSizes(ewin, 1);
+
+ esd->k = k += esd->dk;
+ if (k < 1024)
+ return 1;
+
+ _EwinUnshadeEnd(esd);
+ return 0;
+}
+
+void
+EwinUnShade(EWin * ewin)
+{
+ _ewin_shade_data *esd;
+
+ if (GetZoomEWin() == ewin)
+ return;
+ TIMER_DEL(ewin->timer);
+ if (!ewin->state.shaded || ewin->state.shading || ewin->state.iconified)
+ return;
+
+ SoundPlay(SOUND_UNSHADE);
+
+ DeskRestack(EoGetDesk(ewin)); /* Do any pending stacking ops now */
+
+ esd = EMALLOC(_ewin_shade_data, 1);
+ esd->ewin = ewin;
+ _EwinUnshadeStart(esd);
+ if ((Conf.shading.animate) || (ewin->type == EWIN_TYPE_MENU))
+ AnimatorAdd(_EwinUnshadeRun, esd);
+ else
+ _EwinUnshadeEnd(esd);
+}
+
+void
+EwinOpFullscreen(EWin * ewin, int source __UNUSED__, int on)
+{
+ int x, y, w, h, ww, hh;
+ EWin **lst;
+ int i, num;
+ const Border *b;
+
+ if (ewin->state.fullscreen == (unsigned)on)
+ return;
+
+ if (on)
+ {
+ if (on == 1)
+ {
+ if (ewin->state.inhibit_fullscreeen)
+ return;
+ ewin->save_fs.x = EoGetX(ewin);
+ ewin->save_fs.y = EoGetY(ewin);
+ ewin->save_fs.w = ewin->client.w;
+ ewin->save_fs.h = ewin->client.h;
+ ewin->save_fs.layer = EoGetLayer(ewin);
+ }
+ ScreenGetAvailableArea(EoGetX(ewin), EoGetY(ewin), &x, &y, &w, &h);
+
+ /* Fixup if available space doesn't match ICCCM size constraints */
+ ICCCM_SizeMatch(ewin, w, h, &ww, &hh);
+ if (w == ww && h == hh)
+ {
+ b = BorderFind("BORDERLESS");
+ }
+ else
+ {
+ int l, t;
+
+ l = (w - ww) / 2;
+ l = (l < 0) ? 0 : l;
+ t = (h - hh) / 2;
+ t = (t < 0) ? 0 : t;
+ b = BorderCreateFiller(l, w - ww - l, t, h - hh - t);
+ w = ww;
+ h = hh;
+ }
+ EwinBorderSetTo(ewin, b);
+
+ if (Conf.place.raise_fullscreen)
+ {
+ EoSetLayer(ewin, 8);
+ lst = EwinListTransients(ewin, &num, 0);
+ for (i = 0; i < num; i++)
+ {
+ lst[i]->save_fs.layer = EoGetLayer(lst[i]);
+ EoSetLayer(lst[i], lst[i]->save_fs.layer +
+ EoGetLayer(ewin) - ewin->save_fs.layer);
+ }
+ Efree(lst);
+ }
+
+ EwinRaise(ewin);
+ ewin->state.maximizing = 1;
+ EwinMoveResize(ewin, x, y, w, h);
+ ewin->state.maximizing = 0;
+ ewin->state.fullscreen = 1;
+ EwinStateUpdate(ewin);
+ }
+ else
+ {
+ x = ewin->save_fs.x;
+ y = ewin->save_fs.y;
+ w = ewin->save_fs.w;
+ h = ewin->save_fs.h;
+ GetOnScreenPos(x, y, w, h, &x, &y);
+ b = ewin->normal_border;
+ EwinBorderSetTo(ewin, b);
+
+ if (Conf.place.raise_fullscreen)
+ {
+ lst = EwinListTransients(ewin, &num, 0);
+ for (i = 0; i < num; i++)
+ EoSetLayer(lst[i], lst[i]->save_fs.layer);
+ Efree(lst);
+ }
+ EoSetLayer(ewin, ewin->save_fs.layer);
+
+ ewin->state.fullscreen = 0;
+ EwinStateUpdate(ewin);
+ EwinRaise(ewin);
+ ewin->state.maximizing = 1;
+ EwinMoveResize(ewin, x, y, w, h);
+ ewin->state.maximizing = 0;
+ }
+
+ HintsSetWindowState(ewin);
+}
+
+void
+EwinsShowDesktop(int on)
+{
+ EWin *const *lst, *ewin;
+ int i, num;
+
+ lst = EwinListGetForDesk(&num, DesksGetCurrent());
+
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+
+ if (on)
+ {
+ if (EwinIsTransient(ewin) ||
+ ewin->state.iconified || ewin->state.donthide)
+ continue;
+
+ ewin->state.showingdesk = 1;
+ EwinIconify(ewin);
+ }
+ else
+ {
+ if (!ewin->state.showingdesk)
+ continue;
+
+ EwinDeIconify(ewin);
+ }
+ }
+ Mode.showing_desktop = on;
+ EWMH_SetShowingDesktop(on);
+}
+
+void
+EwinMoveToArea(EWin * ewin, int ax, int ay)
+{
+ DesksFixArea(&ax, &ay);
+ EwinMove(ewin, EoGetX(ewin) + (WinGetW(VROOT) * (ax - ewin->area_x)),
+ EoGetY(ewin) + (WinGetH(VROOT) * (ay - ewin->area_y)));
+}
+
+void
+EwinOpActivate(EWin * ewin, int source, int raise)
+{
+ int unshade;
+
+ if (source == OPSRC_APP && EwinInhGetApp(ewin, focus))
+ return;
+
+ unshade = ewin->state.shaded /* && !ewin->state.iconified */ ;
+
+ if (!ewin->state.animated && !ewin->state.iconified)
+ DeskGotoByEwin(ewin);
+ if (raise)
+ EwinOpRaise(ewin, source);
+ if (ewin->state.iconified)
+ EwinOpIconify(ewin, source, 0);
+ if (unshade)
+ EwinOpShade(ewin, source, 0);
+ FocusToEWin(ewin, FOCUS_SET);
+}
+
+void
+EwinOpClose(EWin * ewin, int source __UNUSED__)
+{
+ EWin **gwins;
+ int num, i;
+
+ if (!ewin)
+ return;
+
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_KILL,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ ICCCM_Delete(gwins[i]);
+ SoundPlay(SOUND_WINDOW_CLOSE);
+ }
+ Efree(gwins);
+}
+
+void
+EwinOpKill(EWin * ewin, int source __UNUSED__)
+{
+ SoundPlay(SOUND_WINDOW_CLOSE);
+ EwinKill(ewin);
+}
+
+void
+EwinOpRaise(EWin * ewin, int source __UNUSED__)
+{
+ EWin **gwins = NULL;
+ int i, num;
+
+ SoundPlay(SOUND_RAISE);
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_STACKING,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ EwinRaise(gwins[i]);
+ Efree(gwins);
+}
+
+void
+EwinOpLower(EWin * ewin, int source __UNUSED__)
+{
+ EWin **gwins = NULL;
+ int i, num;
+
+ SoundPlay(SOUND_LOWER);
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_STACKING,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ EwinLower(gwins[i]);
+ Efree(gwins);
+}
+
+void
+EwinOpStick(EWin * ewin, int source __UNUSED__, int on)
+{
+ EWin **gwins = NULL;
+ int i, num;
+
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_STICK,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (on)
+ EwinStick(gwins[i]);
+ else
+ EwinUnStick(gwins[i]);
+ }
+ Efree(gwins);
+}
+
+void
+EwinOpSkipLists(EWin * ewin, int source __UNUSED__, int skip)
+{
+ ewin->props.skip_ext_task = skip;
+ ewin->props.skip_winlist = skip;
+ ewin->props.skip_focuslist = skip;
+
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+#if ENABLE_GNOME
+ GNOME_SetClientList();
+#endif
+ SnapshotEwinUpdate(ewin, SNAP_USE_SKIP_LISTS);
+}
+
+#if 0 /* Unused */
+void
+EwinOpSkipTask(EWin * ewin, int skip)
+{
+ ewin->props.skip_ext_task = skip;
+
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+#if ENABLE_GNOME
+ GNOME_SetClientList();
+#endif
+ SnapshotEwinUpdate(ewin, SNAP_USE_SKIP_LISTS);
+}
+
+void
+EwinOpSkipFocus(EWin * ewin, int skip)
+{
+ ewin->props.skip_focuslist = skip;
+ EwinStateUpdate(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_SKIP_LISTS);
+}
+
+void
+EwinOpSkipWinlist(EWin * ewin, int skip)
+{
+ ewin->props.skip_winlist = skip;
+ EwinStateUpdate(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_SKIP_LISTS);
+}
+
+void
+EwinOpNeverFocus(EWin * ewin, int on)
+{
+ ewin->props.never_focus = on;
+ EwinStateUpdate(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_FOCUS_NEVER);
+}
+#endif
+
+void
+EwinOpIconify(EWin * ewin, int source __UNUSED__, int on)
+{
+ EWin **gwins = NULL;
+ int i, num;
+
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_ICONIFY,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (on)
+ EwinIconify(gwins[i]);
+ else
+ EwinDeIconify(gwins[i]);
+ }
+ Efree(gwins);
+}
+
+void
+EwinOpShade(EWin * ewin, int source __UNUSED__, int on)
+{
+ EWin **gwins = NULL;
+ int i, num;
+
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_SHADE,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (on)
+ EwinShade(gwins[i]);
+ else
+ EwinUnShade(gwins[i]);
+ }
+ Efree(gwins);
+}
+
+void
+EwinOpSetLayer(EWin * ewin, int source __UNUSED__, int layer)
+{
+ if (EoGetLayer(ewin) > layer)
+ {
+ SoundPlay(SOUND_WINDOW_CHANGE_LAYER_DOWN);
+ }
+ else if (EoGetLayer(ewin) < layer)
+ {
+ SoundPlay(SOUND_WINDOW_CHANGE_LAYER_UP);
+ }
+ EoSetLayer(ewin, layer);
+ EwinRaise(ewin);
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_LAYER);
+}
+
+void
+EwinOpSetBorder(EWin * ewin, int source __UNUSED__, const char *name)
+{
+ EWin **gwins = NULL;
+ int i, num;
+ char has_shaded;
+ Border *b;
+ char shadechange = 0;
+
+ b = BorderFind(name);
+ if (!b)
+ return;
+
+ has_shaded = 0;
+ gwins =
+ ListWinGroupMembersForEwin(ewin, GROUP_ACTION_SET_WINDOW_BORDER,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (gwins[i]->state.shaded)
+ {
+ has_shaded = 1;
+ break;
+ }
+ }
+ if (has_shaded)
+ {
+ if ((b->border.left == 0) && (b->border.right == 0)
+ && (b->border.top == 0) && (b->border.bottom == 0))
+ return;
+ }
+
+ for (i = 0; i < num; i++)
+ {
+ if (b != gwins[i]->border)
+ {
+ SoundPlay(SOUND_WINDOW_BORDER_CHANGE);
+ shadechange = 0;
+ if (gwins[i]->state.shaded)
+ {
+ shadechange = 1;
+ EwinInstantUnShade(gwins[i]);
+ }
+ EwinBorderChange(gwins[i], b, 1);
+ if (shadechange)
+ EwinInstantShade(gwins[i], 0);
+ }
+ SnapshotEwinUpdate(gwins[i], SNAP_USE_BORDER);
+ }
+ Efree(gwins);
+}
+
+void
+EwinOpSetOpacity(EWin * ewin, int source __UNUSED__, int opacity)
+{
+ unsigned int op;
+
+ op = OpacityFromPercent(opacity);
+ ewin->ewmh.opacity = op;
+ HintsSetWindowOpacity(ewin);
+ EwinUpdateOpacity(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_OPACITY);
+}
+
+void
+EwinOpSetFocusedOpacity(EWin * ewin, int source __UNUSED__, int opacity)
+{
+ unsigned int op;
+
+ op = OpacityFromPercent(opacity);
+ ewin->props.focused_opacity = op;
+ EwinUpdateOpacity(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_OPACITY);
+}
+
+void
+EwinOpMoveToDesk(EWin * ewin, int source __UNUSED__, Desk * dsk, int inc)
+{
+ dsk = DeskGetRelative(dsk, inc);
+
+ EoSetSticky(ewin, 0);
+ EwinMoveToDesktop(ewin, dsk);
+ EwinRaise(ewin);
+ EwinBorderUpdateState(ewin);
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ HintsSetWindowDesktop(ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_STICKY);
+}
+
+#if 0 /* Unused */
+void
+EwinMoveToLinearArea(EWin * ewin, int a)
+{
+ int ax, ay;
+
+ AreaLinearToXY(a, &ax, &ay);
+ EwinMoveToArea(ewin, ax, ay);
+}
+
+void
+EwinMoveLinearAreaBy(EWin * ewin, int a)
+{
+ EwinMoveToLinearArea(ewin, AreaXYToLinear(ewin->area_x, ewin->area_y) + a);
+}
+
+void
+EwinOpMoveToArea(EWin * ewin, int x, int y)
+{
+ EwinMoveToArea(ewin, x, y);
+ SnapshotEwinUpdate(ewin, SNAP_USE_POS);
+}
+#endif
+
+#if 0 /* Not used? */
+static int
+doMoveWinToLinearArea(EWin * ewin, const char *params)
+{
+ int da;
+
+ if (params)
+ {
+ sscanf(params, "%i", &da);
+ EwinMoveToLinearArea(ewin, da);
+ }
+ SnapshotEwinUpdate(ewin, SNAP_USE_POS);
+ return 0;
+}
+
+static int
+doMoveWinByLinearArea(EWin * ewin, const char *params)
+{
+ EWin *ewin;
+ int da;
+
+ if (params)
+ {
+ sscanf(params, "%i", &da);
+ EwinMoveLinearAreaBy(ewin, da);
+ }
+ SnapshotEwinUpdate(ewin, SNAP_USE_POS);
+ return 0;
+}
+#endif
+
+#if 0 /* FIXME - Unused? */
+static int
+doScrollWindows(EWin * edummy __UNUSED__, const char *params)
+{
+ int x, y, num, i;
+ EWin *const *lst;
+
+ if (!params)
+ return 0;
+
+ x = 0;
+ y = 0;
+ sscanf(params, "%i %i", &x, &y);
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if ((lst[i]->desktop == DesksGetCurrent()) && (!lst[i]->sticky) &&
+ (!lst[i]->floating))
+ EwinMove(lst[i], lst[i]->x + x, lst[i]->y + y);
+ }
+ return 0;
+}
+#endif
--- /dev/null
+/*
+ * Copyright (C) 2005-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EWIN_OPS_H_
+#define _EWIN_OPS_H_
+
+typedef enum {
+ EWIN_OP_INVALID,
+
+ EWIN_OP_BORDER,
+ EWIN_OP_TITLE,
+
+ EWIN_OP_CLOSE,
+ EWIN_OP_KILL,
+ EWIN_OP_ICONIFY,
+ EWIN_OP_ALONE,
+ EWIN_OP_SHADE,
+ EWIN_OP_STICK,
+ EWIN_OP_FOCUS,
+
+ EWIN_OP_DESK,
+ EWIN_OP_AREA,
+ EWIN_OP_MOVE,
+ EWIN_OP_SIZE,
+ EWIN_OP_MOVE_REL,
+ EWIN_OP_SIZE_REL,
+
+ EWIN_OP_MAX_WIDTH,
+ EWIN_OP_MAX_HEIGHT,
+ EWIN_OP_MAX_SIZE,
+ EWIN_OP_FULLSCREEN,
+ EWIN_OP_ZOOM,
+
+ EWIN_OP_LAYER,
+ EWIN_OP_RAISE,
+ EWIN_OP_LOWER,
+
+ EWIN_OP_OPACITY,
+ EWIN_OP_FOCUSED_OPACITY,
+
+ EWIN_OP_SNAP,
+
+ EWIN_OP_FOCUS_CLICK,
+ EWIN_OP_NEVER_USE_AREA,
+ EWIN_OP_NO_BUTTON_GRABS,
+ EWIN_OP_SKIP_LISTS,
+ EWIN_OP_AUTOSHADE,
+
+ EWIN_OP_INH_APP_FOCUS,
+ EWIN_OP_INH_APP_MOVE,
+ EWIN_OP_INH_APP_SIZE,
+ EWIN_OP_INH_USER_CLOSE,
+ EWIN_OP_INH_USER_MOVE,
+ EWIN_OP_INH_USER_SIZE,
+ EWIN_OP_INH_WM_FOCUS,
+
+ EWIN_OP_FADE,
+ EWIN_OP_SHADOW,
+ EWIN_OP_NO_REDIRECT,
+ EWIN_OP_NO_ARGB,
+} winop_e;
+
+typedef struct {
+ const char *name;
+ char len;
+ char ok_ipc;
+ char ok_match;
+ char op;
+} WinOp;
+
+const WinOp *EwinOpFind(const char *op);
+
+#endif /* _EWIN_OPS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "borders.h"
+#include "cursors.h"
+#include "desktops.h"
+#include "ecompmgr.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "events.h"
+#include "ewins.h"
+#include "focus.h"
+#include "grabs.h"
+#include "groups.h"
+#include "hints.h"
+#include "snaps.h"
+#include "timers.h"
+#include "windowmatch.h"
+#include "xwin.h"
+#include <X11/Xutil.h>
+#include <X11/extensions/shape.h>
+
+#define EWIN_TOP_EVENT_MASK \
+ (/* ButtonPressMask | ButtonReleaseMask | */ \
+ EnterWindowMask | LeaveWindowMask /* | PointerMotionMask */ /* | \
+ StructureNotifyMask */)
+
+#define EWIN_CONTAINER_EVENT_MASK \
+ (SubstructureNotifyMask | SubstructureRedirectMask)
+
+#define EWIN_CLIENT_EVENT_MASK \
+ (/* EnterWindowMask | LeaveWindowMask | */ FocusChangeMask | \
+ /* StructureNotifyMask | */ ResizeRedirectMask | \
+ PropertyChangeMask | ColormapChangeMask | VisibilityChangeMask)
+
+static int EwinSlideIn(void *data);
+
+static void EwinChangesStart(EWin * ewin);
+static void EwinChangesProcess(EWin * ewin);
+
+static void EwinHandleEventsToplevel(Win win, XEvent * ev, void *prm);
+static void EwinHandleEventsContainer(Win win, XEvent * ev, void *prm);
+static void EwinHandleEventsClient(Win win, XEvent * ev, void *prm);
+
+static void EwinUnmap2(EWin * ewin);
+
+Window
+EwinGetClientXwin(const EWin * ewin)
+{
+ Win win = EwinGetClientWin(ewin);
+
+ return (win) ? WinGetXwin(win) : None;
+}
+
+Window
+EwinGetContainerXwin(const EWin * ewin)
+{
+ Win win = EwinGetContainerWin(ewin);
+
+ return (win) ? WinGetXwin(win) : None;
+}
+
+static EWin *
+EwinCreate(int type)
+{
+ EWin *ewin;
+
+ ewin = ECALLOC(EWin, 1);
+
+ ewin->type = type;
+ ewin->state.state = (Mode.wm.startup) ? EWIN_STATE_STARTUP : EWIN_STATE_NEW;
+
+ ewin->o.stacked = -1; /* Not placed on desk yet */
+ EoSetDesk(ewin, DesksGetCurrent());
+ EoSetLayer(ewin, 4);
+ EoSetFade(ewin, 1);
+ EoSetShadow(ewin, 1);
+
+ ewin->update.shape = 1;
+ ewin->update.border = 1;
+ ewin->save_max.x = ewin->save_max.y = ewin->save_max.w = ewin->save_max.h =
+ -1;
+ ewin->save_fs.x = ewin->save_fs.y = ewin->save_fs.w = ewin->save_fs.h = -1;
+ ewin->save_fs.layer = -1;
+
+ ewin->icccm.need_input = 1;
+
+ ewin->icccm.width_min = 0;
+ ewin->icccm.height_min = 0;
+ ewin->icccm.width_max = 65535;
+ ewin->icccm.height_max = 65535;
+ ewin->icccm.base_w = 0;
+ ewin->icccm.base_h = 0;
+ ewin->icccm.w_inc = 1;
+ ewin->icccm.h_inc = 1;
+ ewin->icccm.aspect_min = 0.0;
+ ewin->icccm.aspect_max = 65535.0;
+ ewin->icccm.grav = NorthWestGravity;
+
+#if 0 /* ENABLE_GNOME - Not actually used */
+ ewin->expanded_width = -1;
+ ewin->expanded_height = -1;
+#endif
+ ewin->area_x = -1;
+ ewin->area_y = -1;
+
+ ewin->place.gravity = -1;
+
+ ewin->ewmh.opacity = 0; /* If 0, ignore */
+ ewin->props.focused_opacity = 0;
+
+ return ewin;
+}
+
+static int
+EwinGetAttributes(EWin * ewin, Win win, Window xwin)
+{
+ XWindowAttributes xwa;
+
+ if (!win)
+ {
+ win = ERegisterWindow(xwin, NULL);
+ if (!win)
+ return -1;
+ }
+
+ EGetWindowAttributes(win, &xwa);
+
+ ewin->client.win = win;
+ ewin->client.x = ewin->save_max.x = ewin->save_fs.x = xwa.x;
+ ewin->client.y = ewin->save_max.y = ewin->save_fs.y = xwa.y;
+ ewin->client.w = ewin->save_max.w = ewin->save_fs.w = xwa.width;
+ ewin->client.h = ewin->save_max.h = ewin->save_fs.h = xwa.height;
+ ewin->client.bw = xwa.border_width;
+ ewin->client.cmap = xwa.colormap;
+
+ if (EDebug(EDBUG_TYPE_SNAPS))
+ Eprintf("Snap get attr %#lx: %4d+%4d %4dx%4d: %s\n",
+ EwinGetClientXwin(ewin), ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, EwinGetTitle(ewin));
+
+ return 0;
+}
+
+static void
+EwinGetHints(EWin * ewin)
+{
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinGetHints %#lx\n", EwinGetClientXwin(ewin));
+
+ ICCCM_GetTitle(ewin);
+ ICCCM_GetHints(ewin);
+ ICCCM_GetGeoms(ewin);
+ MWM_GetHints(ewin, 0);
+ ICCCM_GetInfo(ewin); /* NB! Need group info first */
+ HintsGetWindowHints(ewin);
+ SessionGetInfo(ewin);
+}
+
+static void
+EwinHintsInferProps(EWin * ewin)
+{
+ if (ewin->ewmh.type.b.desktop)
+ {
+ EoSetLayer(ewin, 0);
+ if (!ewin->state.identified)
+ EoSetSticky(ewin, 1);
+ ewin->props.focusclick = 1;
+ ewin->props.skip_focuslist = 1;
+ EwinInhSetUser(ewin, move, 1);
+ EwinInhSetUser(ewin, size, 1);
+ ewin->props.donthide = 1;
+ ewin->props.no_border = 1;
+ }
+ if (ewin->ewmh.type.b.dock)
+ {
+ ewin->props.skip_ext_task = 1;
+ ewin->props.skip_winlist = 1;
+ ewin->props.skip_focuslist = 1;
+ if (!ewin->state.identified)
+ EoSetSticky(ewin, 1);
+ ewin->props.donthide = 1;
+ }
+ if (ewin->ewmh.type.b.utility)
+ {
+ /* Epplets hit this */
+ ewin->props.skip_ext_task = 1;
+ ewin->props.skip_winlist = 1;
+ ewin->props.skip_focuslist = 1;
+ ewin->props.never_use_area = 1;
+ ewin->props.donthide = 1;
+ }
+}
+
+static void
+EwinManage(EWin * ewin)
+{
+ XSetWindowAttributes att;
+ Win frame;
+ int type;
+
+ if (ewin->client.w <= 0)
+ ewin->client.w = 100;
+ if (ewin->client.h <= 0)
+ ewin->client.h = 100;
+
+ if (ewin->state.docked)
+ ewin->inh_wm.b.border = 1;
+
+ frame = EoGetWin(ewin);
+ if (!frame)
+ {
+ type = (ewin->props.no_argb) ? WIN_TYPE_NO_ARGB : WIN_TYPE_CLIENT;
+ frame =
+ ECreateObjectWindow(VROOT, ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, 0, type,
+ EwinGetClientWin(ewin));
+ ewin->win_container =
+ ECreateWindow(frame, 0, 0, ewin->client.w, ewin->client.h, 0);
+
+ EoInit(ewin, EOBJ_TYPE_EWIN, frame, ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, 1, NULL);
+
+ EobjListFocusAdd(&ewin->o, 1);
+ EobjListOrderAdd(&ewin->o);
+
+ EventCallbackRegister(EoGetWin(ewin), 0,
+ EwinHandleEventsToplevel, ewin);
+ EventCallbackRegister(ewin->win_container, 0,
+ EwinHandleEventsContainer, ewin);
+ EventCallbackRegister(EwinGetClientWin(ewin), 0,
+ EwinHandleEventsClient, ewin);
+ }
+
+ att.event_mask = EWIN_CONTAINER_EVENT_MASK;
+ att.do_not_propagate_mask = ButtonPressMask | ButtonReleaseMask;
+ EChangeWindowAttributes(ewin->win_container,
+ CWEventMask | CWDontPropagate, &att);
+ EMapWindow(ewin->win_container);
+
+ att.event_mask = EWIN_TOP_EVENT_MASK;
+ att.do_not_propagate_mask =
+ ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
+ EChangeWindowAttributes(EoGetWin(ewin), CWEventMask | CWDontPropagate, &att);
+
+ ewin->client.event_mask = EWIN_CLIENT_EVENT_MASK;
+ ESelectInput(EwinGetClientWin(ewin), ewin->client.event_mask);
+
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinManage %#lx frame=%#lx cont=%#lx st=%d\n",
+ EwinGetClientXwin(ewin), EoGetXwin(ewin),
+ EwinGetContainerXwin(ewin), ewin->state.state);
+
+ if (!EwinIsInternal(ewin))
+ {
+ XShapeSelectInput(disp, EwinGetClientXwin(ewin), ShapeNotifyMask);
+ ESetWindowBorderWidth(EwinGetClientWin(ewin), 0);
+ ewin->client.bw = 0;
+ }
+
+ ICCCM_AdoptStart(ewin);
+
+ /* We must reparent after getting original window position */
+ EReparentWindow(EwinGetClientWin(ewin), ewin->win_container, 0, 0);
+
+ EwinUpdateShapeInfo(ewin);
+
+ ModulesSignal(ESIGNAL_EWIN_CREATE, ewin);
+}
+
+/*
+ * Derive frame window geometry from client window properties
+ */
+static void
+EwinSetGeometry(EWin * ewin)
+{
+ int x, y, l, r, t, b;
+ int grav;
+
+ grav = (ewin->state.identified) ? StaticGravity : ewin->icccm.grav;
+
+ EwinGetPosition(ewin, ewin->client.x, ewin->client.y, grav, &x, &y);
+
+ l = ewin->border->border.left;
+ r = ewin->border->border.right;
+ t = ewin->border->border.top;
+ b = ewin->border->border.bottom;
+
+ ewin->client.x = x + l;
+ ewin->client.y = y + t;
+
+ EoMoveResize(ewin, x, y, ewin->client.w + l + r, ewin->client.h + t + b);
+}
+
+static void
+EwinConfigure(EWin * ewin)
+{
+ EwinStateUpdate(ewin);
+
+ if (!EwinIsInternal(ewin) && Mode.wm.startup)
+ EHintsGetInfo(ewin); /* E restart hints */
+ EwinHintsInferProps(ewin);
+ SnapshotEwinApply(ewin); /* Apply saved settings */
+
+ if (ewin->save_fs.layer < 0)
+ ewin->save_fs.layer = EoGetLayer(ewin);
+
+ EwinStateUpdate(ewin); /* Update after snaps etc. */
+
+ ICCCM_Adopt(ewin);
+
+ EwinBorderSelect(ewin); /* Select border before calculating geometry */
+ EwinSetGeometry(ewin); /* Calculate window geometry before border parts */
+ EwinBorderSetTo(ewin, NULL);
+
+ if (!ewin->props.no_button_grabs)
+ GrabButtonGrabs(EoGetWin(ewin));
+
+ if (ewin->state.shaded)
+ EwinInstantShade(ewin, 1);
+
+ EwinUpdateOpacity(ewin);
+
+ HintsSetWindowState(ewin);
+ HintsSetWindowOpacity(ewin);
+
+ HintsSetClientList();
+
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinConfigure %#lx st=%d: %s\n", EwinGetClientXwin(ewin),
+ ewin->state.state, EwinGetTitle(ewin));
+}
+
+static void
+EwinCleanup(EWin * ewin)
+{
+ EwinBorderDetach(ewin);
+}
+
+static void
+EwinDestroy(EWin * ewin)
+{
+ EWin **lst;
+ int i, num;
+
+ if (!ewin)
+ return;
+
+ if (ewin->state.state == EWIN_STATE_MAPPED)
+ EwinUnmap2(ewin);
+
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinDestroy %#lx st=%d: %s\n", EwinGetClientXwin(ewin),
+ ewin->state.state, EwinGetTitle(ewin));
+
+ EventCallbackUnregister(EoGetWin(ewin), 0, EwinHandleEventsToplevel, ewin);
+ EventCallbackUnregister(ewin->win_container, 0, EwinHandleEventsContainer,
+ ewin);
+ EventCallbackUnregister(EwinGetClientWin(ewin), 0, EwinHandleEventsClient,
+ ewin);
+ if (!EwinIsInternal(ewin))
+ EUnregisterWindow(EwinGetClientWin(ewin));
+
+ SnapshotEwinUnmatch(ewin);
+
+ ModulesSignal(ESIGNAL_EWIN_DESTROY, ewin);
+
+ lst = EwinListTransientFor(ewin, &num);
+ for (i = 0; i < num; i++)
+ {
+ lst[i]->icccm.transient_count--;
+ if (lst[i]->icccm.transient_count < 0) /* Paranoia? */
+ lst[i]->icccm.transient_count = 0;
+ }
+ Efree(lst);
+
+ EwinCleanup(ewin);
+ EobjListOrderDel(&ewin->o);
+ EobjListFocusDel(&ewin->o);
+ EoFini(ewin);
+
+ HintsSetClientList();
+
+ Efree(ewin->icccm.wm_icon_name);
+ Efree(ewin->icccm.wm_role);
+ Efree(ewin->icccm.wm_command);
+ Efree(ewin->icccm.wm_machine);
+ Efree(ewin->ewmh.wm_name);
+ Efree(ewin->ewmh.wm_icon_name);
+ Efree(ewin->ewmh.wm_icon);
+ Efree(ewin->bits);
+ Efree(ewin->session_id);
+ FreePmapMask(&ewin->mini_pmm);
+ GroupsEwinRemove(ewin);
+
+ Efree(ewin);
+}
+
+void
+DetermineEwinFloat(EWin * ewin, int dx, int dy)
+{
+ char dofloat = 0;
+ int x, y, w, h, xd, yd;
+ Desk *dsk;
+
+ dsk = EoGetDesk(ewin);
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+
+ xd = EoGetX(dsk);
+ yd = EoGetY(dsk);
+
+ if ((dsk->num != 0) && (EoIsFloating(ewin) < 2) &&
+ ((xd != 0) || (yd != 0) || (DesksGetCurrent() != dsk)))
+ {
+ switch (Conf.desks.dragdir)
+ {
+ case 0:
+ if (((x + dx < 0) ||
+ ((x + dx + w <= WinGetW(VROOT)) &&
+ (DesktopAt(xd + x + dx + w - 1, yd) != dsk))))
+ dofloat = 1;
+ break;
+ case 1:
+ if (((x + dx + w > WinGetW(VROOT)) ||
+ ((x + dx >= 0) && (DesktopAt(xd + x + dx, yd) != dsk))))
+ dofloat = 1;
+ break;
+ case 2:
+ if (((y + dy < 0) ||
+ ((y + dy + h <= WinGetH(VROOT)) &&
+ (DesktopAt(xd, yd + y + dy + h - 1) != dsk))))
+ dofloat = 1;
+ break;
+ case 3:
+ if (((y + dy + h > WinGetH(VROOT)) ||
+ ((y + dy >= 0) && (DesktopAt(xd, yd + y + dy) != dsk))))
+ dofloat = 1;
+ break;
+ }
+
+ if (dofloat)
+ EwinOpFloatAt(ewin, OPSRC_USER, x + xd, y + yd);
+ }
+}
+
+EWin *
+GetEwinPointerInClient(void)
+{
+ int px, py;
+ EWin *const *lst, *ewin;
+ int i, num;
+ Desk *dsk;
+
+ dsk = DesktopAt(Mode.events.cx, Mode.events.cy);
+ EQueryPointer(EoGetWin(dsk), &px, &py, NULL, NULL);
+
+ lst = EwinListGetForDesk(&num, dsk);
+ for (i = 0; i < num; i++)
+ {
+ int x, y, w, h;
+
+ ewin = lst[i];
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+ if ((px >= x) && (py >= y) && (px < (x + w)) && (py < (y + h)) &&
+ EwinIsMapped(ewin))
+ return ewin;
+ }
+
+ return NULL;
+}
+
+EWin *
+GetFocusEwin(void)
+{
+ return Mode.focuswin;
+}
+
+EWin *
+GetContextEwin(void)
+{
+ EWin *ewin;
+
+ ewin = Mode.context_ewin;
+ if (ewin)
+ goto done;
+
+ ewin = NULL;
+
+ done:
+#if 0
+ Eprintf("GetContextEwin %#lx %s\n", EwinGetClientXwin(ewin),
+ EwinGetTitle(ewin));
+#endif
+ return ewin;
+}
+
+void
+SetContextEwin(EWin * ewin)
+{
+ if (ewin && ewin->type == EWIN_TYPE_MENU)
+ return;
+#if 0
+ Eprintf("SetContextEwin %#lx %s\n", EwinGetClientXwin(ewin),
+ EwinGetTitle(ewin));
+#endif
+ Mode.context_ewin = ewin;
+}
+
+/*
+ * Derive frame window position from client window and border properties
+ */
+void
+EwinGetPosition(const EWin * ewin, int x, int y, int grav, int *px, int *py)
+{
+ int bw, bd_lr, bd_tb;
+
+ bw = ewin->client.bw;
+ bd_lr = ewin->border->border.left + ewin->border->border.right;
+ bd_tb = ewin->border->border.top + ewin->border->border.bottom;
+
+ if (grav == 0)
+ grav = ewin->icccm.grav;
+
+ switch (grav)
+ {
+ case NorthWestGravity:
+ case WestGravity:
+ case SouthWestGravity:
+ x -= bw;
+ break;
+ case NorthGravity:
+ case CenterGravity:
+ case SouthGravity:
+ x -= bd_lr / 2;
+ break;
+ case NorthEastGravity:
+ case EastGravity:
+ case SouthEastGravity:
+ x -= bd_lr - bw;
+ break;
+ case StaticGravity:
+ x -= ewin->border->border.left;
+ break;
+ default:
+ break;
+ }
+
+ switch (grav)
+ {
+ case NorthWestGravity:
+ case NorthGravity:
+ case NorthEastGravity:
+ y -= bw;
+ break;
+ case WestGravity:
+ case CenterGravity:
+ case EastGravity:
+ y -= bd_tb / 2;
+ break;
+ case SouthWestGravity:
+ case SouthGravity:
+ case SouthEastGravity:
+ y -= bd_tb - bw;
+ break;
+ case StaticGravity:
+ y -= ewin->border->border.top;
+ break;
+ default:
+ break;
+ }
+
+ *px = x;
+ *py = y;
+}
+
+void
+EwinUpdateShapeInfo(EWin * ewin)
+{
+ EGrabServer();
+ ewin->state.shaped =
+ EShapeSetShape(ewin->win_container, 0, 0, EwinGetClientWin(ewin));
+ EUngrabServer();
+
+ if (EDebug(EX_EVENT_SHAPE_NOTIFY))
+ Eprintf("EwinUpdateShapeInfo %#lx cont=%#lx shaped=%d\n",
+ EwinGetClientXwin(ewin), EwinGetContainerXwin(ewin),
+ ewin->state.shaped);
+}
+
+void
+EwinPropagateShapes(EWin * ewin)
+{
+ if (!EoIsShown(ewin))
+ return;
+
+ if (ewin->state.docked)
+ return;
+
+ if (!ewin->update.shape)
+ return;
+
+ if (EDebug(EX_EVENT_SHAPE_NOTIFY))
+ Eprintf("EwinPropagateShapes %#lx frame=%#lx shaped=%d\n",
+ EwinGetClientXwin(ewin), EoGetXwin(ewin), ewin->state.shaped);
+
+ EoShapeUpdate(ewin, 1);
+ ewin->update.shape = 0;
+}
+
+void
+EwinStateUpdate(EWin * ewin)
+{
+ ewin->state.inhibit_actions = ewin->props.no_actions;
+ ewin->state.inhibit_focus = !ewin->icccm.need_input ||
+ EwinInhGetWM(ewin, focus) || ewin->state.iconified;
+
+ ewin->state.inhibit_move =
+ EwinInhGetUser(ewin, move) || ewin->state.fullscreen;
+ ewin->state.inhibit_resize = ewin->state.iconified || ewin->state.shaded ||
+ (ewin->props.no_resize_h && ewin->props.no_resize_v) ||
+ EwinInhGetUser(ewin, size) || ewin->state.fullscreen;
+ ewin->state.inhibit_iconify = EwinInhGetWM(ewin, iconify);
+ ewin->state.inhibit_shade = ewin->state.no_border ||
+ ewin->state.iconified || ewin->state.fullscreen;
+ ewin->state.inhibit_stick = 0;
+ ewin->state.inhibit_max_hor = ewin->state.inhibit_resize ||
+ ewin->props.no_resize_h || ewin->state.fullscreen;
+ ewin->state.inhibit_max_ver = ewin->state.inhibit_resize ||
+ ewin->props.no_resize_v || ewin->state.fullscreen;
+ ewin->state.inhibit_fullscreeen =
+ ewin->state.inhibit_move || ewin->state.inhibit_resize;
+ ewin->state.inhibit_change_desk = ewin->state.iconified;
+ ewin->state.inhibit_close = EwinInhGetApp(ewin, close) ||
+ EwinInhGetUser(ewin, close);
+
+ ewin->state.donthide = ewin->props.donthide ||
+ ewin->props.skip_ext_task || ewin->props.skip_winlist ||
+ ewin->props.skip_focuslist;
+
+ SnapshotEwinUpdate(ewin, SNAP_USE_FLAGS);
+}
+
+static void
+AddToFamily(EWin * ewin, Window xwin)
+{
+ EWin *ewin2;
+ EWin **lst;
+ int i, k, num, fx, fy, x, y;
+ char doslide, manplace;
+ Desk *dsk;
+
+ EGrabServer();
+
+ if (ewin)
+ EwinCleanup(ewin);
+ else
+ ewin = EwinCreate(EWIN_TYPE_NORMAL);
+ if (!ewin)
+ goto done;
+
+ if (EwinGetAttributes(ewin, NULL, xwin))
+ {
+ Eprintf("Window is gone %#lx\n", xwin);
+ /* We got here by MapRequest. DestroyNotify should follow. */
+ goto done;
+ }
+
+ EwinGetHints(ewin);
+ WindowMatchEwinOps(ewin); /* Window matches */
+ EwinManage(ewin);
+ EwinConfigure(ewin);
+
+ /* if it hasn't been planted on a desktop - assign it the current desktop */
+ dsk = EoGetDesk(ewin);
+
+ /* if is an afterstep/windowmaker dock app - dock it */
+ if (Conf.dock.enable && ewin->state.docked)
+ DockIt(ewin);
+
+ ewin2 = NULL;
+ if (ewin->icccm.transient)
+ {
+ if (ewin->icccm.transient_for == None ||
+ ewin->icccm.transient_for == WinGetXwin(VROOT))
+ {
+ /* Group transient */
+ ewin->icccm.transient_for = WinGetXwin(VROOT);
+#if 0 /* Maybe? */
+ ewin->layer++;
+#endif
+ /* Don't treat this as a normal transient */
+ ewin->icccm.transient = -1;
+ }
+ else if (ewin->icccm.transient_for == EwinGetClientXwin(ewin))
+ {
+ /* Some apps actually do this. Why? */
+ ewin->icccm.transient = 0;
+ }
+ else
+ {
+ /* Regular transient */
+ }
+
+ if (ewin->icccm.transient)
+ {
+ /* Tag the parent window if this is a transient */
+ lst = EwinListTransientFor(ewin, &num);
+ for (i = 0; i < num; i++)
+ {
+ lst[i]->icccm.transient_count++;
+ if (EoGetLayer(ewin) < EoGetLayer(lst[i]))
+ EoSetLayer(ewin, EoGetLayer(lst[i]));
+ }
+ if (lst)
+ {
+ ewin2 = lst[0];
+ EoSetSticky(ewin, EoIsSticky(lst[0]));
+ Efree(lst);
+ }
+ else
+ {
+ /* No parents? - not a transient */
+ ewin->icccm.transient = 0;
+ }
+ }
+ }
+
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ if (ewin->icccm.transient && Conf.focus.transientsfollowleader)
+ {
+ EWin *const *lst2;
+
+ if (!ewin2)
+ ewin2 = EwinFindByClient(ewin->icccm.group);
+
+ if (!ewin2)
+ {
+ lst2 = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if ((lst2[i]->state.iconified) ||
+ (ewin->icccm.group != lst2[i]->icccm.group))
+ continue;
+
+ ewin2 = lst2[i];
+ break;
+ }
+ }
+
+ if (ewin2)
+ {
+ dsk = EoGetDesk(ewin2);
+ if (!Mode.wm.startup && Conf.focus.switchfortransientmap &&
+ !ewin->state.iconified)
+ DeskGotoByEwin(ewin2);
+ }
+ }
+
+ if (ewin->state.fullscreen)
+ {
+ EwinOpFullscreen(ewin, OPSRC_WM, 2);
+ ewin->state.placed = 1;
+ EwinMoveToDesktopAt(ewin, dsk, EoGetX(ewin), EoGetY(ewin));
+ EwinShow(ewin);
+ goto done;
+ }
+
+ if (!ewin->state.identified &&
+ (ewin->state.maximized_horz || ewin->state.maximized_vert))
+ {
+ int hor, ver;
+
+ /* New client requested maximisation */
+ hor = ewin->state.maximized_horz;
+ ver = ewin->state.maximized_vert;
+ ewin->state.maximized_horz = ewin->state.maximized_vert = 0;
+ MaxSizeHV(ewin, "absolute", hor, ver);
+ /* Set old state to current maximized one */
+ ewin->save_max.x = EoGetX(ewin);
+ ewin->save_max.y = EoGetY(ewin);
+ ewin->save_max.w = ewin->client.w;
+ ewin->save_max.h = ewin->client.h;
+ ewin->state.placed = 0;
+ }
+ else
+ {
+ EwinResize(ewin, ewin->client.w, ewin->client.h);
+ }
+
+ doslide = manplace = 0;
+ if (Mode.place.enable_features > 0)
+ {
+ /* if set for borderless then dont slide it in */
+ if (Conf.place.slidein && !Mode.place.doing_slide &&
+ !ewin->state.no_border && dsk == DesksGetCurrent())
+ doslide = 1;
+
+ if (Conf.place.manual && !Mode.place.doing_manual &&
+ !ewin->state.placed && !ewin->icccm.transient)
+ {
+ if (GrabPointerSet(VROOT, ECSR_GRAB, 0) == GrabSuccess)
+ manplace = 1;
+ }
+ }
+
+ /* if it hasn't been placed yet.... find a spot for it */
+ if ((!ewin->state.placed) && (!manplace))
+ {
+ /* Place the window below the mouse pointer */
+ if (Conf.place.manual_mouse_pointer)
+ {
+ int cx, cy;
+
+ /* if the loser has manual placement on and the app asks to be on */
+ /* a desktop, then send E to that desktop so the user can place */
+ /* the window there */
+ DeskGoto(dsk);
+
+ EventsGetXY(&cx, &cy);
+
+ /* try to center the window on the mouse pointer */
+ cx -= EoGetW(ewin) / 2;
+ cy -= EoGetH(ewin) / 2;
+
+ /* keep it all on this screen if possible */
+ cx = MIN(cx, WinGetW(VROOT) - EoGetW(ewin));
+ cy = MIN(cy, WinGetH(VROOT) - EoGetH(ewin));
+ cx = MAX(cx, 0);
+ cy = MAX(cy, 0);
+
+ /* this works for me... */
+ x = cx;
+ y = cy;
+ }
+ else if (ewin->ewmh.type.b.dialog)
+ {
+ /* Center unplaced dialogs on parent(if transient) or root */
+ Win parent;
+
+ ewin2 = NULL;
+ if (EwinGetTransientFor(ewin) != None)
+ ewin2 = EwinFindByClient(EwinGetTransientFor(ewin));
+ parent = (ewin2) ? EoGetWin(ewin) : VROOT;
+ x = (WinGetW(parent) - EoGetW(ewin)) / 2;
+ y = (WinGetH(parent) - EoGetH(ewin)) / 2;
+ }
+ else
+ {
+ ArrangeEwinXY(ewin, &x, &y);
+ }
+ ewin->state.placed = 1;
+ }
+
+ /* if the window asked to be iconified at the start */
+ if (ewin->icccm.start_iconified)
+ {
+ EwinMoveToDesktopAt(ewin, dsk, x, y);
+ ewin->state.state = EWIN_STATE_MAPPED;
+ EwinIconify(ewin);
+ ewin->state.state = EWIN_STATE_ICONIC;
+ goto done;
+ }
+
+ /* if we should slide it in and are not currently in the middle of a slide */
+ if ((manplace) && (!ewin->state.placed))
+ {
+ int rx, ry;
+
+ /* if the loser has manual placement on and the app asks to be on */
+ /* a desktop, then send E to that desktop so the user can place */
+ /* the window there */
+ DeskGoto(dsk);
+
+ EQueryPointer(NULL, &rx, &ry, NULL, NULL);
+ Mode.events.cx = rx;
+ Mode.events.cy = ry;
+ ewin->state.placed = 1;
+ x = Mode.events.cx + 1;
+ y = Mode.events.cy + 1;
+ EwinMoveToDesktopAt(ewin, dsk, x, y);
+ EwinMove(ewin, x, y);
+ EwinShow(ewin);
+ GrabPointerSet(VROOT, ECSR_GRAB, 0);
+ Mode.place.doing_manual = 1;
+ EoSetFloating(ewin, 1); /* Causes reparenting to root */
+ ActionMoveStart(ewin, 0, 0, 0);
+ goto done;
+ }
+ else if (doslide)
+ {
+ Timer *slide_timer;
+
+ k = rand() % 4;
+ if (k == 0)
+ {
+ fx = (rand() % (WinGetW(VROOT))) - EoGetW(ewin);
+ fy = -EoGetH(ewin);
+ }
+ else if (k == 1)
+ {
+ fx = (rand() % (WinGetW(VROOT)));
+ fy = WinGetH(VROOT);
+ }
+ else if (k == 2)
+ {
+ fx = -EoGetW(ewin);
+ fy = (rand() % (WinGetH(VROOT)));
+ }
+ else
+ {
+ fx = WinGetW(VROOT);
+ fy = (rand() % (WinGetH(VROOT))) - EoGetH(ewin);
+ }
+ Mode.place.doing_slide = 1;
+ ewin->state.animated = 1;
+ FocusEnable(0);
+
+ EwinMoveToDesktopAt(ewin, dsk, fx, fy);
+ EwinShow(ewin);
+ ewin->req_x = x;
+ ewin->req_y = y;
+ TIMER_ADD(slide_timer, 0.05, EwinSlideIn, ewin);
+ }
+ else
+ {
+ EwinMoveToDesktopAt(ewin, dsk, x, y);
+ EwinShow(ewin);
+ }
+
+ done:
+ EUngrabServer();
+}
+
+EWin *
+AddInternalToFamily(Win win, const char *bname, int type,
+ const EWinOps * ops, void *ptr)
+{
+ EWin *ewin;
+
+ EGrabServer();
+
+ ewin = EwinCreate(type);
+ if (!ewin)
+ goto done;
+
+ ewin->props.donthide = 1;
+ EwinGetAttributes(ewin, win, None);
+ WindowMatchEwinOps(ewin); /* Window matches */
+ EwinManage(ewin);
+
+ ewin->data = ptr;
+ ewin->ops = ops;
+ if (ops && ops->Init)
+ ops->Init(ewin); /* Type specific initialisation */
+
+ if (bname)
+ ewin->border = BorderFind(bname);
+
+ EwinConfigure(ewin);
+
+#if 0
+ Eprintf("Desk=%d, layer=%d, sticky=%d, floating=%d\n",
+ EoGetDesk(ewin), EoGetLayer(ewin), EoIsSticky(ewin),
+ EoIsFloating(ewin));
+#endif
+
+ done:
+ EUngrabServer();
+
+ return ewin;
+}
+
+static void
+EwinUnmap1(EWin * ewin)
+{
+ /* The client may have been unmapped but the frame is not yet */
+
+ if (GetZoomEWin() == ewin)
+ Zoom(NULL);
+
+ ActionsEnd(ewin);
+
+ if (Mode.place.doing_slide)
+ {
+#if 0 /* No event processing during slides - No use doing this here */
+ DrawEwinShape(ewin, Conf.slidemode, ewin->shape_x, ewin->shape_y,
+ ewin->client.w, ewin->client.h, 2);
+#endif
+#if 0 /* FIXME - Do this right */
+ RemoveTimerEvent("Slide");
+ Mode.place.doing_slide = 0;
+ FocusEnable(1);
+#endif
+ }
+}
+
+static void
+EwinUnmap2(EWin * ewin)
+{
+ /* The frame has been unmapped */
+
+ FocusToEWin(ewin, FOCUS_EWIN_UNMAP);
+ if (ewin == Mode.mouse_over_ewin)
+ Mode.mouse_over_ewin = NULL;
+ if (ewin == Mode.context_ewin)
+ Mode.context_ewin = NULL;
+
+ ModulesSignal(ESIGNAL_EWIN_UNMAP, ewin);
+}
+
+static void
+EwinWithdraw(EWin * ewin, Win to)
+{
+ Window win;
+ int x, y;
+
+ /* Only external clients should go here */
+
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinWithdraw %#lx st=%d: %s\n", EwinGetClientXwin(ewin),
+ ewin->state.state, EwinGetTitle(ewin));
+
+ EGrabServer();
+
+ ESelectInput(EwinGetClientWin(ewin), NoEventMask);
+ XShapeSelectInput(disp, EwinGetClientXwin(ewin), NoEventMask);
+
+ if (EXWindowGetParent(EwinGetClientXwin(ewin)) == EwinGetContainerXwin(ewin))
+ {
+ /* Park the client window on the new root */
+ x = ewin->client.x;
+ y = ewin->client.y;
+ ETranslateCoordinates(EwinGetClientWin(ewin), VROOT,
+ -ewin->border->border.left,
+ -ewin->border->border.top, &x, &y, &win);
+ EReparentWindow(EwinGetClientWin(ewin), to, x, y);
+ HintsDelWindowHints(ewin);
+ }
+ ICCCM_Withdraw(ewin);
+
+ ESync(0);
+ EUngrabServer();
+}
+
+static void
+EwinEventMapRequest(EWin * ewin, Window win)
+{
+ if (ewin)
+ {
+ if (ewin->state.state == EWIN_STATE_ICONIC)
+ EwinDeIconify(ewin);
+ else if (ewin->state.state == EWIN_STATE_WITHDRAWN)
+ AddToFamily(ewin, win);
+ else
+ {
+ Eprintf("AddToFamily: Already managing %s %#lx\n", "A",
+ EwinGetClientXwin(ewin));
+ EReparentWindow(EwinGetClientWin(ewin), ewin->win_container, 0, 0);
+ }
+ }
+ else
+ {
+ /* Check if we are already managing it */
+ ewin = EwinFindByClient(win);
+
+ /* Some clients MapRequest more than once ?!? */
+ if (ewin)
+ {
+ Eprintf("AddToFamily: Already managing %s %#lx\n", "B",
+ EwinGetClientXwin(ewin));
+ EReparentWindow(EwinGetClientWin(ewin), ewin->win_container, 0, 0);
+ EwinShow(ewin);
+ }
+ else
+ AddToFamily(NULL, win);
+ }
+}
+
+static void
+EwinEventDestroy(EWin * ewin)
+{
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventDestroy %#lx st=%d: %s\n", EwinGetClientXwin(ewin),
+ ewin->state.state, EwinGetTitle(ewin));
+
+ EwinDestroy(ewin);
+}
+
+static void
+EwinEventReparent(EWin * ewin)
+{
+ Window parent;
+
+ EGrabServer();
+
+ /* Refetch parent window. We cannot rely on the one in the event. */
+ if (EoIsGone(ewin))
+ parent = None;
+ else
+ parent = EXWindowGetParent(EwinGetClientXwin(ewin));
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventReparent %#lx st=%d parent=%#lx: %s\n",
+ EwinGetClientXwin(ewin), ewin->state.state, parent,
+ EwinGetTitle(ewin));
+ if (parent != EwinGetContainerXwin(ewin))
+ EwinDestroy(ewin);
+
+ EUngrabServer();
+}
+
+static void
+EwinEventMap(EWin * ewin, XEvent * ev)
+{
+ int old_state;
+
+ /* Catch clients setting OR without proper withdrawal (just unmap/map) */
+ if (ev->xmap.override_redirect)
+ return;
+
+ old_state = ewin->state.state;
+ ewin->state.state = EWIN_STATE_MAPPED;
+
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventMap %#lx st=%d: %s\n", EwinGetClientXwin(ewin),
+ ewin->state.state, EwinGetTitle(ewin));
+
+ /* If first time we may want to focus it (unless during startup) */
+ if (old_state == EWIN_STATE_NEW)
+ FocusToEWin(ewin, FOCUS_EWIN_NEW);
+ else
+ FocusToEWin(ewin, FOCUS_SET);
+
+ ModulesSignal(ESIGNAL_EWIN_CHANGE, ewin);
+}
+
+static void
+EwinEventUnmap(EWin * ewin, XEvent * ev)
+{
+ if (EDebug(EDBUG_TYPE_EWINS))
+ Eprintf("EwinEventUnmap %#lx st=%d: %s\n", EwinGetClientXwin(ewin),
+ ewin->state.state, EwinGetTitle(ewin));
+
+ if (ewin->state.state == EWIN_STATE_STARTUP ||
+ ewin->state.state == EWIN_STATE_NEW)
+ {
+#if 0
+ /* We get here after reparenting to container and occasionally in
+ * other(?) situations */
+ Eprintf("EwinEventUnmap %#lx: Ignoring bogus Unmap event\n",
+ EwinGetClientXwin(ewin));
+#endif
+ return;
+ }
+
+ /* Ignore synthetic events */
+ if (ev->xany.send_event)
+ return;
+
+ if (ewin->state.state == EWIN_STATE_WITHDRAWN)
+ return;
+
+ if (ewin->state.iconified)
+ ewin->state.state = EWIN_STATE_ICONIC;
+ else
+ ewin->state.state = EWIN_STATE_WITHDRAWN;
+
+ EwinUnmap1(ewin);
+ EWindowSetMapped(EwinGetClientWin(ewin), 0);
+ EoUnmap(ewin);
+ EwinUnmap2(ewin);
+
+ if (ewin->state.state == EWIN_STATE_ICONIC)
+ return;
+
+ if (EwinIsInternal(ewin))
+ {
+#if 1 /* FIXME - Remove? */
+ /* We should never get here */
+ Eprintf("FIXME: This cannot happen (%s)\n", EoGetName(ewin));
+#endif
+ return;
+ }
+
+ if (EoIsGone(ewin))
+ return;
+
+ EwinWithdraw(ewin, VROOT);
+}
+
+static void
+EwinEventConfigureRequest(EWin * ewin, XEvent * ev)
+{
+ Window winrel;
+ EWin *ewin2;
+ int x = 0, y = 0, w = 0, h = 0;
+ XWindowChanges xwc;
+
+ if (ewin)
+ {
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = ewin->client.w;
+ h = ewin->client.h;
+ winrel = 0;
+ /* This is shady - some clients send root coords, some use the
+ * ICCCM ones sent by us */
+ if (!EwinInhGetApp(ewin, move))
+ {
+#if 1 /* FIXME - ??? */
+ if (ev->xconfigurerequest.value_mask & CWX)
+ x = ev->xconfigurerequest.x;
+ if (ev->xconfigurerequest.value_mask & CWY)
+ y = ev->xconfigurerequest.y;
+#else
+ if (ev->xconfigurerequest.value_mask & CWX)
+ x = ev->xconfigurerequest.x - EoGetX(EoGetDesk(ewin));
+ if (ev->xconfigurerequest.value_mask & CWY)
+ y = ev->xconfigurerequest.y - EoGetY(EoGetDesk(ewin));
+#endif
+ }
+ if (!EwinInhGetApp(ewin, size))
+ {
+ if (ev->xconfigurerequest.value_mask & CWWidth)
+ w = ev->xconfigurerequest.width;
+ if (ev->xconfigurerequest.value_mask & CWHeight)
+ h = ev->xconfigurerequest.height;
+ }
+ if (ev->xconfigurerequest.value_mask & CWSibling)
+ winrel = ev->xconfigurerequest.above;
+ if (ev->xconfigurerequest.value_mask & CWStackMode)
+ {
+ ewin2 = EwinFindByClient(winrel);
+ if (ewin2)
+ winrel = EoGetXwin(ewin2);
+ xwc.sibling = winrel;
+ xwc.stack_mode = ev->xconfigurerequest.detail;
+ if (Mode.mode == MODE_NONE)
+ {
+ if (xwc.stack_mode == Above)
+ EwinRaise(ewin);
+ else if (xwc.stack_mode == Below)
+ EwinLower(ewin);
+ }
+ }
+
+ if (ev->xconfigurerequest.value_mask & (CWX | CWY))
+ {
+ /* Correct position taking gravity into account */
+ EwinGetPosition(ewin, x, y, 0, &x, &y);
+ }
+
+ Mode.move.check = 0; /* Don't restrict client requests */
+ EwinMoveResize(ewin, x, y, w, h);
+ Mode.move.check = 1;
+ ReZoom(ewin);
+ }
+ else
+ {
+ xwc.x = ev->xconfigurerequest.x;
+ xwc.y = ev->xconfigurerequest.y;
+ xwc.width = ev->xconfigurerequest.width;
+ xwc.height = ev->xconfigurerequest.height;
+ xwc.border_width = ev->xconfigurerequest.border_width;
+ xwc.sibling = ev->xconfigurerequest.above;
+ xwc.stack_mode = ev->xconfigurerequest.detail;
+ XConfigureWindow(disp, ev->xconfigurerequest.window,
+ ev->xconfigurerequest.value_mask, &xwc);
+ }
+}
+
+static void
+EwinEventResizeRequest(EWin * ewin, XEvent * ev)
+{
+ if (ewin)
+ {
+ EwinResize(ewin, ev->xresizerequest.width, ev->xresizerequest.height);
+ ReZoom(ewin);
+ }
+ else
+ {
+ XResizeWindow(disp, ev->xresizerequest.window,
+ ev->xresizerequest.width, ev->xresizerequest.height);
+ }
+}
+
+static void
+EwinEventCirculateRequest(EWin * ewin, XEvent * ev)
+{
+ if (ewin)
+ {
+ if (ev->xcirculaterequest.place == PlaceOnTop)
+ EwinRaise(ewin);
+ else
+ EwinLower(ewin);
+ }
+ else
+ {
+ if (ev->xcirculaterequest.place == PlaceOnTop)
+ XRaiseWindow(disp, ev->xcirculaterequest.window);
+ else
+ XLowerWindow(disp, ev->xcirculaterequest.window);
+ }
+}
+
+static void
+EwinEventPropertyNotify(EWin * ewin, XEvent * ev)
+{
+ if (EwinIsInternal(ewin))
+ return;
+
+ EGrabServer();
+ EwinChangesStart(ewin);
+
+ HintsProcessPropertyChange(ewin, ev);
+ EwinStateUpdate(ewin);
+
+ EwinChangesProcess(ewin);
+ EUngrabServer();
+}
+
+static void
+EwinEventShapeChange(EWin * ewin, XEvent * ev)
+{
+#define se ((XShapeEvent *)ev)
+ if (EDebug(EX_EVENT_SHAPE_NOTIFY))
+ Eprintf("EwinEventShapeChange %#lx %s: state.shaped=%d ev->shaped=%d\n",
+ EwinGetClientXwin(ewin), EoGetName(ewin), ewin->state.shaped,
+ se->shaped);
+ if (!se->shaped && !ewin->state.shaped)
+ return;
+ EwinUpdateShapeInfo(ewin);
+ ewin->update.shape = 1;
+ EwinPropagateShapes(ewin);
+#undef se
+}
+
+static void
+EwinEventVisibility(EWin * ewin, int state)
+{
+ ewin->state.visibility = state;
+}
+
+void
+EwinReparent(EWin * ewin, Win parent)
+{
+ EwinWithdraw(ewin, parent);
+}
+
+void
+EwinRaise(EWin * ewin)
+{
+ static int call_depth = 0;
+ EWin **lst;
+ int i, num;
+
+ if (call_depth > 256)
+ return;
+ call_depth++;
+
+ num = EoRaise(ewin);
+
+ if (EDebug(EDBUG_TYPE_RAISELOWER))
+ Eprintf("EwinRaise(%d) %#lx %s n=%d\n", call_depth,
+ EwinGetClientXwin(ewin), EwinGetTitle(ewin), num);
+
+ if (num == 0) /* Quit if stacking is unchanged */
+ goto done;
+
+ lst = EwinListTransients(ewin, &num, 1);
+ for (i = 0; i < num; i++)
+ EwinRaise(lst[i]);
+ Efree(lst);
+
+ if (call_depth == 1)
+ {
+ ModulesSignal(ESIGNAL_EWIN_CHANGE, ewin);
+ ClickGrabsUpdate();
+ }
+
+ done:
+ call_depth--;
+}
+
+void
+EwinLower(EWin * ewin)
+{
+ static int call_depth = 0;
+ EWin **lst;
+ int i, num;
+
+ if (call_depth > 256)
+ return;
+ call_depth++;
+
+ num = EoLower(ewin);
+
+ if (EDebug(EDBUG_TYPE_RAISELOWER))
+ Eprintf("EwinLower(%d) %#lx %s n=%d\n", call_depth,
+ EwinGetClientXwin(ewin), EwinGetTitle(ewin), num);
+
+ if (num == 0) /* Quit if stacking is unchanged */
+ goto done;
+
+ lst = EwinListTransientFor(ewin, &num);
+ for (i = 0; i < num; i++)
+ EwinLower(lst[i]);
+ Efree(lst);
+
+ if (call_depth == 1)
+ {
+ ModulesSignal(ESIGNAL_EWIN_CHANGE, ewin);
+ ClickGrabsUpdate();
+ }
+
+ done:
+ call_depth--;
+}
+
+void
+EwinShow(EWin * ewin)
+{
+ if (EoIsShown(ewin))
+ return;
+
+ if (EwinGetClientWin(ewin))
+ {
+#if 0 /* FIXME - Why? */
+ if (ewin->state.shaded)
+ EMoveResizeWindow(ewin->win_container, -30, -30, 1, 1);
+#endif
+ EMapWindow(EwinGetClientWin(ewin));
+ }
+
+ if (ewin->update.shape)
+ {
+ ewin->o.shown = 1;
+ EwinPropagateShapes(ewin);
+ ewin->o.shown = 0;
+ }
+
+ EoMap(ewin, 0);
+
+ EwinStateUpdate(ewin);
+
+ if (ewin->place.gravity < 0)
+ EwinSetPlacementGravity(ewin, EoGetX(ewin), EoGetY(ewin));
+}
+
+void
+EwinHide(EWin * ewin)
+{
+ if (!EwinIsInternal(ewin) && (!EoIsShown(ewin) || !EwinIsMapped(ewin)))
+ return;
+
+ EwinUnmap1(ewin);
+
+ EUnmapWindow(EwinGetClientWin(ewin));
+ EoUnmap(ewin);
+
+ EwinUnmap2(ewin);
+
+ EwinStateUpdate(ewin);
+
+ if (!EwinIsInternal(ewin) || ewin->state.iconified)
+ return;
+
+ if (EwinGetClientWin(ewin))
+ {
+ ESelectInput(EwinGetClientWin(ewin), NoEventMask);
+ XShapeSelectInput(disp, EwinGetClientXwin(ewin), NoEventMask);
+ }
+
+ if (ewin->ops && ewin->ops->Close)
+ ewin->ops->Close(ewin);
+
+ EwinDestroy(ewin);
+}
+
+void
+EwinKill(EWin * ewin)
+{
+ if (EwinIsInternal(ewin))
+ return;
+
+ XKillClient(disp, EwinGetClientXwin(ewin));
+
+#if 0 /* Wait for unmap/destroy for now */
+ EwinUnmap1(ewin);
+ EoUnmap(ewin);
+ EwinUnmap2(ewin);
+
+ EwinDestroy(ewin);
+#endif
+}
+
+void
+EwinSetTitle(EWin * ewin, const char *title)
+{
+ HintsSetWindowName(EwinGetClientWin(ewin), title);
+
+ _EFDUP(ewin->o.icccm.wm_name, title);
+ _EFDUP(ewin->ewmh.wm_name, title);
+}
+
+void
+EwinSetClass(EWin * ewin, const char *name, const char *clss)
+{
+ HintsSetWindowClass(EwinGetClientWin(ewin), name, clss);
+
+ _EFDUP(ewin->o.icccm.wm_res_name, name);
+ _EFDUP(ewin->o.icccm.wm_res_class, clss);
+}
+
+const char *
+EwinGetTitle(const EWin * ewin)
+{
+ const char *name;
+
+ if (!ewin)
+ return NULL;
+ name = ewin->ewmh.wm_name;
+ if (name)
+ goto done;
+ name = EwinGetIcccmName(ewin);
+ if (name)
+ goto done;
+
+ done:
+ return (name && name[0]) ? name : NULL;
+}
+
+const char *
+EwinGetIconName(const EWin * ewin)
+{
+ const char *name;
+
+ name = ewin->ewmh.wm_icon_name;
+ if (name)
+ goto done;
+ name = ewin->icccm.wm_icon_name;
+ if (name)
+ goto done;
+
+ return EwinGetTitle(ewin);
+
+ done:
+ return (name && strlen(name)) ? name : NULL;
+}
+
+const char *
+EwinBorderGetName(const EWin * ewin)
+{
+ return (ewin->border) ? BorderGetName(ewin->border) : "?";
+}
+
+void
+EwinBorderGetSize(const EWin * ewin, int *bl, int *br, int *bt, int *bb)
+{
+ const Border *b = ewin->border;
+
+ if (!b)
+ {
+ *bl = *br = *bt = *bb = 0;
+ return;
+ }
+
+ *bl = b->border.left;
+ *br = b->border.right;
+ *bt = b->border.top;
+ *bb = b->border.bottom;
+}
+
+void
+EwinBorderUpdateState(EWin * ewin)
+{
+ EwinBorderDraw(ewin, 0, 0);
+}
+
+int
+EwinIsOnScreen(const EWin * ewin)
+{
+ int x, y, w, h;
+
+ if (EoIsSticky(ewin))
+ return 1;
+ if (EoGetDesk(ewin) != DesksGetCurrent())
+ return 0;
+
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+
+ if (x + w <= 0 || x >= WinGetW(VROOT) || y + h <= 0 || y >= WinGetH(VROOT))
+ return 0;
+
+ return 1;
+}
+
+/*
+ * Save current position in absolute viewport coordinates
+ */
+void
+EwinRememberPositionSet(EWin * ewin)
+{
+ int ax, ay;
+
+ ewin->req_x = EoGetX(ewin);
+ ewin->req_y = EoGetY(ewin);
+ if (!EoIsSticky(ewin))
+ {
+ DeskGetArea(EoGetDesk(ewin), &ax, &ay);
+ ewin->req_x += ax * WinGetW(VROOT);
+ ewin->req_y += ay * WinGetH(VROOT);
+ }
+}
+
+/*
+ * Get saved position in relative viewport coordinates
+ */
+void
+EwinRememberPositionGet(EWin * ewin, Desk * dsk, int *px, int *py)
+{
+ int x, y, ax, ay;
+
+ x = ewin->req_x;
+ y = ewin->req_y;
+ if (!EoIsSticky(ewin))
+ {
+ DeskGetArea(dsk, &ax, &ay);
+ x -= ax * WinGetW(VROOT);
+ y -= ay * WinGetH(VROOT);
+ }
+
+ *px = x;
+ *py = y;
+}
+
+/*
+ * Set placement gravity
+ */
+void
+EwinSetPlacementGravity(EWin * ewin, int x, int y)
+{
+ int w, h, ax, ay, wd, hd;
+ Desk *dsk;
+
+ dsk = EoGetDesk(ewin);
+ wd = EoGetW(dsk);
+ hd = EoGetH(dsk);
+ DeskGetArea(dsk, &ax, &ay);
+
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+
+ /* Get relative area */
+ ewin->place.ax = ewin->area_x;
+ ewin->place.ay = ewin->area_y;
+ ax = ewin->place.ax - ax;
+ ay = ewin->place.ay - ay;
+
+ x -= ax * wd;
+ y -= ay * hd;
+
+ if (x <= (wd - w) / 2)
+ {
+ if (y <= (hd - h) / 2)
+ {
+ ewin->place.gravity = EWIN_GRAVITY_NW;
+ ewin->place.gx = x;
+ ewin->place.gy = y;
+ }
+ else
+ {
+ ewin->place.gravity = EWIN_GRAVITY_SW;
+ ewin->place.gx = x;
+ ewin->place.gy = hd - (y + h);
+ }
+ }
+ else
+ {
+ if (y <= (hd - h) / 2)
+ {
+ ewin->place.gravity = EWIN_GRAVITY_NE;
+ ewin->place.gx = wd - (x + w);
+ ewin->place.gy = y;
+ }
+ else
+ {
+ ewin->place.gravity = EWIN_GRAVITY_SE;
+ ewin->place.gx = wd - (x + w);
+ ewin->place.gy = hd - (y + h);
+ }
+ }
+
+#if 0 /* Debug */
+ Eprintf("Set gravity %d,%d %d,%d %d %d,%d %d,%d: %s\n", ax, ay, x, y,
+ ewin->place.gravity, ewin->place.ax, ewin->place.ay,
+ ewin->place.gx, ewin->place.gy, EwinGetTitle(ewin));
+#endif
+}
+
+void
+EwinReposition(EWin * ewin)
+{
+ int wdo, hdo, wdn, hdn;
+ int x, y, w, h, ax, ay, xn, yn;
+
+ wdo = Mode.screen.w_old;
+ hdo = Mode.screen.h_old;
+ wdn = WinGetW(VROOT);
+ hdn = WinGetH(VROOT);
+
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+
+ /* Get relative area */
+ if (EoIsSticky(ewin))
+ {
+ ax = ay = 0;
+ }
+ else
+ {
+ DeskGetArea(EoGetDesk(ewin), &ax, &ay);
+ ax = ewin->place.ax - ax;
+ ay = ewin->place.ay - ay;
+ }
+
+ x -= ax * wdo;
+ y -= ay * hdo;
+
+ /* Reposition to same distance from screen edges determined by
+ * placement gravity.
+ * Fall back to left/top if this causes left/top to go offscreen */
+ switch (ewin->place.gravity)
+ {
+ default:
+ case EWIN_GRAVITY_NW:
+ case EWIN_GRAVITY_SW:
+ xn = ewin->place.gx;
+ break;
+ case EWIN_GRAVITY_NE:
+ case EWIN_GRAVITY_SE:
+ xn = wdn - w - ewin->place.gx;
+ break;
+ }
+ if (x > 0 && xn < 0)
+ xn = x;
+
+ switch (ewin->place.gravity)
+ {
+ default:
+ case EWIN_GRAVITY_NW:
+ case EWIN_GRAVITY_NE:
+ yn = ewin->place.gy;
+ break;
+ case EWIN_GRAVITY_SW:
+ case EWIN_GRAVITY_SE:
+ yn = hdn - h - ewin->place.gy;
+ break;
+ }
+ if (y > 0 && yn < 0)
+ yn = y;
+
+#if 0 /* Debug */
+ Eprintf("Reposition %d,%d -> %d,%d: %s\n", x, y, xn, yn, EwinGetTitle(ewin));
+#endif
+
+ xn += ax * wdn;
+ yn += ay * hdn;
+
+ EwinMove(ewin, xn, yn);
+}
+
+void
+EwinWarpTo(EWin * ewin)
+{
+ if (ewin == Mode.mouse_over_ewin)
+ return;
+
+ if (ewin->state.iconified)
+ return;
+
+ EXWarpPointer(EoGetXwin(ewin), EoGetW(ewin) / 2, EoGetH(ewin) / 2);
+ Mode.mouse_over_ewin = ewin;
+}
+
+typedef union {
+ unsigned int all;
+ struct {
+ unsigned char rsvd;
+ unsigned char inh_app;
+ unsigned char inh_user;
+ unsigned char inh_wm;
+ } f;
+} EWinMiscFlags;
+
+typedef union {
+ unsigned int all;
+ struct {
+ unsigned nua:1;
+ unsigned ctf:1;
+ unsigned nbg:1;
+ unsigned autoshade:1;
+ unsigned: 4;
+ unsigned: 8;
+ unsigned: 8;
+ unsigned no_fade:1;
+ unsigned no_shadow:1;
+ unsigned: 6;
+ } f;
+} EWinMiscFlags2;
+
+void
+EwinFlagsEncode(const EWin * ewin, unsigned int *flags)
+{
+ EWinMiscFlags fm;
+ EWinMiscFlags2 fm2;
+
+ fm.all = 0;
+ fm.f.inh_app = ewin->inh_app.all;
+ fm.f.inh_user = ewin->inh_user.all;
+ fm.f.inh_wm = ewin->inh_wm.all;
+
+ fm2.all = 0;
+ fm2.f.nua = ewin->props.never_use_area;
+ fm2.f.ctf = ewin->props.focusclick;
+ fm2.f.nbg = ewin->props.no_button_grabs;
+ fm2.f.autoshade = ewin->props.autoshade;
+#if USE_COMPOSITE
+ fm2.f.no_fade = !EoGetFade(ewin);
+ fm2.f.no_shadow = !EoGetShadow(ewin);
+#endif
+
+ flags[0] = fm.all;
+ flags[1] = fm2.all;
+}
+
+void
+EwinFlagsDecode(EWin * ewin, const unsigned int *flags)
+{
+ EWinMiscFlags fm;
+ EWinMiscFlags2 fm2;
+
+ fm.all = flags[0];
+ ewin->inh_app.all = fm.f.inh_app;
+ ewin->inh_user.all = fm.f.inh_user;
+ ewin->inh_wm.all = fm.f.inh_wm;
+
+ fm2.all = flags[1];
+ ewin->props.never_use_area = fm2.f.nua;
+ ewin->props.focusclick = fm2.f.ctf;
+ ewin->props.no_button_grabs = fm2.f.nbg;
+ ewin->props.autoshade = fm2.f.autoshade;
+#if USE_COMPOSITE
+ EoSetFade(ewin, !fm2.f.no_fade);
+ EoSetShadow(ewin, !fm2.f.no_shadow);
+#endif
+}
+
+void
+EwinUpdateOpacity(EWin * ewin)
+{
+ unsigned int opacity;
+
+ opacity = 0;
+ if (ewin->state.moving || ewin->state.resizing)
+ opacity = OpacityFromPercent(Conf.opacity.movres);
+ else if (ewin->state.active)
+ opacity = ewin->props.focused_opacity;
+ if (opacity == 0)
+ opacity = ewin->ewmh.opacity;
+ if (opacity == 0)
+ opacity = ewin->state.active ?
+ OpacityFromPercent(Conf.opacity.focused) :
+ OpacityFromPercent(Conf.opacity.unfocused);
+ if (opacity == 0)
+ opacity = 0xffffffff; /* Fallback */
+
+ EoChangeOpacity(ewin, opacity);
+}
+
+/*
+ * Slidein
+ */
+static int
+EwinSlideIn(void *data)
+{
+ EWin *ewin = (EWin *) data;
+
+ /* May be gone */
+ if (!EwinFindByPtr(ewin))
+ goto done;
+
+ SlideEwinTo(ewin, EoGetX(ewin), EoGetY(ewin), ewin->req_x, ewin->req_y,
+ Conf.place.slidespeedmap, Conf.place.slidemode);
+
+ done:
+ Mode.place.doing_slide = 0;
+ FocusEnable(1);
+
+ return 0;
+}
+
+/*
+ * Change requests
+ */
+static struct {
+ unsigned int flags;
+ EWin ewin_old;
+} EWinChanges;
+
+void
+EwinChange(EWin * ewin __UNUSED__, unsigned int flag)
+{
+ EWinChanges.flags |= flag;
+}
+
+void
+EwinChangesStart(EWin * ewin)
+{
+ EWinChanges.flags = 0;
+ /* Brute force :) */
+ EWinChanges.ewin_old = *ewin;
+}
+
+void
+EwinChangesProcess(EWin * ewin)
+{
+ if (!EWinChanges.flags)
+ return;
+
+ if (EWinChanges.flags & EWIN_CHANGE_NAME)
+ {
+ EwinBorderUpdateInfo(ewin);
+ EwinBorderCalcSizes(ewin, 1);
+ }
+
+ if (EWinChanges.flags & EWIN_CHANGE_DESKTOP)
+ {
+ Desk *desk, *pdesk;
+
+ desk = EoGetDesk(ewin);
+ pdesk = EoGetDesk(&EWinChanges.ewin_old);
+ if (desk != pdesk && !EoIsSticky(ewin))
+ {
+ EoSetDesk(ewin, pdesk);
+ EwinMoveToDesktop(ewin, desk);
+ }
+ }
+
+ if (EWinChanges.flags & EWIN_CHANGE_ICON_PMAP)
+ {
+ ModulesSignal(ESIGNAL_EWIN_CHANGE_ICON, ewin);
+ }
+
+ if (EWinChanges.flags & EWIN_CHANGE_OPACITY)
+ {
+ EoChangeOpacity(ewin, ewin->ewmh.opacity);
+ SnapshotEwinUpdate(ewin, SNAP_USE_OPACITY);
+ }
+
+ if (EWinChanges.flags & EWIN_CHANGE_ATTENTION)
+ {
+ HintsSetWindowState(ewin);
+ }
+
+ EWinChanges.flags = 0;
+}
+
+EWin **
+EwinListTransients(const EWin * ewin, int *num, int group)
+{
+ EWin *const *ewins, **lst, *ew;
+ int i, j, n;
+
+ j = 0;
+ lst = NULL;
+
+ if (EwinGetTransientCount(ewin) <= 0)
+ goto done;
+
+ ewins = EwinListGetAll(&n);
+
+ /* Find regular transients */
+ for (i = 0; i < n; i++)
+ {
+ ew = ewins[i];
+
+ /* Skip self-reference */
+ if (ew == ewin)
+ continue;
+
+ if (EwinGetTransientFor(ew) == EwinGetClientXwin(ewin))
+ {
+ lst = EREALLOC(EWin *, lst, j + 1);
+ lst[j++] = ew;
+ }
+ }
+
+ if (!group)
+ goto done;
+
+ /* Group transients (if ewin is not a transient) */
+ if (EwinIsTransient(ewin))
+ goto done;
+
+ for (i = 0; i < n; i++)
+ {
+ ew = ewins[i];
+
+ /* Skip self-reference */
+ if (ew == ewin)
+ continue;
+
+ if (EwinGetTransientFor(ew) == WinGetXwin(VROOT) &&
+ EwinGetWindowGroup(ew) == EwinGetWindowGroup(ewin))
+ {
+ lst = EREALLOC(EWin *, lst, j + 1);
+ lst[j++] = ew;
+ }
+ }
+
+ done:
+ *num = j;
+ return lst;
+}
+
+EWin **
+EwinListTransientFor(const EWin * ewin, int *num)
+{
+ EWin *const *ewins, **lst, *ew;
+ int i, j, n;
+
+ j = 0;
+ lst = NULL;
+
+ if (!EwinIsTransient(ewin))
+ goto done;
+
+ ewins = EwinListGetAll(&n);
+ for (i = 0; i < n; i++)
+ {
+ ew = ewins[i];
+
+ /* Skip self-reference */
+ if (ew == ewin)
+ continue;
+
+ /* Regular parent or if root trans, top level group members */
+ if ((EwinGetTransientFor(ewin) == EwinGetClientXwin(ew)) ||
+ (!EwinIsTransient(ew) &&
+ EwinGetTransientFor(ewin) == WinGetXwin(VROOT) &&
+ EwinGetWindowGroup(ew) == EwinGetWindowGroup(ewin)))
+ {
+ lst = EREALLOC(EWin *, lst, j + 1);
+ lst[j++] = ew;
+ }
+ }
+
+ done:
+ *num = j;
+ return lst;
+}
+
+static void
+EwinsTouch(Desk * dsk)
+{
+ int i, num;
+ EWin *const *lst, *ewin;
+
+ if (!dsk)
+ lst = EwinListGetAll(&num);
+ else
+ lst = EwinListGetForDesk(&num, dsk);
+
+ for (i = num - 1; i >= 0; i--)
+ {
+ ewin = lst[i];
+ if (EwinIsMapped(ewin) && EwinIsOnScreen(ewin))
+#if 1 /* FIXME - Which one? */
+ EwinMove(ewin, EoGetX(ewin), EoGetY(ewin));
+#else
+ EwinResize(ewin, ewin->client.w, ewin->client.h);
+#endif
+ }
+}
+
+static void
+EwinsReposition(void)
+{
+ int i, num;
+ EWin *const *lst;
+
+ lst = EwinListGetAll(&num);
+ for (i = num - 1; i >= 0; i--)
+ EwinReposition(lst[i]);
+}
+
+void
+EwinsMoveStickyToDesk(Desk * dsk)
+{
+ EWin *const *lst, *ewin;
+ int i, num;
+
+ lst = EwinListStackGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[num - 1 - i];
+ if (!EoIsSticky(ewin) && !EoIsFloating(ewin))
+ continue;
+ if (EwinIsTransientChild(ewin))
+ continue;
+
+ EwinMoveToDesktop(ewin, dsk);
+ }
+}
+
+void
+EwinsManage(void)
+{
+ Window *xwins, xwin, par, rt;
+ XWindowAttributes attr;
+ unsigned int i, num;
+
+#ifdef USE_EXT_INIT_WIN
+ Window init_win = ExtInitWinGet();
+#endif
+
+ xwins = NULL;
+ num = 0;
+ XQueryTree(disp, WinGetXwin(VROOT), &rt, &par, &xwins, &num);
+ if (!xwins)
+ return;
+
+ for (i = 0; i < num; i++)
+ {
+ xwin = xwins[i];
+
+ /* Skip if already "known" */
+ if (EobjListStackFind(xwin))
+ continue;
+
+ if (!XGetWindowAttributes(disp, xwin, &attr))
+ continue;
+
+ if (attr.map_state == IsUnmapped)
+ continue;
+
+ if (attr.override_redirect)
+ {
+ XUnmapWindow(disp, xwin); /* Makes the CM catch it on map */
+ XMapRaised(disp, xwin);
+#ifdef USE_EXT_INIT_WIN
+ if (init_win)
+ XRaiseWindow(disp, init_win);
+#endif
+ }
+ else
+ {
+ AddToFamily(NULL, xwin);
+ }
+ }
+ XFree(xwins);
+}
+
+void
+EwinsSetFree(void)
+{
+ int i, num;
+ EWin *const *lst, *ewin;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("EwinsSetFree\n");
+
+ EHintsSetInfoOnAll();
+
+ lst = EwinListStackGet(&num);
+ for (i = num - 1; i >= 0; i--)
+ {
+ ewin = lst[i];
+ if (EwinIsInternal(ewin))
+ continue;
+
+ if (ewin->state.iconified)
+ ICCCM_DeIconify(ewin);
+
+ /* This makes E determine the client window stacking at exit */
+ EwinInstantUnShade(ewin);
+ EReparentWindow(EwinGetClientWin(ewin), RROOT,
+ ewin->client.x, ewin->client.y);
+ }
+}
+
+/*
+ * Event handlers
+ */
+
+static int
+ActionsCheck(const char *which, EWin * ewin, XEvent * ev)
+{
+ ActionClass *ac;
+
+ if (Mode.action_inhibit) /* Probably not here */
+ return 0;
+
+ ac = ActionclassFind(which);
+ if (!ac)
+ return 0;
+
+ if (ev->type == ButtonPress)
+ {
+ GrabPointerSet(EoGetWin(ewin), ECSR_GRAB, 0);
+ FocusToEWin(ewin, FOCUS_CLICK);
+ }
+ else if (ev->type == ButtonRelease)
+ {
+ GrabPointerRelease();
+ }
+
+ return ActionclassEvent(ac, ev, ewin);
+}
+
+#define DEBUG_EWIN_EVENTS 0
+static void
+EwinHandleEventsToplevel(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ EWin *ewin = (EWin *) prm;
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ ActionsHandleKey(XLookupKeysym(&ev->xkey, 0));
+ break;
+ case ButtonPress:
+ ActionsCheck("BUTTONBINDINGS", ewin, ev);
+ break;
+ case ButtonRelease:
+ ActionsEnd(NULL);
+ ActionsCheck("BUTTONBINDINGS", ewin, ev);
+ BorderCheckState(ewin, ev);
+ break;
+ case EnterNotify:
+ FocusHandleEnter(ewin, ev);
+ break;
+ case LeaveNotify:
+ FocusHandleLeave(ewin, ev);
+ break;
+ case MotionNotify:
+ ActionsHandleMotion();
+ break;
+ default:
+#if DEBUG_EWIN_EVENTS
+ Eprintf("EwinHandleEventsToplevel: type=%2d win=%#lx: %s\n",
+ ev->type, EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+#endif
+ break;
+ }
+}
+
+static void
+EwinHandleEventsContainer(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ EWin *ewin = (EWin *) prm;
+
+#if 0
+ Eprintf("EwinHandleEventsContainer: type=%2d win=%#lx: %s\n",
+ ev->type, EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+#endif
+ switch (ev->type)
+ {
+ case ButtonPress:
+ FocusHandleClick(ewin, EwinGetContainerWin(ewin));
+ break;
+
+ case MapRequest:
+ if (ev->xmaprequest.window != EwinGetClientXwin(ewin))
+ break;
+ EwinEventMapRequest(ewin, ev->xmaprequest.window);
+ break;
+ case ConfigureRequest:
+ if (ev->xconfigurerequest.window != EwinGetClientXwin(ewin))
+ break;
+ EwinEventConfigureRequest(ewin, ev);
+ break;
+ case ResizeRequest:
+ if (ev->xresizerequest.window != EwinGetClientXwin(ewin))
+ break;
+ EwinEventResizeRequest(ewin, ev);
+ break;
+ case CirculateRequest:
+ if (ev->xcirculaterequest.window != EwinGetClientXwin(ewin))
+ break;
+ EwinEventCirculateRequest(ewin, ev);
+ break;
+
+ case DestroyNotify:
+ if (ev->xdestroywindow.window != EwinGetClientXwin(ewin))
+ break;
+ EwinEventDestroy(ewin);
+ break;
+
+ case EX_EVENT_UNMAP_GONE:
+ if (ev->xunmap.window != EwinGetClientXwin(ewin))
+ break;
+ EoSetGone(ewin);
+ goto do_unmap;
+ case UnmapNotify:
+ if (ev->xunmap.window != EwinGetClientXwin(ewin))
+ break;
+ do_unmap:
+ EwinEventUnmap(ewin, ev);
+ break;
+
+ case MapNotify:
+ if (ev->xmap.window != EwinGetClientXwin(ewin))
+ break;
+ EwinEventMap(ewin, ev);
+ break;
+
+ case EX_EVENT_REPARENT_GONE:
+ if (ev->xreparent.window != EwinGetClientXwin(ewin))
+ break;
+ EoSetGone(ewin);
+ goto do_reparent;
+ case ReparentNotify:
+ if (ev->xreparent.window != EwinGetClientXwin(ewin))
+ break;
+ do_reparent:
+ EwinEventReparent(ewin);
+ break;
+
+ case EX_EVENT_MAP_GONE:
+ case GravityNotify:
+ case ConfigureNotify:
+ break;
+
+ default:
+ Eprintf("EwinHandleEventsContainer: type=%2d win=%#lx: %s\n",
+ ev->type, EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+ break;
+ }
+}
+
+static void
+EwinHandleEventsClient(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ EWin *ewin = (EWin *) prm;
+
+ switch (ev->type)
+ {
+ case FocusIn:
+ case FocusOut:
+ if (ev->xfocus.detail == NotifyInferior)
+ break;
+ if (ewin->border->aclass)
+ ActionclassEvent(ewin->border->aclass, ev, ewin);
+ FocusHandleChange(ewin, ev);
+ break;
+ case ConfigureNotify:
+ case GravityNotify:
+ break;
+ case VisibilityNotify:
+ EwinEventVisibility(ewin, ev->xvisibility.state);
+ break;
+
+ case PropertyNotify:
+ EwinEventPropertyNotify(ewin, ev);
+ break;
+
+ case ClientMessage:
+ HintsProcessClientClientMessage(ewin, &(ev->xclient));
+ break;
+
+ case EX_EVENT_SHAPE_NOTIFY:
+ EwinEventShapeChange(ewin, ev);
+ break;
+
+ default:
+#if DEBUG_EWIN_EVENTS
+ Eprintf("EwinHandleEventsClient: type=%2d win=%#lx: %s\n",
+ ev->type, EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+#endif
+ break;
+ }
+}
+
+static void
+EwinHandleEventsRoot(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
+{
+ EWin *ewin;
+
+ switch (ev->type)
+ {
+ case MapRequest:
+ EwinEventMapRequest(NULL, ev->xmaprequest.window);
+ break;
+ case ConfigureRequest:
+#if 0
+ Eprintf("EwinHandleEventsRoot ConfigureRequest %#lx\n",
+ ev->xconfigurerequest.window);
+#endif
+ ewin = EwinFindByClient(ev->xconfigurerequest.window);
+ EwinEventConfigureRequest(ewin, ev);
+ break;
+ case ResizeRequest:
+#if 0
+ Eprintf("EwinHandleEventsRoot ResizeRequest %#lx\n",
+ ev->xresizerequest.window);
+#endif
+ ewin = EwinFindByClient(ev->xresizerequest.window);
+ EwinEventResizeRequest(ewin, ev);
+ break;
+ case CirculateRequest:
+#if 0
+ Eprintf("EwinHandleEventsRoot CirculateRequest %#lx\n",
+ ev->xcirculaterequest.window);
+#endif
+ EwinEventCirculateRequest(NULL, ev);
+ break;
+
+ case UnmapNotify:
+ case EX_EVENT_UNMAP_GONE:
+ /* Catch clients unmapped after MapRequest but before being reparented */
+ ewin = EwinFindByClient(ev->xunmap.window);
+ if (!ewin)
+ break;
+ if (ev->type == EX_EVENT_UNMAP_GONE)
+ EoSetGone(ewin);
+ EwinEventUnmap(ewin, ev);
+ break;
+
+ case DestroyNotify:
+ /* Catch clients destroyed after MapRequest but before being reparented */
+ ewin = EwinFindByClient(ev->xdestroywindow.window);
+ if (!ewin)
+ break;
+ EwinEventDestroy(ewin);
+ break;
+
+ case ReparentNotify:
+ case EX_EVENT_REPARENT_GONE:
+ ewin = EwinFindByClient(ev->xreparent.window);
+ if (!ewin)
+ break;
+ if (ev->type == EX_EVENT_REPARENT_GONE)
+ EoSetGone(ewin);
+ EwinEventReparent(ewin);
+ break;
+
+ case ClientMessage:
+ HintsProcessRootClientMessage(&(ev->xclient));
+ break;
+
+ default:
+#if 0
+ Eprintf("EwinHandleEventsRoot: type=%2d win=%#lx\n",
+ ev->type, ev->xany.window);
+#endif
+ break;
+ }
+}
+
+static void
+EwinsInit(void)
+{
+ EventCallbackRegister(VROOT, 0, EwinHandleEventsRoot, NULL);
+}
+
+/*
+ * Ewins module
+ * This is the WM.
+ */
+
+static void
+EwinsSighan(int sig, void *prm)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ EwinsInit();
+ break;
+#if 0
+ case ESIGNAL_START:
+ EwinsManage();
+ break;
+#endif
+ case ESIGNAL_DESK_RESIZE:
+ EwinsReposition();
+ break;
+ case ESIGNAL_THEME_TRANS_CHANGE:
+ EwinsTouch(DesksGetCurrent());
+ break;
+ case ESIGNAL_BACKGROUND_CHANGE:
+ EwinsTouch((Desk *) prm);
+ break;
+ }
+}
+
+#if 0
+static const IpcItem EwinsIpcArray[] = {
+};
+#define N_IPC_FUNCS (sizeof(EwinsIpcArray)/sizeof(IpcItem))
+#else
+#define N_IPC_FUNCS 0
+#define EwinsIpcArray NULL
+#endif
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModEwins;
+const EModule ModEwins = {
+ "ewins", NULL,
+ EwinsSighan,
+ {N_IPC_FUNCS, EwinsIpcArray}
+ ,
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _EWIN_H_
+#define _EWIN_H_
+
+#include "eobj.h"
+#include "etypes.h"
+#include "xwin.h"
+
+/* Window operation sources */
+#define OPSRC_NA 0
+#define OPSRC_APP 1
+#define OPSRC_USER 2
+#define OPSRC_WM 3
+
+typedef union {
+ unsigned char all:8;
+ struct {
+ unsigned char rsvd:2;
+ unsigned char border:1; /* W */
+ unsigned char close:1; /* AU */
+ unsigned char focus:1; /* WA */
+ unsigned char iconify:1; /* W U */
+ unsigned char move:1; /* AU */
+ unsigned char size:1; /* AU */
+ } b;
+} EWinInhibit;
+
+#define EwinInhGetApp(ewin, item) (ewin->inh_app.b.item)
+#define EwinInhSetApp(ewin, item, on) ewin->inh_app.b.item = (on)
+#define EwinInhGetUser(ewin, item) (ewin->inh_user.b.item)
+#define EwinInhSetUser(ewin, item, on) ewin->inh_user.b.item = (on)
+#define EwinInhGetWM(ewin, item) (ewin->inh_wm.b.item)
+#define EwinInhSetWM(ewin, item, on) ewin->inh_wm.b.item = (on)
+
+typedef struct {
+ void (*Init) (EWin * ewin);
+ void (*Layout) (EWin * ewin, int *px, int *py, int *pw,
+ int *ph);
+ void (*MoveResize) (EWin * ewin, int resize);
+ void (*Close) (EWin * ewin);
+} EWinOps;
+
+struct _ewin {
+ EObj o;
+ char type;
+ Win win_container;
+
+ const Border *border;
+ const Border *normal_border;
+ EWinBit *bits;
+
+ struct {
+ Win win;
+ int x, y, w, h, bw;
+ Colormap cmap;
+ long event_mask;
+ } client;
+
+ struct {
+ char state;
+ char visibility;
+ char shaped;
+ char shaded;
+
+ unsigned identified:1;
+ unsigned placed:1;
+ unsigned iconified:1;
+ unsigned docked:1;
+
+ unsigned click_grab_isset:1;
+ unsigned maximized_horz:1;
+ unsigned maximized_vert:1;
+ unsigned fullscreen:1;
+
+ unsigned active:1;
+ unsigned modal:1;
+ unsigned attention:1;
+
+ unsigned showingdesk:1; /* Iconified by show desktop */
+ unsigned animated:1;
+ unsigned moving:1;
+ unsigned resizing:1;
+ unsigned show_coords:1;
+ unsigned maximizing:1;
+ unsigned shading:1;
+ unsigned in_action:1;
+
+ /* Derived state flags. Change only in EwinStateUpdate() */
+ unsigned no_border:1;
+ unsigned donthide:1; /* Don't hide on show desktop */
+
+ unsigned inhibit_move:1;
+ unsigned inhibit_resize:1;
+ unsigned inhibit_iconify:1;
+ unsigned inhibit_shade:1;
+ unsigned inhibit_stick:1;
+ unsigned inhibit_max_hor:1;
+ unsigned inhibit_max_ver:1;
+ unsigned inhibit_fullscreeen:1;
+ unsigned inhibit_change_desk:1;
+ unsigned inhibit_close:1;
+ unsigned inhibit_stacking:1;
+
+ unsigned inhibit_actions:1;
+ unsigned inhibit_focus:1;
+ } state;
+ struct {
+ /* User config */
+ unsigned int focused_opacity;
+ unsigned never_use_area:1;
+ unsigned ignorearrange:1;
+ unsigned skip_ext_task:1;
+ unsigned skip_ext_pager:1;
+ unsigned skip_focuslist:1;
+ unsigned skip_winlist:1;
+ unsigned focusclick:1; /* Click to focus */
+ unsigned no_button_grabs:1;
+ unsigned autoshade:1; /* Autoshade on mouse in/out */
+ unsigned no_argb:1; /* Do not use ARGB frame */
+
+ /* Derived from other properties */
+ unsigned no_border:1; /* Never apply border (MWM/netwm type) */
+ unsigned no_resize_h:1; /* ICCCM */
+ unsigned no_resize_v:1; /* ICCCM */
+
+ /* Internal */
+ unsigned autosave:1;
+ unsigned donthide:1; /* Don't hide on show desktop */
+ unsigned vroot:1; /* Virtual root window */
+ unsigned no_actions:1;
+ unsigned focus_when_mapped:1;
+ } props;
+ EWinInhibit inh_app;
+ EWinInhibit inh_user;
+ EWinInhibit inh_wm;
+ struct {
+ char *wm_icon_name;
+ char *wm_role;
+ char *wm_command;
+ char *wm_machine;
+ /* WM_HINTS */
+ char need_input;
+ char start_iconified;
+ Pixmap icon_pmap, icon_mask;
+ Window icon_win;
+ Window group;
+ char urgency;
+ /* WM_PROTOCOLS */
+ char take_focus;
+ char delete_window;
+ /* WM_TRANSIENT_FOR */
+ signed char transient;
+ Window transient_for; /* We are a transient for ... */
+ int transient_count; /* We have <N> transients */
+ /* WM_CLIENT_LEADER */
+ Window client_leader;
+
+ /* WM_NORMAL_HINTS */
+ int width_min, width_max;
+ int height_min, height_max;
+ int base_w, base_h;
+ int w_inc, h_inc;
+ int grav;
+ double aspect_min, aspect_max;
+
+ char is_group_leader;
+ } icccm;
+ struct {
+ unsigned valid:1;
+ unsigned decor_border:1;
+ unsigned decor_resizeh:1;
+ unsigned decor_title:1;
+ unsigned decor_menu:1;
+ unsigned decor_minimize:1;
+ unsigned decor_maximize:1;
+ unsigned func_resize:1;
+ unsigned func_move:1;
+ unsigned func_minimize:1;
+ unsigned func_maximize:1;
+ unsigned func_close:1;
+ } mwm;
+ struct {
+ char *wm_name;
+ char *wm_icon_name;
+ unsigned int *wm_icon, wm_icon_len;
+ unsigned int opacity;
+#if USE_XSYNC
+ char sync_request_enable;
+ XID sync_request_counter;
+ long long sync_request_count;
+#endif
+ union {
+ unsigned char all;
+ struct {
+ unsigned desktop:1;
+ unsigned dock:1;
+ unsigned toolbar:1;
+ unsigned menu:1;
+ unsigned utility:1;
+ unsigned splash:1;
+ unsigned dialog:1;
+ unsigned normal:1;
+ } b;
+ } type;
+ } ewmh;
+ struct {
+ signed char gravity;
+ int ax, ay; /* Current placed area */
+ int gx, gy; /* Distance to edge given by gravity */
+ } place;
+ struct {
+ int left, right, top, bottom;
+ } strut;
+ struct {
+ char shape;
+ char border;
+ } update;
+
+ int num_groups;
+ Group **groups;
+ int area_x, area_y;
+ char *session_id;
+ PmapMask mini_pmm;
+ int mini_w, mini_h;
+
+ int shape_x, shape_y, shape_w, shape_h;
+ int req_x, req_y;
+
+ Snapshot *snap;
+ int head; /* Unused? */
+
+ int vx, vy; /* Position in virtual root */
+ struct { /* Saved state before maximization */
+ int x, y; /* Position */
+ int w, h; /* Size */
+ } save_max;
+ struct { /* Saved state before fullscreen */
+ int x, y; /* Position */
+ int w, h; /* Size */
+ int layer; /* Layer */
+ } save_fs;
+
+ void *data; /* Data hook for internal windows */
+ const EWinOps *ops;
+
+ Timer *timer; /* Autoshade timer */
+};
+
+#define EWIN_STATE_NEW 0 /* New */
+#define EWIN_STATE_STARTUP 1 /* New - during startup */
+#define EWIN_STATE_WITHDRAWN 2
+#define EWIN_STATE_ICONIC 3
+#define EWIN_STATE_MAPPED 4
+
+#define EWIN_TYPE_NORMAL 0x00
+#define EWIN_TYPE_DIALOG 0x01
+#define EWIN_TYPE_MENU 0x02
+#define EWIN_TYPE_ICONBOX 0x04
+#define EWIN_TYPE_PAGER 0x08
+#define EWIN_TYPE_MISC 0x10
+
+#define EWIN_GRAVITY_NW 0
+#define EWIN_GRAVITY_NE 1
+#define EWIN_GRAVITY_SW 2
+#define EWIN_GRAVITY_SE 3
+
+#define EwinGetDesk(ewin) EoGetDesk(ewin)
+
+#define EwinIsMapped(ewin) ((ewin)->state.state >= EWIN_STATE_MAPPED)
+#define EwinIsInternal(ewin) ((ewin)->type != EWIN_TYPE_NORMAL)
+#define EwinIsTransientChild(ewin) ((ewin)->icccm.transient > 0)
+#define EwinIsTransient(ewin) ((ewin)->icccm.transient != 0)
+#define EwinGetTransientFor(ewin) ((ewin)->icccm.transient_for)
+#define EwinGetTransientCount(ewin) ((ewin)->icccm.transient_count)
+#define EwinIsWindowGroupLeader(ewin) ((ewin)->icccm.is_group_leader)
+#define EwinGetWindowGroup(ewin) ((ewin)->icccm.group)
+
+#define EwinGetClientWin(ewin) ((ewin)->client.win)
+#define EwinGetContainerWin(ewin) ((ewin)->win_container)
+
+#define EwinGetIcccmName(ewin) EoGetName(ewin)
+#define EwinGetIcccmCName(ewin) EoGetCName(ewin)
+#define EwinGetIcccmClass(ewin) EoGetClass(ewin)
+
+/* arrange.c */
+#define ARRANGE_VERBATIM 0
+#define ARRANGE_BY_SIZE 1
+#define ARRANGE_BY_POSITION 2
+
+void SnapEwin(EWin * ewin, int dx, int dy, int *new_dx,
+ int *new_dy);
+void ArrangeEwin(EWin * ewin);
+void ArrangeEwinCentered(EWin * ewin);
+void ArrangeEwinXY(EWin * ewin, int *px, int *py);
+void ArrangeEwinCenteredXY(EWin * ewin, int *px, int *py);
+
+void ArrangeEwins(const char *params);
+
+/* coords.c */
+void CoordsShow(EWin * ewin);
+void CoordsShowOpacity(EWin * ewin);
+void CoordsHide(void);
+
+/* dock.c */
+void DockIt(EWin * ewin);
+
+/* draw.c */
+void DrawEwinShape(EWin * ewin, int md, int x, int y, int w,
+ int h, int firstlast, int seqno);
+
+/* ewins.c */
+#define EWIN_CHANGE_NAME (1<<0)
+#define EWIN_CHANGE_ICON_NAME (1<<1)
+#define EWIN_CHANGE_ICON_PMAP (1<<2)
+#define EWIN_CHANGE_DESKTOP (1<<3)
+#define EWIN_CHANGE_LAYER (1<<4)
+#define EWIN_CHANGE_OPACITY (1<<5)
+#define EWIN_CHANGE_ATTENTION (1<<6)
+
+Window EwinGetClientXwin(const EWin * ewin);
+Window EwinGetContainerXwin(const EWin * ewin);
+
+void EwinShapeSet(EWin * ewin);
+void EwinRaise(EWin * ewin);
+void EwinLower(EWin * ewin);
+void EwinShow(EWin * ewin);
+void EwinHide(EWin * ewin);
+void EwinKill(EWin * ewin);
+void DetermineEwinFloat(EWin * ewin, int dx, int dy);
+EWin *GetEwinPointerInClient(void);
+EWin *GetFocusEwin(void);
+EWin *GetContextEwin(void);
+void SetContextEwin(EWin * ewin);
+void EwinGetPosition(const EWin * ewin, int x, int y, int grav,
+ int *px, int *py);
+void EwinUpdateShapeInfo(EWin * ewin);
+void EwinPropagateShapes(EWin * ewin);
+void EwinStateUpdate(EWin * ewin);
+EWin *AddInternalToFamily(Win win, const char *bname, int type,
+ const EWinOps * ops, void *ptr);
+void EwinReparent(EWin * ewin, Win parent);
+void EwinSetTitle(EWin * ewin, const char *title);
+void EwinSetClass(EWin * ewin, const char *name,
+ const char *clss);
+const char *EwinGetTitle(const EWin * ewin);
+const char *EwinGetIconName(const EWin * ewin);
+const char *EwinBorderGetName(const EWin * ewin);
+void EwinBorderGetSize(const EWin * ewin, int *bl, int *br,
+ int *bt, int *bb);
+void EwinBorderUpdateState(EWin * ewin);
+int EwinIsOnScreen(const EWin * ewin);
+void EwinRememberPositionSet(EWin * ewin);
+void EwinRememberPositionGet(EWin * ewin, Desk * dsk,
+ int *px, int *py);
+void EwinSetPlacementGravity(EWin * ewin, int x, int y);
+void EwinReposition(EWin * ewin);
+void EwinFlagsEncode(const EWin * ewin, unsigned int *flags);
+void EwinFlagsDecode(EWin * ewin, const unsigned int *flags);
+void EwinUpdateOpacity(EWin * ewin);
+
+void EwinChange(EWin * ewin, unsigned int flag);
+
+void EwinWarpTo(EWin * ewin);
+
+EWin **EwinListTransients(const EWin * ewin, int *num, int group);
+EWin **EwinListTransientFor(const EWin * ewin, int *num);
+
+void EwinsManage(void);
+void EwinsSetFree(void);
+void EwinsShowDesktop(int on);
+void EwinsMoveStickyToDesk(Desk * d);
+
+/* ewin-ops.c */
+void SlideEwinTo(EWin * ewin, int fx, int fy, int tx, int ty,
+ int speed, int mode);
+void SlideEwinsTo(EWin ** ewin, int *fx, int *fy, int *tx,
+ int *ty, int num_wins, int speed, int mode);
+void EwinMove(EWin * ewin, int x, int y);
+void EwinResize(EWin * ewin, int w, int h);
+void EwinMoveResize(EWin * ewin, int x, int y, int w, int h);
+void EwinMoveResizeWithGravity(EWin * ewin, int x, int y, int w,
+ int h, int grav);
+void EwinMoveToDesktop(EWin * ewin, Desk * d);
+void EwinMoveToDesktopAt(EWin * ewin, Desk * d, int x, int y);
+void EwinIconify(EWin * ewin);
+void EwinAlone(EWin * ewin);
+void EwinDeIconify(EWin * ewin);
+void EwinInstantShade(EWin * ewin, int force);
+void EwinInstantUnShade(EWin * ewin);
+void EwinShade(EWin * ewin);
+void EwinUnShade(EWin * ewin);
+void EwinMoveToArea(EWin * ewin, int ax, int ay);
+
+void EwinOpMove(EWin * ewin, int source, int x, int y);
+void EwinOpResize(EWin * ewin, int source, int w, int h);
+void EwinOpMoveResize(EWin * ewin, int source, int x, int y,
+ int w, int h);
+void EwinOpMoveToDesktopAt(EWin * ewin, int source, Desk * dsk,
+ int x, int y);
+void EwinOpFloatAt(EWin * ewin, int source, int x, int y);
+void EwinOpUnfloatAt(EWin * ewin, int source, Desk * d,
+ int x, int y);
+void EwinOpClose(EWin * ewin, int source);
+void EwinOpActivate(EWin * ewin, int source, int raise);
+void EwinOpKill(EWin * ewin, int source);
+void EwinOpRaise(EWin * ewin, int source);
+void EwinOpLower(EWin * ewin, int source);
+void EwinOpStick(EWin * ewin, int source, int on);
+void EwinOpSkipLists(EWin * ewin, int source, int skip);
+void EwinOpIconify(EWin * ewin, int source, int on);
+void EwinOpShade(EWin * ewin, int source, int on);
+void EwinOpSetLayer(EWin * ewin, int source, int layer);
+void EwinOpSetBorder(EWin * ewin, int source, const char *name);
+void EwinOpSetOpacity(EWin * ewin, int source, int opacity);
+void EwinOpSetFocusedOpacity(EWin * ewin, int source,
+ int opacity);
+void EwinOpMoveToDesk(EWin * ewin, int source, Desk * dsk,
+ int inc);
+void EwinOpFullscreen(EWin * ewin, int source, int on);
+
+/* finders.c */
+EWin *EwinFindByPtr(const EWin * ewin);
+EWin *EwinFindByClient(Window win);
+EWin *EwinFindByChildren(Window win);
+EWin **EwinsFindByExpr(const char *match, int *pnum, int *pflags);
+EWin *EwinFindByExpr(const char *match);
+
+/* icccm.c (for now) */
+#if USE_XSYNC
+int EwinSyncRequestSend(EWin * ewin);
+void EwinSyncRequestWait(EWin * ewin);
+#endif
+
+/* moveresize.c */
+int ActionMoveStart(EWin * ewin, int kbd, int constrained,
+ int nogroup);
+int ActionResizeStart(EWin * ewin, int kbd, int hv);
+
+int ActionsSuspend(void);
+int ActionsResume(void);
+void ActionsHandleKey(unsigned int key);
+void ActionsHandleMotion(void);
+int ActionsEnd(EWin * ewin);
+
+/* size.c */
+void MaxSizeHV(EWin * ewin, const char *resize_type,
+ int hor, int ver);
+
+/* stacking.c */
+EWin *const *EwinListStackGet(int *num);
+EWin *const *EwinListFocusGet(int *num);
+EWin *const *EwinListGetForDesk(int *num, Desk * d);
+EWin *const *EwinListOrderGet(int *num);
+EWin *EwinListStackGetTop(void);
+int EwinListStackIsRaised(const EWin * ewin);
+
+#define EwinListGetAll EwinListStackGet
+
+/* zoom.c */
+EWin *GetZoomEWin(void);
+void ReZoom(EWin * ewin);
+char InZoom(void);
+char CanZoom(void);
+void ZoomInit(void);
+void Zoom(EWin * ewin);
+
+#endif /* _EWIN_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2003-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Extended Window Manager Hints.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "e16-ecore_hints.h"
+#include "ewins.h"
+#include "hints.h"
+
+/*
+ * _NET_WM_MOVERESIZE client message actions
+ */
+#define _NET_WM_MOVERESIZE_SIZE_TOPLEFT 0
+#define _NET_WM_MOVERESIZE_SIZE_TOP 1
+#define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT 2
+#define _NET_WM_MOVERESIZE_SIZE_RIGHT 3
+#define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT 4
+#define _NET_WM_MOVERESIZE_SIZE_BOTTOM 5
+#define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT 6
+#define _NET_WM_MOVERESIZE_SIZE_LEFT 7
+#define _NET_WM_MOVERESIZE_MOVE 8
+#define _NET_WM_MOVERESIZE_SIZE_KEYBOARD 9
+#define _NET_WM_MOVERESIZE_MOVE_KEYBOARD 10
+#define _NET_WM_MOVERESIZE_CANCEL 11
+
+/* Window state property change actions */
+#define _NET_WM_STATE_REMOVE 0
+#define _NET_WM_STATE_ADD 1
+#define _NET_WM_STATE_TOGGLE 2
+
+/* Source indication */
+#define _NET_WM_SOURCE_UNKNOWN 0
+#define _NET_WM_SOURCE_APP 1
+#define _NET_WM_SOURCE_USER 2
+
+#define OPSRC(src) (((src) == _NET_WM_SOURCE_USER) ? _NET_WM_SOURCE_USER : _NET_WM_SOURCE_APP)
+
+/*
+ * Set/clear Atom in list
+ */
+static void
+atom_list_set(Ecore_X_Atom * atoms, int size, int *count, Ecore_X_Atom atom,
+ int set)
+{
+ int i, n, in_list;
+
+ n = *count;
+
+ /* Check if atom is in list or not (+get index) */
+ for (i = 0; i < n; i++)
+ if (atoms[i] == atom)
+ break;
+ in_list = i < n;
+
+ if (set && !in_list)
+ {
+ /* Add it (if space left) */
+ if (n < size)
+ atoms[n++] = atom;
+ *count = n;
+ }
+ else if (!set && in_list)
+ {
+ /* Remove it */
+ atoms[i] = atoms[--n];
+ *count = n;
+ }
+}
+
+/*
+ * Initialize EWMH stuff
+ */
+void
+EWMH_Init(Window win_wm_check)
+{
+ Ecore_X_Atom atom_list[64];
+ int atom_count;
+
+#ifndef USE_ECORE_X
+ ecore_x_netwm_init();
+#endif
+
+ atom_count = 0;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_SUPPORTED;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_DESKTOP_GEOMETRY;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_DESKTOP_NAMES;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_CURRENT_DESKTOP;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_DESKTOP_VIEWPORT;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WORKAREA;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_VIRTUAL_ROOTS;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_SHOWING_DESKTOP;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_ACTIVE_WINDOW;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_CLIENT_LIST;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_CLIENT_LIST_STACKING;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_CLOSE_WINDOW;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_MOVERESIZE_WINDOW;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_MOVERESIZE;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_NAME;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ICON_NAME;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_DESKTOP;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DESKTOP;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DOCK;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_TOOLBAR;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_MENU;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_UTILITY;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_SPLASH;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DIALOG;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_TYPE_NORMAL;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_MODAL;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_STICKY;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_SHADED;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_HIDDEN;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_ABOVE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_BELOW;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_MOVE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_RESIZE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_MINIMIZE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_SHADE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_STICK;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_HORZ;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_VERT;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_CLOSE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_ABOVE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_BELOW;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STRUT_PARTIAL;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STRUT;
+
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_FRAME_EXTENTS;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_OPACITY;
+
+ ecore_x_window_prop_atom_set(WinGetXwin(VROOT),
+ ECORE_X_ATOM_NET_SUPPORTED, atom_list,
+ atom_count);
+
+ /* Set WM info properties */
+ ecore_x_netwm_wm_identify(WinGetXwin(VROOT), win_wm_check, e_wm_name);
+}
+
+/*
+ * Desktops
+ */
+
+void
+EWMH_SetDesktopCount(void)
+{
+ ecore_x_netwm_desk_count_set(WinGetXwin(VROOT), DesksGetNumber());
+}
+
+void
+EWMH_SetDesktopRoots(void)
+{
+ int i, n_desks;
+ Ecore_X_Window *wl;
+
+ n_desks = DesksGetNumber();
+ wl = EMALLOC(Ecore_X_Window, n_desks);
+ if (!wl)
+ return;
+
+ for (i = 0; i < n_desks; i++)
+ wl[i] = EoGetXwin(DeskGet(i));
+
+ ecore_x_netwm_desk_roots_set(WinGetXwin(VROOT), wl, n_desks);
+
+ Efree(wl);
+}
+
+void
+EWMH_SetDesktopNames(void)
+{
+ /* Fall back to defaults */
+ ecore_x_netwm_desk_names_set(WinGetXwin(VROOT), NULL, DesksGetNumber());
+}
+
+void
+EWMH_SetDesktopSize(void)
+{
+ int ax, ay;
+
+ DesksGetAreaSize(&ax, &ay);
+ ecore_x_netwm_desk_size_set(WinGetXwin(VROOT), ax * WinGetW(VROOT),
+ ay * WinGetH(VROOT));
+}
+
+void
+EWMH_SetWorkArea(void)
+{
+ unsigned int *p_coord;
+ int n_coord, i, n_desks;
+
+ n_desks = DesksGetNumber();
+ n_coord = 4 * n_desks;
+ p_coord = EMALLOC(unsigned int, n_coord);
+
+ if (!p_coord)
+ return;
+
+ for (i = 0; i < n_desks; i++)
+ {
+ p_coord[4 * i] = 0;
+ p_coord[4 * i + 1] = 0;
+ p_coord[4 * i + 2] = WinGetW(VROOT);
+ p_coord[4 * i + 3] = WinGetH(VROOT);
+ }
+
+ ecore_x_netwm_desk_workareas_set(WinGetXwin(VROOT), p_coord, n_desks);
+
+ Efree(p_coord);
+}
+
+void
+EWMH_SetCurrentDesktop(void)
+{
+ ecore_x_netwm_desk_current_set(WinGetXwin(VROOT), DesksGetCurrentNum());
+}
+
+void
+EWMH_SetDesktopViewport(void)
+{
+ unsigned int *p_coord;
+ int n_coord, i, ax, ay, n_desks;
+
+ n_desks = DesksGetNumber();
+ n_coord = 2 * n_desks;
+ p_coord = EMALLOC(unsigned int, n_coord);
+
+ if (!p_coord)
+ return;
+
+ for (i = 0; i < n_desks; i++)
+ {
+ DeskGetArea(DeskGet(i), &ax, &ay);
+ p_coord[2 * i] = ax * WinGetW(VROOT);
+ p_coord[2 * i + 1] = ay * WinGetH(VROOT);
+ }
+
+ ecore_x_netwm_desk_viewports_set(WinGetXwin(VROOT), p_coord, n_desks);
+
+ Efree(p_coord);
+}
+
+void
+EWMH_SetShowingDesktop(int on)
+{
+ ecore_x_netwm_showing_desktop_set(WinGetXwin(VROOT), on);
+}
+
+/*
+ * Window status
+ */
+
+void
+EWMH_SetClientList(void)
+{
+ Ecore_X_Window *wl;
+ int i, num;
+ EWin *const *lst;
+
+ /* Mapping order */
+ lst = EwinListOrderGet(&num);
+ if (num > 0)
+ {
+ wl = EMALLOC(Ecore_X_Window, num);
+ for (i = 0; i < num; i++)
+ wl[i] = EwinGetClientXwin(lst[i]);
+ ecore_x_netwm_client_list_set(WinGetXwin(VROOT), wl, num);
+ Efree(wl);
+ }
+ else
+ {
+ ecore_x_netwm_client_list_set(WinGetXwin(VROOT), NULL, 0);
+ }
+}
+
+void
+EWMH_SetClientStacking(void)
+{
+ Ecore_X_Window *wl;
+ int i, num;
+ EWin *const *lst;
+
+ /* Stacking order */
+ lst = EwinListStackGet(&num);
+ if (num > 0)
+ {
+ wl = EMALLOC(Ecore_X_Window, num);
+ for (i = 0; i < num; i++)
+ wl[i] = EwinGetClientXwin(lst[num - i - 1]);
+ ecore_x_netwm_client_list_stacking_set(WinGetXwin(VROOT), wl, num);
+ Efree(wl);
+ }
+ else
+ {
+ ecore_x_netwm_client_list_stacking_set(WinGetXwin(VROOT), NULL, 0);
+ }
+}
+
+void
+EWMH_SetActiveWindow(Window win)
+{
+ static Window win_last_set = None;
+
+ if (win == win_last_set)
+ return;
+
+ ecore_x_netwm_client_active_set(WinGetXwin(VROOT), win);
+ win_last_set = win;
+}
+
+/*
+ * Functions that set X11-properties from E-window internals
+ */
+
+void
+EWMH_SetWindowName(Window win, const char *name)
+{
+ const char *str;
+
+ str = EstrInt2Enc(name, 1);
+ ecore_x_netwm_name_set(win, str);
+ EstrInt2EncFree(str, 1);
+}
+
+void
+EWMH_SetWindowDesktop(const EWin * ewin)
+{
+ unsigned int val;
+
+ if (EoIsSticky(ewin))
+ val = 0xFFFFFFFF;
+ else
+ val = EoGetDeskNum(ewin);
+ ecore_x_netwm_desktop_set(EwinGetClientXwin(ewin), val);
+}
+
+void
+EWMH_SetWindowState(const EWin * ewin)
+{
+ Ecore_X_Atom atom_list[64];
+ int len = sizeof(atom_list) / sizeof(Ecore_X_Atom);
+ int atom_count;
+
+ atom_count = 0;
+ atom_list_set(atom_list, len, &atom_count, ECORE_X_ATOM_NET_WM_STATE_MODAL,
+ ewin->state.modal);
+ atom_list_set(atom_list, len, &atom_count, ECORE_X_ATOM_NET_WM_STATE_STICKY,
+ EoIsSticky(ewin));
+ atom_list_set(atom_list, len, &atom_count, ECORE_X_ATOM_NET_WM_STATE_SHADED,
+ ewin->state.shaded);
+ atom_list_set(atom_list, len, &atom_count,
+ ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR,
+ ewin->props.skip_ext_task);
+ atom_list_set(atom_list, len, &atom_count, ECORE_X_ATOM_NET_WM_STATE_HIDDEN,
+ ewin->state.iconified || ewin->state.shaded);
+ atom_list_set(atom_list, len, &atom_count,
+ ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT,
+ ewin->state.maximized_vert);
+ atom_list_set(atom_list, len, &atom_count,
+ ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ,
+ ewin->state.maximized_horz);
+ atom_list_set(atom_list, len, &atom_count,
+ ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN, ewin->state.fullscreen);
+ atom_list_set(atom_list, len, &atom_count,
+ ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER,
+ ewin->props.skip_ext_pager);
+ atom_list_set(atom_list, len, &atom_count, ECORE_X_ATOM_NET_WM_STATE_ABOVE,
+ EoGetLayer(ewin) >= 6);
+ atom_list_set(atom_list, len, &atom_count, ECORE_X_ATOM_NET_WM_STATE_BELOW,
+ EoGetLayer(ewin) <= 2);
+ atom_list_set(atom_list, len, &atom_count,
+ ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION,
+ ewin->state.attention);
+
+ ecore_x_window_prop_atom_set(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_STATE, atom_list,
+ atom_count);
+}
+
+void
+EWMH_SetWindowBorder(const EWin * ewin)
+{
+ unsigned int val[4];
+
+ if (ewin->border)
+ {
+ int bl, br, bt, bb;
+
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+ val[0] = (unsigned int)bl;
+ val[1] = (unsigned int)br;
+ val[2] = (unsigned int)bt;
+ val[3] = (unsigned int)bb;
+ }
+ else
+ val[0] = val[1] = val[2] = val[3] = 0;
+
+ ecore_x_window_prop_card32_set(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_FRAME_EXTENTS, val, 4);
+}
+
+void
+EWMH_SetWindowOpacity(const EWin * ewin)
+{
+ ecore_x_netwm_opacity_set(EwinGetClientXwin(ewin), ewin->ewmh.opacity);
+ ecore_x_netwm_opacity_set(EoGetXwin(ewin), ewin->ewmh.opacity);
+}
+
+/*
+ * Functions that set E-window internals from X11-properties
+ */
+
+static void
+EWMH_GetWindowName(EWin * ewin)
+{
+ char *val;
+
+ _EFREE(ewin->ewmh.wm_name);
+
+ ecore_x_netwm_name_get(EwinGetClientXwin(ewin), &val);
+ if (!val)
+ return;
+ ewin->ewmh.wm_name = EstrUtf82Int(val, 0);
+ Efree(val);
+
+ EwinChange(ewin, EWIN_CHANGE_NAME);
+}
+
+static void
+EWMH_GetWindowIconName(EWin * ewin)
+{
+ char *val;
+
+ _EFREE(ewin->ewmh.wm_icon_name);
+
+ ecore_x_netwm_icon_name_get(EwinGetClientXwin(ewin), &val);
+ if (!val)
+ return;
+ ewin->ewmh.wm_icon_name = EstrUtf82Int(val, 0);
+ Efree(val);
+
+ EwinChange(ewin, EWIN_CHANGE_ICON_NAME);
+}
+
+static void
+EWMH_GetWindowDesktop(EWin * ewin)
+{
+ int num;
+ unsigned int desk;
+
+ num = ecore_x_netwm_desktop_get(EwinGetClientXwin(ewin), &desk);
+ if (num <= 0)
+ return;
+
+ if (desk == 0xFFFFFFFF)
+ {
+ /* It is possible to distinguish between "sticky" and "on all desktops". */
+ /* E doesn't */
+ EoSetSticky(ewin, 1);
+ }
+ else
+ {
+ EoSetDesk(ewin, DeskGet(desk));
+ EoSetSticky(ewin, 0);
+ }
+ EwinChange(ewin, EWIN_CHANGE_DESKTOP);
+}
+
+static void
+EWMH_GetWindowState(EWin * ewin)
+{
+ Ecore_X_Atom *p_atoms, atom;
+ int i, n_atoms;
+
+ n_atoms = ecore_x_window_prop_atom_list_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_STATE,
+ &p_atoms);
+ if (n_atoms <= 0)
+ return;
+
+ /* We must clear/set all according to not present/present */
+/* EoSetSticky(ewin, 0); Do not override if set via _NET_WM_DESKTOP */
+ ewin->state.shaded = 0;
+ ewin->state.modal = 0;
+ ewin->props.skip_ext_task = ewin->props.skip_ext_pager = 0;
+ ewin->state.maximized_horz = ewin->state.maximized_vert = 0;
+ ewin->state.fullscreen = ewin->state.attention = 0;
+/* ewin->layer = No ... TBD */
+
+ for (i = 0; i < n_atoms; i++)
+ {
+ atom = p_atoms[i];
+ if (atom == ECORE_X_ATOM_NET_WM_STATE_MODAL)
+ ewin->state.modal = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_STICKY)
+ EoSetSticky(ewin, 1);
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_SHADED)
+ ewin->state.shaded = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR)
+ ewin->props.skip_ext_task = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER)
+ ewin->props.skip_ext_pager = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_HIDDEN)
+ ; /* ewin->state.iconified = 1; No - WM_STATE does this */
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT)
+ ewin->state.maximized_vert = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ)
+ ewin->state.maximized_horz = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN)
+ ewin->state.fullscreen = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_ABOVE)
+ EoSetLayer(ewin, 6);
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_BELOW)
+ EoSetLayer(ewin, 2);
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION)
+ ewin->state.attention = 1;
+ }
+ Efree(p_atoms);
+}
+
+static void
+EWMH_GetWindowType(EWin * ewin)
+{
+ Ecore_X_Atom *p_atoms, atom;
+ int n_atoms, i;
+
+ ewin->ewmh.type.all = 0;
+
+ n_atoms = ecore_x_window_prop_atom_list_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
+ &p_atoms);
+ if (n_atoms <= 0)
+ {
+ if (EwinIsTransient(ewin))
+ ewin->ewmh.type.b.dialog = 1;
+ else
+ ewin->ewmh.type.b.normal = 1;
+ return;
+ }
+
+ for (i = 0; i < n_atoms; i++)
+ {
+ atom = p_atoms[i];
+ if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DESKTOP)
+ ewin->ewmh.type.b.desktop = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DOCK)
+ ewin->ewmh.type.b.dock = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_UTILITY)
+ ewin->ewmh.type.b.utility = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_TOOLBAR)
+ ewin->ewmh.type.b.toolbar = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_MENU)
+ ewin->ewmh.type.b.menu = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_SPLASH)
+ ewin->ewmh.type.b.splash = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DIALOG)
+ ewin->ewmh.type.b.dialog = 1;
+ else if (atom == ECORE_X_ATOM_NET_WM_WINDOW_TYPE_NORMAL)
+ ewin->ewmh.type.b.normal = 1;
+ }
+
+ Efree(p_atoms);
+}
+
+static void
+EWMH_GetWindowIcons(EWin * ewin)
+{
+ unsigned int *val;
+ int num;
+
+ Efree(ewin->ewmh.wm_icon);
+ ewin->ewmh.wm_icon = NULL;
+
+ num = ecore_x_window_prop_card32_list_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_ICON, &val);
+ ewin->ewmh.wm_icon_len = num;
+ if (num <= 0)
+ return;
+
+ if (num < 2 || num < (int)(2 + val[0] * val[1]))
+ {
+ Eprintf
+ ("*** EWMH_GetWindowIcons Icon data/size mismatch (ignoring): %s: N=%d WxH=%dx%d\n",
+ EwinGetTitle(ewin), num, val[0], (num >= 2) ? val[1] : 0);
+ Efree(val);
+ return;
+ }
+
+ ewin->ewmh.wm_icon = val;
+
+ EwinChange(ewin, EWIN_CHANGE_ICON_PMAP);
+}
+
+static void
+EWMH_GetWindowUserTime(EWin * ewin)
+{
+#if 0 /* TBD */
+ int num;
+ unsigned int ts;
+
+ num = ecore_x_netwm_user_time_get(EwinGetClientXwin(ewin), &ts);
+ if (num <= 0)
+ return;
+
+ Eprintf("EWMH_GetWindowUserTime %#x\n", ts);
+#else
+ ewin = NULL;
+#endif
+}
+
+static void
+EWMH_GetWindowStartupId(EWin * ewin)
+{
+#define TryGroup(e) (((e)->icccm.group != None) && ((e)->icccm.group != EwinGetClientXwin(e)))
+ char *str;
+
+ if (!Conf.testing.enable_startup_id)
+ return;
+
+ ecore_x_netwm_startup_id_get(EwinGetClientXwin(ewin), &str);
+ if (!str && TryGroup(ewin))
+ ecore_x_netwm_startup_id_get(ewin->icccm.group, &str);
+ if (str && EDebug(1))
+ Eprintf("Startup id: %s: %s\n", EwinGetTitle(ewin), str);
+}
+
+static void
+EWMH_GetWindowMisc(EWin * ewin)
+{
+ int num;
+ Ecore_X_Window win;
+
+ num = ecore_x_window_prop_window_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
+ &win, 1);
+ if (num <= 0)
+ return;
+
+ ewin->props.vroot = 1;
+ EoSetDesk(ewin, DesksGetCurrent());
+}
+
+static void
+EWMH_GetWindowOpacity(EWin * ewin)
+{
+ int num;
+ unsigned int opacity;
+
+ num = ecore_x_netwm_opacity_get(EwinGetClientXwin(ewin), &opacity);
+ if (num <= 0)
+ return;
+
+ if (ewin->ewmh.opacity == opacity)
+ return;
+
+ ewin->ewmh.opacity = opacity;
+
+ EwinChange(ewin, EWIN_CHANGE_OPACITY);
+}
+
+static void
+EWMH_GetWindowStrut(EWin * ewin)
+{
+ int num;
+ unsigned int val[12];
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, val,
+ 12);
+
+ if (num < 4)
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_STRUT, val, 4);
+ if (num < 4)
+ return;
+
+ ewin->strut.left = val[0];
+ ewin->strut.right = val[1];
+ ewin->strut.top = val[2];
+ ewin->strut.bottom = val[3];
+#if 0 /* FIXME - Handle in placement code */
+ if (num < 12)
+ return;
+ ewin->strut.left_start_y = val[4];
+ ewin->strut.left_end_y = val[5];
+ ewin->strut.right_start_y = val[6];
+ ewin->strut.right_end_y = val[7];
+ ewin->strut.top_start_x = val[8];
+ ewin->strut.top_end_x = val[9];
+ ewin->strut.bottom_start_x = val[10];
+ ewin->strut.bottom_end_x = val[11];
+#endif
+}
+
+void
+EWMH_SetWindowActions(const EWin * ewin)
+{
+ Ecore_X_Atom aa[12];
+ int num;
+
+ num = 0;
+ if (!ewin->state.inhibit_move)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_MOVE;
+ if (!ewin->state.inhibit_resize)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_RESIZE;
+ if (!ewin->state.inhibit_iconify)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_MINIMIZE;
+ if (!ewin->state.inhibit_shade)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_SHADE;
+ if (!ewin->state.inhibit_stick)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_STICK;
+ if (!ewin->state.inhibit_max_hor)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_HORZ;
+ if (!ewin->state.inhibit_max_ver)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_VERT;
+ if (!ewin->state.inhibit_fullscreeen)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN;
+ if (!ewin->state.inhibit_change_desk)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
+ if (!ewin->state.inhibit_close)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_CLOSE;
+ if (!ewin->state.inhibit_stacking)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_ABOVE;
+ if (!ewin->state.inhibit_stacking)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_BELOW;
+
+ ecore_x_window_prop_atom_set(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS, aa, num);
+}
+
+void
+EWMH_GetWindowHints(EWin * ewin)
+{
+ EWMH_GetWindowMisc(ewin);
+ EWMH_GetWindowOpacity(ewin);
+ EWMH_GetWindowName(ewin);
+ EWMH_GetWindowIconName(ewin);
+ EWMH_GetWindowDesktop(ewin);
+ EWMH_GetWindowState(ewin);
+ EWMH_GetWindowType(ewin);
+ EWMH_GetWindowIcons(ewin);
+ EWMH_GetWindowStrut(ewin);
+ EWMH_GetWindowUserTime(ewin);
+ EWMH_GetWindowStartupId(ewin);
+}
+
+/*
+ * Delete all (_NET_...) properties set on window
+ */
+void
+EWMH_DelWindowHints(const EWin * ewin)
+{
+ XDeleteProperty(disp, EwinGetClientXwin(ewin), ECORE_X_ATOM_NET_WM_DESKTOP);
+ XDeleteProperty(disp, EwinGetClientXwin(ewin), ECORE_X_ATOM_NET_WM_STATE);
+}
+
+/*
+ * Process property change
+ */
+int
+EWMH_ProcessPropertyChange(EWin * ewin, Atom atom_change)
+{
+ if (atom_change == ECORE_X_ATOM_NET_WM_NAME)
+ {
+ EWMH_GetWindowName(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_NET_WM_ICON_NAME)
+ {
+ EWMH_GetWindowIconName(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_NET_WM_STRUT_PARTIAL ||
+ atom_change == ECORE_X_ATOM_NET_WM_STRUT)
+ {
+ EWMH_GetWindowStrut(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_NET_WM_WINDOW_OPACITY)
+ {
+ EWMH_GetWindowOpacity(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_NET_WM_USER_TIME)
+ {
+ EWMH_GetWindowUserTime(ewin);
+ return 1;
+ }
+
+ return 0;
+}
+
+/*
+ * Process configuration requests from clients
+ */
+static int
+do_set(int is_set, int action)
+{
+ switch (action)
+ {
+ case _NET_WM_STATE_REMOVE:
+ return 0;
+ case _NET_WM_STATE_ADD:
+ return 1;
+ case _NET_WM_STATE_TOGGLE:
+ return !is_set;
+ }
+ return -1;
+}
+
+int
+EWMH_ProcessClientClientMessage(EWin * ewin, XClientMessageEvent * ev)
+{
+ int source;
+ Time ts;
+
+ if (ev->message_type == ECORE_X_ATOM_NET_ACTIVE_WINDOW)
+ {
+ source = OPSRC(ev->data.l[0]);
+ ts = ev->data.l[1];
+/* cwin = ev->data.l[2]; */
+ EwinOpActivate(ewin, source, 1);
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_CLOSE_WINDOW)
+ {
+/* ts = ev->data.l[0]; */
+ source = OPSRC(ev->data.l[1]);
+ EwinOpClose(ewin, source);
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_WM_DESKTOP)
+ {
+ source = OPSRC(ev->data.l[1]);
+ if ((unsigned)ev->data.l[0] == 0xFFFFFFFF)
+ {
+ if (!EoIsSticky(ewin))
+ EwinOpStick(ewin, source, 1);
+ }
+ else
+ {
+ if (EoIsSticky(ewin))
+ EwinOpStick(ewin, source, 0);
+ else
+ EwinMoveToDesktop(ewin, DeskGet(ev->data.l[0]));
+ }
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_WM_STATE)
+ {
+ /*
+ * It is assumed(!) that only the MAXIMIZE H/V ones can be set
+ * in one message.
+ */
+ unsigned int action;
+ Atom atom, atom2;
+
+ action = ev->data.l[0];
+ atom = ev->data.l[1];
+ atom2 = ev->data.l[2];
+ source = OPSRC(ev->data.l[3]);
+ if (atom == ECORE_X_ATOM_NET_WM_STATE_MODAL)
+ {
+ action = do_set(ewin->state.modal, action);
+ /* TBD */
+ ewin->state.modal = action;
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_STICKY)
+ {
+ action = do_set(EoIsSticky(ewin), action);
+ EwinOpStick(ewin, source, action);
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_SHADED)
+ {
+ action = do_set(ewin->state.shaded, action);
+ EwinOpShade(ewin, source, action);
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR)
+ {
+ action = do_set(ewin->props.skip_ext_task, action);
+ ewin->props.skip_ext_task = action;
+ EWMH_SetWindowState(ewin);
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER)
+ {
+ action = do_set(ewin->props.skip_ext_pager, action);
+ ewin->props.skip_ext_pager = action;
+ EWMH_SetWindowState(ewin);
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT ||
+ atom == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ)
+ {
+ int maxh, maxv;
+
+ maxh = ewin->state.maximized_horz;
+ maxv = ewin->state.maximized_vert;
+ if (atom2 == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT ||
+ atom2 == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ)
+ {
+ /* (ok - ok) */
+ maxh = do_set(maxh, action);
+ maxv = do_set(maxv, action);
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT)
+ {
+ maxv = do_set(maxv, action);
+ }
+ else
+ {
+ maxh = do_set(maxh, action);
+ }
+
+ if ((ewin->state.maximized_horz != maxh) ||
+ (ewin->state.maximized_vert != maxv))
+ {
+ MaxSizeHV(ewin, "available", maxh, maxv);
+ EWMH_SetWindowState(ewin);
+ }
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN)
+ {
+ action = do_set(ewin->state.fullscreen, action);
+ if (ewin->state.fullscreen != action)
+ EwinOpFullscreen(ewin, source, action);
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_ABOVE)
+ {
+ action = do_set(EoGetLayer(ewin) >= 6, action);
+ if (action)
+ {
+ if (EoGetLayer(ewin) < 6)
+ EwinOpSetLayer(ewin, source, 6);
+ }
+ else
+ {
+ if (EoGetLayer(ewin) >= 6)
+ EwinOpSetLayer(ewin, source, 4);
+ }
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_BELOW)
+ {
+ action = do_set(EoGetLayer(ewin) <= 2, action);
+ if (action)
+ {
+ if (EoGetLayer(ewin) > 2)
+ EwinOpSetLayer(ewin, source, 2);
+ }
+ else
+ {
+ if (EoGetLayer(ewin) <= 2)
+ EwinOpSetLayer(ewin, source, 4);
+ }
+ }
+ else if (atom == ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION)
+ {
+ action = do_set(ewin->state.attention, action);
+ ewin->state.attention = action;
+ EWMH_SetWindowState(ewin);
+ }
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_MOVERESIZE_WINDOW)
+ {
+ int flags, grav, x, y, w, h;
+
+ flags = ev->data.l[0];
+ grav = flags & 0xf; /* 0 means use client gravity */
+ x = (flags & 0x0100) ? ev->data.l[1] : EoGetX(ewin);
+ y = (flags & 0x0200) ? ev->data.l[2] : EoGetY(ewin);
+ w = (flags & 0x0400) ? ev->data.l[3] : ewin->client.w;
+ h = (flags & 0x0800) ? ev->data.l[4] : ewin->client.h;
+/* source = OPSRC((flags & 0xF000) >> 12); */
+ EwinMoveResizeWithGravity(ewin, x, y, w, h, grav);
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_WM_MOVERESIZE)
+ {
+/* source = OPSRC(ev->data.l[4]); */
+ switch (ev->data.l[2])
+ {
+ case _NET_WM_MOVERESIZE_SIZE_TOPLEFT:
+ case _NET_WM_MOVERESIZE_SIZE_TOPRIGHT:
+ case _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT:
+ case _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT:
+ ActionResizeStart(ewin, 0, MODE_RESIZE);
+ break;
+ case _NET_WM_MOVERESIZE_SIZE_RIGHT:
+ case _NET_WM_MOVERESIZE_SIZE_LEFT:
+ ActionResizeStart(ewin, 0, MODE_RESIZE_H);
+ break;
+ case _NET_WM_MOVERESIZE_SIZE_TOP:
+ case _NET_WM_MOVERESIZE_SIZE_BOTTOM:
+ ActionResizeStart(ewin, 0, MODE_RESIZE_V);
+ break;
+
+ case _NET_WM_MOVERESIZE_MOVE:
+ ActionMoveStart(ewin, 0, 0, 0);
+ break;
+
+ case _NET_WM_MOVERESIZE_SIZE_KEYBOARD:
+ ActionResizeStart(ewin, 1, MODE_RESIZE);
+ break;
+ case _NET_WM_MOVERESIZE_MOVE_KEYBOARD:
+ ActionMoveStart(ewin, 1, 0, 0);
+ break;
+ case _NET_WM_MOVERESIZE_CANCEL:
+ ActionsEnd(ewin);
+ break;
+ }
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_RESTACK_WINDOW)
+ {
+/* source = OPSRC(ev->data.l[0]); */
+ /* FIXME - Implement */
+ return 1;
+ }
+
+ return 0;
+}
+
+int
+EWMH_ProcessRootClientMessage(XClientMessageEvent * ev)
+{
+ if (ev->message_type == ECORE_X_ATOM_NET_CURRENT_DESKTOP)
+ {
+ DeskGotoNum(ev->data.l[0]);
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_DESKTOP_VIEWPORT)
+ {
+ DeskCurrentGotoArea(ev->data.l[0] / WinGetW(VROOT),
+ ev->data.l[1] / WinGetH(VROOT));
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_SHOWING_DESKTOP)
+ {
+ EwinsShowDesktop(ev->data.l[0]);
+ return 1;
+ }
+#if 0 /* These messages are sent to dedicated window */
+ if (ev->message_type == ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN)
+ {
+ Eprintf("ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN: %lx: %s\n",
+ ev->window, (char *)ev->data.l);
+ return 1;
+ }
+ if (ev->message_type == ECORE_X_ATOM_NET_STARTUP_INFO)
+ {
+ Eprintf("ECORE_X_ATOM_NET_STARTUP_INFO : %lx: %s\n",
+ ev->window, (char *)ev->data.l);
+ return 1;
+ }
+#endif
+
+#if 0 /* Obsolete? */
+ EWin *ewin;
+
+ ewin = EwinFindByClient(ev->window);
+ if (ewin == NULL)
+ {
+ /* Some misbehaving clients go here */
+ if (ev->message_type == ECORE_X_ATOM_NET_WM_DESKTOP)
+ {
+ ecore_x_netwm_desktop_set(ev->window, ev->data.l[0]);
+ return 1;
+ }
+ else if (ev->message_type == ECORE_X_ATOM_NET_WM_STATE)
+ {
+ ecore_x_window_prop_atom_list_change(ev->window,
+ ECORE_X_ATOM_NET_WM_STATE,
+ ev->data.l[1], ev->data.l[0]);
+ if (ev->data.l[2] ==
+ (long)ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ ||
+ ev->data.l[2] ==
+ (long)ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT)
+ ecore_x_window_prop_atom_list_change(ev->window,
+ ECORE_X_ATOM_NET_WM_STATE,
+ ev->data.l[2],
+ ev->data.l[0]);
+ return 1;
+ }
+ }
+#endif
+ return 0;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "e16-ecore_hints.h"
+#include "eimage.h"
+#include "xwin.h"
+#include <X11/Xutil.h>
+#include <X11/extensions/shape.h>
+
+static Window
+ExtInitWinMain(void)
+{
+ int i, err;
+ Ecore_X_Window win;
+ XGCValues gcv;
+ GC gc;
+ Pixmap pmap, mask;
+ Atom a;
+ XSetWindowAttributes attr;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ExtInitWinMain enter\n");
+
+ err = EDisplayOpen(NULL, -1);
+ if (err)
+ return None;
+
+ EGrabServer();
+
+ EImageInit();
+
+ attr.backing_store = NotUseful;
+ attr.override_redirect = True;
+ attr.colormap = WinGetCmap(VROOT);
+ attr.border_pixel = 0;
+ attr.background_pixel = 0;
+ attr.save_under = True;
+ win = XCreateWindow(disp, WinGetXwin(VROOT),
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT),
+ 0, CopyFromParent, InputOutput, CopyFromParent,
+ CWOverrideRedirect | CWSaveUnder | CWBackingStore |
+ CWColormap | CWBackPixel | CWBorderPixel, &attr);
+
+ pmap = XCreatePixmap(disp, win,
+ WinGetW(VROOT), WinGetH(VROOT), WinGetDepth(VROOT));
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = XCreateGC(disp, win, GCSubwindowMode, &gcv);
+ XCopyArea(disp, WinGetXwin(VROOT), pmap, gc,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT), 0, 0);
+ XSetWindowBackgroundPixmap(disp, win, pmap);
+ XMapRaised(disp, win);
+ XFreePixmap(disp, pmap);
+ XFreeGC(disp, gc);
+
+ a = EInternAtom("ENLIGHTENMENT_RESTART_SCREEN");
+ ecore_x_window_prop_window_set(WinGetXwin(VROOT), a, &win, 1);
+
+ XSelectInput(disp, win, StructureNotifyMask);
+
+ EUngrabServer();
+ ESync(0);
+
+ {
+ Window w2, ww;
+ char s[1024];
+ EImage *im;
+ int dd, x, y, w, h;
+ unsigned int mm;
+ Cursor cs = 0;
+ XColor cl;
+ XWindowAttributes xwa;
+
+ w2 = XCreateWindow(disp, win, 0, 0, 32, 32, 0, CopyFromParent,
+ InputOutput, CopyFromParent,
+ CWOverrideRedirect | CWBackingStore | CWColormap |
+ CWBackPixel | CWBorderPixel, &attr);
+
+ pmap = XCreatePixmap(disp, w2, 16, 16, 1);
+ gc = XCreateGC(disp, pmap, 0, NULL);
+ XSetForeground(disp, gc, 0);
+ XFillRectangle(disp, pmap, gc, 0, 0, 16, 16);
+ XFreeGC(disp, gc);
+
+ mask = XCreatePixmap(disp, w2, 16, 16, 1);
+ gc = XCreateGC(disp, mask, 0, NULL);
+ XSetForeground(disp, gc, 0);
+ XFillRectangle(disp, mask, gc, 0, 0, 16, 16);
+ XFreeGC(disp, gc);
+
+ cs = XCreatePixmapCursor(disp, pmap, mask, &cl, &cl, 0, 0);
+ XDefineCursor(disp, win, cs);
+ XDefineCursor(disp, w2, cs);
+
+ for (i = 1;; i++)
+ {
+ if (i > 12)
+ i = 1;
+
+ /* If we get unmapped we are done */
+ XGetWindowAttributes(disp, win, &xwa);
+ if (xwa.map_state == IsUnmapped)
+ break;
+
+ Esnprintf(s, sizeof(s), "pix/wait%i.png", i);
+ if (EDebug(EDBUG_TYPE_SESSION) > 1)
+ Eprintf("ExtInitWinCreate - child %s\n", s);
+
+ im = ThemeImageLoad(s);
+ if (im)
+ {
+ EImageRenderPixmaps(im, NULL, 0, &pmap, &mask, 0, 0);
+ EImageGetSize(im, &w, &h);
+ XShapeCombineMask(disp, w2, ShapeBounding, 0, 0, mask,
+ ShapeSet);
+ XSetWindowBackgroundPixmap(disp, w2, pmap);
+ EImagePixmapsFree(pmap, mask);
+ XClearWindow(disp, w2);
+ XQueryPointer(disp, win, &ww, &ww, &dd, &dd, &x, &y, &mm);
+ XMoveResizeWindow(disp, w2, x - w / 2, y - h / 2, w, h);
+ XMapWindow(disp, w2);
+ EImageFree(im);
+ }
+ usleep(50000);
+ ESync(0);
+ }
+ }
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ExtInitWinMain exit\n");
+
+ EDisplayClose();
+
+ exit(0);
+}
+
+Window
+ExtInitWinCreate(void)
+{
+ Ecore_X_Window win_ex; /* Hmmm.. */
+ Window win;
+ Atom a;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ExtInitWinCreate\n");
+
+ a = EInternAtom("ENLIGHTENMENT_RESTART_SCREEN");
+ ESync(0);
+
+ if (fork())
+ {
+ /* Parent */
+ EUngrabServer();
+
+ for (;;)
+ {
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ExtInitWinCreate - parent\n");
+
+ /* Hack to give the child some space. Not foolproof. */
+ sleep(1);
+
+ if (ecore_x_window_prop_window_get
+ (WinGetXwin(VROOT), a, &win_ex, 1) > 0)
+ break;
+ }
+
+ win = win_ex;
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ExtInitWinCreate - parent - %#lx\n", win);
+
+ return win;
+ }
+
+ /* Child - Create the init window */
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ExtInitWinCreate - child\n");
+
+ /* Clean up inherited stuff */
+
+ SignalsRestore();
+
+ EImageExit(0);
+ EDisplayDisconnect();
+
+ ExtInitWinMain();
+
+ /* We will never get here */
+ return None;
+}
+
+static Window init_win_ext = None;
+
+void
+ExtInitWinSet(Window win)
+{
+ init_win_ext = win;
+}
+
+Window
+ExtInitWinGet(void)
+{
+ return init_win_ext;
+}
+
+void
+ExtInitWinKill(void)
+{
+ if (!disp || init_win_ext == None)
+ return;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("Kill init window %#lx\n", init_win_ext);
+ XUnmapWindow(disp, init_win_ext);
+ init_win_ext = None;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "file.h"
+#include "util.h"
+#include <dirent.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+char **
+E_ls(const char *dir, int *num)
+{
+ int i, dirlen;
+ int done = 0;
+ DIR *dirp;
+ char **names;
+ struct dirent *dp;
+
+ if ((!dir) || (!*dir))
+ return NULL;
+ dirp = opendir(dir);
+ if (!dirp)
+ {
+ *num = 0;
+ return NULL;
+ }
+ /* count # of entries in dir (worst case) */
+ for (dirlen = 0; (dp = readdir(dirp)) != NULL; dirlen++)
+ ;
+ if (!dirlen)
+ {
+ closedir(dirp);
+ *num = dirlen;
+ return NULL;
+ }
+ names = EMALLOC(char *, dirlen);
+
+ if (!names)
+ return NULL;
+
+ rewinddir(dirp);
+ for (i = 0; i < dirlen;)
+ {
+ dp = readdir(dirp);
+ if (!dp)
+ break;
+ if ((strcmp(dp->d_name, ".")) && (strcmp(dp->d_name, "..")))
+ {
+ names[i] = Estrdup(dp->d_name);
+ i++;
+ }
+ }
+
+ if (i < dirlen)
+ dirlen = i; /* dir got shorter... */
+ closedir(dirp);
+ *num = dirlen;
+
+ /* do a simple bubble sort here to alphanumberic it */
+ while (!done)
+ {
+ done = 1;
+ for (i = 0; i < dirlen - 1; i++)
+ {
+ if (strcmp(names[i], names[i + 1]) > 0)
+ {
+ char *tmp;
+
+ tmp = names[i];
+ names[i] = names[i + 1];
+ names[i + 1] = tmp;
+ done = 0;
+ }
+ }
+ }
+ return names;
+}
+
+void
+E_md(const char *s)
+{
+ if ((!s) || (!*s))
+ return;
+ mkdir(s, S_IRWXU);
+}
+
+void
+E_mv(const char *s, const char *ss)
+{
+ if ((!s) || (!ss) || (!*s) || (!*ss))
+ return;
+ rename(s, ss);
+}
+
+void
+E_rm(const char *s)
+{
+ if ((!s) || (!*s))
+ return;
+ unlink(s);
+}
+
+int
+file_test(const char *s, unsigned int test)
+{
+ struct stat st;
+ int mode;
+
+ if (!s || !*s)
+ return 0;
+
+#define EFILE_ALL (EFILE_ANY | EFILE_REG | EFILE_DIR)
+ if (test & EFILE_ALL)
+ {
+ if (stat(s, &st) < 0)
+ return 0;
+ if ((test & EFILE_REG) && !S_ISREG(st.st_mode))
+ return 0;
+ if ((test & EFILE_DIR) && !S_ISDIR(st.st_mode))
+ return 0;
+ }
+
+#define EPERM_ALL (EPERM_R | EPERM_W | EPERM_X)
+ if (test & EPERM_ALL)
+ {
+ mode = 0;
+ if (test & EPERM_R)
+ mode |= R_OK;
+ if (test & EPERM_W)
+ mode |= W_OK;
+ if (test & EPERM_X)
+ mode |= X_OK;
+ if (access(s, mode))
+ return 0;
+ }
+
+ return 1;
+}
+
+time_t
+moddate(const char *s)
+{
+ struct stat st;
+
+ if ((!s) || (!*s))
+ return 0;
+ if (stat(s, &st) < 0)
+ return 0;
+ if (st.st_mtime > st.st_ctime)
+ return st.st_mtime;
+ return st.st_ctime;
+}
+
+#if 0 /* Unused */
+int
+filesize(const char *s)
+{
+ struct stat st;
+
+ if ((!s) || (!*s))
+ return 0;
+ if (stat(s, &st) < 0)
+ return 0;
+ return (int)st.st_size;
+}
+#endif
+
+int
+fileinode(const char *s)
+{
+ struct stat st;
+
+ if ((!s) || (!*s))
+ return 0;
+ if (stat(s, &st) < 0)
+ return 0;
+ return (int)st.st_ino;
+}
+
+int
+filedev(const char *s)
+{
+ struct stat st;
+
+ if ((!s) || (!*s))
+ return 0;
+ if (stat(s, &st) < 0)
+ return 0;
+ return filedev_map((int)st.st_dev);
+}
+
+int
+filedev_map(int dev)
+{
+#ifdef __linux__
+ /* device numbers in the anonymous range can't be relied
+ * upon, so map them all on a single one */
+ switch (dev >> 8)
+ {
+ default:
+ return dev;
+ case 0:
+ case 144:
+ case 145:
+ case 146:
+ return 1;
+ }
+#else
+ return dev;
+#endif
+}
+
+int
+isabspath(const char *path)
+{
+ return path[0] == '/';
+}
+
+const char *
+fileext(const char *file)
+{
+ const char *p;
+
+ p = strrchr(file, '.');
+ if (p != NULL)
+ {
+ return p + 1;
+ }
+ return "";
+}
+
+char *
+fileof(const char *path)
+{
+ const char *s1, *s2;
+
+ s1 = strrchr(path, '/');
+ s1 = (s1) ? s1 + 1 : path;
+ s2 = strrchr(s1, '.');
+ if (!s2)
+ return Estrdup(s1);
+
+ return Estrndup(s1, s2 - s1);
+}
+
+const char *
+fullfileof(const char *path)
+{
+ const char *s;
+
+ if (!path)
+ return NULL;
+ s = strrchr(path, '/');
+ return (s) ? s + 1 : path;
+}
+
+char *
+path_test(const char *file, unsigned int test)
+{
+ char *cp, *ep;
+ char *s, *p;
+ unsigned int len, exelen;
+
+ if (!file)
+ return NULL;
+
+ if (isabspath(file))
+ {
+ if (file_test(file, test))
+ return Estrdup(file);
+ return NULL;
+ }
+ cp = getenv("PATH");
+ if (!cp)
+ return Estrdup(file);
+
+ exelen = strlen(file);
+ s = NULL;
+ ep = cp;
+ for (; ep; cp = ep + 1)
+ {
+ ep = strchr(cp, ':');
+ len = (ep) ? (unsigned int)(ep - cp) : strlen(cp);
+ if (len == 0)
+ continue;
+ p = EREALLOC(char, s, len + exelen + 2);
+
+ if (!p)
+ break;
+ s = p;
+ memcpy(s, cp, len);
+ s[len] = '/';
+ memcpy(s + len + 1, file, exelen + 1);
+ if (file_test(s, test))
+ return s;
+ }
+ Efree(s);
+ return NULL;
+}
+
+int
+path_canexec(const char *file)
+{
+ char *s;
+
+ s = path_test(file, EFILE_REG | EPERM_X);
+ if (!s)
+ return 0;
+ Efree(s);
+ return 1;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _FILE_H_
+#define _FILE_H_
+
+#include <time.h>
+
+void E_md(const char *s);
+void E_mv(const char *s, const char *ss);
+void E_rm(const char *s);
+char **E_ls(const char *dir, int *num);
+
+#define EFILE_ANY 0x01
+#define EFILE_REG 0x02
+#define EFILE_DIR 0x04
+
+#define EPERM_R 0x10
+#define EPERM_W 0x20
+#define EPERM_X 0x40
+#define EPERM_RWX (EPERM_R | EPERM_W | EPERM_X)
+
+int file_test(const char *s, unsigned int test);
+
+#define exists(s) file_test(s, EFILE_ANY)
+#define isdir(s) file_test(s, EFILE_DIR)
+#define isfile(s) file_test(s, EFILE_REG)
+#define canread(s) file_test(s, EFILE_REG | EPERM_R)
+#define canexec(s) file_test(s, EFILE_REG | EPERM_X)
+
+time_t moddate(const char *s);
+int fileinode(const char *s);
+int filedev_map(int dev);
+int filedev(const char *s);
+
+int isabspath(const char *s);
+const char *fileext(const char *s);
+char *fileof(const char *s);
+const char *fullfileof(const char *s);
+
+char *path_test(const char *file, unsigned int test);
+int path_canexec(const char *file);
+
+#endif /* _FILE_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2008-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "borders.h"
+#include "ewins.h"
+#include "groups.h"
+#include "util.h"
+#include <ctype.h>
+#include <string.h>
+
+EWin *
+EwinFindByPtr(const EWin * ewin)
+{
+ EWin *const *ewins;
+ int i, num;
+
+ ewins = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if (ewin == ewins[i])
+ return ewins[i];
+ }
+ return NULL;
+}
+
+EWin *
+EwinFindByClient(Window win)
+{
+ EWin *const *ewins;
+ int i, num;
+
+ ewins = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if (win == EwinGetClientXwin(ewins[i]))
+ return ewins[i];
+ }
+ return NULL;
+}
+
+EWin *
+EwinFindByChildren(Window win)
+{
+ EWin *const *ewins;
+ int i, j, num;
+
+ ewins = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if ((win == EwinGetClientXwin(ewins[i])) ||
+ (win == EwinGetContainerXwin(ewins[i])))
+ {
+ return ewins[i];
+ }
+ else
+ {
+ for (j = 0; j < ewins[i]->border->num_winparts; j++)
+ if (win == WinGetXwin(ewins[i]->bits[j].win))
+ {
+ return ewins[i];
+ }
+ }
+ }
+ return NULL;
+}
+
+EWin **
+EwinsFindByExpr(const char *match, int *pnum, int *pflags)
+{
+ EWin *ewin, **lst;
+ EWin *const *ewins;
+ int type;
+ int i, num, len, nfound, match_one, flags;
+
+ if (pnum)
+ *pnum = 0;
+
+ if (!match || !match[0])
+ return NULL;
+
+ ewin = NULL;
+ flags = 0;
+
+ if (!strcmp(match, "*") || !strcmp(match, "=") || !strcmp(match, "current"))
+ {
+ ewin = GetContextEwin();
+ if (!ewin)
+ ewin = GetFocusEwin();
+ if (match[0] == '=')
+ flags = 1; /* Nogroup */
+ goto do_one;
+ }
+
+ if (isdigit(match[0]))
+ {
+ unsigned int win;
+
+ sscanf(match, "%x", &win);
+ ewin = EwinFindByChildren(win);
+ goto do_one;
+ }
+
+ match_one = 1;
+ if (!strcmp(match, "all"))
+ {
+ type = 'a';
+ match_one = 0;
+ flags = 1; /* Nogroup */
+ }
+ else if (match[0] == '=')
+ {
+ type = 's';
+ match++;
+ flags = 1; /* Nogroup */
+ }
+ else if (strchr(match, '*'))
+ {
+ type = 'w';
+ match_one = 0;
+ flags = 1; /* Nogroup */
+ }
+ else
+ {
+ type = 's';
+ }
+
+ len = strlen(match);
+ if (len <= 0)
+ return NULL;
+
+ ewins = EwinListGetAll(&num);
+ if (!ewins)
+ return NULL;
+
+ nfound = 0;
+ lst = NULL;
+ for (i = 0; i < num; i++)
+ {
+ ewin = ewins[i];
+
+ if (type == 'a') /* All */
+ {
+ }
+ else if (type == 'w') /* Wildcard */
+ {
+ if (!matchregexp(match, EwinGetIcccmName(ewin)))
+ continue;
+ }
+ else /* Match name (substring) */
+ {
+ const char *name;
+
+ name = EwinGetIcccmName(ewin);
+ if (!name)
+ continue;
+ if (!Estrcasestr(name, match))
+ continue;
+ }
+ nfound++;
+ lst = EREALLOC(EWin *, lst, nfound);
+ lst[nfound - 1] = ewin;
+ if (match_one)
+ break;
+ }
+ goto done;
+
+ do_one:
+ if (!ewin)
+ return NULL;
+ nfound = 1;
+ lst = EMALLOC(EWin *, 1);
+ if (!lst)
+ return NULL;
+ lst[0] = ewin;
+
+ done:
+ if (pnum)
+ *pnum = nfound;
+ if (pflags)
+ *pflags = flags;
+ return lst;
+}
+
+EWin *
+EwinFindByExpr(const char *match)
+{
+ EWin *ewin, **lst;
+
+ lst = EwinsFindByExpr(match, NULL, NULL);
+ if (!lst)
+ return NULL;
+ ewin = lst[0];
+ Efree(lst);
+ return ewin;
+}
+
+EWin **
+ListWinGroupMembersForEwin(const EWin * ewin, int action, char nogroup,
+ int *pnum)
+{
+
+ EWin **gwins, *ew;
+ EWin *const *ewins;
+ Group *grp;
+ int i, num, gwcnt;
+
+ if (!ewin)
+ {
+ *pnum = 0;
+ return NULL;
+ }
+
+ gwcnt = 0;
+ gwins = NULL;
+
+ if (nogroup || ewin->num_groups <= 0)
+ goto done;
+
+ ewins = EwinListGetAll(&num);
+ if (ewins == NULL) /* Should not be possible */
+ goto done;
+
+ /* Loop through window stack, bottom up */
+ for (i = num - 1; i >= 0; i--)
+ {
+ ew = ewins[i];
+
+ if (ew == ewin)
+ goto do_add;
+
+ /* To get consistent behaviour, limit groups to a single desktop for now: */
+ if (EoGetDesk(ew) != EoGetDesk(ewin))
+ continue;
+
+ grp = EwinsInGroup(ewin, ew);
+ if (!grp)
+ continue;
+
+ switch (action)
+ {
+ case GROUP_ACTION_SET_WINDOW_BORDER:
+ if (!grp->cfg.set_border)
+ continue;
+ break;
+ case GROUP_ACTION_ICONIFY:
+ if (!grp->cfg.iconify)
+ continue;
+ break;
+ case GROUP_ACTION_MOVE:
+ if (!grp->cfg.move)
+ continue;
+ break;
+ case GROUP_ACTION_STACKING:
+ if (!grp->cfg.raise)
+ continue;
+ break;
+ case GROUP_ACTION_STICK:
+ if (!grp->cfg.stick)
+ continue;
+ break;
+ case GROUP_ACTION_SHADE:
+ if (!grp->cfg.shade)
+ continue;
+ break;
+ case GROUP_ACTION_KILL:
+ if (!grp->cfg.kill)
+ continue;
+ break;
+ default:
+ break;
+ }
+
+ do_add:
+ gwins = EREALLOC(EWin *, gwins, gwcnt + 1);
+ gwins[gwcnt] = ew;
+ gwcnt++;
+ }
+
+ done:
+ if (gwins == NULL)
+ {
+ gwins = EMALLOC(EWin *, 1);
+ gwins[0] = (EWin *) ewin;
+ gwcnt = 1;
+ }
+ *pnum = gwcnt;
+ return gwins;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "cursors.h"
+#include "desktops.h" /* FIXME - Should not be here */
+#include "dialog.h"
+#include "emodule.h"
+#include "ewins.h"
+#include "focus.h"
+#include "grabs.h"
+#include "hints.h"
+#include "settings.h"
+#include "timers.h"
+#include "xwin.h"
+
+#define EwinListFocusRaise(ewin) EobjListFocusRaise(EoObj(ewin))
+
+static char focus_inhibit = 1;
+static char focus_is_set = 0;
+static char click_pending_update_grabs = 0;
+static int focus_pending_why = 0;
+static EWin *focus_pending_ewin = NULL;
+static EWin *focus_pending_new = NULL;
+static EWin *focus_pending_raise = NULL;
+static Timer *focus_timer_autoraise = NULL;
+
+void
+FocusEnable(int on)
+{
+ if (on)
+ {
+ if (focus_inhibit > 0)
+ focus_inhibit--;
+ }
+ else
+ {
+ focus_inhibit++;
+ }
+
+ if (EDebug(EDBUG_TYPE_FOCUS))
+ Eprintf("FocusEnable inhibit=%d\n", focus_inhibit);
+}
+
+/*
+ * Return !0 if it is OK to focus ewin.
+ */
+static int
+FocusEwinValid(EWin * ewin, int want_on_screen, int click, int want_visible)
+{
+ if (!ewin)
+ return 0;
+
+#if 0
+ Eprintf("FocusEwinValid %#lx %s: st=%d sh=%d inh=%d cl=%d(%d) vis=%d(%d)\n",
+ EwinGetClientXwin(ewin), EwinGetTitle(ewin),
+ ewin->state.state, EoIsShown(ewin), ewin->state.inhibit_focus,
+ click, ewin->props.focusclick, want_visible, ewin->state.visibility);
+#endif
+
+ if (ewin->state.inhibit_focus)
+ return 0;
+
+ if (!EwinIsMapped(ewin) || !EoIsShown(ewin))
+ return 0;
+
+ if (ewin->props.focusclick && !click)
+ return 0;
+
+ if (want_visible && ewin->state.visibility == VisibilityFullyObscured)
+ return 0;
+
+ return !want_on_screen || EwinIsOnScreen(ewin);
+}
+
+/*
+ * Return the ewin to focus after entering area or losing focused window.
+ */
+static EWin *
+FocusEwinSelect(void)
+{
+ EWin *const *lst, *ewin;
+ int num, i;
+
+ switch (Conf.focus.mode)
+ {
+ default:
+ case MODE_FOCUS_POINTER:
+ ewin = GetEwinPointerInClient();
+ if (ewin && !FocusEwinValid(ewin, 1, 0, 0))
+ ewin = NULL;
+ break;
+
+ case MODE_FOCUS_SLOPPY:
+ ewin = GetEwinPointerInClient();
+ if (ewin && FocusEwinValid(ewin, 1, 0, 0))
+ break;
+ goto do_select;
+
+ case MODE_FOCUS_CLICK:
+ goto do_select;
+
+ do_select:
+ ewin = NULL;
+ lst = EwinListFocusGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ if (!FocusEwinValid(lst[i], 1, 0, 0) ||
+ lst[i]->props.skip_focuslist)
+ continue;
+ ewin = lst[i];
+ break;
+ }
+ break;
+ }
+
+ return ewin;
+}
+
+static int
+AutoraiseTimeout(void *data)
+{
+ EWin *ewin = (EWin *) data;
+
+ if (Conf.focus.mode == MODE_FOCUS_CLICK)
+ goto done;
+
+ if (EwinFindByPtr(ewin)) /* May be gone */
+ EwinRaise(ewin);
+
+ done:
+ focus_timer_autoraise = NULL;
+ return 0;
+}
+
+static void
+FocusRaisePending(void)
+{
+ EWin *ewin = focus_pending_raise;
+ unsigned int mask;
+
+ /* The focusing cycle ends when no more modifiers are depressed */
+ mask = 0;
+ EQueryPointer(NULL, NULL, NULL, NULL, &mask);
+ if ((mask & Mode.masks.mod_key_mask) != 0)
+ return;
+
+ if (EwinFindByPtr(ewin)) /* May be gone */
+ EwinListFocusRaise(ewin);
+
+ GrabKeyboardRelease();
+
+ focus_pending_raise = NULL;
+}
+
+/*
+ * dir > 0: Focus previously focused window
+ * else : Focus least recently focused window
+ */
+static void
+FocusCycleEwin(int dir)
+{
+ EWin *const *lst;
+ EWin *ewin;
+ int i, j, num;
+
+ lst = EwinListFocusGet(&num);
+ if (num <= 1)
+ return;
+
+ dir = (dir > 0) ? 1 : -1;
+
+ for (j = 0; j < num; j++)
+ {
+ if (lst[j] == Mode.focuswin)
+ break;
+ }
+ for (i = 1; i < num; i++)
+ {
+ ewin = lst[(j + i * dir + num) % num];
+ if (!FocusEwinValid(ewin, 1, 0, 0) || ewin->props.skip_focuslist)
+ continue;
+ FocusToEWin(ewin, FOCUS_PREV);
+ break;
+ }
+}
+
+static void
+ClickGrabsSet(EWin * ewin)
+{
+ int set = 0;
+
+ if ((Conf.focus.clickraises && !EwinListStackIsRaised(ewin)) ||
+ (!ewin->state.active && !ewin->state.inhibit_focus))
+ set = 1;
+
+ if (set)
+ {
+ if (!ewin->state.click_grab_isset)
+ {
+ GrabButtonSet(AnyButton, AnyModifier, EwinGetContainerWin(ewin),
+ ButtonPressMask, ECSR_PGRAB, 1);
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("ClickGrabsSet: %#lx set %s\n",
+ EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+ ewin->state.click_grab_isset = 1;
+ }
+ }
+ else
+ {
+ if (ewin->state.click_grab_isset)
+ {
+ GrabButtonRelease(AnyButton, AnyModifier,
+ EwinGetContainerWin(ewin));
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("ClickGrabsSet: %#lx unset %s\n",
+ EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+ ewin->state.click_grab_isset = 0;
+ }
+ }
+}
+
+static void
+FocusEwinSetActive(EWin * ewin, int active)
+{
+ if (ewin->state.active == (unsigned)active)
+ return;
+
+ ewin->state.active = active;
+ EwinBorderUpdateState(ewin);
+ EwinUpdateOpacity(ewin);
+
+ if (active && ewin->state.attention)
+ {
+ ewin->state.attention = 0;
+ HintsSetWindowState(ewin);
+ }
+}
+
+static void
+doClickGrabsUpdate(void)
+{
+ EWin *const *lst, *ewin;
+ int i, num;
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+ ClickGrabsSet(ewin);
+ }
+ click_pending_update_grabs = 0;
+}
+
+void
+ClickGrabsUpdate(void)
+{
+ click_pending_update_grabs = 1;
+}
+
+static void
+doFocusToEwin(EWin * ewin, int why)
+{
+ int do_focus = 0;
+ int do_raise = 0, do_warp = 0;
+
+ if (focus_inhibit)
+ return;
+
+ if (EDebug(EDBUG_TYPE_FOCUS))
+ Eprintf("doFocusToEWin %#lx %s why=%d\n",
+ (ewin) ? EwinGetClientXwin(ewin) : 0,
+ (ewin) ? EwinGetTitle(ewin) : "None", why);
+
+ switch (why)
+ {
+ case FOCUS_NEXT:
+ case FOCUS_PREV:
+ if (Conf.focus.raise_on_next)
+ do_raise = 1;
+ if (Conf.focus.warp_on_next)
+ do_warp = 1;
+ /* Fall thru */
+ default:
+ case FOCUS_SET:
+ case FOCUS_ENTER:
+ case FOCUS_LEAVE: /* Unused */
+ case FOCUS_CLICK:
+ if (ewin && ewin == Mode.focuswin)
+ return;
+ if (ewin == NULL) /* Unfocus */
+ break;
+ if (!FocusEwinValid(ewin, 1, why == FOCUS_CLICK, 0))
+ return;
+ break;
+
+ case FOCUS_INIT:
+ case FOCUS_DESK_ENTER:
+ ewin = FocusEwinSelect();
+ break;
+
+ case FOCUS_DESK_LEAVE:
+ focus_is_set = 0;
+ case FOCUS_NONE:
+ ewin = NULL;
+ if (ewin == Mode.focuswin)
+ return;
+ break;
+
+ case FOCUS_EWIN_UNMAP:
+ if (Mode.focuswin)
+ return;
+ ewin = FocusEwinSelect();
+ if (ewin == Mode.focuswin)
+ ewin = NULL;
+ break;
+
+ case FOCUS_EWIN_NEW:
+ if (Conf.focus.all_new_windows_get_focus)
+ do_focus = 1;
+ else if (Mode.place.doing_manual)
+ do_focus = 1;
+
+ if (ewin->props.focus_when_mapped)
+ do_focus = 2;
+
+ if (EwinIsTransient(ewin))
+ {
+ if (Conf.focus.new_transients_get_focus)
+ {
+ do_focus = 2;
+ }
+ else if (Conf.focus.new_transients_get_focus_if_group_focused)
+ {
+ EWin *ewin2;
+
+ ewin2 = EwinFindByClient(EwinGetTransientFor(ewin));
+ if ((ewin2) && (Mode.focuswin == ewin2))
+ do_focus = 2;
+ }
+
+ if (do_focus == 2)
+ DeskGotoByEwin(ewin);
+ }
+
+ if (!do_focus)
+ return;
+ if (!FocusEwinValid(ewin, 1, 0, 0))
+ return;
+ break;
+ }
+
+ if (ewin == Mode.focuswin && focus_is_set)
+ return;
+
+ /* Check if ewin is a valid focus window target */
+
+ if (!ewin)
+ goto done;
+
+ /* NB! ewin != NULL */
+
+ if (why != FOCUS_CLICK && ewin->props.focusclick)
+ return;
+
+ if (Conf.autoraise.enable)
+ {
+ TIMER_DEL(focus_timer_autoraise);
+
+ if (Conf.focus.mode != MODE_FOCUS_CLICK)
+ TIMER_ADD(focus_timer_autoraise, 0.001 * Conf.autoraise.delay,
+ AutoraiseTimeout, ewin);
+ }
+
+ if (do_raise)
+ EwinRaise(ewin);
+
+ if (Conf.focus.warp_always)
+ do_warp = 1;
+ if (do_warp)
+ EwinWarpTo(ewin);
+
+ switch (why)
+ {
+ case FOCUS_PREV:
+ case FOCUS_NEXT:
+ GrabKeyboardSet(VROOT); /* Causes idler to be called on KeyRelease */
+ focus_pending_raise = ewin;
+ break;
+ case FOCUS_DESK_ENTER:
+ if (Conf.focus.mode == MODE_FOCUS_CLICK)
+ break;
+ default:
+ case FOCUS_INIT:
+ EwinListFocusRaise(ewin);
+ break;
+ }
+
+ SoundPlay(SOUND_FOCUS_SET);
+ done:
+
+ ClickGrabsUpdate();
+
+ /* Unset old focus window (if any) highlighting */
+ if (Mode.focuswin)
+ FocusEwinSetActive(Mode.focuswin, 0);
+ ICCCM_Cmap(ewin);
+
+ /* Quit if pointer is not on our screen */
+ if (!EQueryPointer(NULL, NULL, NULL, NULL, NULL))
+ {
+ Mode.focuswin = NULL;
+ return;
+ }
+
+ /* Set new focus window (if any) highlighting */
+ Mode.focuswin = ewin;
+ if (Mode.focuswin)
+ FocusEwinSetActive(Mode.focuswin, 1);
+
+ if (why == FOCUS_DESK_LEAVE)
+ return;
+
+ ICCCM_Focus(ewin);
+ focus_is_set = 1;
+}
+
+void
+FocusToEWin(EWin * ewin, int why)
+{
+ if (EDebug(EDBUG_TYPE_FOCUS))
+ Eprintf("FocusToEWin(%d) %#lx %s why=%d\n", focus_inhibit,
+ (ewin) ? EwinGetClientXwin(ewin) : 0,
+ (ewin) ? EwinGetTitle(ewin) : "None", why);
+
+ switch (why)
+ {
+ case FOCUS_EWIN_NEW:
+ if (!FocusEwinValid(ewin, 0, 0, 0))
+ break;
+ focus_pending_new = ewin;
+ focus_pending_why = why;
+ focus_pending_ewin = ewin;
+ break;
+
+ default:
+ if (ewin && !FocusEwinValid(ewin, 0, why == FOCUS_CLICK, 0))
+ break;
+ focus_pending_why = why;
+ focus_pending_ewin = ewin;
+ break;
+
+ case FOCUS_EWIN_UNMAP:
+ focus_pending_why = why;
+ focus_pending_ewin = NULL;
+ if (ewin == Mode.focuswin)
+ {
+ Mode.focuswin = NULL;
+ focus_is_set = 0;
+ if (!EoIsGone(ewin))
+ FocusEwinSetActive(ewin, 0);
+ }
+ if (ewin == focus_pending_new)
+ focus_pending_new = NULL;
+ break;
+ }
+}
+
+static void
+FocusSet(void)
+{
+ if (focus_pending_new && Conf.focus.all_new_windows_get_focus)
+ doFocusToEwin(focus_pending_new, FOCUS_EWIN_NEW);
+ else
+ doFocusToEwin(focus_pending_ewin, focus_pending_why);
+ focus_pending_why = 0;
+ focus_pending_ewin = focus_pending_new = NULL;
+}
+
+void
+FocusNewDeskBegin(void)
+{
+ /* Freeze keyboard */
+ XGrabKeyboard(disp, WinGetXwin(VROOT), False, GrabModeAsync,
+ GrabModeSync, CurrentTime);
+
+ focus_pending_new = NULL;
+ doFocusToEwin(NULL, FOCUS_DESK_LEAVE);
+}
+
+void
+FocusNewDesk(void)
+{
+ FocusToEWin(NULL, FOCUS_DESK_ENTER);
+
+ /* Unfreeze keyboard */
+ XUngrabKeyboard(disp, CurrentTime);
+}
+
+void
+FocusCheckScreen(void)
+{
+ if (EQueryPointer(NULL, NULL, NULL, NULL, NULL))
+ return; /* On screen */
+
+ FocusToEWin(NULL, FOCUS_DESK_LEAVE);
+}
+
+static void
+FocusInit(void)
+{
+ /* Start focusing windows */
+ FocusEnable(1);
+
+ FocusToEWin(NULL, FOCUS_INIT);
+ FocusSet();
+
+ /* Enable window placement features */
+ Mode.place.enable_features++;
+}
+
+static void
+FocusExit(void)
+{
+}
+
+/*
+ * Focus event handlers
+ */
+
+void
+FocusHandleEnter(EWin * ewin, XEvent * ev)
+{
+ Window win = ev->xcrossing.window;
+
+ Mode.mouse_over_ewin = ewin;
+
+ if (!ewin)
+ {
+ /* Entering root may mean entering this screen */
+ if (win == WinGetXwin(VROOT) &&
+ (ev->xcrossing.mode == NotifyNormal &&
+ ev->xcrossing.detail != NotifyInferior))
+ {
+ FocusToEWin(NULL, FOCUS_DESK_ENTER);
+ return;
+ }
+ }
+
+ if (ev->xcrossing.mode == NotifyUngrab &&
+ ev->xcrossing.detail == NotifyNonlinearVirtual)
+ return;
+
+ switch (Conf.focus.mode)
+ {
+ default:
+ case MODE_FOCUS_CLICK:
+ break;
+ case MODE_FOCUS_SLOPPY:
+ if (FocusEwinValid(ewin, 1, 0, 0))
+ FocusToEWin(ewin, FOCUS_ENTER);
+ break;
+ case MODE_FOCUS_POINTER:
+ if (!ewin || FocusEwinValid(ewin, 1, 0, 0))
+ FocusToEWin(ewin, FOCUS_ENTER);
+ break;
+ }
+}
+
+void
+FocusHandleLeave(EWin * ewin __UNUSED__, XEvent * ev)
+{
+ Window win = ev->xcrossing.window;
+
+ /* Leaving root may mean entering other screen */
+ if (win == WinGetXwin(VROOT) &&
+ (ev->xcrossing.mode == NotifyNormal &&
+ ev->xcrossing.detail != NotifyInferior))
+ FocusToEWin(NULL, FOCUS_DESK_LEAVE);
+}
+
+void
+FocusHandleChange(EWin * ewin __UNUSED__, XEvent * ev __UNUSED__)
+{
+#if 0 /* Debug */
+ if (ewin == Mode.focuswin && ev->type == FocusOut)
+ Eprintf("??? Lost focus: %s\n", EwinGetTitle(ewin));
+#endif
+}
+
+void
+FocusHandleClick(EWin * ewin, Win win)
+{
+ if (Conf.focus.clickraises)
+ EwinRaise(ewin);
+
+ FocusToEWin(ewin, FOCUS_CLICK);
+
+ /* Allow click to pass thorugh */
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("FocusHandleClick %#lx %#lx\n", WinGetXwin(win),
+ EwinGetContainerXwin(ewin));
+ if (win == EwinGetContainerWin(ewin))
+ {
+ ESync(ESYNC_FOCUS);
+ XAllowEvents(disp, ReplayPointer, CurrentTime);
+ ESync(ESYNC_FOCUS);
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+static int tmp_focus;
+static char tmp_clickalways;
+static char tmp_new_focus;
+static char tmp_popup_focus;
+static char tmp_owner_popup_focus;
+static char tmp_raise_focus;
+static char tmp_warp_focus;
+static char tmp_warp_always;
+
+static char tmp_display_warp;
+static char tmp_warp_after_focus;
+static char tmp_raise_after_focus;
+static char tmp_showsticky;
+static char tmp_showshaded;
+static char tmp_showiconified;
+static char tmp_showalldesks;
+static char tmp_warpfocused;
+static int tmp_warp_icon_mode;
+
+static void
+CB_ConfigureFocus(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.focus.mode = tmp_focus;
+ Conf.focus.all_new_windows_get_focus = tmp_new_focus;
+ Conf.focus.new_transients_get_focus = tmp_popup_focus;
+ Conf.focus.new_transients_get_focus_if_group_focused =
+ tmp_owner_popup_focus;
+ Conf.focus.raise_on_next = tmp_raise_focus;
+ Conf.focus.warp_on_next = tmp_warp_focus;
+ Conf.focus.warp_always = tmp_warp_always;
+
+ Conf.warplist.enable = tmp_display_warp;
+ Conf.warplist.warp_on_select = tmp_warp_after_focus;
+ Conf.warplist.raise_on_select = tmp_raise_after_focus;
+ Conf.warplist.showsticky = tmp_showsticky;
+ Conf.warplist.showshaded = tmp_showshaded;
+ Conf.warplist.showiconified = tmp_showiconified;
+ Conf.warplist.showalldesks = tmp_showalldesks;
+ Conf.warplist.warpfocused = tmp_warpfocused;
+ Conf.warplist.icon_mode = tmp_warp_icon_mode;
+
+ Conf.focus.clickraises = tmp_clickalways;
+ ClickGrabsUpdate();
+ }
+ autosave();
+}
+
+static void
+_DlgFillFocus(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *radio, *radio2;
+
+ tmp_focus = Conf.focus.mode;
+ tmp_new_focus = Conf.focus.all_new_windows_get_focus;
+ tmp_popup_focus = Conf.focus.new_transients_get_focus;
+ tmp_owner_popup_focus = Conf.focus.new_transients_get_focus_if_group_focused;
+ tmp_raise_focus = Conf.focus.raise_on_next;
+ tmp_warp_focus = Conf.focus.warp_on_next;
+ tmp_warp_always = Conf.focus.warp_always;
+
+ tmp_raise_after_focus = Conf.warplist.raise_on_select;
+ tmp_warp_after_focus = Conf.warplist.warp_on_select;
+ tmp_display_warp = Conf.warplist.enable;
+ tmp_showsticky = Conf.warplist.showsticky;
+ tmp_showshaded = Conf.warplist.showshaded;
+ tmp_showiconified = Conf.warplist.showiconified;
+ tmp_showalldesks = Conf.warplist.showalldesks;
+ tmp_warpfocused = Conf.warplist.warpfocused;
+ tmp_warp_icon_mode = Conf.warplist.icon_mode;
+
+ tmp_clickalways = Conf.focus.clickraises;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Focus follows pointer"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Focus follows pointer sloppily"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Focus follows mouse clicks"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_focus);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Clicking in a window always raises it"));
+ DialogItemCheckButtonSetPtr(di, &tmp_clickalways);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("All new windows first get the focus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_new_focus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Only new dialog windows get the focus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_popup_focus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di,
+ _
+ ("Only new dialogs whose owner is focused get the focus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_owner_popup_focus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Raise windows while switching focus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_raise_focus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di,
+ _("Send mouse pointer to window while switching focus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_warp_focus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di,
+ _("Always send mouse pointer to window on focus switch"));
+ DialogItemCheckButtonSetPtr(di, &tmp_warp_always);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Display and use focus list"));
+ DialogItemCheckButtonSetPtr(di, &tmp_display_warp);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Include sticky windows in focus list"));
+ DialogItemCheckButtonSetPtr(di, &tmp_showsticky);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Include shaded windows in focus list"));
+ DialogItemCheckButtonSetPtr(di, &tmp_showshaded);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Include iconified windows in focus list"));
+ DialogItemCheckButtonSetPtr(di, &tmp_showiconified);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Include windows on other desks in focus list"));
+ DialogItemCheckButtonSetPtr(di, &tmp_showalldesks);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Focus windows while switching"));
+ DialogItemCheckButtonSetPtr(di, &tmp_warpfocused);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Raise windows after focus switch"));
+ DialogItemCheckButtonSetPtr(di, &tmp_raise_after_focus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Send mouse pointer to window after focus switch"));
+ DialogItemCheckButtonSetPtr(di, &tmp_warp_after_focus);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di,
+ _
+ ("Focuslist image display policy (if one operation fails, try the next):"));
+
+ radio2 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("First E Icon, then App Icon"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("First App Icon, then E Icon"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 4);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("None"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+ DialogItemRadioButtonGroupSetValPtr(radio2, &tmp_warp_icon_mode);
+}
+
+const DialogDef DlgFocus = {
+ "CONFIGURE_FOCUS",
+ N_("Focus"),
+ N_("Focus Settings"),
+ SOUND_SETTINGS_FOCUS,
+ "pix/focus.png",
+ N_("Enlightenment Focus\n" "Settings Dialog\n"),
+ _DlgFillFocus,
+ DLG_OAC, CB_ConfigureFocus,
+};
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * Focus Module
+ */
+
+static int
+FocusInitTimeout(void *data __UNUSED__)
+{
+ FocusInit();
+ return 0;
+}
+
+static void
+_FocusIdler(void *data __UNUSED__)
+{
+ if (!focus_inhibit && focus_pending_why)
+ FocusSet();
+ if (click_pending_update_grabs)
+ doClickGrabsUpdate();
+ if (focus_pending_raise)
+ FocusRaisePending();
+}
+
+static void
+FocusSighan(int sig, void *prm __UNUSED__)
+{
+ Timer *focus_init_timer;
+
+ switch (sig)
+ {
+ case ESIGNAL_START:
+ /* Delay focusing a bit to allow things to settle down */
+ IdlerAdd(_FocusIdler, NULL);
+ TIMER_ADD(focus_init_timer, 0.5, FocusInitTimeout, NULL);
+ break;
+
+ case ESIGNAL_EXIT:
+ FocusExit();
+ break;
+ }
+}
+
+static void
+FocusIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ EWin *ewin;
+
+ ewin = GetFocusEwin();
+ if (ewin)
+ IpcPrintf("Focused: %#lx\n", EwinGetClientXwin(ewin));
+ else
+ IpcPrintf("Focused: none\n");
+ }
+ else if (!strncmp(cmd, "mode", 2))
+ {
+ int mode = Conf.focus.mode;
+
+ if (!strcmp(prm, "click"))
+ {
+ mode = MODE_FOCUS_CLICK;
+ Mode.grabs.pointer_grab_active = 1;
+ }
+ else if (!strcmp(prm, "clicknograb"))
+ {
+ mode = MODE_FOCUS_CLICK;
+ Mode.grabs.pointer_grab_active = 0;
+ }
+ else if (!strcmp(prm, "pointer"))
+ {
+ mode = MODE_FOCUS_POINTER;
+ }
+ else if (!strcmp(prm, "sloppy"))
+ {
+ mode = MODE_FOCUS_SLOPPY;
+ }
+ else if (!strcmp(prm, "?"))
+ {
+ if (Conf.focus.mode == MODE_FOCUS_CLICK)
+ {
+ if (Mode.grabs.pointer_grab_active)
+ p = "click";
+ else
+ p = "clicknograb";
+ }
+ else if (Conf.focus.mode == MODE_FOCUS_SLOPPY)
+ p = "sloppy";
+ else if (Conf.focus.mode == MODE_FOCUS_POINTER)
+ p = "pointer";
+ else
+ p = "unknown";
+ IpcPrintf("Focus Mode: %s\n", p);
+ }
+ else
+ {
+ IpcPrintf("Error: unknown focus type\n");
+ }
+ if (Conf.focus.mode != mode)
+ {
+ Conf.focus.mode = mode;
+ ClickGrabsUpdate();
+ autosave();
+ }
+ }
+ else if (!strncmp(cmd, "next", 2))
+ {
+ /* Focus previously focused window */
+ if (Conf.warplist.enable)
+ WarpFocus(1);
+ else
+ FocusCycleEwin(1);
+ }
+ else if (!strncmp(cmd, "prev", 2))
+ {
+ /* Focus least recently focused window */
+ if (Conf.warplist.enable)
+ WarpFocus(-1);
+ else
+ FocusCycleEwin(-1);
+ }
+}
+
+static const IpcItem FocusIpcArray[] = {
+ {
+ FocusIpc,
+ "focus", "sf",
+ "Focus functions",
+ " focus ? Show focus info\n"
+ " focus mode Set focus mode. Modes:\n"
+ " click: The traditional click-to-focus mode.\n"
+ " clicknograb: A similar focus mode, but without the grabbing of the click\n"
+ " (you cannot click anywhere in a window to focus it)\n"
+ " pointer: The focus will follow the mouse pointer\n"
+ " sloppy: The focus follows the mouse, but when over the desktop background\n"
+ " the last window does not lose the focus\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(FocusIpcArray)/sizeof(IpcItem))
+
+static const CfgItem FocusCfgItems[] = {
+ CFG_ITEM_INT(Conf.focus, mode, MODE_FOCUS_SLOPPY),
+ CFG_ITEM_BOOL(Conf.focus, clickraises, 1),
+ CFG_ITEM_BOOL(Conf.focus, transientsfollowleader, 1),
+ CFG_ITEM_BOOL(Conf.focus, switchfortransientmap, 1),
+ CFG_ITEM_BOOL(Conf.focus, all_new_windows_get_focus, 0),
+ CFG_ITEM_BOOL(Conf.focus, new_transients_get_focus, 0),
+ CFG_ITEM_BOOL(Conf.focus, new_transients_get_focus_if_group_focused, 1),
+ CFG_ITEM_BOOL(Conf.focus, raise_on_next, 1),
+ CFG_ITEM_BOOL(Conf.focus, warp_on_next, 0),
+ CFG_ITEM_BOOL(Conf.focus, warp_always, 0),
+
+ CFG_ITEM_BOOL(Conf, autoraise.enable, 0),
+ CFG_ITEM_INT(Conf, autoraise.delay, 500),
+};
+#define N_CFG_ITEMS (sizeof(FocusCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModFocus;
+const EModule ModFocus = {
+ "focus", NULL,
+ FocusSighan,
+ {N_IPC_FUNCS, FocusIpcArray},
+ {N_CFG_ITEMS, FocusCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _FOCUS_H_
+#define _FOCUS_H_
+
+#include <X11/Xlib.h>
+
+/* focus.c */
+#define FOCUS_NOP 0
+#define FOCUS_INIT 1
+#define FOCUS_SET 2
+#define FOCUS_NONE 3
+#define FOCUS_ENTER 4
+#define FOCUS_LEAVE 5
+#define FOCUS_EWIN_NEW 6
+#define FOCUS_EWIN_UNMAP 7
+#define FOCUS_DESK_ENTER 8
+#define FOCUS_DESK_LEAVE 9
+#define FOCUS_NEXT 10
+#define FOCUS_PREV 11
+#define FOCUS_CLICK 12
+
+void FocusEnable(int on);
+void FocusToEWin(EWin * ewin, int why);
+void FocusHandleEnter(EWin * ewin, XEvent * ev);
+void FocusHandleLeave(EWin * ewin, XEvent * ev);
+void FocusHandleChange(EWin * ewin, XEvent * ev);
+void FocusHandleClick(EWin * ewin, Win win);
+void FocusNewDeskBegin(void);
+void FocusNewDesk(void);
+void FocusCheckScreen(void);
+
+void ClickGrabsUpdate(void);
+
+/* warp.c */
+void WarpFocus(int delta);
+
+#endif /* _FOCUS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "e16-ecore_list.h"
+
+typedef struct {
+ char *name;
+ char *font;
+} FontAlias;
+
+static Ecore_List *font_list = NULL;
+
+static void
+_FontAliasDestroy(void *data)
+{
+ FontAlias *fa = (FontAlias *) data;
+
+ if (!fa)
+ return;
+ Efree(fa->name);
+ Efree(fa->font);
+
+ Efree(fa);
+}
+
+static FontAlias *
+FontAliasCreate(const char *name, const char *font)
+{
+ FontAlias *fa;
+
+ fa = EMALLOC(FontAlias, 1);
+ if (!fa)
+ return NULL;
+
+ fa->name = Estrdup(name);
+ fa->font = Estrdup(font);
+
+ if (!font_list)
+ {
+ font_list = ecore_list_new();
+ ecore_list_free_cb_set(font_list, _FontAliasDestroy);
+ }
+ ecore_list_prepend(font_list, fa);
+
+ return fa;
+}
+
+static int
+_FontMatchName(const void *data, const void *match)
+{
+ return strcmp(((const FontAlias *)data)->name, (const char *)match);
+}
+
+const char *
+FontLookup(const char *name)
+{
+ FontAlias *fa;
+
+ fa = (FontAlias *) ecore_list_find(font_list, _FontMatchName, name);
+
+ return (fa) ? fa->font : NULL;
+}
+
+/*
+ * Configuration load
+ */
+
+static int
+_FontConfigLoad(FILE * fs)
+{
+ int err = 0;
+ FontAlias *fa;
+ char s[FILEPATH_LEN_MAX];
+ char s1[128], *p2;
+ int i2;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ s1[0] = '\0';
+ i2 = 0;
+ sscanf(s, "%120s %n", s1, &i2);
+ if (i2 <= 0)
+ continue;
+ p2 = s + i2;
+ if (!p2[0])
+ continue;
+ if (strncmp(s, "font-", 5))
+ continue;
+ fa = FontAliasCreate(s1, p2);
+ }
+
+ return err;
+}
+
+static int
+_FontConfigLoad1(const char *cfg, int look_in_theme_too)
+{
+ const char *path;
+
+ path = (look_in_theme_too) ? Mode.theme.path : NULL;
+
+ return ConfigFileLoad(cfg, path, _FontConfigLoad, 0);
+}
+
+void
+FontConfigLoad(void)
+{
+ /* First check explicitly specified configuration (not in theme dir) */
+ if (Conf.theme.use_alt_font_cfg && Conf.theme.font_cfg)
+ {
+ if (!_FontConfigLoad1(Conf.theme.font_cfg, 0))
+ return;
+ }
+
+ /* If using theme font is specified look for that */
+ if (Conf.theme.use_theme_font_cfg)
+ {
+ if (!_FontConfigLoad1("fonts.theme.cfg", 1))
+ return;
+ }
+
+ /* Look in user config dir (not in theme dir) */
+ _FontConfigLoad1("fonts.cfg", 0);
+
+#if USE_PANGO
+ if (!_FontConfigLoad1("fonts.pango.cfg", 1))
+ return;
+#endif
+#if USE_XFT
+ if (!_FontConfigLoad1("fonts.xft.cfg", 1))
+ return;
+#endif
+ _FontConfigLoad1("fonts.cfg", 1);
+}
+
+void
+FontConfigUnload(void)
+{
+ ecore_list_destroy(font_list);
+ font_list = NULL;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "ecompmgr.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "settings.h"
+#include "timers.h"
+#include "xwin.h"
+#include <math.h>
+
+#define E_FX_RAINDROPS 0
+#define E_FX_IMAGESPINNER 0
+
+/* FIXME - Needs cleaning up */
+
+#ifndef M_PI_2
+#define M_PI_2 (3.141592654 / 2)
+#endif
+
+#define FX_OP_START 1
+#define FX_OP_STOP 2
+#define FX_OP_TOGGLE 3
+
+typedef struct {
+ const char *name;
+ void (*init_func) (const char *name);
+ void (*desk_func) (void);
+ void (*quit_func) (void);
+ void (*pause_func) (void);
+ char enabled;
+ char paused;
+} FXHandler;
+
+#if USE_COMPOSITE
+/* As of composite 0.4 we need to set the clip region */
+#define SET_GC_CLIP(eo, gc) ECompMgrWinClipToGC(eo, gc)
+#else
+#define SET_GC_CLIP(eo, gc)
+#endif
+
+/****************************** RIPPLES *************************************/
+
+#define fx_ripple_waterh 64
+static Pixmap fx_ripple_above = None;
+static Win fx_ripple_win = NULL;
+static int fx_ripple_count = 0;
+static Timer *fx_ripple_timer = NULL;
+
+static int
+FX_ripple_timeout(void *data __UNUSED__)
+{
+ static double incv = 0, inch = 0;
+ static GC gc1 = 0, gc = 0;
+ int y;
+ EObj *bgeo;
+
+ bgeo = DeskGetBackgroundObj(DesksGetCurrent());
+
+ if (fx_ripple_above == None)
+ {
+ XGCValues gcv;
+
+ fx_ripple_win = EobjGetWin(bgeo);
+
+ fx_ripple_above =
+ ECreatePixmap(fx_ripple_win, WinGetW(VROOT),
+ fx_ripple_waterh * 2, 0);
+ if (gc)
+ EXFreeGC(gc);
+ if (gc1)
+ EXFreeGC(gc1);
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(WinGetXwin(fx_ripple_win), GCSubwindowMode, &gcv);
+ gc1 = EXCreateGC(WinGetXwin(fx_ripple_win), 0L, &gcv);
+ }
+
+ if (fx_ripple_count == 0)
+ XCopyArea(disp, WinGetXwin(fx_ripple_win), fx_ripple_above, gc, 0,
+ WinGetH(VROOT) - (fx_ripple_waterh * 3), WinGetW(VROOT),
+ fx_ripple_waterh * 2, 0, 0);
+
+ fx_ripple_count++;
+ if (fx_ripple_count > 32)
+ fx_ripple_count = 0;
+
+ incv += 0.40;
+ if (incv > (M_PI_2 * 4))
+ incv = 0;
+ inch += 0.32;
+ if (inch > (M_PI_2 * 4))
+ inch = 0;
+
+ SET_GC_CLIP(bgeo, gc1);
+
+ for (y = 0; y < fx_ripple_waterh; y++)
+ {
+ double aa, a, p;
+ int yoff, off, yy;
+
+ p = (((double)(fx_ripple_waterh - y)) / ((double)fx_ripple_waterh));
+ a = p * p * 48 + incv;
+ yoff = y + (int)(sin(a) * 7) + 1;
+ yy = (fx_ripple_waterh * 2) - yoff;
+ aa = p * p * 64 + inch;
+ off = (int)(sin(aa) * 10 * (1 - p));
+ XCopyArea(disp, fx_ripple_above, WinGetXwin(fx_ripple_win), gc1, 0, yy,
+ WinGetW(VROOT), 1, off,
+ WinGetH(VROOT) - fx_ripple_waterh + y);
+ }
+
+ return 1;
+}
+
+static void
+FX_Ripple_Init(const char *name __UNUSED__)
+{
+ fx_ripple_count = 0;
+ TIMER_ADD(fx_ripple_timer, 0.066, FX_ripple_timeout, NULL);
+}
+
+static void
+FX_Ripple_Desk(void)
+{
+ if (fx_ripple_above != None)
+ EFreePixmap(fx_ripple_above);
+ fx_ripple_count = 0;
+ fx_ripple_above = None;
+}
+
+static void
+FX_Ripple_Quit(void)
+{
+ TIMER_DEL(fx_ripple_timer);
+ EClearArea(fx_ripple_win, 0, WinGetH(VROOT) - fx_ripple_waterh,
+ WinGetW(VROOT), fx_ripple_waterh);
+}
+
+static void
+FX_Ripple_Pause(void)
+{
+ static char paused = 0;
+
+ if (!paused)
+ {
+ FX_Ripple_Quit();
+ paused = 1;
+ }
+ else
+ {
+ FX_Ripple_Init(NULL);
+ paused = 0;
+ }
+}
+
+#if E_FX_RAINDROPS
+#include "piximg.h"
+
+/****************************** RAIN DROPS **********************************/
+
+#define fx_raindrop_size 96
+#define fx_raindrop_size2 (fx_raindrop_size / 2)
+#define fx_raindrop_duration 32
+#define fx_frequency 4
+#define fx_amplitude 48
+static Win fx_raindrops_win = NULL;
+static int fx_raindrops_number = 4;
+static PixImg *fx_raindrops_draw = NULL;
+static Timer *fx_raindrops_timer = NULL;
+
+typedef struct {
+ int x, y;
+ int count;
+ PixImg *buf;
+} DropContext;
+
+static DropContext fx_raindrops[4];
+
+static int
+FX_raindrops_timeout(void *data __UNUSED__)
+{
+ static GC gc1 = 0, gc = 0;
+ int i, x, y, xx, yy;
+ int percent_done;
+ static char first = 1;
+ static char sintab[256];
+ static unsigned char disttab[fx_raindrop_size][fx_raindrop_size];
+ EObj *bgeo;
+
+ bgeo = DeskGetBackgroundObj(DesksGetCurrent());
+
+ if (fx_raindrops_win == None)
+ {
+ XGCValues gcv;
+
+ if (first)
+ {
+ int j;
+
+ first = 0;
+ for (i = 0; i < 256; i++)
+ sintab[i] =
+ (char)(sin(((double)i) * M_PI_2 * 4 / 256) * fx_amplitude);
+ for (j = 0; j < fx_raindrop_size; j++)
+ {
+ for (i = 0; i < fx_raindrop_size; i++)
+ {
+ xx = i - fx_raindrop_size2;
+ yy = j - fx_raindrop_size2;
+ disttab[i][j] =
+ (unsigned char)sqrt((double)((xx * xx) + (yy * yy)));
+ }
+ }
+ }
+
+ fx_raindrops_win = EobjGetWin(bgeo);
+
+ if (gc)
+ EXFreeGC(gc);
+ if (gc1)
+ EXFreeGC(gc1);
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(WinGetXwin(fx_raindrops_win), GCSubwindowMode, &gcv);
+ gc1 = EXCreateGC(WinGetXwin(fx_raindrops_win), 0L, &gcv);
+
+ fx_raindrops_draw =
+ ECreatePixImg(WinGetXwin(fx_raindrops_win), fx_raindrop_size,
+ fx_raindrop_size);
+ if (!fx_raindrops_draw)
+ return 0;
+
+ for (i = 0; i < fx_raindrops_number; i++)
+ {
+ fx_raindrops[i].buf =
+ ECreatePixImg(WinGetXwin(fx_raindrops_win), fx_raindrop_size,
+ fx_raindrop_size);
+ if (fx_raindrops[i].buf)
+ XShmGetImage(disp, WinGetXwin(fx_raindrops_win),
+ fx_raindrops[i].buf->xim, fx_raindrops[i].x,
+ fx_raindrops[i].y, 0xffffffff);
+ if (!fx_raindrops[i].buf)
+ return 0;
+ }
+ }
+
+ SET_GC_CLIP(bgeo, gc1);
+
+ for (i = 0; i < fx_raindrops_number; i++)
+ {
+ fx_raindrops[i].count++;
+ if (fx_raindrops[i].count == fx_raindrop_duration)
+ {
+ int j, count = 0;
+ char intersect = 1;
+
+ EClearArea(fx_raindrops_win, fx_raindrops[i].x,
+ fx_raindrops[i].y, fx_raindrop_size, fx_raindrop_size);
+ fx_raindrops[i].count = 0;
+ while (intersect)
+ {
+ count++;
+ if (count > 10240)
+ break;
+ intersect = 0;
+ for (j = 0; j < fx_raindrops_number; j++)
+ {
+ fx_raindrops[i].x =
+ rand() % (WinGetW(VROOT) - fx_raindrop_size);
+ fx_raindrops[i].y =
+ rand() % (WinGetH(VROOT) - fx_raindrop_size);
+ if (fx_raindrops[i].x < 0)
+ fx_raindrops[i].x = 0;
+ else if (fx_raindrops[i].x >
+ (WinGetW(VROOT) - fx_raindrop_size))
+ fx_raindrops[i].x = WinGetW(VROOT) - fx_raindrop_size;
+ if (fx_raindrops[i].y < 0)
+ fx_raindrops[i].y = 0;
+ else if (fx_raindrops[i].y >
+ (WinGetH(VROOT) - fx_raindrop_size))
+ fx_raindrops[i].y = WinGetH(VROOT) - fx_raindrop_size;
+ if (i != j)
+ {
+ if (((fx_raindrops[i].x >= fx_raindrops[j].x)
+ && (fx_raindrops[i].x <
+ fx_raindrops[j].x + fx_raindrop_size)
+ && (fx_raindrops[i].y >= fx_raindrops[j].y)
+ && (fx_raindrops[i].y <
+ fx_raindrops[j].y + fx_raindrop_size))
+ ||
+ ((fx_raindrops
+ [i].x + fx_raindrop_size >= fx_raindrops[j].x)
+ && (fx_raindrops[i].x + fx_raindrop_size <
+ fx_raindrops[j].x + fx_raindrop_size)
+ && (fx_raindrops[i].y >= fx_raindrops[j].y)
+ && (fx_raindrops[i].y <
+ fx_raindrops[j].y + fx_raindrop_size))
+ || ((fx_raindrops[i].x >= fx_raindrops[j].x)
+ && (fx_raindrops[i].x <
+ fx_raindrops[j].x + fx_raindrop_size)
+ && (fx_raindrops[i].y + fx_raindrop_size >=
+ fx_raindrops[j].y)
+ && (fx_raindrops[i].y + fx_raindrop_size <
+ fx_raindrops[j].y + fx_raindrop_size))
+ ||
+ ((fx_raindrops
+ [i].x + fx_raindrop_size >= fx_raindrops[j].x)
+ && (fx_raindrops[i].x + fx_raindrop_size <
+ fx_raindrops[j].x + fx_raindrop_size)
+ && (fx_raindrops[i].y + fx_raindrop_size >=
+ fx_raindrops[j].y)
+ && (fx_raindrops[i].y + fx_raindrop_size <
+ fx_raindrops[j].y + fx_raindrop_size)))
+ intersect = 1;
+ }
+ }
+ }
+ XShmGetImage(disp, WinGetXwin(fx_raindrops_win),
+ fx_raindrops[i].buf->xim,
+ fx_raindrops[i].x, fx_raindrops[i].y, 0xffffffff);
+ }
+ percent_done =
+ 1 + ((fx_raindrops[i].count << 8) / fx_raindrop_duration);
+ for (y = 0; y < fx_raindrop_size; y++)
+ {
+ for (x = 0; x < fx_raindrop_size; x++)
+ {
+ int dist;
+
+ dist = disttab[x][y];
+ if (dist > fx_raindrop_size2)
+ XPutPixel(fx_raindrops_draw->xim, x, y,
+ XGetPixel(fx_raindrops[i].buf->xim, x, y));
+ else
+ {
+ int percent;
+
+ percent = 1 + ((dist << 8) / fx_raindrop_size2);
+ if (percent > percent_done)
+ XPutPixel(fx_raindrops_draw->xim, x, y,
+ XGetPixel(fx_raindrops[i].buf->xim, x, y));
+ else
+ {
+ int varx, vary;
+ int phase, divisor, multiplier;
+
+ phase =
+ ((percent - percent_done) * fx_frequency) & 0xff;
+ xx = x - fx_raindrop_size2;
+ yy = y - fx_raindrop_size2;
+ divisor = 1 + (dist << 8);
+ multiplier =
+ (int)sintab[phase] * (256 - percent_done);
+ varx = ((-xx) * multiplier) / divisor;
+ vary = ((-yy) * multiplier) / divisor;
+ xx = x + varx;
+ yy = y + vary;
+ if (xx < 0)
+ xx = 0;
+ else if (xx >= fx_raindrop_size)
+ xx = fx_raindrop_size - 1;
+ if (yy < 0)
+ yy = 0;
+ else if (yy >= fx_raindrop_size)
+ yy = fx_raindrop_size - 1;
+ XPutPixel(fx_raindrops_draw->xim, x, y,
+ XGetPixel(fx_raindrops[i].buf->xim, xx,
+ yy));
+ }
+ }
+ }
+ }
+ XShmPutImage(disp, WinGetXwin(fx_raindrops_win), gc1,
+ fx_raindrops_draw->xim, 0, 0,
+ fx_raindrops[i].x, fx_raindrops[i].y, fx_raindrop_size,
+ fx_raindrop_size, False);
+ ESync(0);
+ }
+
+ return 1;
+}
+
+static void
+FX_Raindrops_Init(const char *name __UNUSED__)
+{
+ int i;
+
+ fx_raindrops_win = None;
+ for (i = 0; i < fx_raindrops_number; i++)
+ {
+ fx_raindrops[i].count = rand() % fx_raindrop_duration;
+ fx_raindrops[i].x = rand() % (WinGetW(VROOT) - fx_raindrop_size);
+ fx_raindrops[i].y = rand() % (WinGetH(VROOT) - fx_raindrop_size);
+ }
+ TIMER_ADD(fx_raindrops_timer, 0.066, FX_raindrops_timeout, NULL);
+}
+
+static void
+FX_Raindrops_Desk(void)
+{
+ fx_raindrops_win = None;
+}
+
+static void
+FX_Raindrops_Quit(void)
+{
+ int i;
+
+ TIMER_DEL(fx_raindrops_timer);
+ for (i = 0; i < fx_raindrops_number; i++)
+ {
+ EClearArea(fx_raindrops_win, fx_raindrops[i].x, fx_raindrops[i].y,
+ fx_raindrop_size, fx_raindrop_size);
+ if (fx_raindrops[i].buf)
+ EDestroyPixImg(fx_raindrops[i].buf);
+ fx_raindrops[i].buf = NULL;
+ }
+ if (fx_raindrops_draw)
+ EDestroyPixImg(fx_raindrops_draw);
+ fx_raindrops_draw = NULL;
+ fx_raindrops_win = None;
+}
+
+static void
+FX_Raindrops_Pause(void)
+{
+ static char paused = 0;
+
+ if (!paused)
+ {
+ FX_Raindrops_Quit();
+ paused = 1;
+ }
+ else
+ {
+ FX_Raindrops_Init(NULL);
+ paused = 0;
+ }
+}
+
+#endif /* E_FX_RAINDROPS */
+
+/****************************** WAVES ***************************************/
+/* by tsade :) */
+/****************************************************************************/
+
+#define FX_WAVE_WATERH 64
+#define FX_WAVE_WATERW 64
+#define FX_WAVE_DEPTH 10
+#define FX_WAVE_GRABH (FX_WAVE_WATERH + FX_WAVE_DEPTH)
+#define FX_WAVE_CROSSPERIOD 0.42
+static Pixmap fx_wave_above = None;
+static Win fx_wave_win = NULL;
+static int fx_wave_count = 0;
+static Timer *fx_wave_timer = NULL;
+
+static int
+FX_Wave_timeout(void *data __UNUSED__)
+{
+ /* Variables */
+ static double incv = 0, inch = 0;
+ static double incx = 0;
+ double incx2;
+ static GC gc1 = 0, gc = 0;
+ int y;
+ EObj *bgeo;
+
+ bgeo = DeskGetBackgroundObj(DesksGetCurrent());
+
+ /* Check to see if we need to create stuff */
+ if (!fx_wave_above)
+ {
+ XGCValues gcv;
+
+ fx_wave_win = EobjGetWin(bgeo);
+
+ fx_wave_above =
+ ECreatePixmap(fx_wave_win, WinGetW(VROOT), FX_WAVE_WATERH * 2, 0);
+ if (gc)
+ EXFreeGC(gc);
+ if (gc1)
+ EXFreeGC(gc1);
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(WinGetXwin(fx_wave_win), GCSubwindowMode, &gcv);
+ gc1 = EXCreateGC(WinGetXwin(fx_wave_win), 0L, &gcv);
+ }
+
+ /* On the zero, grab the desktop again. */
+ if (fx_wave_count == 0)
+ {
+ XCopyArea(disp, WinGetXwin(fx_wave_win), fx_wave_above, gc, 0,
+ WinGetH(VROOT) - (FX_WAVE_WATERH * 3), WinGetW(VROOT),
+ FX_WAVE_WATERH * 2, 0, 0);
+ }
+
+ /* Increment and roll the counter */
+ fx_wave_count++;
+ if (fx_wave_count > 32)
+ fx_wave_count = 0;
+
+ /* Increment and roll some other variables */
+ incv += 0.40;
+ if (incv > (M_PI_2 * 4))
+ incv = 0;
+
+ inch += 0.32;
+ if (inch > (M_PI_2 * 4))
+ inch = 0;
+
+ incx += 0.32;
+ if (incx > (M_PI_2 * 4))
+ incx = 0;
+
+ SET_GC_CLIP(bgeo, gc1);
+
+ /* Copy the area to correct bugs */
+ if (fx_wave_count == 0)
+ {
+ XCopyArea(disp, fx_wave_above, WinGetXwin(fx_wave_win), gc1, 0,
+ WinGetH(VROOT) - FX_WAVE_GRABH, WinGetW(VROOT),
+ FX_WAVE_DEPTH * 2, 0, WinGetH(VROOT) - FX_WAVE_GRABH);
+ }
+
+ /* Go through the bottom couple (FX_WAVE_WATERH) lines of the window */
+ for (y = 0; y < FX_WAVE_WATERH; y++)
+ {
+ /* Variables */
+ double aa, a, p;
+ int yoff, off, yy;
+ int x;
+
+ /* Figure out the side-to-side movement */
+ p = (((double)(FX_WAVE_WATERH - y)) / ((double)FX_WAVE_WATERH));
+ a = p * p * 48 + incv;
+ yoff = y + (int)(sin(a) * 7) + 1;
+ yy = (FX_WAVE_WATERH * 2) - yoff;
+ aa = p * p * FX_WAVE_WATERH + inch;
+ off = (int)(sin(aa) * 10 * (1 - p));
+
+ /* Set up the next part */
+ incx2 = incx;
+
+ /* Go through the width of the screen, in block sizes */
+ for (x = 0; x < WinGetW(VROOT); x += FX_WAVE_WATERW)
+ {
+ /* Variables */
+ int sx;
+
+ /* Add something to incx2 and roll it */
+ incx2 += FX_WAVE_CROSSPERIOD;
+
+ if (incx2 > (M_PI_2 * 4))
+ incx2 = 0;
+
+ /* Figure it out */
+ sx = (int)(sin(incx2) * FX_WAVE_DEPTH);
+
+ /* Display this block */
+ XCopyArea(disp, fx_wave_above, WinGetXwin(fx_wave_win), gc1, x, yy, /* x, y */
+ FX_WAVE_WATERW, 1, /* w, h */
+ off + x, WinGetH(VROOT) - FX_WAVE_WATERH + y + sx /* dx, dy */
+ );
+ }
+ }
+
+ return 1;
+}
+
+static void
+FX_Waves_Init(const char *name __UNUSED__)
+{
+ fx_wave_count = 0;
+ TIMER_ADD(fx_wave_timer, 0.066, FX_Wave_timeout, NULL);
+}
+
+static void
+FX_Waves_Desk(void)
+{
+ EFreePixmap(fx_wave_above);
+ fx_wave_count = 0;
+ fx_wave_above = 0;
+}
+
+static void
+FX_Waves_Quit(void)
+{
+ TIMER_DEL(fx_wave_timer);
+ EClearArea(fx_wave_win, 0, WinGetH(VROOT) - FX_WAVE_WATERH,
+ WinGetW(VROOT), FX_WAVE_WATERH);
+}
+
+static void
+FX_Waves_Pause(void)
+{
+ static char paused = 0;
+
+ if (!paused)
+ {
+ FX_Waves_Quit();
+ paused = 1;
+ }
+ else
+ {
+ FX_Waves_Init(NULL);
+ paused = 0;
+ }
+}
+
+#if E_FX_IMAGESPINNER
+
+/****************************** IMAGESPINNER ********************************/
+
+static Win fx_imagespinner_win = NULL;
+static int fx_imagespinner_count = 3;
+static char *fx_imagespinner_params = NULL;
+static Timer *fx_imagespinner_timer = NULL;
+
+static int
+FX_imagespinner_timeout(void *data __UNUSED__)
+{
+ char *string = NULL;
+ EObj *bgeo;
+
+ if (fx_imagespinner_win == None)
+ {
+ bgeo = DeskGetBackgroundObj(DesksGetCurrent());
+ fx_imagespinner_win = EobjGetWin(bgeo);
+ }
+
+#if 0 /* Don't use getword */
+/* do stuff here */
+ string = getword(fx_imagespinner_params, fx_imagespinner_count);
+ if (!string)
+ {
+ fx_imagespinner_count = 3;
+ string = getword(fx_imagespinner_params, fx_imagespinner_count);
+ }
+#endif
+
+ fx_imagespinner_count++;
+ if (string)
+ {
+ EImage *im;
+
+ im = ThemeImageLoad(string);
+ if (im)
+ {
+ int x, y, w, h;
+
+ EImageGetSize(im, &w, &h);
+ sscanf(fx_imagespinner_params, "%*s %i %i ", &x, &y);
+ x = ((WinGetW(VROOT) * x) >> 10) - ((w * x) >> 10);
+ y = ((WinGetH(VROOT) * y) >> 10) - ((h * y) >> 10);
+ EImageRenderOnDrawable(im, fx_imagespinner_win, None, 0,
+ x, y, w, h);
+ EImageFree(im);
+ }
+ Efree(string);
+ }
+
+ return 1;
+}
+
+static void
+FX_ImageSpinner_Init(const char *name)
+{
+ fx_imagespinner_count = 3;
+ TIMER_ADD(fx_imagespinner_timer, 0.066, FX_imagespinner_timeout, NULL);
+ fx_imagespinner_params = Estrdup(name);
+}
+
+static void
+FX_ImageSpinner_Desk(void)
+{
+ EObj *bgeo;
+
+ bgeo = DeskGetBackgroundObj(DesksGetCurrent());
+ fx_imagespinner_win = EobjGetWin(bgeo);
+}
+
+static void
+FX_ImageSpinner_Quit(void)
+{
+ TIMER_DEL(fx_imagespinner_timer);
+ EClearArea(fx_imagespinner_win, 0, 0, WinGetW(VROOT), WinGetH(VROOT));
+ Efree(fx_imagespinner_params);
+ fx_imagespinner_params = NULL;
+ fx_imagespinner_win = None;
+}
+
+static void
+FX_ImageSpinner_Pause(void)
+{
+ static char paused = 0;
+
+ if (!paused)
+ {
+ FX_ImageSpinner_Quit();
+ paused = 1;
+ }
+ else
+ {
+ FX_ImageSpinner_Init(NULL);
+ paused = 0;
+ }
+}
+
+#endif /* E_FX_IMAGESPINNER */
+
+/****************************************************************************/
+
+static FXHandler fx_handlers[] = {
+ {"ripples",
+ FX_Ripple_Init, FX_Ripple_Desk, FX_Ripple_Quit, FX_Ripple_Pause,
+ 0, 0},
+ {"waves",
+ FX_Waves_Init, FX_Waves_Desk, FX_Waves_Quit, FX_Waves_Pause,
+ 0, 0},
+#if E_FX_RAINDROPS /* FIXME */
+ {"raindrops",
+ FX_Raindrops_Init, FX_Raindrops_Desk, FX_Raindrops_Quit,
+ FX_Raindrops_Pause,
+ 0, 0},
+#endif
+#if E_FX_IMAGESPINNER
+ {"imagespinner",
+ FX_ImageSpinner_Init, FX_ImageSpinner_Desk, FX_ImageSpinner_Quit,
+ FX_ImageSpinner_Pause,
+ 0, 0},
+#endif
+};
+#define N_FX_HANDLERS (sizeof(fx_handlers)/sizeof(FXHandler))
+
+/****************************** Effect handlers *****************************/
+
+static FXHandler *
+FX_Find(const char *name)
+{
+ unsigned int i;
+
+ for (i = 0; i < N_FX_HANDLERS; i++)
+ if (!strcmp(fx_handlers[i].name, name))
+ return &fx_handlers[i];
+
+ return NULL;
+}
+
+static void
+FX_Op(const char *name, int fx_op)
+{
+ FXHandler *fxh;
+
+ fxh = FX_Find(name);
+ if (fxh == NULL)
+ return;
+
+ switch (fx_op)
+ {
+ case FX_OP_START:
+ if (fxh->enabled)
+ break;
+ do_start:
+ if (fxh->init_func)
+ fxh->init_func(name);
+ fxh->enabled = 1;
+ break;
+
+ case FX_OP_STOP:
+ if (!fxh->enabled)
+ break;
+ do_stop:
+ if (fxh->quit_func)
+ fxh->quit_func();
+ fxh->enabled = 0;
+ break;
+
+ case FX_OP_TOGGLE:
+ if (fxh->enabled)
+ goto do_stop;
+ else
+ goto do_start;
+ }
+}
+
+static void
+FX_DeskChange(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < N_FX_HANDLERS; i++)
+ {
+ if (fx_handlers[i].enabled)
+ {
+ if (fx_handlers[i].desk_func)
+ fx_handlers[i].desk_func();
+ }
+ }
+}
+
+static void
+FX_Pause(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < N_FX_HANDLERS; i++)
+ {
+ if (fx_handlers[i].enabled)
+ {
+ if (fx_handlers[i].paused)
+ {
+ if (fx_handlers[i].pause_func)
+ fx_handlers[i].pause_func();
+ fx_handlers[i].paused = 1;
+ }
+ else
+ {
+ if (fx_handlers[i].pause_func)
+ fx_handlers[i].pause_func();
+ fx_handlers[i].paused = 0;
+ }
+ }
+ }
+}
+
+static void
+FX_StartAll(void)
+{
+ unsigned int i;
+ FXHandler *fxh;
+
+ for (i = 0; i < N_FX_HANDLERS; i++)
+ {
+ fxh = &fx_handlers[i];
+ if (fxh->enabled && fxh->init_func)
+ fxh->init_func(fxh->name);
+ }
+}
+
+static int
+FX_IsOn(const char *effect)
+{
+ unsigned int i;
+
+ for (i = 0; i < N_FX_HANDLERS; i++)
+ {
+ if (!strcmp(fx_handlers[i].name, effect))
+ {
+ return fx_handlers[i].enabled;
+ }
+ }
+ return 0;
+}
+
+/****************************************************************************/
+
+/*
+ * Fx Module
+ */
+
+static void
+FxSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_START:
+ FX_StartAll();
+ break;
+ case ESIGNAL_AREA_SWITCH_START:
+ case ESIGNAL_DESK_SWITCH_START:
+ break;
+ case ESIGNAL_AREA_SWITCH_DONE:
+ case ESIGNAL_DESK_SWITCH_DONE:
+ FX_DeskChange();
+ break;
+ case ESIGNAL_ANIMATION_SUSPEND:
+ case ESIGNAL_ANIMATION_RESUME:
+ FX_Pause();
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+static char tmp_effect_raindrops;
+static char tmp_effect_ripples;
+static char tmp_effect_waves;
+
+static void
+CB_ConfigureFX(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ FX_Op("raindrops", tmp_effect_raindrops ? FX_OP_START : FX_OP_STOP);
+ FX_Op("ripples", tmp_effect_ripples ? FX_OP_START : FX_OP_STOP);
+ FX_Op("waves", tmp_effect_waves ? FX_OP_START : FX_OP_STOP);
+ }
+ autosave();
+}
+
+static void
+_DlgFillFx(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_effect_raindrops = FX_IsOn("raindrops");
+ tmp_effect_ripples = FX_IsOn("ripples");
+ tmp_effect_waves = FX_IsOn("waves");
+
+ DialogItemTableSetOptions(table, 1, 0, 0, 0);
+
+ /* Effects */
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, _("Effects"));
+#if 0 /* Disabled */
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Enable Effect: Raindrops"));
+ DialogItemCheckButtonSetPtr(di, &tmp_effect_raindrops);
+#endif
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Ripples"));
+ DialogItemCheckButtonSetPtr(di, &tmp_effect_ripples);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetText(di, _("Waves"));
+ DialogItemCheckButtonSetPtr(di, &tmp_effect_waves);
+}
+
+const DialogDef DlgFx = {
+ "CONFIGURE_FX",
+ N_("FX"),
+ N_("Special FX Settings"),
+ SOUND_SETTINGS_FX,
+ "pix/fx.png",
+ N_("Enlightenment Special Effects\n" "Settings Dialog\n"),
+ _DlgFillFx,
+ DLG_OAC, CB_ConfigureFX,
+};
+#endif /* ENABLE_DIALOGS */
+
+static void
+FxIpc(const char *params)
+{
+ char word1[1024];
+ char word2[1024];
+
+ if (!params)
+ return;
+
+ word1[0] = word2[0] = '\0';
+ sscanf(params, "%1000s %1000s", word1, word2);
+
+ if (!strcmp(word1, "raindrops") || !strcmp(word1, "ripples") ||
+ !strcmp(word1, "waves"))
+ {
+ if (!strcmp(word2, ""))
+ FX_Op(word1, FX_OP_TOGGLE);
+ else if (!strcmp(word2, "on"))
+ FX_Op(word1, FX_OP_START);
+ else if (!strcmp(word2, "off"))
+ FX_Op(word1, FX_OP_STOP);
+ else if (!strcmp(word2, "?"))
+ IpcPrintf("%s: %s", word1, FX_IsOn(word1) ? "on" : "off");
+ else
+ IpcPrintf("Error: unknown mode specified");
+ }
+}
+
+static const IpcItem FxIpcArray[] = {
+ {
+ FxIpc,
+ "fx", "fx",
+ "Toggle various effects on/off",
+ " fx <effect> <mode> Set the mode of a particular effect\n"
+ " fx <effect> ?\" Get the current mode\n"
+ "the following effects are available\n"
+ " ripples <on/off> (ripples that act as a water effect on the screen)\n"
+ " waves <on/off> (waves that act as a water effect on the screen)\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(FxIpcArray)/sizeof(IpcItem))
+
+static const CfgItem FxCfgItems[] = {
+ CFR_ITEM_BOOL(fx_handlers[0].enabled, ripples.enabled, 0),
+ CFR_ITEM_BOOL(fx_handlers[1].enabled, waves.enabled, 0),
+#if E_FX_RAINDROPS /* FIXME */
+ CFR_ITEM_BOOL(fx_handlers[2].enabled, raindrops.enabled, 0),
+#endif
+};
+#define N_CFG_ITEMS (sizeof(FxCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModEffects;
+const EModule ModEffects = {
+ "effects", "efx",
+ FxSighan,
+ {N_IPC_FUNCS, FxIpcArray},
+ {N_CFG_ITEMS, FxCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "cursors.h"
+#include "desktops.h"
+#include "eimage.h"
+#include "eglx.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "events.h"
+#include "ewins.h"
+#include "grabs.h"
+#include "timers.h"
+#include "util.h"
+
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+#include <GL/glx.h>
+#include <X11/keysym.h>
+
+#define ENABLE_DEBUG 1
+#if ENABLE_DEBUG
+#define Dprintf(fmt...) do { if(EDebug(EDBUG_TYPE_GLX))Eprintf(fmt); } while(0)
+#define D2printf(fmt...) do { if(EDebug(EDBUG_TYPE_GLX)>1)Eprintf(fmt); } while(0)
+#else
+#define Dprintf(fmt...)
+#define D2printf(fmt...)
+#endif /* ENABLE_DEBUG */
+
+static struct {
+ char mode;
+} Conf_glwin;
+
+static struct {
+ char active;
+} Mode_glwin;
+
+typedef struct {
+ EObj *eo;
+ char grabbing;
+ EWin *ewin;
+} GLWindow;
+
+static void GlwinExit(void);
+
+static GLWindow GLWin;
+static const char *image = "pix/about.png";
+
+static char light; /* Lighting on/off */
+static GLfloat rot_x; /* X rotation */
+static GLfloat rot_y; /* Y rotation */
+static GLfloat speed_x; /* X rotation speed */
+static GLfloat speed_y; /* Y rotation speed */
+static GLfloat bg_z; /* Background z */
+static double t0, tn;
+
+#define N_TEXTURES 5
+static unsigned int sel_bg;
+static unsigned int filter;
+static ETexture *texture[N_TEXTURES];
+static int sel_ewin;
+
+static double
+GetDTime(void)
+{
+ double t, dt;
+
+ t = GetTime();
+ dt = t - t0;
+
+ return dt;
+}
+
+static void
+TexturesLoad(void)
+{
+ EImage *im;
+
+ /* Texture 0 - None */
+ texture[0] = NULL;
+
+ if (!texture[1])
+ {
+ im = ThemeImageLoad(image);
+ if (!im)
+ {
+ Eprintf("Could not load: %s\n", image);
+ }
+ else
+ {
+ /* Texture 1 - Filter: None */
+ texture[1] = EGlTextureFromImage(im, 0);
+
+ /* Texture 2 - Filter: Linear */
+ texture[2] = EGlTextureFromImage(im, 1);
+
+ /* Texture 3 - Mipmap */
+ texture[3] = EGlTextureFromImage(im, 2);
+
+ EImageFree(im);
+ }
+ }
+
+ if (!texture[4])
+ {
+ /* Texture 4 - BG pixmap */
+ texture[4] =
+ EGlTextureFromDrawable(DeskGetBackgroundPixmap(DesksGetCurrent()),
+ 0);
+ }
+}
+
+static void
+SceneResize(unsigned int width, unsigned int height)
+{
+ Dprintf("SceneResize\n");
+
+ glViewport(0, 0, width, height);
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+ glOrtho(0, width, 0, height, -1000.f, 1000.f);
+ glMatrixMode(GL_MODELVIEW);
+}
+
+static GLfloat light_ambient[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+static GLfloat light_diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+static GLfloat light_position[] = { 0.0f, 0.0f, 2.0f, 1.0f };
+
+static void
+SceneInitLight(void)
+{
+ glLightfv(GL_LIGHT1, GL_AMBIENT, light_ambient);
+ glLightfv(GL_LIGHT1, GL_DIFFUSE, light_diffuse);
+ glLightfv(GL_LIGHT1, GL_POSITION, light_position);
+ glEnable(GL_LIGHT1);
+}
+
+#define L 0.0f
+#define R 1.0f
+#define T 0.0f
+#define B 1.0f
+
+static void
+DrawBackground(ETexture * et, GLfloat w, GLfloat h)
+{
+ if (!et)
+ return;
+
+ glBindTexture(et->target, et->texture);
+
+ glBegin(GL_QUADS);
+ glNormal3f(0.0f, 0.0f, 1.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(0, 0, bg_z);
+ glTexCoord2f(L, T);
+ glVertex3f(0, h, bg_z);
+ glTexCoord2f(R, T);
+ glVertex3f(w, h, bg_z);
+ glTexCoord2f(R, B);
+ glVertex3f(w, 0, bg_z);
+ glEnd();
+}
+
+static void
+DrawQube(ETexture * et, GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h,
+ GLfloat rx, GLfloat ry)
+{
+ GLfloat w2, h2, t;
+
+ if (!et)
+ return;
+
+ glBindTexture(et->target, et->texture);
+
+ switch (filter)
+ {
+ default:
+ case 0:
+ glTexParameteri(et->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ glTexParameteri(et->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ break;
+ case 1:
+ glTexParameteri(et->target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ glTexParameteri(et->target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ break;
+ }
+
+ glPushMatrix();
+
+#if 0
+ x = round(x);
+ y = round(y);
+#endif
+
+ glTranslatef(x, y, z);
+#if 0
+ glScalef(sz, sz, sz);
+#endif
+ glRotatef(rx, 1.0f, 0.0f, 0.0f); /* Rotate around X axis */
+ glRotatef(ry, 0.0f, 1.0f, 0.0f); /* Rotate around Y axis */
+
+ t = 4.0f;
+ w2 = round(w / 2.f);
+ h2 = round(h / 2.f);
+
+ glBegin(GL_QUADS);
+#if 1
+ /* Front */
+ glNormal3f(0.0f, 0.0f, 1.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(-w2, -h2, t);
+ glTexCoord2f(R, B);
+ glVertex3f(w2, -h2, t);
+ glTexCoord2f(R, T);
+ glVertex3f(w2, h2, t);
+ glTexCoord2f(L, T);
+ glVertex3f(-w2, h2, t);
+#endif
+#if 1
+ /* Back */
+ glNormal3f(0.0f, 0.0f, 1.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(w2, -h2, -t);
+ glTexCoord2f(R, B);
+ glVertex3f(-w2, -h2, -t);
+ glTexCoord2f(R, T);
+ glVertex3f(-w2, h2, -t);
+ glTexCoord2f(L, T);
+ glVertex3f(w2, h2, -t);
+#endif
+#if 1
+ /* Right */
+ glNormal3f(1.0f, 0.0f, 0.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(w2, -h2, t);
+ glTexCoord2f(R, B);
+ glVertex3f(w2, -h2, -t);
+ glTexCoord2f(R, T);
+ glVertex3f(w2, h2, -t);
+ glTexCoord2f(L, T);
+ glVertex3f(w2, h2, t);
+#endif
+#if 1
+ /* Left */
+ glNormal3f(-1.0f, 0.0f, 0.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(-w2, -h2, -t);
+ glTexCoord2f(R, B);
+ glVertex3f(-w2, -h2, t);
+ glTexCoord2f(R, T);
+ glVertex3f(-w2, h2, t);
+ glTexCoord2f(L, T);
+ glVertex3f(-w2, h2, -t);
+#endif
+#if 1
+ /* Top */
+ glNormal3f(0.0f, 1.0f, 0.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(w2, h2, t);
+ glTexCoord2f(R, B);
+ glVertex3f(w2, h2, -t);
+ glTexCoord2f(R, T);
+ glVertex3f(-w2, h2, -t);
+ glTexCoord2f(L, T);
+ glVertex3f(-w2, h2, t);
+#endif
+#if 1
+ /* Bottom */
+ glNormal3f(0.0f, -1.0f, 0.0f);
+ glTexCoord2f(L, B);
+ glVertex3f(w2, -h2, -t);
+ glTexCoord2f(R, B);
+ glVertex3f(w2, -h2, t);
+ glTexCoord2f(R, T);
+ glVertex3f(-w2, -h2, t);
+ glTexCoord2f(L, T);
+ glVertex3f(-w2, -h2, -t);
+#endif
+ glEnd();
+
+ glPopMatrix();
+}
+
+static void
+SceneDraw2(double t, EWin ** ewins, int num)
+{
+ int i, j, k, nx, ny;
+ GLfloat x, y, w, h, dx, dy, sz;
+ EObj *eo;
+
+ w = EobjGetW(GLWin.eo);
+ h = EobjGetH(GLWin.eo);
+ w = (3 * w) / 4;
+
+ DrawBackground(texture[sel_bg], w, h);
+
+ i = sqrt(w * h / (1.0 * num));
+ nx = (w + i - 1) / i;
+ if (nx <= 0)
+ nx = 1;
+ ny = (num + nx - 1) / nx;
+ if (ny <= 0)
+ ny = 1;
+#if 0
+ Eprintf("wxh=%fx%f num=%d nx,ny=%d,%d\n", w, h, num, nx, ny);
+#endif
+ w = EobjGetW(GLWin.eo) / nx;
+ h = EobjGetH(GLWin.eo) / ny;
+
+ k = 0;
+ for (j = 0; j < ny; j++)
+ {
+ for (i = 0; i < nx; i++)
+ {
+ if (k >= num)
+ break;
+ x = i * w;
+ y = j * h;
+ eo = EoObj(ewins[k]);
+ dx = 100.0f * exp(-t);
+ dx = (fabs(dx) < 1.0) ? 0. : dx * sin(5. * t);
+ dy = 100.0f * exp(-t);
+ dy = (fabs(dy) < 1.0) ? 0. : dy * cos(5. * t);
+ sz = (k == sel_ewin) ? 0.6f : 0.5f;
+ DrawQube(EobjGetTexture(eo),
+ dx + (0.5f + i) * w, dy + (0.5f + j) * h, 500.0f,
+ sz * EobjGetW(eo), sz * EobjGetH(eo), rot_x, rot_y);
+#if 1
+ if (k == sel_ewin)
+ {
+ glColor3f(1., 0., 0.);
+ glRectf(x, y, x + w, y + h);
+#define X0 x
+#define Y0 y
+#define W w
+#define H h
+ glLineWidth(2.);
+ glColor3f(0., 1., 0.);
+ glBegin(GL_LINE_LOOP);
+ glVertex3f(X0, Y0, 0);
+ glVertex3f(X0 + W, Y0, 0);
+ glVertex3f(X0 + W, Y0 + H, 0);
+ glVertex3f(X0, Y0 + H, 0);
+ glEnd();
+ glColor4f(1., 1., 1., 1.);
+ }
+#endif
+ k++;
+ }
+ }
+}
+
+static void
+SceneDraw1(double t, EWin ** ewins, int num)
+{
+ double t1, arg;
+ int i;
+ GLfloat w, h, dx, dy, sz;
+ EObj *eo;
+
+ w = EobjGetW(GLWin.eo);
+ h = EobjGetH(GLWin.eo);
+
+ t1 = 2 * M_PI * (-exp(-(20. * (t - tn))) / num);
+
+ DrawBackground(texture[sel_bg], w, h);
+
+ for (i = 0; i < num; i++)
+ {
+ arg = t1 + M_PI / 2. - (i - sel_ewin) * 2. * M_PI / num;
+ dx = (.5 + .3 * cos(arg)) * w;
+ dy = (.5 - .3 * sin(arg)) * h;
+
+ eo = EoObj(ewins[i]);
+ if (i == sel_ewin)
+ sz = 0.5 + .01 * cos(10. * (t - tn));
+ else
+ sz = 0.3;
+ DrawQube(EobjGetTexture(eo), dx, dy, 500.0,
+ sz * EobjGetW(eo), sz * EobjGetH(eo), rot_x, rot_y);
+ }
+}
+
+static EWin **
+GlwinEwins(int *pnum)
+{
+ int i, j, num;
+ EWin *const *ewins;
+ EWin **lst, *ewin;
+
+ ewins = EwinListGetAll(&num);
+ lst = EMALLOC(EWin *, num);
+
+ for (i = j = 0; i < num; i++)
+ {
+ ewin = ewins[i];
+ if (!EoIsShown(ewin))
+ continue;
+ if (ewin->props.skip_focuslist || ewin->props.skip_ext_task)
+ continue;
+ lst[j++] = ewin;
+ }
+ *pnum = j;
+
+ return lst;
+}
+
+static void
+SceneDraw(void)
+{
+ double t;
+ EWin **ewins;
+ int num;
+
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ glLoadIdentity();
+
+ t = GetDTime();
+
+ ewins = GlwinEwins(&num);
+ if (sel_ewin < 0)
+ sel_ewin = num - 1;
+ else if (sel_ewin >= num)
+ sel_ewin = 0;
+ GLWin.ewin = ewins[sel_ewin];
+
+ switch (Conf_glwin.mode)
+ {
+ default:
+ SceneDraw1(t, ewins, num);
+ break;
+ case 1:
+ SceneDraw2(t, ewins, num);
+ break;
+ }
+
+ glXSwapBuffers(disp, EobjGetXwin(GLWin.eo));
+
+ Efree(ewins);
+
+ rot_x += speed_x;
+ rot_y += speed_y;
+}
+
+static int
+GlwinRun(void *data __UNUSED__)
+{
+ if (!GLWin.eo)
+ return 0;
+ SceneDraw();
+ return 1;
+}
+
+static int
+GlwinKeyPress(GLWindow * gw, KeySym key)
+{
+ switch (key)
+ {
+ case XK_q:
+ case XK_Escape:
+ return 1;
+
+ case XK_b:
+ sel_bg += 1;
+ if (sel_bg >= N_TEXTURES)
+ sel_bg = 0;
+ break;
+ case XK_f:
+ filter += 1;
+ if (filter >= 2)
+ filter = 0;
+ break;
+
+ case XK_g: /* Toggle grabs */
+ if (gw->grabbing)
+ {
+ GrabPointerRelease();
+ GrabKeyboardRelease();
+ gw->grabbing = 0;
+ }
+ else
+ {
+ GrabPointerSet(EobjGetWin(gw->eo), ECSR_GRAB, 0);
+ GrabKeyboardSet(EobjGetWin(gw->eo));
+ gw->grabbing = 1;
+ }
+ break;
+
+ case XK_l:
+ light = !light;
+ if (!light)
+ glDisable(GL_LIGHTING);
+ else
+ glEnable(GL_LIGHTING);
+ break;
+
+ case XK_R:
+ bg_z = -2.0f;
+ speed_x = 0.0f;
+ speed_y = 0.0f;
+ break;
+
+ case XK_Page_Up:
+ bg_z -= 0.10f;
+ break;
+ case XK_Page_Down:
+ bg_z += 0.10f;
+ break;
+
+ case XK_Up:
+ speed_x -= 0.10f;
+ break;
+ case XK_Down:
+ speed_x += 0.10f;
+ break;
+ case XK_Right:
+ speed_y += 0.10f;
+ break;
+ case XK_Left:
+ speed_y -= 0.10f;
+ break;
+
+ case XK_m:
+ Conf_glwin.mode++;
+ Conf_glwin.mode %= 2;
+ break;
+
+ case XK_n:
+ case XK_Tab:
+ sel_ewin++;
+ tn = GetDTime();
+ break;
+ case XK_p:
+ sel_ewin--;
+ break;
+
+ case XK_Return:
+ if (!gw->ewin)
+ {
+ Eprintf("No win\n");
+ break;
+ }
+ EwinOpActivate(gw->ewin, OPSRC_USER, Conf.warplist.raise_on_select);
+ return 1;
+ }
+#define TI(no) ((texture[no]) ? (int)texture[no]->texture : -1)
+ Dprintf("bg=%d(%d) filter=%d l=%d z=%.2f spx/y=%.2f/%.2f\n",
+ sel_bg, TI(sel_bg), filter, light, bg_z, speed_x, speed_y);
+
+ return 0;
+}
+
+static void
+GlwinEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ GLWindow *gw = (GLWindow *) prm;
+ KeySym key;
+ int done = 0;
+
+ switch (ev->type)
+ {
+ default:
+ break;
+ case EX_EVENT_DAMAGE_NOTIFY:
+ return;
+ }
+
+ Dprintf("GlwinEvent ev %d\n", ev->type);
+
+ switch (ev->type)
+ {
+ default:
+ break;
+ case KeyPress:
+ key = XLookupKeysym(&ev->xkey, ev->xkey.state);
+ done = GlwinKeyPress(gw, key);
+ break;
+#if 0
+ case EnterNotify:
+ GrabKeyboardSet(EobjGetWin(GLWin.eo));
+ break;
+ case LeaveNotify:
+ GrabKeyboardRelease();
+ break;
+#endif
+ case MapNotify:
+ GlwinKeyPress(gw, XK_g);
+ AnimatorAdd(GlwinRun, NULL);
+ break;
+#if 0
+ case ConfigureNotify:
+ if (ev->xconfigure.width == EobjGetW(GLWin.eo) &&
+ ev->xconfigure.height == EobjGetH(GLWin.eo))
+ break;
+ SceneResize(ev->xconfigure.width, ev->xconfigure.height);
+ break;
+#endif
+ }
+
+ if (done)
+ GlwinExit();
+}
+
+static int
+GlwinCreate(const char *title __UNUSED__, int width, int height)
+{
+ Win win;
+ int x, y;
+
+#if 0
+ win = RROOT;
+#else
+ win = VROOT;
+#endif
+ x = ((win->w - width) / 2);
+ y = ((win->h - height) / 2);
+
+ GLWin.eo = EobjWindowCreate(EOBJ_TYPE_GLX, x, y, width, height, 0, "GLwin");
+ if (!GLWin.eo)
+ return -1;
+ win = EobjGetWin(GLWin.eo);
+ GLWin.eo->fade = GLWin.eo->shadow = 1;
+
+ EventCallbackRegister(win, 0, GlwinEvent, &GLWin);
+
+ ESelectInput(win, ExposureMask | KeyPressMask | ButtonPressMask |
+ StructureNotifyMask);
+
+ EGlWindowConnect(WinGetXwin(win));
+
+ GLWin.grabbing = 0;
+ GLWin.ewin = NULL;
+
+ EobjMap(GLWin.eo, 1);
+
+ t0 = GetTime();
+ tn = -1e6;
+
+ return 0;
+}
+
+static void
+GlwinInit(void)
+{
+ bg_z = -2.0f;
+ sel_bg = 0;
+ filter = 0;
+ sel_ewin = 0;
+ light = 0;
+
+ if (GlwinCreate("GLwin", 640, 480))
+ {
+ Eprintf("Failed to create window\n");
+ return;
+ }
+
+ Mode_glwin.active = 1;
+
+ TexturesLoad();
+
+ SceneResize(EobjGetW(GLWin.eo), EobjGetW(GLWin.eo));
+
+ SceneInitLight();
+
+ glFlush();
+}
+
+static void
+GlwinExit(void)
+{
+ if (!Mode_glwin.active)
+ return;
+
+ Dprintf("GlTestExit\n");
+
+ if (GLWin.eo)
+ {
+ EventCallbackUnregister(EobjGetWin(GLWin.eo), 0, GlwinEvent, &GLWin);
+ EobjUnmap(GLWin.eo);
+ EobjDestroy(GLWin.eo);
+ GLWin.eo = NULL;
+ }
+
+#if 0
+ unsigned int i;
+
+ for (i = 0; i < N_TEXTURES; i++)
+ {
+ EGlTextureDestroy(texture[i]);
+ texture[i] = NULL;
+ }
+#endif
+
+ Mode_glwin.active = 0;
+}
+
+/*
+ * GLwin Module
+ */
+
+static void
+GlwinSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_START:
+ break;
+
+ case ESIGNAL_EXIT:
+ GlwinExit();
+ break;
+ }
+}
+
+static void
+GlwinIpc(const char *params)
+{
+ const char *cmd;
+
+ cmd = params;
+
+ if (!cmd)
+ {
+ GlwinInit();
+ }
+}
+
+static const IpcItem GlwinIpcArray[] = {
+ {
+ GlwinIpc,
+ "glwin", NULL,
+ "Glwin functions",
+ " glwin\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(GlwinIpcArray)/sizeof(IpcItem))
+
+static const CfgItem GlwinCfgItems[] = {
+ CFG_ITEM_INT(Conf_glwin, mode, 0),
+};
+#define N_CFG_ITEMS (sizeof(GlwinCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+const EModule ModGlwin = {
+ "glwin", NULL,
+ GlwinSighan,
+ {N_IPC_FUNCS, GlwinIpcArray},
+ {N_CFG_ITEMS, GlwinCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "e16-ecore_hints.h"
+#include "ewins.h"
+#include "hints.h"
+#include "xwin.h"
+
+/* WIN_WM_NAME STRING - contains a string identifier for the WM's name */
+#define XA_WIN_WM_NAME "_WIN_WM_NAME"
+
+/* WIN_WM_NAME VERSION - contains a string identifier for the WM's version */
+#define XA_WIN_WM_VERSION "_WIN_WM_VERSION"
+
+/* WIN_AREA CARD32[2] contains the current desktop area X,Y */
+#define XA_WIN_AREA "_WIN_AREA"
+
+/* WIN_AREA CARD32[2] contains the current desktop area size WxH */
+#define XA_WIN_AREA_COUNT "_WIN_AREA_COUNT"
+
+/* array of atoms - atom being one of the following atoms */
+#define XA_WIN_PROTOCOLS "_WIN_PROTOCOLS"
+
+/* array of iocn in various sizes */
+/* Type: array of CARD32 */
+/* first item is icon count (n) */
+/* second item is icon record length (in CARD32s) */
+/* this is followed by (n) icon records as follows */
+/* pixmap (XID) */
+/* mask (XID) */
+/* width (CARD32) */
+/* height (CARD32) */
+/* depth (of pixmap, mask is assumed to be of depth 1) (CARD32) */
+/* drawable (screen root drawable of pixmap) (XID) */
+/* ... additional fields can be added at the end of this list */
+#define XA_WIN_ICONS "_WIN_ICONS"
+
+/* WIN_WORKSPACE CARD32 contains the current desktop number */
+#define XA_WIN_WORKSPACE "_WIN_WORKSPACE"
+/* WIN_WORKSPACE_COUNT CARD32 contains the number of desktops */
+#define XA_WIN_WORKSPACE_COUNT "_WIN_WORKSPACE_COUNT"
+
+/* WIN_WORKSPACE_NAMES StringList (Text Property) of workspace names */
+/* unused by enlightenment */
+#define XA_WIN_WORKSPACE_NAMES "_WIN_WORKSPACE_NAMES"
+
+/* ********** Don't use this.. iffy at best. *********** */
+/* The available work area for client windows. The WM can set this and the WM */
+/* and/or clients may change it at any time. If it is changed the WM and/or */
+/* clients should honor the changes. If this property does not exist a client */
+/* or WM can create it. */
+/*
+ * CARD32 min_x;
+ * CARD32 min_y;
+ * CARD32 max_x;
+ * CARD32 max_y;
+ */
+#define XA_WIN_WORKAREA "_WIN_WORKAREA"
+/* array of 4 CARD32's */
+
+/* This is a list of window id's the WM is currently managing - primarily */
+/* for being able to have external "tasklist" apps */
+#define XA_WIN_CLIENT_LIST "_WIN_CLIENT_LIST"
+/* array of N XID's */
+
+/*********************************************************/
+/* Properties on client windows */
+/*********************************************************/
+
+/* The layer the window exists in */
+/* 0 = Desktop */
+/* 1 = Below */
+/* 2 = Normal (default app layer) */
+/* 4 = OnTop */
+/* 6 = Dock (always on top - for panel) */
+/* The app sets this alone, not the WM. If this property changes the WM */
+/* should comply and change the appearance/behavior of the Client window */
+/* if this hint does nto exist the WM Will create it ont he Client window */
+#define WIN_LAYER_DESKTOP 0
+#define WIN_LAYER_BELOW 2
+#define WIN_LAYER_NORMAL 4
+#define WIN_LAYER_ONTOP 6
+#define WIN_LAYER_DOCK 8
+#define WIN_LAYER_ABOVE_DOCK 10
+#define WIN_LAYER_MENU 12
+#define XA_WIN_LAYER "_WIN_LAYER"
+/* WIN_LAYER = CARD32 */
+
+/* flags for the window's state. The WM will change these as needed when */
+/* state changes. If the property contains info on client map, E will modify */
+/* the windows state accordingly. if the Hint does not exist the WM will */
+/* create it on the client window. 0 for the bit means off, 1 means on. */
+/* unused (default) values are 0 */
+
+/* removed Minimized - no explanation of what it really means - ambiguity */
+/* should not be here if not clear */
+#define WIN_STATE_STICKY (1<<0) /* everyone knows sticky */
+#define WIN_STATE_RESERVED_BIT1 (1<<1) /* removed minimize here */
+#define WIN_STATE_MAXIMIZED_VERT (1<<2) /* window in maximized V state */
+#define WIN_STATE_MAXIMIZED_HORIZ (1<<3) /* window in maximized H state */
+#define WIN_STATE_HIDDEN (1<<4) /* not on taskbar but window visible */
+#define WIN_STATE_SHADED (1<<5) /* shaded (NeXT style) */
+#define WIN_STATE_HID_WORKSPACE (1<<6) /* not on current desktop */
+#define WIN_STATE_HID_TRANSIENT (1<<7) /* owner of transient is hidden */
+#define WIN_STATE_FIXED_POSITION (1<<8) /* window is fixed in position even */
+#define WIN_STATE_ARRANGE_IGNORE (1<<9) /* ignore for auto arranging */
+ /* when scrolling about large */
+ /* virtual desktops ala fvwm */
+#define XA_WIN_STATE "_WIN_STATE"
+/* WIN_STATE = CARD32 */
+
+/* Preferences for behavior for app */
+/* ONLY the client sets this */
+#define WIN_HINTS_SKIP_FOCUS (1<<0) /* "alt-tab" skips this win */
+#define WIN_HINTS_SKIP_WINLIST (1<<1) /* not in win list */
+#define WIN_HINTS_SKIP_TASKBAR (1<<2) /* not on taskbar */
+#define WIN_HINTS_GROUP_TRANSIENT (1<<3) /* ??????? */
+#define WIN_HINTS_FOCUS_ON_CLICK (1<<4) /* app only accepts focus when clicked */
+#define WIN_HINTS_DO_NOT_COVER (1<<5) /* attempt to not cover this window */
+#define XA_WIN_HINTS "_WIN_HINTS"
+/* WIN_HINTS = CARD32 */
+
+/* Application state - also "color reactiveness" - the app can keep changing */
+/* this property when it changes its state and the WM or monitoring program */
+/* will pick this up and display somehting accordingly. ONLY the client sets */
+/* this. */
+#define WIN_APP_STATE_NONE 0
+#define WIN_APP_STATE_ACTIVE1 1
+#define WIN_APP_STATE_ACTIVE2 2
+#define WIN_APP_STATE_ERROR1 3
+#define WIN_APP_STATE_ERROR2 4
+#define WIN_APP_STATE_FATAL_ERROR1 5
+#define WIN_APP_STATE_FATAL_ERROR2 6
+#define WIN_APP_STATE_IDLE1 7
+#define WIN_APP_STATE_IDLE2 8
+#define WIN_APP_STATE_WAITING1 9
+#define WIN_APP_STATE_WAITING2 10
+#define WIN_APP_STATE_WORKING1 11
+#define WIN_APP_STATE_WORKING2 12
+#define WIN_APP_STATE_NEED_USER_INPUT1 13
+#define WIN_APP_STATE_NEED_USER_INPUT2 14
+#define WIN_APP_STATE_STRUGGLING1 15
+#define WIN_APP_STATE_STRUGGLING2 16
+#define WIN_APP_STATE_DISK_TRAFFIC1 17
+#define WIN_APP_STATE_DISK_TRAFFIC2 18
+#define WIN_APP_STATE_NETWORK_TRAFFIC1 19
+#define WIN_APP_STATE_NETWORK_TRAFFIC2 20
+#define WIN_APP_STATE_OVERLOADED1 21
+#define WIN_APP_STATE_OVERLOADED2 22
+#define WIN_APP_STATE_PERCENT000_1 23
+#define WIN_APP_STATE_PERCENT000_2 24
+#define WIN_APP_STATE_PERCENT010_1 25
+#define WIN_APP_STATE_PERCENT010_2 26
+#define WIN_APP_STATE_PERCENT020_1 27
+#define WIN_APP_STATE_PERCENT020_2 28
+#define WIN_APP_STATE_PERCENT030_1 29
+#define WIN_APP_STATE_PERCENT030_2 30
+#define WIN_APP_STATE_PERCENT040_1 31
+#define WIN_APP_STATE_PERCENT040_2 32
+#define WIN_APP_STATE_PERCENT050_1 33
+#define WIN_APP_STATE_PERCENT050_2 34
+#define WIN_APP_STATE_PERCENT060_1 35
+#define WIN_APP_STATE_PERCENT060_2 36
+#define WIN_APP_STATE_PERCENT070_1 37
+#define WIN_APP_STATE_PERCENT070_2 38
+#define WIN_APP_STATE_PERCENT080_1 39
+#define WIN_APP_STATE_PERCENT080_2 40
+#define WIN_APP_STATE_PERCENT090_1 41
+#define WIN_APP_STATE_PERCENT090_2 42
+#define WIN_APP_STATE_PERCENT100_1 43
+#define WIN_APP_STATE_PERCENT100_2 44
+#define XA_WIN_APP_STATE "_WIN_APP_STATE"
+/* WIN_APP_STATE = CARD32 */
+
+/* Expanded space occupied - this is the area on screen the app's window */
+/* will occupy when "expanded" - ie if you have a button on an app that */
+/* "hides" it by reducing its size, this is the geometry of the expanded */
+/* window - so the window manager can allow for this when doign auto */
+/* positioing of client windows assuming the app can at any point use this */
+/* this area and thus try and keep it clear. ONLY the client sets this */
+/*
+ * CARD32 x;
+ * CARD32 y;
+ * CARD32 width;
+ * CARD32 height;
+ */
+#define XA_WIN_EXPANDED_SIZE "_WIN_EXPANDED_SIZE"
+/* array of 4 CARD32's */
+
+/* CARD32 that contians the desktop number the application is on If the */
+/* application's state is "sticky" it is irrelevant. Only the WM should */
+/* change this. */
+#define XA_WIN_WORKSPACE "_WIN_WORKSPACE"
+
+/* This atom is a 32-bit integer that is either 0 or 1 (currently). */
+/* 0 denotes everything is as per usual but 1 denotes that ALL configure */
+/* requests by the client on the client window with this property are */
+/* not just a simple "moving" of the window, but the result of a user */
+/* moving the window BUT the client handling that interaction by moving */
+/* its own window. The window manager should respond accordingly by assuming */
+/* any configure requests for this window whilst this atom is "active" in */
+/* the "1" state are a client move and should handle flipping desktops if */
+/* the window is being dragged "off screem" or across desktop boundaries */
+/* etc. This atom is ONLY ever set by the client */
+#define XA_WIN_CLIENT_MOVING "_WIN_CLIENT_MOVING"
+/* WIN_CLIENT_MOVING = CARD32 */
+
+/* Designed for checking if the WIN_ supporting WM is still there */
+/* and kicking about - basically check this property - check the window */
+/* ID it points to - then check that window Id has this property too */
+/* if that is the case the WIN_ supporting WM is there and alive and the */
+/* list of WIN_PROTOCOLS is valid */
+#define XA_WIN_SUPPORTING_WM_CHECK "_WIN_SUPPORTING_WM_CHECK"
+/* CARD32 */
+
+/*********************************************************/
+/* How an app can modify things after mapping */
+/*********************************************************/
+
+/* For a client to change layer or state it should send a client message */
+/* to the root window as follows: */
+/*
+ * Display *disp;
+ * Window root, client_window;
+ * XClientMessageEvent xev;
+ * CARD32 new_layer;
+ *
+ * xev.type = ClientMessage;
+ * xev.window = client_window;
+ * xev.message_type = EInternAtom(XA_WIN_LAYER);
+ * xev.format = 32;
+ * xev.data.l[0] = new_layer;
+ * xev.data.l[1] = CurrentTime;
+ * XSendEvent(disp, root, False, SubstructureNotifyMask, (XEvent *) &xev);
+ */
+/*
+ * Display *disp;
+ * Window root, client_window;
+ * XClientMessageEvent xev;
+ * CARD32 mask_of_members_to_change, new_members;
+ *
+ * xev.type = ClientMessage;
+ * xev.window = client_window;
+ * xev.message_type = EInternAtom(XA_WIN_STATE);
+ * xev.format = 32;
+ * xev.data.l[0] = mask_of_members_to_change;
+ * xev.data.l[1] = new_members;
+ * xev.data.l[2] = CurrentTimep;
+ * XSendEvent(disp, root, False, SubstructureNotifyMask, (XEvent *) &xev);
+ */
+/*
+ * Display *disp;
+ * Window root, client_window;
+ * XClientMessageEvent xev;
+ * CARD32 new_desktop_number;
+ *
+ * xev.type = ClientMessage;
+ * xev.window = client_window;
+ * xev.message_type = EInternAtom(XA_WIN_WORKSPACE);
+ * xev.format = 32;
+ * xev.data.l[0] = new_desktop_number;
+ * xev.data.l[2] = CurrentTimep;
+ * XSendEvent(disp, root, False, SubstructureNotifyMask, (XEvent *) &xev);
+ */
+
+#if 0 /* Does nothing useful */
+static void
+GNOME_GetHintIcons(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num, i;
+ Ecore_X_ID *plst;
+ Pixmap pmap;
+ Pixmap mask;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_ICONS);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_xid_list_get(EwinGetClientXwin(ewin), atom_get,
+ XA_PIXMAP, &plst);
+ if (num < 2)
+ return;
+
+ for (i = 0; i < num / 2; i++)
+ {
+ pmap = plst[2 * i];
+ mask = plst[2 * i + 1];
+ }
+ free(plst);
+}
+#endif
+
+static void
+GNOME_GetHintLayer(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num;
+ unsigned int layer;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_LAYER);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), atom_get,
+ &layer, 1);
+ if (num <= 0)
+ return;
+
+ EoSetLayer(ewin, layer);
+ EwinChange(ewin, EWIN_CHANGE_LAYER);
+}
+
+static void
+GNOME_GetHintState(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num;
+ unsigned int flags;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_STATE);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), atom_get,
+ &flags, 1);
+ if (num <= 0)
+ return;
+
+ if (flags & WIN_STATE_SHADED)
+ ewin->state.shaded = 1;
+ if (flags & WIN_STATE_STICKY)
+ EoSetSticky(ewin, 1);
+ if (flags & WIN_STATE_FIXED_POSITION)
+ EwinInhSetUser(ewin, move, 1);
+ if (flags & WIN_STATE_ARRANGE_IGNORE)
+ ewin->props.ignorearrange = 1;
+}
+
+#if 0 /* Does nothing */
+static void
+GNOME_GetHintAppState(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num;
+ unsigned int flags;
+
+ /* have nothing interesting to do with an app state (lamp) right now */
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_APP_STATE);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), atom_get,
+ &flags, 1);
+ if (num <= 0)
+ return;
+}
+#endif
+
+static void
+GNOME_GetHintDesktop(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num;
+ unsigned int desk;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_WORKSPACE);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), atom_get,
+ &desk, 1);
+ if (num <= 0)
+ return;
+
+ EoSetDesk(ewin, DeskGet(desk));
+ EwinChange(ewin, EWIN_CHANGE_DESKTOP);
+}
+
+static void
+GNOME_GetHint(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num;
+ unsigned int flags;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_HINTS);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), atom_get,
+ &flags, 1);
+ if (num <= 0)
+ return;
+
+ if (flags & WIN_HINTS_SKIP_TASKBAR)
+ ewin->props.skip_ext_task = 1;
+ if (flags & WIN_HINTS_SKIP_FOCUS)
+ ewin->props.skip_focuslist = 1;
+ if (flags & WIN_HINTS_SKIP_WINLIST)
+ ewin->props.skip_winlist = 1;
+ if (flags & WIN_HINTS_FOCUS_ON_CLICK)
+ ewin->props.focusclick = 1;
+ if (flags & WIN_HINTS_DO_NOT_COVER)
+ ewin->props.never_use_area = 1;
+}
+
+void
+GNOME_SetHint(const EWin * ewin)
+{
+ static Atom atom_set = 0;
+ unsigned int val;
+
+ if ((ewin->type == EWIN_TYPE_MENU) || (ewin->type == EWIN_TYPE_PAGER))
+ return;
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_STATE);
+ val = 0;
+ if (EoIsSticky(ewin))
+ val |= WIN_STATE_STICKY;
+ if (ewin->state.shaded)
+ val |= WIN_STATE_SHADED;
+ if (EwinInhGetUser(ewin, move))
+ val |= WIN_STATE_FIXED_POSITION;
+ ecore_x_window_prop_card32_set(EwinGetClientXwin(ewin), atom_set, &val, 1);
+}
+
+void
+GNOME_SetEwinArea(const EWin * ewin)
+{
+ static Atom atom_set = 0;
+ unsigned int val[2];
+
+ if ((ewin->type == EWIN_TYPE_MENU) || (ewin->type == EWIN_TYPE_PAGER))
+ return;
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_AREA);
+ val[0] = ewin->area_x;
+ val[1] = ewin->area_y;
+ ecore_x_window_prop_card32_set(EwinGetClientXwin(ewin), atom_set, val, 2);
+}
+
+void
+GNOME_SetEwinDesk(const EWin * ewin)
+{
+ static Atom atom_set = 0;
+ unsigned int val;
+
+ if ((ewin->type == EWIN_TYPE_MENU) || (ewin->type == EWIN_TYPE_PAGER))
+ return;
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_WORKSPACE);
+ val = EoGetDeskNum(ewin);
+ ecore_x_window_prop_card32_set(EwinGetClientXwin(ewin), atom_set, &val, 1);
+}
+
+#if 0 /* Does nothing */
+static void
+GNOME_GetExpandedSize(EWin * ewin, Atom atom_change)
+{
+ static Atom atom_get = 0;
+ int num;
+ unsigned int exp[4];
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!atom_get)
+ atom_get = EInternAtom(XA_WIN_EXPANDED_SIZE);
+ if ((atom_change) && (atom_change != atom_get))
+ return;
+
+ num = ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), atom_get,
+ exp, 4);
+ if (num >= 4)
+ {
+#if 0 /* Not actually used */
+ ewin->expanded_x = retval[0];
+ ewin->expanded_y = retval[1];
+ ewin->expanded_width = retval[2];
+ ewin->expanded_height = retval[3];
+#endif
+ }
+}
+#endif
+
+static void
+GNOME_SetUsedHints(void)
+{
+ static Atom atom_set = 0;
+ Ecore_X_Atom list[10];
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_PROTOCOLS);
+ list[0] = EInternAtom(XA_WIN_LAYER);
+ list[1] = EInternAtom(XA_WIN_STATE);
+ list[2] = EInternAtom(XA_WIN_HINTS);
+ list[3] = EInternAtom(XA_WIN_APP_STATE);
+ list[4] = EInternAtom(XA_WIN_EXPANDED_SIZE);
+ list[5] = EInternAtom(XA_WIN_ICONS);
+ list[6] = EInternAtom(XA_WIN_WORKSPACE);
+ list[7] = EInternAtom(XA_WIN_WORKSPACE_COUNT);
+ list[8] = EInternAtom(XA_WIN_WORKSPACE_NAMES);
+ list[9] = EInternAtom(XA_WIN_CLIENT_LIST);
+ ecore_x_window_prop_atom_set(WinGetXwin(VROOT), atom_set, list, 10);
+}
+
+void
+GNOME_SetCurrentArea(void)
+{
+ static Atom atom_set = 0;
+ unsigned int val[2];
+ int ax, ay;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_AREA);
+ DeskCurrentGetArea(&ax, &ay);
+ val[0] = ax;
+ val[1] = ay;
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, val, 2);
+}
+
+void
+GNOME_SetCurrentDesk(void)
+{
+ static Atom atom_set = 0;
+ unsigned int val;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_WORKSPACE);
+ val = DesksGetCurrentNum();
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, &val, 1);
+}
+
+static void
+GNOME_SetWMCheck(Window win_wm_check)
+{
+ static Atom atom_set = 0;
+ unsigned int val;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_SUPPORTING_WM_CHECK);
+ val = win_wm_check;
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, &val, 1);
+ ecore_x_window_prop_card32_set(win_wm_check, atom_set, &val, 1);
+}
+
+void
+GNOME_SetDeskCount(void)
+{
+ static Atom atom_set = 0;
+ unsigned int val;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_WORKSPACE_COUNT);
+ val = DesksGetNumber();
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, &val, 1);
+}
+
+void
+GNOME_SetAreaCount(void)
+{
+ static Atom atom_set = 0;
+ int ax, ay;
+ unsigned int val[2];
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_AREA_COUNT);
+ DesksGetAreaSize(&ax, &ay);
+ val[0] = ax;
+ val[1] = ay;
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, val, 2);
+}
+
+void
+GNOME_SetDeskNames(void)
+{
+ static Atom atom_set = 0;
+ char s[1024], **names;
+ int i, n_desks;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_WORKSPACE_NAMES);
+
+ n_desks = DesksGetNumber();
+ names = EMALLOC(char *, n_desks);
+
+ if (!names)
+ return;
+
+ for (i = 0; i < n_desks; i++)
+ {
+ Esnprintf(s, sizeof(s), "%i", i);
+ names[i] = Estrdup(s);
+ }
+
+ ecore_x_window_prop_string_list_set(WinGetXwin(VROOT), atom_set, names,
+ n_desks);
+
+ for (i = 0; i < n_desks; i++)
+ Efree(names[i]);
+ Efree(names);
+}
+
+void
+GNOME_SetClientList(void)
+{
+ static Atom atom_set = 0;
+ unsigned int *wl;
+ int j, i, num;
+ EWin *const *lst;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_CLIENT_LIST);
+
+ lst = EwinListOrderGet(&num);
+ wl = NULL;
+ j = 0;
+ if (lst)
+ {
+ wl = EMALLOC(unsigned int, num);
+
+ for (i = 0; i < num; i++)
+ {
+ if (!lst[i]->props.skip_ext_task && !EwinIsTransientChild(lst[i]))
+ wl[j++] = EwinGetClientXwin(lst[i]);
+ }
+ }
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, wl, j);
+ Efree(wl);
+}
+
+static void
+GNOME_SetWMNameVer(void)
+{
+ static Atom atom_set = 0, atom_set2 = 0;
+
+ if (!atom_set)
+ atom_set = EInternAtom(XA_WIN_WM_NAME);
+ ecore_x_window_prop_string_set(WinGetXwin(VROOT), atom_set, e_wm_name);
+
+ if (!atom_set2)
+ atom_set2 = EInternAtom(XA_WIN_WM_VERSION);
+ ecore_x_window_prop_string_set(WinGetXwin(VROOT), atom_set2, e_wm_version);
+}
+
+void
+GNOME_DelHints(const EWin * ewin)
+{
+ static Atom atom_get[6] = { 0, 0, 0, 0, 0, 0 };
+ Window win;
+
+ if (!atom_get[0])
+ {
+ atom_get[0] = EInternAtom(XA_WIN_WORKSPACE);
+ atom_get[1] = EInternAtom(XA_WIN_LAYER);
+ atom_get[2] = EInternAtom(XA_WIN_STATE);
+ atom_get[3] = EInternAtom(XA_WIN_HINTS);
+ atom_get[4] = EInternAtom(XA_WIN_APP_STATE);
+ atom_get[5] = EInternAtom(XA_WIN_AREA);
+ }
+
+ win = EwinGetClientXwin(ewin);
+ XDeleteProperty(disp, win, atom_get[0]);
+ XDeleteProperty(disp, win, atom_get[1]);
+ XDeleteProperty(disp, win, atom_get[2]);
+ XDeleteProperty(disp, win, atom_get[3]);
+ XDeleteProperty(disp, win, atom_get[4]);
+ XDeleteProperty(disp, win, atom_get[5]);
+}
+
+void
+GNOME_GetHints(EWin * ewin, Atom atom_change)
+{
+ GNOME_GetHintDesktop(ewin, atom_change);
+ GNOME_GetHintLayer(ewin, atom_change);
+ GNOME_GetHintState(ewin, atom_change);
+ GNOME_GetHint(ewin, atom_change);
+#if 0 /* Do nothing */
+ GNOME_GetHintIcons(ewin, atom_change);
+ GNOME_GetHintAppState(ewin, atom_change);
+ GNOME_GetExpandedSize(ewin, atom_change);
+#endif
+}
+
+void
+GNOME_SetHints(Window win_wm_check)
+{
+ GNOME_SetWMNameVer();
+ GNOME_SetUsedHints();
+ GNOME_SetWMCheck(win_wm_check);
+ {
+ Atom atom_set;
+ unsigned int val;
+
+ atom_set = EInternAtom("_WIN_DESKTOP_BUTTON_PROXY");
+ Mode.button_proxy_win =
+ XCreateSimpleWindow(disp, WinGetXwin(VROOT), -80, -80, 24, 24, 0,
+ 0, 0);
+ val = Mode.button_proxy_win;
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT), atom_set, &val, 1);
+ ecore_x_window_prop_card32_set(Mode.button_proxy_win, atom_set, &val, 1);
+ }
+}
+
+int
+GNOME_ProcessClientClientMessage(EWin * ewin, XClientMessageEvent * event)
+{
+ static Atom a4 = 0, a5 = 0;
+
+ if (!a4)
+ a4 = EInternAtom("_WIN_LAYER");
+ if (!a5)
+ a5 = EInternAtom("_WIN_STATE");
+
+ if (event->message_type == a4)
+ {
+ unsigned int val;
+
+ val = event->data.l[0];
+ EoSetLayer(ewin, val);
+ ecore_x_window_prop_card32_set(EwinGetClientXwin(ewin), a4, &val, 1);
+ EwinRaise(ewin);
+ return 1;
+ }
+ if (event->message_type == a5)
+ {
+ if (event->data.l[0] & WIN_STATE_FIXED_POSITION)
+ {
+ if (event->data.l[1] & WIN_STATE_FIXED_POSITION)
+ EwinInhSetUser(ewin, move, 1);
+ else
+ EwinInhSetUser(ewin, move, 0);
+ }
+ if (event->data.l[0] & WIN_STATE_ARRANGE_IGNORE)
+ {
+ if (event->data.l[1] & WIN_STATE_ARRANGE_IGNORE)
+ ewin->props.ignorearrange = 1;
+ else
+ ewin->props.ignorearrange = 0;
+ }
+ if ((event->data.l[0] & WIN_STATE_STICKY)
+ && (!ewin->props.ignorearrange))
+ {
+ EwinOpStick(ewin, OPSRC_USER,
+ (event->data.l[1] & WIN_STATE_STICKY) != 0);
+ }
+ if (event->data.l[0] & WIN_STATE_SHADED)
+ {
+ EwinOpShade(ewin, OPSRC_USER,
+ (event->data.l[1] & WIN_STATE_SHADED) != 0);
+ }
+ HintsSetWindowState(ewin);
+ return 1;
+ }
+
+ return 0;
+}
+
+int
+GNOME_ProcessRootClientMessage(XClientMessageEvent * event)
+{
+ static Atom a2 = 0, a3 = 0;
+
+ if (!a2)
+ a2 = EInternAtom("_WIN_AREA");
+ if (!a3)
+ a3 = EInternAtom("_WIN_WORKSPACE");
+
+ if (event->message_type == a2)
+ {
+ DeskCurrentGotoArea(event->data.l[0], event->data.l[1]);
+ return 1;
+ }
+ if (event->message_type == a3)
+ {
+ DeskGotoNum(event->data.l[0]);
+ return 1;
+ }
+
+ return 0;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "cursors.h"
+#include "grabs.h"
+#include "xwin.h"
+
+int
+GrabKeyboardSet(Win win)
+{
+ int rc;
+
+ rc =
+ XGrabKeyboard(disp, WinGetXwin(win), False, GrabModeAsync, GrabModeAsync,
+ CurrentTime);
+
+#if 0
+ Eprintf("GrabKeyboardSet %#lx %d\n", WinGetXwin(win), rc);
+#endif
+ return rc;
+}
+
+int
+GrabKeyboardRelease(void)
+{
+ int rc;
+
+ rc = XUngrabKeyboard(disp, CurrentTime);
+
+#if 0
+ Eprintf("GrabKeyboardRelease %d\n", rc);
+#endif
+ return rc;
+}
+
+int
+GrabPointerSet(Win win, unsigned int csr, int confine)
+{
+ int ret = -1;
+ Window confine_to = (confine) ? WinGetXwin(VROOT) : None;
+
+ ret = XGrabPointer(disp, WinGetXwin(win), False,
+ ButtonPressMask | ButtonReleaseMask | PointerMotionMask |
+ ButtonMotionMask | EnterWindowMask | LeaveWindowMask,
+ GrabModeAsync, GrabModeAsync, confine_to, ECsrGet(csr),
+ CurrentTime);
+
+ Mode.grabs.pointer_grab_window = WinGetXwin(win);
+ Mode.grabs.pointer_grab_active = 1;
+
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("GrabPointerSet: %#lx, ret=%d\n", Mode.grabs.pointer_grab_window,
+ ret);
+
+ return ret;
+}
+
+void
+GrabPointerRelease(void)
+{
+ XUngrabPointer(disp, CurrentTime);
+
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("GrabPointerRelease: %#lx\n", Mode.grabs.pointer_grab_window);
+
+ Mode.grabs.pointer_grab_active = 0;
+ Mode.grabs.pointer_grab_window = None;
+}
+
+void
+GrabButtonSet(unsigned int button, unsigned int modifiers, Win win,
+ unsigned int event_mask, unsigned int csr, int confine)
+{
+ Bool owner_events = False;
+ int pointer_mode = GrabModeSync;
+ int keyboard_mode = GrabModeAsync;
+ Window confine_to = (confine) ? WinGetXwin(win) : None;
+ int i;
+
+ if (modifiers == AnyModifier)
+ {
+ XGrabButton(disp, button, modifiers,
+ WinGetXwin(win), owner_events, event_mask, pointer_mode,
+ keyboard_mode, confine_to, ECsrGet(csr));
+ return;
+ }
+
+ for (i = 0; i < 8; i++)
+ {
+ if (i && !Mode.masks.mod_combos[i])
+ continue;
+ XGrabButton(disp, button, modifiers | Mode.masks.mod_combos[i],
+ WinGetXwin(win), owner_events, event_mask, pointer_mode,
+ keyboard_mode, confine_to, ECsrGet(csr));
+ }
+}
+
+void
+GrabButtonRelease(unsigned int button, unsigned int modifiers, Win win)
+{
+ int i;
+
+ if (modifiers == AnyModifier)
+ {
+ XUngrabButton(disp, button, modifiers, WinGetXwin(win));
+ return;
+ }
+
+ for (i = 0; i < 8; i++)
+ {
+ if (i && !Mode.masks.mod_combos[i])
+ continue;
+ XUngrabButton(disp, button, modifiers | Mode.masks.mod_combos[i],
+ WinGetXwin(win));
+ }
+}
+
+void
+GrabKeySet(unsigned int key, unsigned int modifiers, Win win)
+{
+ Bool owner_events = False;
+ int pointer_mode = GrabModeAsync;
+ int keyboard_mode = GrabModeSync;
+ int i;
+
+ if (modifiers == AnyModifier)
+ {
+ XGrabKey(disp, key, modifiers, WinGetXwin(win), owner_events,
+ pointer_mode, keyboard_mode);
+ return;
+ }
+
+ for (i = 0; i < 8; i++)
+ {
+ if (i && !Mode.masks.mod_combos[i])
+ continue;
+ XGrabKey(disp, key, modifiers | Mode.masks.mod_combos[i],
+ WinGetXwin(win), owner_events, pointer_mode, keyboard_mode);
+ }
+}
+
+void
+GrabKeyRelease(unsigned int key, unsigned int modifiers, Win win)
+{
+ int i;
+
+ if (modifiers == AnyModifier)
+ {
+ XUngrabKey(disp, key, modifiers, WinGetXwin(win));
+ return;
+ }
+
+ for (i = 0; i < 8; i++)
+ {
+ if (i && !Mode.masks.mod_combos[i])
+ continue;
+ XUngrabKey(disp, key, modifiers | Mode.masks.mod_combos[i],
+ WinGetXwin(win));
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2006-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _GRABS_H_
+#define _GRABS_H_
+
+#include "xtypes.h"
+
+int GrabKeyboardSet(Win win);
+int GrabKeyboardRelease(void);
+int GrabPointerSet(Win win, unsigned int csr, int confine);
+void GrabPointerRelease(void);
+void GrabButtonSet(unsigned int button, unsigned int modifiers,
+ Win win, unsigned int event_mask,
+ unsigned int csr, int confine);
+void GrabButtonRelease(unsigned int button,
+ unsigned int modifiers, Win win);
+void GrabKeySet(unsigned int key, unsigned int modifiers,
+ Win win);
+void GrabKeyRelease(unsigned int key, unsigned int modifiers,
+ Win win);
+
+#endif /* _GRABS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "borders.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "ewins.h"
+#include "groups.h"
+#include "settings.h"
+#include "snaps.h"
+#include "timers.h"
+#include <math.h>
+
+#define DEBUG_GROUPS 0
+#if DEBUG_GROUPS
+#define Dprintf(fmt, ...) Eprintf("%s: " fmt, __func__, __VA_ARGS__)
+#else
+#define Dprintf(fmt...)
+#endif
+
+#define USE_GROUP_SHOWHIDE 1 /* Enable group borders */
+
+#define SET_OFF 0
+#define SET_ON 1
+#define SET_TOGGLE 2
+
+static Ecore_List *group_list = NULL;
+
+static struct {
+ GroupConfig dflt;
+ char swapmove;
+} Conf_groups;
+
+static struct {
+ Group *current;
+} Mode_groups;
+
+static void AddEwinToGroup(EWin * ewin, Group * g);
+static void RemoveEwinFromGroup(EWin * ewin, Group * g);
+
+int
+GroupsGetSwapmove(void)
+{
+ return Conf_groups.swapmove;
+}
+
+static Group *
+GroupCreate(int gid)
+{
+ Group *g;
+ double t;
+
+ g = ECALLOC(Group, 1);
+ if (!g)
+ return NULL;
+
+ if (!group_list)
+ group_list = ecore_list_new();
+ ecore_list_append(group_list, g);
+
+ if (gid == -1)
+ {
+ /* Create new group id */
+ t = GetTime();
+ g->index = (int)((GetTime() - (floor(t / 1000) * 1000)) * 10000);
+ /* g->index = (int)(GetTime() * 100); */
+ }
+ else
+ {
+ /* Use given group id */
+ g->index = gid;
+ }
+ g->cfg.iconify = Conf_groups.dflt.iconify;
+ g->cfg.kill = Conf_groups.dflt.kill;
+ g->cfg.move = Conf_groups.dflt.move;
+ g->cfg.raise = Conf_groups.dflt.raise;
+ g->cfg.set_border = Conf_groups.dflt.set_border;
+ g->cfg.stick = Conf_groups.dflt.stick;
+ g->cfg.shade = Conf_groups.dflt.shade;
+
+ Dprintf("grp=%p gid=%d\n", g, g->index);
+ return g;
+}
+
+static void
+GroupDestroy(Group * g)
+{
+ if (!g)
+ return;
+
+ Dprintf("grp=%p gid=%d\n", g, g->index);
+ ecore_list_node_remove(group_list, g);
+
+ if (g == Mode_groups.current)
+ Mode_groups.current = NULL;
+ Efree(g->members);
+
+ Efree(g);
+}
+
+static int
+GroupMatchId(const void *data, const void *match)
+{
+ return ((const Group *)data)->index != (int)(long)match;
+}
+
+static Group *
+GroupFind(int gid)
+{
+ return (Group *) ecore_list_find(group_list, GroupMatchId,
+ (void *)(long)gid);
+}
+
+void
+GroupRemember(int gid)
+{
+ Group *g;
+
+ g = GroupFind(gid);
+ if (!g)
+ return;
+
+ g->save = 1;
+}
+
+static Group *
+GroupFind2(const char *groupid)
+{
+ int gid;
+
+ if (groupid[0] == '*' || groupid[0] == '\0')
+ return Mode_groups.current;
+
+ gid = -1;
+ sscanf(groupid, "%d", &gid);
+ if (gid <= 0)
+ return NULL;
+
+ return GroupFind(gid);
+}
+
+#if ENABLE_DIALOGS
+static void
+CopyGroupConfig(GroupConfig * src, GroupConfig * dest)
+{
+ if (!(src && dest))
+ return;
+
+ memcpy(dest, src, sizeof(GroupConfig));
+}
+#endif /* ENABLE_DIALOGS */
+
+static void
+BreakWindowGroup(EWin * ewin, Group * g)
+{
+ int i, j;
+ EWin *ewin2;
+ Group *g2;
+
+ Dprintf("ewin=%p group=%p gid=%d\n", ewin, g, g->index);
+ if (!ewin || !ewin->groups)
+ return;
+
+ for (j = 0; j < ewin->num_groups; j++)
+ {
+ g2 = ewin->groups[j];
+ if (g && g != g2)
+ continue;
+
+ for (i = 0; i < g2->num_members; i++)
+ {
+ ewin2 = g2->members[0];
+ RemoveEwinFromGroup(ewin2, g2);
+ SnapshotEwinUpdate(ewin2, SNAP_USE_GROUPS);
+ }
+ }
+}
+
+static void
+BuildWindowGroup(EWin ** ewins, int num, int gid)
+{
+ int i;
+ Group *group;
+
+ Mode_groups.current = group = GroupCreate(gid);
+
+ for (i = 0; i < num; i++)
+ AddEwinToGroup(ewins[i], group);
+}
+
+Group **
+GroupsGetList(int *pnum)
+{
+ return (Group **) ecore_list_items_get(group_list, pnum);
+}
+
+Group *const *
+EwinGetGroups(const EWin * ewin, int *num)
+{
+ *num = ewin->num_groups;
+ return ewin->groups;
+}
+
+#if ENABLE_DIALOGS
+static Group **
+ListWinGroups(const EWin * ewin, char group_select, int *num)
+{
+ Group **groups = NULL;
+ Group **groups2 = NULL;
+ int i, j, killed = 0;
+
+ switch (group_select)
+ {
+ case GROUP_SELECT_EWIN_ONLY:
+ groups = EMALLOC(Group *, ewin->num_groups);
+ if (!groups)
+ break;
+ memcpy(groups, ewin->groups, sizeof(Group *) * ewin->num_groups);
+ *num = ewin->num_groups;
+ break;
+ case GROUP_SELECT_ALL_EXCEPT_EWIN:
+ groups2 = GroupsGetList(num);
+ if (!groups2)
+ break;
+
+ for (i = 0; i < (*num); i++)
+ {
+ for (j = 0; j < ewin->num_groups; j++)
+ {
+ if (ewin->groups[j] == groups2[i])
+ {
+ groups2[i] = NULL;
+ killed++;
+ }
+ }
+ }
+ groups = EMALLOC(Group *, *num - killed);
+ if (groups)
+ {
+ j = 0;
+ for (i = 0; i < (*num); i++)
+ if (groups2[i])
+ groups[j++] = groups2[i];
+ (*num) -= killed;
+ }
+ Efree(groups2);
+ break;
+ case GROUP_SELECT_ALL:
+ default:
+ groups = GroupsGetList(num);
+ break;
+ }
+
+ return groups;
+}
+#endif /* ENABLE_DIALOGS */
+
+static void
+_GroupAddEwin(Group * g, EWin * ewin)
+{
+ int i;
+
+ for (i = 0; i < ewin->num_groups; i++)
+ if (ewin->groups[i] == g)
+ return;
+
+ ewin->num_groups++;
+ ewin->groups = EREALLOC(Group *, ewin->groups, ewin->num_groups);
+ ewin->groups[ewin->num_groups - 1] = g;
+ g->num_members++;
+ g->members = EREALLOC(EWin *, g->members, g->num_members);
+ g->members[g->num_members - 1] = ewin;
+}
+
+static void
+AddEwinToGroup(EWin * ewin, Group * g)
+{
+ if (!ewin || !g)
+ return;
+
+ _GroupAddEwin(g, ewin);
+ SnapshotEwinUpdate(ewin, SNAP_USE_GROUPS);
+}
+
+void
+GroupsEwinAdd(EWin * ewin, const int *pgid, int ngid)
+{
+ Group *g;
+ int i, gid;
+
+ for (i = 0; i < ngid; i++)
+ {
+ gid = pgid[i];
+ g = GroupFind(gid);
+ Dprintf("ewin=%p gid=%d grp=%p\n", ewin, gid, g);
+ if (!g)
+ {
+ /* This should not happen, but may if group/snap configs are corrupted */
+ BuildWindowGroup(&ewin, 1, gid);
+ }
+ else
+ {
+ _GroupAddEwin(g, ewin);
+ }
+ }
+ SnapshotEwinUpdate(ewin, SNAP_USE_GROUPS);
+}
+
+static int
+EwinInGroup(const EWin * ewin, const Group * g)
+{
+ int i;
+
+ if (ewin && g)
+ {
+ for (i = 0; i < g->num_members; i++)
+ {
+ if (g->members[i] == ewin)
+ return 1;
+ }
+ }
+ return 0;
+}
+
+Group *
+EwinsInGroup(const EWin * ewin1, const EWin * ewin2)
+{
+ int i;
+
+ if (ewin1 && ewin2)
+ {
+ for (i = 0; i < ewin1->num_groups; i++)
+ {
+ if (EwinInGroup(ewin2, ewin1->groups[i]))
+ return ewin1->groups[i];
+ }
+ }
+ return NULL;
+}
+
+void
+RemoveEwinFromGroup(EWin * ewin, Group * g)
+{
+ int i, j, k, i2;
+
+ if (!ewin || !g)
+ return;
+
+ for (k = 0; k < ewin->num_groups; k++)
+ {
+ /* is the window actually part of the given group */
+ if (ewin->groups[k] != g)
+ continue;
+
+ for (i = 0; i < g->num_members; i++)
+ {
+ if (g->members[i] != ewin)
+ continue;
+
+ /* remove it from the group */
+ for (j = i; j < g->num_members - 1; j++)
+ g->members[j] = g->members[j + 1];
+ g->num_members--;
+ if (g->num_members > 0)
+ g->members = EREALLOC(EWin *, g->members, g->num_members);
+ else if (g->save)
+ {
+ Efree(g->members);
+ g->members = NULL;
+ }
+ else
+ {
+ GroupDestroy(g);
+ }
+
+ /* and remove the group from the groups that the window is in */
+ for (i2 = k; i2 < ewin->num_groups - 1; i2++)
+ ewin->groups[i2] = ewin->groups[i2 + 1];
+ ewin->num_groups--;
+ if (ewin->num_groups <= 0)
+ {
+ Efree(ewin->groups);
+ ewin->groups = NULL;
+ ewin->num_groups = 0;
+ }
+ else
+ ewin->groups =
+ EREALLOC(Group *, ewin->groups, ewin->num_groups);
+
+ GroupsSave();
+ return;
+ }
+ }
+}
+
+void
+GroupsEwinRemove(EWin * ewin)
+{
+ int num, i;
+
+ num = ewin->num_groups;
+ for (i = 0; i < num; i++)
+ RemoveEwinFromGroup(ewin, ewin->groups[0]);
+}
+
+#if ENABLE_DIALOGS
+static char **
+GetWinGroupMemberNames(Group ** groups, int num)
+{
+ int i, j, len;
+ char **group_member_strings;
+ const char *name;
+
+ group_member_strings = ECALLOC(char *, num);
+
+ if (!group_member_strings)
+ return NULL;
+
+ for (i = 0; i < num; i++)
+ {
+ group_member_strings[i] = EMALLOC(char, 1024);
+
+ if (!group_member_strings[i])
+ break;
+
+ len = 0;
+ for (j = 0; j < groups[i]->num_members; j++)
+ {
+ name = EwinGetTitle(groups[i]->members[j]);
+ if (!name) /* Should never happen */
+ continue;
+ len += Esnprintf(group_member_strings[i] + len, 1024 - len,
+ "%s\n", name);
+ if (len >= 1024)
+ break;
+ }
+ }
+
+ return group_member_strings;
+}
+#endif /* ENABLE_DIALOGS */
+
+#if USE_GROUP_SHOWHIDE
+static void
+ShowHideWinGroups(EWin * ewin, int group_index, char onoff)
+{
+ EWin **gwins;
+ int i, num;
+ const Border *b = NULL;
+
+ if (!ewin || group_index >= ewin->num_groups)
+ return;
+
+ if (group_index < 0)
+ {
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_ANY, 0, &num);
+ }
+ else
+ {
+ gwins = ewin->groups[group_index]->members;
+ num = ewin->groups[group_index]->num_members;
+ }
+
+ if (onoff == SET_TOGGLE)
+ onoff = (ewin->border == ewin->normal_border) ? SET_ON : SET_OFF;
+
+ for (i = 0; i < num; i++)
+ {
+ if (onoff == SET_ON)
+ b = BorderFind(gwins[i]->border->group_border_name);
+ else
+ b = gwins[i]->normal_border;
+
+ EwinBorderChange(gwins[i], b, 0);
+ }
+ if (group_index < 0)
+ Efree(gwins);
+}
+#else
+
+#define ShowHideWinGroups(ewin, group_index, onoff)
+
+#endif /* USE_GROUP_SHOWHIDE */
+
+void
+GroupsSave(void)
+{
+ Group *g;
+ FILE *f;
+ char s[1024];
+
+ if (ecore_list_count(group_list) <= 0)
+ return;
+
+ Esnprintf(s, sizeof(s), "%s.groups", EGetSavePrefix());
+ f = fopen(s, "w");
+ if (!f)
+ return;
+
+ ECORE_LIST_FOR_EACH(group_list, g)
+ {
+ if (!g->save)
+ continue;
+
+ fprintf(f, "NEW: %i\n", g->index);
+ fprintf(f, "ICONIFY: %i\n", g->cfg.iconify);
+ fprintf(f, "KILL: %i\n", g->cfg.kill);
+ fprintf(f, "MOVE: %i\n", g->cfg.move);
+ fprintf(f, "RAISE: %i\n", g->cfg.raise);
+ fprintf(f, "SET_BORDER: %i\n", g->cfg.set_border);
+ fprintf(f, "STICK: %i\n", g->cfg.stick);
+ fprintf(f, "SHADE: %i\n", g->cfg.shade);
+ }
+
+ fclose(f);
+}
+
+void
+GroupsLoad(void)
+{
+ FILE *f;
+ char s[1024];
+ Group *g = NULL;
+
+ Esnprintf(s, sizeof(s), "%s.groups", EGetSavePrefix());
+ f = fopen(s, "r");
+ if (!f)
+ return;
+
+ while (fgets(s, sizeof(s), f))
+ {
+ char ss[128];
+ int ii;
+
+ if (strlen(s) > 0)
+ s[strlen(s) - 1] = 0;
+ ii = 0;
+ sscanf(s, "%100s %d", ss, &ii);
+
+ if (!strcmp(ss, "NEW:"))
+ {
+ g = GroupCreate(ii);
+ continue;
+ }
+ if (!g)
+ continue;
+
+ if (!strcmp(ss, "ICONIFY:"))
+ {
+ g->cfg.iconify = ii;
+ }
+ else if (!strcmp(ss, "KILL:"))
+ {
+ g->cfg.kill = ii;
+ }
+ else if (!strcmp(ss, "MOVE:"))
+ {
+ g->cfg.move = ii;
+ }
+ else if (!strcmp(ss, "RAISE:"))
+ {
+ g->cfg.raise = ii;
+ }
+ else if (!strcmp(ss, "SET_BORDER:"))
+ {
+ g->cfg.set_border = ii;
+ }
+ else if (!strcmp(ss, "STICK:"))
+ {
+ g->cfg.stick = ii;
+ }
+ else if (!strcmp(ss, "SHADE:"))
+ {
+ g->cfg.shade = ii;
+ }
+ }
+ fclose(f);
+}
+
+#if ENABLE_DIALOGS
+
+#define GROUP_OP_ADD 1
+#define GROUP_OP_DEL 2
+#define GROUP_OP_BREAK 3
+
+static int tmp_group_index;
+static int tmp_index;
+static EWin *tmp_ewin;
+static Group **tmp_groups;
+static int tmp_group_num;
+static int tmp_action;
+
+static void
+ChooseGroup(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (((val == 0) || (val == 2)) && tmp_groups)
+ {
+ ShowHideWinGroups(tmp_ewin, tmp_index, SET_OFF);
+ }
+ if (val == 0)
+ {
+ if (tmp_groups)
+ {
+ switch (tmp_action)
+ {
+ case GROUP_OP_ADD:
+ AddEwinToGroup(tmp_ewin, tmp_groups[tmp_group_index]);
+ break;
+ case GROUP_OP_DEL:
+ RemoveEwinFromGroup(tmp_ewin, tmp_groups[tmp_group_index]);
+ break;
+ case GROUP_OP_BREAK:
+ BreakWindowGroup(tmp_ewin, tmp_groups[tmp_group_index]);
+ break;
+ default:
+ break;
+ }
+ }
+ }
+ if (((val == 0) || (val == 2)) && tmp_groups)
+ {
+ Efree(tmp_groups);
+ tmp_groups = NULL;
+
+ GroupsSave();
+ }
+}
+
+static void
+GroupCallback(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ ShowHideWinGroups(tmp_ewin, tmp_index, SET_OFF);
+ ShowHideWinGroups(tmp_ewin, val, SET_ON);
+ tmp_index = val;
+}
+
+static void
+_DlgFillGroupChoose(Dialog * d, DItem * table, void *data)
+{
+ DItem *di, *radio;
+ int i, num_groups;
+ char **group_member_strings;
+ const char *message = (const char *)data;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, message);
+
+ num_groups = tmp_group_num;
+ group_member_strings = GetWinGroupMemberNames(tmp_groups, num_groups);
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetCallback(di, GroupCallback, 0, (void *)d);
+ DialogItemSetText(di, group_member_strings[0]);
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ for (i = 1; i < num_groups; i++)
+ {
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetCallback(di, GroupCallback, i, NULL);
+ DialogItemSetText(di, group_member_strings[i]);
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, i);
+ }
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_group_index);
+
+ StrlistFree(group_member_strings, num_groups);
+}
+
+static const DialogDef DlgGroupChoose = {
+ "GROUP_SELECTION",
+ NULL,
+ N_("Window Group Selection"),
+ SOUND_SETTINGS_GROUP,
+ "pix/group.png",
+ N_("Enlightenment Window Group\n" "Selection Dialog\n"),
+ _DlgFillGroupChoose,
+ DLG_OC, ChooseGroup,
+};
+
+static void
+ChooseGroupDialog(EWin * ewin, const char *message, char group_select,
+ int action)
+{
+ int num_groups;
+
+ if (!ewin)
+ return;
+
+ tmp_ewin = ewin;
+ tmp_group_index = tmp_index = 0;
+ tmp_action = action;
+ tmp_groups = ListWinGroups(ewin, group_select, &num_groups);
+ tmp_group_num = num_groups;
+
+ if ((num_groups == 0)
+ && (action == GROUP_OP_BREAK || action == GROUP_OP_DEL))
+ {
+ DialogOK(_("Window Group Error"),
+ _
+ ("\n This window currently does not belong to any groups. \n"
+ " You can only destroy groups or remove windows from groups \n"
+ " through a window that actually belongs to at least one group.\n\n"));
+ return;
+ }
+ if ((num_groups == 0) && (group_select == GROUP_SELECT_ALL_EXCEPT_EWIN))
+ {
+ DialogOK(_("Window Group Error"),
+ _("\n Currently, no groups exist or this window \n"
+ " already belongs to all existing groups. \n"
+ " You have to start other groups first. \n\n"));
+ return;
+ }
+ if (!tmp_groups)
+ {
+ DialogOK(_("Window Group Error"),
+ _
+ ("\n Currently, no groups exist. You have to start a group first.\n\n"));
+ return;
+ }
+
+ ShowHideWinGroups(ewin, 0, SET_ON);
+
+ DialogShowSimple(&DlgGroupChoose, (void *)message);
+}
+
+typedef struct {
+ EWin *ewin;
+ GroupConfig cfg; /* Dialog data for current group */
+ GroupConfig *cfgs; /* Work copy of ewin group cfgs */
+ int ngrp;
+ unsigned int current;
+} EwinGroupDlgData;
+
+static void
+CB_ConfigureGroup(Dialog * d, int val, void *data __UNUSED__)
+{
+ EwinGroupDlgData *dd = (EwinGroupDlgData *) DialogGetData(d);
+ EWin *ewin;
+ int i;
+
+ if (!dd)
+ return;
+
+ /* Check ewin */
+ ewin = EwinFindByPtr(dd->ewin);
+ if (ewin && ewin->num_groups != dd->ngrp)
+ ewin = NULL;
+
+ if (val < 2 && ewin)
+ {
+ CopyGroupConfig(&(dd->cfg), &(dd->cfgs[dd->current]));
+ for (i = 0; i < ewin->num_groups; i++)
+ CopyGroupConfig(dd->cfgs + i, &(ewin->groups[i]->cfg));
+ }
+ if ((val == 0) || (val == 2))
+ {
+ ShowHideWinGroups(ewin, dd->current, SET_OFF);
+ Efree(dd->cfgs);
+ Efree(dd);
+ DialogSetData(d, NULL);
+ }
+ autosave();
+}
+
+static void
+GroupSelectCallback(Dialog * d, int val, void *data __UNUSED__)
+{
+ EwinGroupDlgData *dd = (EwinGroupDlgData *) DialogGetData(d);
+
+ CopyGroupConfig(&(dd->cfg), &(dd->cfgs[dd->current]));
+ CopyGroupConfig(&(dd->cfgs[val]), &(dd->cfg));
+ DialogRedraw(d);
+ ShowHideWinGroups(dd->ewin, dd->current, SET_OFF);
+ ShowHideWinGroups(dd->ewin, val, SET_ON);
+ dd->current = val;
+}
+
+static void
+_DlgFillGroups(Dialog * d, DItem * table, void *data)
+{
+ EWin *ewin = (EWin *) data;
+ DItem *radio, *di;
+ int i;
+ char **group_member_strings;
+ EwinGroupDlgData *dd;
+
+ dd = ECALLOC(EwinGroupDlgData, 1);
+ if (!dd)
+ return;
+
+ dd->ewin = ewin;
+ dd->cfgs = EMALLOC(GroupConfig, ewin->num_groups);
+ dd->ngrp = ewin->num_groups;
+ dd->current = 0;
+ for (i = 0; i < ewin->num_groups; i++)
+ CopyGroupConfig(&(ewin->groups[i]->cfg), dd->cfgs + i);
+ CopyGroupConfig(dd->cfgs, &(dd->cfg));
+ DialogSetData(d, dd);
+
+ ShowHideWinGroups(ewin, 0, SET_ON);
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _(" Pick the group to configure: "));
+
+ group_member_strings =
+ GetWinGroupMemberNames(ewin->groups, ewin->num_groups);
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetCallback(di, GroupSelectCallback, 0, d);
+ DialogItemSetText(di, group_member_strings[0]);
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ for (i = 1; i < ewin->num_groups; i++)
+ {
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetCallback(di, GroupSelectCallback, i, d);
+ DialogItemSetText(di, group_member_strings[i]);
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, i);
+ }
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_index);
+
+ StrlistFree(group_member_strings, ewin->num_groups);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _(" The following actions are \n"
+ " applied to all group members: "));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Changing Border Style"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.set_border));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Iconifying"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.iconify));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Killing"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.kill));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Moving"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.move));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Raising/Lowering"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.raise));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Sticking"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.stick));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shading"));
+ DialogItemCheckButtonSetPtr(di, &(dd->cfg.shade));
+}
+
+static const DialogDef DlgGroups = {
+ "CONFIGURE_GROUP",
+ NULL,
+ N_("Window Group Settings"),
+ SOUND_SETTINGS_GROUP,
+ "pix/group.png",
+ N_("Enlightenment Window Group\n" "Settings Dialog\n"),
+ _DlgFillGroups,
+ DLG_OAC, CB_ConfigureGroup,
+};
+
+static void
+SettingsGroups(EWin * ewin)
+{
+ if (!ewin)
+ return;
+
+ if (ewin->num_groups == 0)
+ {
+ DialogOK(_("Window Group Error"),
+ _
+ ("\n This window currently does not belong to any groups. \n\n"));
+ return;
+ }
+
+ DialogShowSimple(&DlgGroups, ewin);
+}
+
+static GroupConfig tmp_group_cfg;
+static char tmp_group_swap;
+static void
+CB_ConfigureDefaultGroupSettings(Dialog * d __UNUSED__, int val,
+ void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ CopyGroupConfig(&tmp_group_cfg, &(Conf_groups.dflt));
+ Conf_groups.swapmove = tmp_group_swap;
+ }
+ autosave();
+}
+
+static void
+_DlgFillGroupDefaults(Dialog * d __UNUSED__, DItem * table,
+ void *data __UNUSED__)
+{
+ DItem *di;
+
+ CopyGroupConfig(&(Conf_groups.dflt), &tmp_group_cfg);
+ tmp_group_swap = Conf_groups.swapmove;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _(" Per-group settings: "));
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Changing Border Style"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.set_border));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Iconifying"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.iconify));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Killing"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.kill));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Moving"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.move));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Raising/Lowering"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.raise));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Sticking"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.stick));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shading"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_cfg.shade));
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _(" Global settings: "));
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Swap Window Locations"));
+ DialogItemCheckButtonSetPtr(di, &(tmp_group_swap));
+}
+
+const DialogDef DlgGroupDefaults = {
+ "CONFIGURE_DEFAULT_GROUP_CONTROL",
+ N_("Groups"),
+ N_("Default Group Control Settings"),
+ SOUND_SETTINGS_GROUP,
+ "pix/group.png",
+ N_("Enlightenment Default\n" "Group Control Settings Dialog\n"),
+ _DlgFillGroupDefaults,
+ DLG_OAC, CB_ConfigureDefaultGroupSettings,
+};
+
+static void
+GroupsConfigure(const char *params)
+{
+ char s[128];
+ const char *p;
+ int l;
+ EWin *ewin;
+
+ p = params;
+ l = 0;
+ s[0] = '\0';
+ sscanf(p, "%100s %n", s, &l);
+ p += l;
+
+ ewin = GetContextEwin();
+
+ if (!strcmp(s, "group"))
+ {
+ SettingsGroups(ewin);
+ }
+ else if (!strcmp(s, "add"))
+ {
+ ChooseGroupDialog(ewin,
+ _("Pick the group the window will belong to:"),
+ GROUP_SELECT_ALL_EXCEPT_EWIN, GROUP_OP_ADD);
+ }
+ else if (!strcmp(s, "del"))
+ {
+ ChooseGroupDialog(ewin,
+ _("Select the group to remove the window from:"),
+ GROUP_SELECT_EWIN_ONLY, GROUP_OP_DEL);
+ }
+ else if (!strcmp(s, "break"))
+ {
+ ChooseGroupDialog(ewin, _("Select the group to break:"),
+ GROUP_SELECT_EWIN_ONLY, GROUP_OP_BREAK);
+ }
+}
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * Groups module
+ */
+
+static void
+GroupShow(Group * g)
+{
+ int j;
+
+ for (j = 0; j < g->num_members; j++)
+ IpcPrintf("%d: %s\n", g->index, EwinGetIcccmName(g->members[j]));
+
+ IpcPrintf(" index: %d\n" " num_members: %d\n"
+ " iconify: %d\n" " kill: %d\n"
+ " move: %d\n" " raise: %d\n"
+ " set_border: %d\n" " stick: %d\n"
+ " shade: %d\n",
+ g->index, g->num_members,
+ g->cfg.iconify, g->cfg.kill,
+ g->cfg.move, g->cfg.raise,
+ g->cfg.set_border, g->cfg.stick, g->cfg.shade);
+}
+
+static void
+IPC_GroupInfo(const char *params)
+{
+ Group *group;
+
+ if (params)
+ {
+ group = GroupFind2(params);
+ if (group)
+ GroupShow(group);
+ else
+ IpcPrintf("Error: no such group: %s", params);
+ }
+ else
+ {
+ IpcPrintf("Number of groups: %d\n", ecore_list_count(group_list));
+ ECORE_LIST_FOR_EACH(group_list, group) GroupShow(group);
+ }
+}
+
+static void
+IPC_GroupOps(const char *params)
+{
+ Group *group = Mode_groups.current;
+ char windowid[128];
+ char operation[128];
+ char groupid[128];
+ unsigned int win;
+ EWin *ewin;
+
+ if (!params)
+ {
+ IpcPrintf("Error: no window specified");
+ return;
+ }
+
+ windowid[0] = operation[0] = groupid[0] = '\0';
+ sscanf(params, "%100s %100s %100s", windowid, operation, groupid);
+ win = 0;
+ sscanf(windowid, "%x", &win);
+
+ if (!operation[0])
+ {
+ IpcPrintf("Error: no operation specified");
+ return;
+ }
+
+ ewin = EwinFindByExpr(windowid);
+ if (!ewin)
+ {
+ IpcPrintf("Error: no such window: %s", windowid);
+ return;
+ }
+
+ if (!strcmp(operation, "start"))
+ {
+ BuildWindowGroup(&ewin, 1, -1);
+ IpcPrintf("start %8x", win);
+ }
+ else if (!strcmp(operation, "add"))
+ {
+ group = GroupFind2(groupid);
+ AddEwinToGroup(ewin, group);
+ IpcPrintf("add %8x", win);
+ }
+ else if (!strcmp(operation, "del"))
+ {
+ group = GroupFind2(groupid);
+ RemoveEwinFromGroup(ewin, group);
+ IpcPrintf("del %8x", win);
+ }
+ else if (!strcmp(operation, "break"))
+ {
+ group = GroupFind2(groupid);
+ BreakWindowGroup(ewin, group);
+ IpcPrintf("break %8x", win);
+ }
+ else if (!strcmp(operation, "showhide"))
+ {
+ ShowHideWinGroups(ewin, -1, SET_TOGGLE);
+ IpcPrintf("showhide %8x", win);
+ }
+ else
+ {
+ IpcPrintf("Error: no such operation: %s", operation);
+ return;
+ }
+ GroupsSave();
+}
+
+static void
+IPC_Group(const char *params)
+{
+ char groupid[128];
+ char operation[128];
+ char param1[128];
+ Group *group;
+ int onoff;
+
+ if (!params)
+ {
+ IpcPrintf("Error: no group specified");
+ return;
+ }
+
+ groupid[0] = operation[0] = param1[0] = '\0';
+ sscanf(params, "%100s %100s %100s", groupid, operation, param1);
+
+ if (!operation[0])
+ {
+ IpcPrintf("Error: no operation specified");
+ return;
+ }
+
+ group = GroupFind2(groupid);
+ if (!group)
+ {
+ IpcPrintf("Error: no such group: %s", groupid);
+ return;
+ }
+
+ if (!param1[0])
+ {
+ IpcPrintf("Error: no mode specified");
+ return;
+ }
+
+ onoff = -1;
+ if (!strcmp(param1, "on"))
+ onoff = 1;
+ else if (!strcmp(param1, "off"))
+ onoff = 0;
+
+ if (onoff == -1 && strcmp(param1, "?"))
+ {
+ IpcPrintf("Error: unknown mode specified");
+ }
+ else if (!strcmp(operation, "num_members"))
+ {
+ IpcPrintf("num_members: %d", group->num_members);
+ onoff = -1;
+ }
+ else if (!strcmp(operation, "iconify"))
+ {
+ if (onoff >= 0)
+ group->cfg.iconify = onoff;
+ else
+ onoff = group->cfg.iconify;
+ }
+ else if (!strcmp(operation, "kill"))
+ {
+ if (onoff >= 0)
+ group->cfg.kill = onoff;
+ else
+ onoff = group->cfg.kill;
+ }
+ else if (!strcmp(operation, "move"))
+ {
+ if (onoff >= 0)
+ group->cfg.move = onoff;
+ else
+ onoff = group->cfg.move;
+ }
+ else if (!strcmp(operation, "raise"))
+ {
+ if (onoff >= 0)
+ group->cfg.raise = onoff;
+ else
+ onoff = group->cfg.raise;
+ }
+ else if (!strcmp(operation, "set_border"))
+ {
+ if (onoff >= 0)
+ group->cfg.set_border = onoff;
+ else
+ onoff = group->cfg.set_border;
+ }
+ else if (!strcmp(operation, "stick"))
+ {
+ if (onoff >= 0)
+ group->cfg.stick = onoff;
+ else
+ onoff = group->cfg.stick;
+ }
+ else if (!strcmp(operation, "shade"))
+ {
+ if (onoff >= 0)
+ group->cfg.shade = onoff;
+ else
+ onoff = group->cfg.shade;
+ }
+ else
+ {
+ IpcPrintf("Error: no such operation: %s", operation);
+ onoff = -1;
+ }
+
+ if (onoff == 1)
+ IpcPrintf("%s: on", operation);
+ else if (onoff == 0)
+ IpcPrintf("%s: off", operation);
+}
+
+#if ENABLE_DIALOGS
+static void
+GroupsIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[128];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %100s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ /* Show groups */
+ }
+ else if (!strncmp(cmd, "cfg", 2))
+ {
+ GroupsConfigure(prm);
+ }
+}
+#endif /* ENABLE_DIALOGS */
+
+static const IpcItem GroupsIpcArray[] = {
+#if ENABLE_DIALOGS
+ {
+ GroupsIpc,
+ "groups", "grp",
+ "Configure window groups",
+ " groups cfg Configure groups\n"}
+ ,
+#endif /* ENABLE_DIALOGS */
+ {
+ IPC_GroupInfo,
+ "group_info", "gl",
+ "Retrieve some info on groups",
+ "use \"group_info [group_index]\"\n"}
+ ,
+ {
+ IPC_GroupOps,
+ "group_op", "gop",
+ "Group operations",
+ "use \"group_op <windowid> <property> [<value>]\" to perform "
+ "group operations on a window.\n" "Available group_op commands are:\n"
+ " group_op <windowid> start\n"
+ " group_op <windowid> add [<group_index>]\n"
+ " group_op <windowid> del [<group_index>]\n"
+ " group_op <windowid> break [<group_index>]\n"
+ " group_op <windowid> showhide\n"}
+ ,
+ {
+ IPC_Group,
+ "group", "gc",
+ "Group commands",
+ "use \"group <groupid> <property> <value>\" to set group properties.\n"
+ "Available group commands are:\n"
+ " group <groupid> num_members <on/off/?>\n"
+ " group <groupid> iconify <on/off/?>\n"
+ " group <groupid> kill <on/off/?>\n" " group <groupid> move <on/off/?>\n"
+ " group <groupid> raise <on/off/?>\n"
+ " group <groupid> set_border <on/off/?>\n"
+ " group <groupid> stick <on/off/?>\n"
+ " group <groupid> shade <on/off/?>\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(GroupsIpcArray)/sizeof(IpcItem))
+
+/*
+ * Configuration items
+ */
+static const CfgItem GroupsCfgItems[] = {
+ CFG_ITEM_BOOL(Conf_groups, dflt.iconify, 1),
+ CFG_ITEM_BOOL(Conf_groups, dflt.kill, 0),
+ CFG_ITEM_BOOL(Conf_groups, dflt.move, 1),
+ CFG_ITEM_BOOL(Conf_groups, dflt.raise, 0),
+ CFG_ITEM_BOOL(Conf_groups, dflt.set_border, 1),
+ CFG_ITEM_BOOL(Conf_groups, dflt.stick, 1),
+ CFG_ITEM_BOOL(Conf_groups, dflt.shade, 1),
+ CFG_ITEM_BOOL(Conf_groups, swapmove, 1),
+};
+#define N_CFG_ITEMS (sizeof(GroupsCfgItems)/sizeof(CfgItem))
+
+extern const EModule ModGroups;
+const EModule ModGroups = {
+ "groups", "grp",
+ NULL,
+ {N_IPC_FUNCS, GroupsIpcArray},
+ {N_CFG_ITEMS, GroupsCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _GROUPS_H_
+#define _GROUPS_H_
+
+#define GROUP_SELECT_ALL 0
+#define GROUP_SELECT_EWIN_ONLY 1
+#define GROUP_SELECT_ALL_EXCEPT_EWIN 2
+
+/* For window group listing */
+#define GROUP_ACTION_ANY 0
+#define GROUP_ACTION_MOVE 1
+#define GROUP_ACTION_STACKING 2
+#define GROUP_ACTION_KILL 3
+#define GROUP_ACTION_STICK 4
+#define GROUP_ACTION_ICONIFY 5
+#define GROUP_ACTION_SHADE 6
+#define GROUP_ACTION_SET_WINDOW_BORDER 7
+
+typedef struct _groupconfig {
+ char iconify;
+ char kill;
+ char move;
+ char raise;
+ char set_border;
+ char shade;
+ char stick;
+} GroupConfig;
+
+struct _group {
+ int index;
+ EWin **members;
+ int num_members;
+ GroupConfig cfg;
+ char save; /* Used in snapshot - must save */
+};
+
+/* finders.c */
+EWin **ListWinGroupMembersForEwin(const EWin * ewin, int action,
+ char nogroup, int *num);
+
+/* groups.c */
+Group *const *EwinGetGroups(const EWin * ewin, int *num);
+Group *EwinsInGroup(const EWin * ewin1, const EWin * ewin2);
+void GroupsEwinAdd(EWin * ewin, const int *pgid, int ngid);
+void GroupsEwinRemove(EWin * ewin);
+void GroupsLoad(void);
+void GroupsSave(void);
+Group **GroupsGetList(int *pnum);
+int GroupsGetSwapmove(void);
+void GroupRemember(int gid);
+
+#endif /* _GROUPS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "session.h"
+#include <sys/wait.h>
+#include <signal.h>
+
+static void
+SignalHandler(int sig)
+{
+ static int loop_count = 0;
+ int status;
+
+ Mode.wm.in_signal_handler = 1;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("SignalHandler signal=%d\n", sig);
+
+ switch (sig)
+ {
+ case SIGHUP:
+ SessionExit(EEXIT_RESTART, NULL);
+ break;
+
+ default:
+ case SIGINT:
+ case SIGQUIT:
+ case SIGABRT:
+ case SIGTERM:
+ SessionExit(EEXIT_EXIT, NULL);
+ break;
+
+ case SIGPIPE:
+ case SIGALRM:
+ case SIGUSR1:
+ case SIGUSR2:
+ break;
+
+ case SIGILL:
+ Alert(_("Enlightenment performed an Illegal Instruction.\n" "\n"
+ "This most likely is due to you having installed an run a\n"
+ "binary of Enlightenment that was compiled for a make or model\n"
+ "of CPU not 100%% identical or compatible with yours. Please\n"
+ "either obtain the correct package for your system, or\n"
+ "re-compile Enlightenment and possibly any support libraries\n"
+ "that you got in binary format to run Enlightenment.\n"));
+ goto do_abort;
+
+ case SIGFPE:
+ Alert(_("Enlightenment caused a Floating Point Exception.\n" "\n"
+ "This means that Enlightenment or support library routines it calls\n"
+ "have performed an illegal mathematical operation (most likely\n"
+ "dividing a number by zero). This is most likely a bug. It is\n"
+ "recommended to restart now. If you wish to help fix this please\n"
+ "compile Enlightenment with debugging symbols in and run\n"
+ "Enlightenment under gdb so you can backtrace for where it died and\n"
+ "send in a useful bug report with backtrace information and variable\n"
+ "dumps etc.\n"));
+ goto do_abort;
+
+ case SIGSEGV:
+ Alert(_("Enlightenment caused Segment Violation (Segfault)\n" "\n"
+ "This means that Enlightenment or support library routines it calls\n"
+ "have accessed areas of your system's memory that they are not\n"
+ "allowed access to. This is most likely a bug. It is recommended to\n"
+ "restart now. If you wish to help fix this please compile\n"
+ "Enlightenment with debugging symbols in and run Enlightenment\n"
+ "under gdb so you can backtrace for where it died and send in a\n"
+ "useful bug report with backtrace information and variable\n"
+ "dumps etc.\n"));
+ goto do_abort;
+
+ case SIGBUS:
+ Alert(_("Enlightenment caused Bus Error.\n" "\n"
+ "It is suggested you check your hardware and OS installation.\n"
+ "It is highly unusual to cause Bus Errors on operational\n"
+ "hardware.\n"));
+ goto do_abort;
+
+ do_abort:
+ if (loop_count > 0)
+ abort();
+ loop_count++;
+#if 0 /* Avoid X-ops? */
+ disp = NULL;
+#endif
+ Mode.wm.exit_now = 1;
+ SessionExit(EEXIT_ERROR, NULL);
+ abort();
+ break;
+
+ case SIGCHLD:
+ while (waitpid(-1, &status, WNOHANG) > 0)
+ ;
+ break;
+ }
+
+ Mode.wm.in_signal_handler = 0;
+}
+
+static void
+doSignalsSetup(int setup)
+{
+ static const int signals[] = {
+ SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE, SIGSEGV, SIGPIPE,
+ SIGALRM, SIGTERM, SIGUSR1, SIGUSR2, SIGCHLD, SIGBUS
+ };
+ unsigned int i, sig;
+ struct sigaction sa;
+
+ /*
+ * We may be here after a fork/exec within in a signal handler.
+ * Therefore, lets just clear the blocked signals.
+ */
+ sigemptyset(&sa.sa_mask);
+ sigprocmask(SIG_SETMASK, &sa.sa_mask, (sigset_t *) NULL);
+
+ for (i = 0; i < sizeof(signals) / sizeof(int); i++)
+ {
+ sig = signals[i];
+ if (Mode.wm.coredump &&
+ (sig == SIGILL || sig == SIGFPE || sig == SIGSEGV || sig == SIGBUS))
+ continue;
+
+ if (setup)
+ {
+ sa.sa_handler = SignalHandler;
+ sa.sa_flags = (sig == SIGCHLD) ? SA_RESTART : 0;
+ }
+ else
+ {
+ sa.sa_handler = SIG_DFL;
+ sa.sa_flags = 0;
+ }
+ sigemptyset(&sa.sa_mask);
+ sigaction(sig, &sa, (struct sigaction *)0);
+ }
+}
+
+void
+SignalsSetup(void)
+{
+ /* This function will set up all the signal handlers for E */
+ doSignalsSetup(1);
+}
+
+void
+SignalsRestore(void)
+{
+ /* This function will restore all the signal handlers for E */
+ doSignalsSetup(0);
+}
--- /dev/null
+/*
+ * Copyright (C) 2003-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Feeble attempt to collect hint stuff in one place
+ */
+#include "E.h"
+#include "borders.h" /* FIXME - Should not be here */
+#include "desktops.h" /* FIXME - Should not be here */
+#include "e16-ecore_hints.h"
+#include "events.h"
+#include "ewins.h"
+#include "hints.h"
+#include "xwin.h"
+#include <X11/Xatom.h>
+
+#define N_ITEMS(x) (sizeof(x)/sizeof(x[0]))
+
+static const char *const atoms_misc_names[] = {
+ /* Misc atoms */
+ "MANAGER",
+
+ /* Root background atoms */
+ "_XROOTPMAP_ID",
+ "_XROOTCOLOR_PIXEL",
+
+ /* E16 atoms */
+ "ENLIGHTENMENT_VERSION",
+
+ "ENLIGHTENMENT_COMMS",
+ "ENL_MSG",
+
+ "ENL_INTERNAL_AREA_DATA",
+ "ENL_INTERNAL_DESK_DATA",
+ "ENL_WIN_DATA",
+ "ENL_WIN_BORDER"
+};
+
+unsigned int atoms_misc[10];
+
+void
+AtomListIntern(const char *const *names, unsigned int num, unsigned int *atoms)
+{
+#if SIZEOF_INT == SIZEOF_LONG
+ XInternAtoms(disp, (char **)names, num, False, (Atom *) atoms);
+#else
+ unsigned int i;
+ Atom *_atoms;
+
+ _atoms = EMALLOC(Atom, num);
+ if (!_atoms)
+ return;
+
+ XInternAtoms(disp, (char **)names, num, False, _atoms);
+ for (i = 0; i < num; i++)
+ atoms[i] = _atoms[i];
+
+ Efree(_atoms);
+#endif
+}
+
+void
+HintsInit(void)
+{
+ Window win;
+
+ AtomListIntern(atoms_misc_names, N_ITEMS(atoms_misc_names), atoms_misc);
+
+ win = XCreateSimpleWindow(disp, WinGetXwin(VROOT), -200, -200, 5, 5,
+ 0, 0, 0);
+
+ ICCCM_Init();
+ MWM_SetInfo();
+#if ENABLE_GNOME
+ GNOME_SetHints(win);
+#endif
+ EWMH_Init(win);
+
+ ecore_x_window_prop_string_set(WinGetXwin(VROOT), E16_ATOM_VERSION,
+ e_wm_version);
+
+ if (Mode.wm.window)
+ {
+ HintsSetWindowName(VROOT, "Enlightenment");
+ HintsSetWindowClass(VROOT, "Virtual-Root", "Enlightenment");
+ }
+
+ Mode.root.ext_pmap = HintsGetRootPixmap(VROOT);
+ Mode.root.ext_pmap_valid = EDrawableCheck(Mode.root.ext_pmap, 0);
+}
+
+/*
+ * Functions that set X11-properties from E-internals
+ */
+
+void
+HintsSetRootHints(Win win __UNUSED__)
+{
+ /* Nothing done here for now */
+}
+
+void
+HintsSetClientList(void)
+{
+#if ENABLE_GNOME
+ GNOME_SetClientList();
+#endif
+ EWMH_SetClientList();
+ EWMH_SetClientStacking();
+}
+
+void
+HintsSetClientStacking(void)
+{
+ EWMH_SetClientStacking();
+}
+
+void
+HintsSetDesktopConfig(void)
+{
+#if ENABLE_GNOME
+ GNOME_SetDeskCount();
+ GNOME_SetDeskNames();
+#endif
+ EWMH_SetDesktopCount();
+ EWMH_SetDesktopRoots();
+ EWMH_SetDesktopNames();
+ EWMH_SetWorkArea();
+}
+
+void
+HintsSetViewportConfig(void)
+{
+#if ENABLE_GNOME
+ GNOME_SetAreaCount();
+#endif
+ EWMH_SetDesktopSize();
+}
+
+void
+HintsSetCurrentDesktop(void)
+{
+#if ENABLE_GNOME
+ GNOME_SetCurrentDesk();
+#endif
+ EWMH_SetCurrentDesktop();
+ HintsSetDesktopViewport();
+}
+
+void
+HintsSetDesktopViewport(void)
+{
+#if ENABLE_GNOME
+ GNOME_SetCurrentArea();
+#endif
+ EWMH_SetDesktopViewport();
+}
+
+void
+HintsSetActiveWindow(Window win)
+{
+ EWMH_SetActiveWindow(win);
+}
+
+void
+HintsSetWindowName(Win win, const char *name)
+{
+ if (!name)
+ return;
+
+ ecore_x_icccm_title_set(WinGetXwin(win), name);
+
+ EWMH_SetWindowName(WinGetXwin(win), name);
+}
+
+void
+HintsSetWindowClass(Win win, const char *name, const char *clss)
+{
+ if (!name)
+ name = "NoName";
+ if (!clss)
+ clss = "NoClass";
+
+ ecore_x_icccm_name_class_set(WinGetXwin(win), name, clss);
+}
+
+void
+HintsSetWindowDesktop(const EWin * ewin)
+{
+#if ENABLE_GNOME
+ GNOME_SetEwinDesk(ewin);
+#endif
+ EWMH_SetWindowDesktop(ewin);
+}
+
+void
+HintsSetWindowArea(const EWin * ewin __UNUSED__)
+{
+#if ENABLE_GNOME
+ GNOME_SetEwinArea(ewin);
+#endif
+}
+
+void
+HintsSetWindowState(const EWin * ewin)
+{
+#if ENABLE_GNOME
+ GNOME_SetHint(ewin);
+#endif
+ EWMH_SetWindowState(ewin);
+ EWMH_SetWindowActions(ewin);
+}
+
+void
+HintsSetWindowOpacity(const EWin * ewin)
+{
+ EWMH_SetWindowOpacity(ewin);
+}
+
+void
+HintsSetWindowBorder(const EWin * ewin)
+{
+ EWMH_SetWindowBorder(ewin);
+}
+
+/*
+ * Functions that set E-internals from X11-properties
+ */
+
+void
+HintsGetWindowHints(EWin * ewin)
+{
+#if ENABLE_GNOME
+ GNOME_GetHints(ewin, 0);
+#endif
+ EWMH_GetWindowHints(ewin);
+}
+
+/*
+ * Functions that delete X11-properties
+ */
+
+void
+HintsDelWindowHints(const EWin * ewin)
+{
+#if ENABLE_GNOME
+ GNOME_DelHints(ewin);
+#endif
+ EWMH_DelWindowHints(ewin);
+}
+
+/*
+ * Functions processing received X11 messages
+ */
+
+void
+HintsProcessPropertyChange(EWin * ewin, XEvent * ev)
+{
+ if (ICCCM_ProcessPropertyChange(ewin, ev->xproperty.atom))
+ return;
+ if (EWMH_ProcessPropertyChange(ewin, ev->xproperty.atom))
+ return;
+#if 0 /* No! - ENABLE_GNOME */
+ if (GNOME_GetHints(ewin, ev->xproperty.atom))
+ return;
+#endif
+#if 0
+ if (EDebug(1))
+ {
+ Eprintf("HintsProcessPropertyChange:\n");
+ EventShow(ev);
+ }
+#endif
+}
+
+void
+HintsProcessClientClientMessage(EWin * ewin, XClientMessageEvent * event)
+{
+ if (ICCCM_ProcessClientClientMessage(ewin, event))
+ return;
+ if (EWMH_ProcessClientClientMessage(ewin, event))
+ return;
+#if ENABLE_GNOME
+ if (GNOME_ProcessClientClientMessage(ewin, event))
+ return;
+#endif
+ if (EDebug(1))
+ {
+ Eprintf("HintsProcessClientClientMessage:\n");
+ EventShow((XEvent *) event);
+ }
+}
+
+void
+HintsProcessRootClientMessage(XClientMessageEvent * event)
+{
+ if (ICCCM_ProcessRootClientMessage(event))
+ return;
+ if (EWMH_ProcessRootClientMessage(event))
+ return;
+#if ENABLE_GNOME
+ if (GNOME_ProcessRootClientMessage(event))
+ return;
+#endif
+ if (EDebug(1))
+ {
+ Eprintf("HintsProcessRootClientMessage:\n");
+ EventShow((XEvent *) event);
+ }
+}
+
+Pixmap
+HintsGetRootPixmap(Win win)
+{
+ Ecore_X_Pixmap pm;
+ int num;
+
+ pm = None;
+ num =
+ ecore_x_window_prop_xid_get(WinGetXwin(win), E_XROOTPMAP_ID, XA_PIXMAP,
+ &pm, 1);
+
+ return pm;
+}
+
+void
+HintsSetRootInfo(Win win, Pixmap pmap, unsigned int color)
+{
+ Ecore_X_Pixmap pm;
+
+ pm = pmap;
+ ecore_x_window_prop_xid_set(WinGetXwin(win), E_XROOTPMAP_ID, XA_PIXMAP, &pm,
+ 1);
+
+ ecore_x_window_prop_card32_set(WinGetXwin(win), E_XROOTCOLOR_PIXEL, &color,
+ 1);
+}
+
+typedef union {
+ struct {
+ unsigned version:8;
+ unsigned rsvd:22;
+ unsigned docked:1;
+ unsigned iconified:1;
+ } b;
+ int all:32;
+} EWinInfoFlags;
+
+#define ENL_DATA_ITEMS 12
+#define ENL_DATA_VERSION 0
+
+void
+EHintsSetInfo(const EWin * ewin)
+{
+ int c[ENL_DATA_ITEMS];
+ unsigned int flags[2];
+ EWinInfoFlags f;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ f.all = 0;
+ f.b.version = ENL_DATA_VERSION;
+ f.b.docked = ewin->state.docked;
+ f.b.iconified = ewin->state.iconified;
+ c[0] = f.all;
+
+ EwinFlagsEncode(ewin, flags);
+ c[1] = flags[0];
+ c[2] = flags[1];
+
+ c[3] = ewin->save_max.x;
+ c[4] = ewin->save_max.y;
+ c[5] = ewin->save_max.w;
+ c[6] = ewin->save_max.h;
+ c[7] = ewin->save_fs.x;
+ c[8] = ewin->save_fs.y;
+ c[9] = ewin->save_fs.w;
+ c[10] = ewin->save_fs.h;
+ c[11] = ewin->save_fs.layer;
+
+ ecore_x_window_prop_card32_set(EwinGetClientXwin(ewin), E16_ATOM_WIN_DATA,
+ (unsigned int *)c, ENL_DATA_ITEMS);
+
+ ecore_x_window_prop_string_set(EwinGetClientXwin(ewin), E16_ATOM_WIN_BORDER,
+ ewin->normal_border->name);
+
+ if (EDebug(EDBUG_TYPE_SNAPS))
+ Eprintf("Snap set einf %#lx: %4d+%4d %4dx%4d: %s\n",
+ EwinGetClientXwin(ewin), ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, EwinGetTitle(ewin));
+}
+
+void
+EHintsGetInfo(EWin * ewin)
+{
+ char *str;
+ int num;
+ int c[ENL_DATA_ITEMS + 1];
+ unsigned int flags[2];
+ EWinInfoFlags f;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ num =
+ ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin), E16_ATOM_WIN_DATA,
+ (unsigned int *)c, ENL_DATA_ITEMS + 1);
+ if (num < 0)
+ return;
+
+ ewin->state.identified = 1;
+ ewin->state.placed = 1;
+
+ if (num < 2)
+ return;
+
+ f.all = c[0];
+ if (f.b.version != ENL_DATA_VERSION)
+ return;
+ ewin->icccm.start_iconified = f.b.iconified;
+ ewin->state.docked = f.b.docked;
+
+ flags[0] = c[1];
+ flags[1] = c[2];
+ EwinFlagsDecode(ewin, flags);
+
+ if (num == ENL_DATA_ITEMS)
+ {
+ ewin->save_max.x = c[3];
+ ewin->save_max.y = c[4];
+ ewin->save_max.w = c[5];
+ ewin->save_max.h = c[6];
+ ewin->save_fs.x = c[7];
+ ewin->save_fs.y = c[8];
+ ewin->save_fs.w = c[9];
+ ewin->save_fs.h = c[10];
+ ewin->save_fs.layer = c[11];
+ }
+
+ str =
+ ecore_x_window_prop_string_get(EwinGetClientXwin(ewin),
+ E16_ATOM_WIN_BORDER);
+ if (str)
+ EwinBorderSetInitially(ewin, str);
+ Efree(str);
+
+ if (EDebug(EDBUG_TYPE_SNAPS))
+ Eprintf("Snap get einf %#lx: %4d+%4d %4dx%4d: %s\n",
+ EwinGetClientXwin(ewin), ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, EwinGetTitle(ewin));
+}
+
+void
+EHintsSetDeskInfo(void)
+{
+ int i, ax, ay, n_desks;
+ unsigned int *c;
+
+ if (!DesksGetCurrent()) /* Quit if current desk isn't assigned yet */
+ return;
+
+ n_desks = DesksGetNumber();
+ if (n_desks <= 0)
+ return;
+
+ c = EMALLOC(unsigned int, 2 * n_desks);
+ if (!c)
+ return;
+
+ for (i = 0; i < n_desks; i++)
+ {
+ DeskGetArea(DeskGet(i), &ax, &ay);
+ c[(i * 2)] = ax;
+ c[(i * 2) + 1] = ay;
+ }
+
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT),
+ E16_ATOM_INTERNAL_AREA_DATA, c, 2 * n_desks);
+
+ c[0] = DesksGetCurrentNum();
+ ecore_x_window_prop_card32_set(WinGetXwin(VROOT),
+ E16_ATOM_INTERNAL_DESK_DATA, c, 1);
+
+ Efree(c);
+
+ if (Mode.root.ext_pmap_valid)
+ {
+ HintsSetRootInfo(VROOT, Mode.root.ext_pmap, 0);
+ ESetWindowBackgroundPixmap(VROOT, Mode.root.ext_pmap);
+ }
+}
+
+void
+EHintsGetDeskInfo(void)
+{
+ unsigned int *c;
+ int num, i, n_desks;
+
+ n_desks = DesksGetNumber();
+ c = EMALLOC(unsigned int, 2 * n_desks);
+
+ if (!c)
+ return;
+
+ num = ecore_x_window_prop_card32_get(WinGetXwin(VROOT),
+ E16_ATOM_INTERNAL_AREA_DATA,
+ c, 2 * n_desks);
+ if (num > 0)
+ {
+ for (i = 0; i < (num / 2); i++)
+ DeskSetArea(DeskGet(i), c[(i * 2)], c[(i * 2) + 1]);
+ }
+
+ num = ecore_x_window_prop_card32_get(WinGetXwin(VROOT),
+ E16_ATOM_INTERNAL_DESK_DATA, c, 1);
+ if (num > 0)
+ {
+ DesksSetCurrent(DeskGet(c[0]));
+ }
+ else
+ {
+ /* Used to test if we should run cmd_init */
+ Mode.wm.session_start = 1;
+ }
+
+ Efree(c);
+}
+
+void
+EHintsSetInfoOnAll(void)
+{
+ int i, num;
+ EWin *const *lst;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("SetEInfoOnAll\n");
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ if (!EwinIsInternal(lst[i]))
+ EHintsSetInfo(lst[i]);
+
+ EHintsSetDeskInfo();
+}
+
+/*
+ * Selections.
+ */
+
+struct _selection {
+ Atom atom;
+ Time time;
+ Win win;
+ EventCallbackFunc *func;
+ void *data;
+};
+
+ESelection *
+SelectionAcquire(const char *name, EventCallbackFunc * func, void *data)
+{
+ ESelection *sel;
+ char buf[128];
+
+ sel = ECALLOC(ESelection, 1);
+ if (!sel)
+ return sel;
+
+ Esnprintf(buf, sizeof(buf), "%s%d", name, Dpy.screen);
+
+ sel->atom = EInternAtom(buf);
+ sel->time = EGetTimestamp();
+ sel->win = ECreateEventWindow(VROOT, -100, -100, 1, 1);
+
+ sel->func = func;
+ sel->data = data;
+
+ XSetSelectionOwner(disp, sel->atom, WinGetXwin(sel->win), sel->time);
+ if (XGetSelectionOwner(disp, sel->atom) != WinGetXwin(sel->win))
+ {
+ DialogOK(_("Selection Error!"), _("Could not acquire selection: %s"),
+ buf);
+ EDestroyWindow(sel->win);
+ Efree(sel);
+ return NULL;
+ }
+
+ if (sel->func)
+ {
+ ESelectInput(sel->win, SubstructureNotifyMask);
+ EventCallbackRegister(sel->win, 0, sel->func, sel->data);
+ }
+
+ ecore_x_client_message32_send(WinGetXwin(VROOT), E_XA_MANAGER,
+ StructureNotifyMask, CurrentTime, sel->atom,
+ WinGetXwin(sel->win), 0, 0);
+
+ if (EDebug(EDBUG_TYPE_SELECTION))
+ Eprintf("Window %#lx is now %s owner, time=%lu\n",
+ WinGetXwin(sel->win), buf, sel->time);
+
+ return sel;
+}
+
+void
+SelectionRelease(ESelection * sel)
+{
+ if (!sel)
+ return;
+
+ if (EDebug(EDBUG_TYPE_SELECTION))
+ Eprintf("Window %#lx is no longer %s owner\n",
+ WinGetXwin(sel->win), XGetAtomName(disp, sel->atom));
+
+ XSetSelectionOwner(disp, sel->atom, None, sel->time);
+ if (sel->func)
+ {
+ EventCallbackUnregister(sel->win, 0, sel->func, sel->data);
+ }
+ EDestroyWindow(sel->win);
+ Efree(sel);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _HINTS_H_
+#define _HINTS_H_
+
+#include <X11/Xlib.h>
+#include "etypes.h"
+#include "xwin.h"
+
+void AtomListIntern(const char *const *names, unsigned int num,
+ unsigned int *atoms);
+
+/* Misc atoms */
+
+extern unsigned int atoms_misc[];
+
+#define E_XA_MANAGER atoms_misc[0]
+
+#define E_XROOTPMAP_ID atoms_misc[1]
+#define E_XROOTCOLOR_PIXEL atoms_misc[2]
+
+#define E16_ATOM_VERSION atoms_misc[3]
+
+#define E16_ATOM_COMMS_WIN atoms_misc[4]
+#define E16_ATOM_COMMS_MSG atoms_misc[5]
+
+#define E16_ATOM_INTERNAL_AREA_DATA atoms_misc[6]
+#define E16_ATOM_INTERNAL_DESK_DATA atoms_misc[7]
+#define E16_ATOM_WIN_DATA atoms_misc[8]
+#define E16_ATOM_WIN_BORDER atoms_misc[9]
+
+/* ewmh.c */
+void EWMH_Init(Window win_wm_check);
+void EWMH_SetDesktopCount(void);
+void EWMH_SetDesktopRoots(void);
+void EWMH_SetDesktopNames(void);
+void EWMH_SetDesktopSize(void);
+void EWMH_SetCurrentDesktop(void);
+void EWMH_SetDesktopViewport(void);
+void EWMH_SetWorkArea(void);
+void EWMH_SetClientList(void);
+void EWMH_SetClientStacking(void);
+void EWMH_SetActiveWindow(Window win);
+void EWMH_SetShowingDesktop(int on);
+void EWMH_SetWindowName(Window win, const char *name);
+void EWMH_SetWindowDesktop(const EWin * ewin);
+void EWMH_SetWindowState(const EWin * ewin);
+void EWMH_SetWindowBorder(const EWin * ewin);
+void EWMH_SetWindowOpacity(const EWin * ewin);
+void EWMH_SetWindowActions(const EWin * ewin);
+void EWMH_GetWindowHints(EWin * ewin);
+void EWMH_DelWindowHints(const EWin * ewin);
+int EWMH_ProcessPropertyChange(EWin * ewin, Atom atom_change);
+int EWMH_ProcessClientClientMessage(EWin * ewin,
+ XClientMessageEvent *
+ event);
+int EWMH_ProcessRootClientMessage(XClientMessageEvent * event);
+
+#if ENABLE_GNOME
+/* gnome.c */
+void GNOME_SetCurrentDesk(void);
+void GNOME_SetDeskCount(void);
+void GNOME_SetDeskNames(void);
+void GNOME_SetClientList(void);
+void GNOME_SetEwinDesk(const EWin * ewin);
+void GNOME_SetEwinArea(const EWin * ewin);
+void GNOME_SetHint(const EWin * ewin);
+void GNOME_SetCurrentArea(void);
+void GNOME_SetAreaCount(void);
+void GNOME_GetHints(EWin * ewin, Atom atom_change);
+void GNOME_DelHints(const EWin * ewin);
+void GNOME_SetHints(Window win_wm_check);
+int GNOME_ProcessClientClientMessage(EWin * ewin,
+ XClientMessageEvent *
+ event);
+int GNOME_ProcessRootClientMessage(XClientMessageEvent * event);
+#endif
+
+/* hints.c */
+void HintsInit(void);
+void HintsSetDesktopConfig(void);
+void HintsSetViewportConfig(void);
+void HintsSetCurrentDesktop(void);
+void HintsSetDesktopViewport(void);
+void HintsSetClientList(void);
+void HintsSetClientStacking(void);
+void HintsSetActiveWindow(Window win);
+void HintsSetWindowName(Win win, const char *name);
+void HintsSetWindowClass(Win win, const char *name,
+ const char *clss);
+void HintsSetWindowDesktop(const EWin * ewin);
+void HintsSetWindowArea(const EWin * ewin);
+void HintsSetWindowState(const EWin * ewin);
+void HintsSetWindowOpacity(const EWin * ewin);
+void HintsSetWindowBorder(const EWin * ewin);
+void HintsGetWindowHints(EWin * ewin);
+void HintsDelWindowHints(const EWin * ewin);
+void HintsProcessPropertyChange(EWin * ewin, XEvent * ev);
+void HintsProcessClientClientMessage(EWin * ewin,
+ XClientMessageEvent *
+ event);
+void HintsProcessRootClientMessage(XClientMessageEvent * event);
+
+Pixmap HintsGetRootPixmap(Win win);
+void HintsSetRootHints(Win win);
+void HintsSetRootInfo(Win win, Pixmap pmap, unsigned int color);
+
+void EHintsSetInfo(const EWin * ewin);
+void EHintsGetInfo(EWin * ewin);
+void EHintsSetDeskInfo(void);
+void EHintsGetDeskInfo(void);
+void EHintsSetInfoOnAll(void);
+
+typedef struct _selection ESelection;
+ESelection *SelectionAcquire(const char *name, EventCallbackFunc * func,
+ void *data);
+void SelectionRelease(ESelection * sel);
+
+/* icccm.c */
+void ICCCM_Init(void);
+int ICCCM_ProcessClientClientMessage(EWin * ewin,
+ XClientMessageEvent *
+ event);
+int ICCCM_ProcessRootClientMessage(XClientMessageEvent * event);
+void ICCCM_GetTitle(EWin * ewin);
+void ICCCM_Delete(const EWin * ewin);
+void ICCCM_Iconify(const EWin * ewin);
+void ICCCM_DeIconify(const EWin * ewin);
+void ICCCM_SizeMatch(const EWin * ewin, int wi, int hi, int *pwo,
+ int *pho);
+void ICCCM_GetIncrementalSize(EWin * ewin, unsigned int w,
+ unsigned int h, unsigned int *wi,
+ unsigned int *hi);
+void ICCCM_SetSizeConstraints(EWin * ewin, unsigned int wmin,
+ unsigned int hmin,
+ unsigned int wmax,
+ unsigned int hmax,
+ unsigned int wbase,
+ unsigned int hbase,
+ unsigned int winc,
+ unsigned int hinc, double amin,
+ double amax);
+void ICCCM_Configure(EWin * ewin);
+void ICCCM_AdoptStart(const EWin * ewin);
+void ICCCM_Adopt(const EWin * ewin);
+void ICCCM_Withdraw(const EWin * ewin);
+void ICCCM_Cmap(EWin * ewin);
+void ICCCM_Focus(const EWin * ewin);
+void ICCCM_GetGeoms(EWin * ewin);
+void ICCCM_GetInfo(EWin * ewin);
+void ICCCM_GetHints(EWin * ewin);
+int ICCCM_ProcessPropertyChange(EWin * ewin, Atom atom_change);
+
+/* mwm.c */
+void MWM_GetHints(EWin * ewin, Atom atom_change);
+void MWM_SetInfo(void);
+
+/* session.c */
+void SessionGetInfo(EWin * ewin);
+
+#endif /* _HINTS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "cursors.h"
+#include "eobj.h"
+#include "events.h"
+#include "ewins.h"
+#include "grabs.h"
+#include "hiwin.h"
+#include "iclass.h"
+#include "xwin.h"
+
+#define DEBUG_HIWIN 0
+
+struct _hiwin {
+ EObj o;
+ EWin *ewin;
+ int zoom;
+ int xo, yo, wo, ho;
+ void (*evcb) (Win win, XEvent * ev, void *data);
+ void *data;
+ char animate;
+ GC gc;
+ EImage *im;
+};
+
+typedef struct {
+ void (*init) (Hiwin * phi);
+ void (*draw) (Hiwin * phi);
+ void (*fini) (Hiwin * phi, int shown);
+} HiwinRender;
+
+static ImageClass *hiwin_ic = NULL;
+
+/* TBD: Move elsewhere? */
+static EImage *
+EobjGetImage(EObj * eo, Drawable draw)
+{
+ EImage *im;
+ Pixmap mask;
+
+ mask = EWindowGetShapePixmap(EobjGetWin(eo));
+ im = EImageGrabDrawable(draw, mask, 0, 0, EobjGetW(eo), EobjGetH(eo), 0);
+ if (mask)
+ EFreePixmap(mask);
+
+ return im;
+}
+
+static void
+HiwinRenderImageInit(Hiwin * phi)
+{
+ EWin *ewin = phi->ewin;
+ Pixmap pmap;
+
+ pmap = EoGetPixmap(ewin);
+ if (pmap)
+ {
+ phi->im = EobjGetImage(EoObj(ewin), pmap);
+ /* Skip zoom effect if composite is active */
+ phi->animate = 0;
+ }
+ else if (phi->zoom > 2 && EwinIsOnScreen(ewin))
+ {
+ phi->im = EobjGetImage(EoObj(ewin), EoGetXwin(ewin));
+ }
+ else
+ {
+ phi->im =
+ EImageGrabDrawable(ewin->mini_pmm.pmap, ewin->mini_pmm.mask, 0, 0,
+ ewin->mini_w, ewin->mini_h, 0);
+ }
+
+ ESetWindowBackgroundPixmap(EoGetWin(phi), None);
+
+ /* Reset shape */
+ EShapeSetMask(EoGetWin(phi), 0, 0, None);
+ EoShapeUpdate(phi, 0);
+}
+
+static void
+HiwinRenderImageDrawX(Hiwin * phi, Drawable draw __UNUSED__)
+{
+ EImageApplyToWin(phi->im, EoGetWin(phi), EIMAGE_ANTI_ALIAS,
+ EoGetW(phi), EoGetH(phi));
+ EoShapeUpdate(phi, 0);
+}
+
+static void
+HiwinRenderImageDraw(Hiwin * phi)
+{
+ HiwinRenderImageDrawX(phi, EoGetXwin(phi));
+}
+
+static void
+HiwinRenderImageFini(Hiwin * phi, int shown)
+{
+ if (shown)
+ HiwinRenderImageDraw(phi);
+ EImageDecache(phi->im);
+ phi->im = NULL;
+}
+
+#if USE_COMPOSITE
+static void
+HiwinRenderImageUpdate(Hiwin * phi)
+{
+ Pixmap pmap;
+ EWin *ewin = phi->ewin;
+
+ pmap = EoGetPixmap(ewin);
+ if (pmap == None)
+ return;
+
+ phi->im = EobjGetImage(EoObj(ewin), pmap);
+ HiwinRenderImageDraw(phi);
+ EImageDecache(phi->im);
+ phi->im = NULL;
+}
+#endif
+
+static const HiwinRender HiwinRenderImage = {
+ HiwinRenderImageInit, HiwinRenderImageDraw, HiwinRenderImageFini
+};
+
+static void
+HiwinRenderIclassInit(Hiwin * phi __UNUSED__)
+{
+}
+
+static void
+HiwinRenderIclassDraw(Hiwin * phi)
+{
+ ImageclassApply(hiwin_ic, EoGetWin(phi), 0, 0, STATE_NORMAL, ST_PAGER);
+}
+
+static void
+HiwinRenderIclassFini(Hiwin * phi, int shown)
+{
+ if (shown)
+ HiwinRenderIclassDraw(phi);
+}
+
+static const HiwinRender HiwinRenderIclass = {
+ HiwinRenderIclassInit, HiwinRenderIclassDraw, HiwinRenderIclassFini
+};
+
+static void
+HiwinRenderPixmapInit(Hiwin * phi)
+{
+ phi->gc = EXCreateGC(EoGetXwin(phi), 0, NULL);
+}
+
+static void
+HiwinRenderPixmapDrawX(Hiwin * phi, Drawable draw)
+{
+ XSetForeground(disp, phi->gc, Dpy.pixel_black);
+ XFillRectangle(disp, draw, phi->gc, 0, 0, EoGetW(phi), EoGetH(phi));
+ XSetForeground(disp, phi->gc, Dpy.pixel_white);
+ XFillRectangle(disp, draw, phi->gc, 1, 1, EoGetW(phi) - 2, EoGetH(phi) - 2);
+}
+
+static void
+HiwinRenderPixmapDraw(Hiwin * phi)
+{
+ HiwinRenderPixmapDrawX(phi, EoGetXwin(phi));
+ EClearWindow(EoGetWin(phi));
+}
+
+static void
+HiwinRenderPixmapFini(Hiwin * phi, int shown)
+{
+ Pixmap pmap;
+
+ if (shown)
+ {
+ pmap = EGetWindowBackgroundPixmap(EoGetWin(phi));
+ HiwinRenderPixmapDrawX(phi, pmap);
+ EClearWindow(EoGetWin(phi));
+ }
+
+ EXFreeGC(phi->gc);
+ phi->gc = None;
+}
+
+static const HiwinRender HiwinRenderPixmap = {
+ HiwinRenderPixmapInit, HiwinRenderPixmapDraw, HiwinRenderPixmapFini
+};
+
+static void
+HiwinEvent(Win win, XEvent * ev, void *prm)
+{
+ Hiwin *phi = (Hiwin *) prm;
+
+ if (phi->evcb)
+ phi->evcb(win, ev, phi->data);
+}
+
+#if USE_COMPOSITE
+static void
+HiwinEwinEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Hiwin *phi = (Hiwin *) prm;
+
+#if DEBUG_HIWIN
+ Eprintf("HiwinEwinEvent type=%d %s\n", ev->type, EwinGetTitle(phi->ewin));
+#endif
+
+ switch (ev->type)
+ {
+ case EX_EVENT_DAMAGE_NOTIFY:
+ HiwinRenderImageUpdate(phi);
+ break;
+ }
+}
+#endif
+
+Hiwin *
+HiwinCreate(void)
+{
+ Hiwin *phi;
+
+ phi = ECALLOC(Hiwin, 1);
+ if (!phi)
+ return NULL;
+
+ EoInit(phi, EOBJ_TYPE_MISC, None, 0, 0, 3, 3, 1, "HiWin");
+ EoSetFade(phi, 1);
+ EoSetFloating(phi, 1);
+ EoSetLayer(phi, 19);
+ EventCallbackRegister(EoGetWin(phi), 0, HiwinEvent, phi);
+ ESelectInput(EoGetWin(phi),
+ ButtonPressMask | ButtonReleaseMask | PointerMotionMask |
+ EnterWindowMask | LeaveWindowMask);
+
+ return phi;
+}
+
+void
+HiwinSetGeom(Hiwin * phi, int x, int y, int w, int h)
+{
+ phi->xo = x;
+ phi->yo = y;
+ phi->wo = w;
+ phi->ho = h;
+}
+
+void
+HiwinInit(Hiwin * phi, EWin * ewin)
+{
+ if (ewin == phi->ewin)
+ return;
+
+#if USE_COMPOSITE
+ if (phi->ewin)
+ {
+#if DEBUG_HIWIN
+ Eprintf("Unregister %s\n", EwinGetTitle(phi->ewin));
+#endif
+ EventCallbackUnregister(EoGetWin(phi->ewin), 0, HiwinEwinEvent, phi);
+ }
+#endif
+
+ phi->ewin = ewin;
+
+#if USE_COMPOSITE
+ if (phi->ewin)
+ {
+#if DEBUG_HIWIN
+ Eprintf("Register %s\n", EwinGetTitle(phi->ewin));
+#endif
+ EventCallbackRegister(EoGetWin(phi->ewin), 0, HiwinEwinEvent, phi);
+ }
+#endif
+
+ if (!hiwin_ic)
+ hiwin_ic = ImageclassFind("PAGER_WIN", 0);
+}
+
+void
+HiwinSetCallback(Hiwin * phi, void (*func) (Win win, XEvent * ev, void *data),
+ void *data)
+{
+ phi->evcb = func;
+ phi->data = data;
+}
+
+void
+HiwinGetXY(Hiwin * phi, int *x, int *y)
+{
+ *x = EoGetX(phi);
+ *y = EoGetY(phi);
+}
+
+void
+HiwinMove(Hiwin * phi, int x, int y)
+{
+ EoMove(phi, x, y);
+}
+
+EWin *
+HiwinGetEwin(Hiwin * phi, int check)
+{
+ EWin *ewin;
+
+ if (!phi)
+ return NULL;
+ if (!check || !phi->ewin)
+ return phi->ewin;
+
+ ewin = EwinFindByPtr(phi->ewin);
+
+ return ewin;
+}
+
+void
+HiwinHide(Hiwin * phi)
+{
+ if (!phi)
+ return;
+
+ if (EoIsShown(phi))
+ {
+ GrabPointerRelease();
+ HiwinInit(phi, NULL);
+ EoUnmap(phi);
+ }
+
+ phi->data = NULL;
+ phi->evcb = NULL;
+}
+
+void
+HiwinShow(Hiwin * phi, EWin * ewin, int zoom, int confine)
+{
+ const HiwinRender *pz;
+ int x, y, w, h, zold;
+ int xx, yy, ww, hh, i, i1, i2, step, px, py;
+
+ if (!ewin)
+ ewin = phi->ewin;
+ if (!ewin)
+ return;
+
+ if (ewin->mini_pmm.pmap)
+ pz = &HiwinRenderImage;
+ else if (hiwin_ic)
+ pz = &HiwinRenderIclass;
+ else
+ pz = &HiwinRenderPixmap;
+
+ if (phi->zoom <= 2 && zoom == 2)
+ {
+ phi->zoom = 1;
+
+ x = phi->xo + phi->wo / 2;
+ y = phi->yo + phi->ho / 2;
+ w = zoom * phi->wo;
+ h = zoom * phi->ho;
+
+ step = zoom - phi->zoom;
+ }
+ else if (zoom <= 2)
+ {
+ x = phi->xo + phi->wo / 2;
+ y = phi->yo + phi->ho / 2;
+ w = zoom * phi->wo;
+ h = zoom * phi->ho;
+ step = 0;
+ }
+ else
+ {
+ x = WinGetW(VROOT) / 2;
+ y = WinGetH(VROOT) / 2;
+ w = zoom * EoGetW(phi->ewin) / 4;
+ h = zoom * EoGetH(phi->ewin) / 4;
+ step = 0;
+ }
+
+#if DEBUG_HIWIN
+ Eprintf("HiwinShow %s zoom=%d->%d step=%d %d,%d %dx%d\n",
+ EoGetName(ewin), phi->zoom, zoom, step, x, y, w, h);
+#endif
+
+ zold = phi->zoom;
+ phi->zoom = zoom;
+ phi->animate = 1;
+
+ pz->init(phi);
+
+ EoMap(phi, 0);
+
+ if (step && phi->animate)
+ {
+ x = phi->xo;
+ y = phi->yo;
+ w = phi->wo;
+ h = phi->ho;
+
+ if (w > h)
+ {
+ i1 = w * zold;
+ i2 = w * zoom;
+ }
+ else
+ {
+ i1 = h * zold;
+ i2 = h * zoom;
+ }
+
+ for (i = i1; i != i2; i += step)
+ {
+ int on_screen;
+
+ if (w > h)
+ {
+ ww = i;
+ hh = (ww * h) / w;
+ }
+ else
+ {
+ hh = i;
+ ww = (hh * w) / h;
+ }
+ xx = x + ((w - ww) / 2);
+ yy = y + ((h - hh) / 2);
+ EoMoveResize(phi, xx, yy, ww, hh);
+ pz->draw(phi);
+
+ on_screen = EQueryPointer(NULL, &px, &py, NULL, NULL);
+ if (!on_screen ||
+ (px < x) || (py < y) || (px >= (x + w)) || (py >= (y + h)))
+ {
+ pz->fini(phi, 0);
+ HiwinHide(phi);
+ return;
+ }
+ }
+ }
+ else
+ {
+ EoMoveResize(phi, x - w / 2, y - h / 2, w, h);
+ }
+
+ GrabPointerSet(EoGetWin(phi), ECSR_ACT_MOVE, confine);
+
+ pz->fini(phi, 1);
+}
--- /dev/null
+/*
+ * Copyright (C) 2005-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _HIWIN_H_
+#define _HIWIN_H_
+
+#include <X11/Xlib.h>
+
+typedef struct _hiwin Hiwin;
+
+Hiwin *HiwinCreate(void);
+void HiwinSetGeom(Hiwin * phi, int x, int y, int w, int h);
+void HiwinInit(Hiwin * phi, EWin * ewin);
+void HiwinSetCallback(Hiwin * phi,
+ void (*func) (Win win, XEvent * ev,
+ void *data), void *data);
+void HiwinGetXY(Hiwin * phi, int *x, int *y);
+void HiwinMove(Hiwin * phi, int x, int y);
+EWin *HiwinGetEwin(Hiwin * phi, int check);
+void HiwinShow(Hiwin * phi, EWin * ewin, int zoom, int confine);
+void HiwinHide(Hiwin * phi);
+
+#endif /* _HIWIN_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "e16-ecore_hints.h"
+#include "ewins.h"
+#include "hints.h"
+#include "session.h"
+#include "xwin.h"
+#include <X11/Xutil.h>
+#if USE_XSYNC
+#include "timers.h"
+#include <X11/extensions/sync.h>
+#endif
+
+static void ICCCM_SetIconSizes(void);
+
+void
+ICCCM_Init(void)
+{
+#ifndef USE_ECORE_X
+ ecore_x_icccm_init();
+#endif
+
+ ICCCM_SetIconSizes();
+
+ if (Mode.wm.window)
+ {
+ Atom wm_props[1];
+
+ wm_props[0] = ECORE_X_ATOM_WM_DELETE_WINDOW;
+ XSetWMProtocols(disp, WinGetXwin(VROOT), wm_props, 1);
+ }
+}
+
+int
+ICCCM_ProcessClientClientMessage(EWin * ewin, XClientMessageEvent * event)
+{
+ if (event->message_type == ECORE_X_ATOM_WM_CHANGE_STATE)
+ {
+ if (event->data.l[0] == IconicState)
+ {
+ EwinIconify(ewin);
+ }
+ return 1;
+ }
+
+ return 0;
+}
+
+int
+ICCCM_ProcessRootClientMessage(XClientMessageEvent * event)
+{
+ Atom a;
+
+ if (event->message_type == ECORE_X_ATOM_WM_PROTOCOLS)
+ {
+ a = event->data.l[0];
+ if (a == ECORE_X_ATOM_WM_DELETE_WINDOW)
+ SessionExit(EEXIT_EXIT, NULL);
+ return 1;
+ }
+
+ return 0;
+}
+
+void
+ICCCM_GetTitle(EWin * ewin)
+{
+ _EFREE(EwinGetIcccmName(ewin));
+
+ EwinGetIcccmName(ewin) = ecore_x_icccm_title_get(EwinGetClientXwin(ewin));
+
+ EwinChange(ewin, EWIN_CHANGE_NAME);
+}
+
+static void
+ICCCM_GetColormap(EWin * ewin)
+{
+ XWindowAttributes xwa;
+
+ ewin->client.cmap = None;
+ if (XGetWindowAttributes(disp, EwinGetClientXwin(ewin), &xwa)
+ && xwa.colormap)
+ ewin->client.cmap = xwa.colormap;
+}
+
+void
+ICCCM_Delete(const EWin * ewin)
+{
+ if (EwinIsInternal(ewin))
+ {
+ EwinHide((EWin *) ewin);
+ return;
+ }
+
+ if (ewin->icccm.delete_window)
+ ecore_x_icccm_delete_window_send(EwinGetClientXwin(ewin), CurrentTime);
+ else
+ XKillClient(disp, EwinGetClientXwin(ewin));
+}
+
+#if 0 /* Deprecated */
+void
+ICCCM_Save(const EWin * ewin)
+{
+ if (EwinIsInternal(ewin))
+ return;
+
+ ecore_x_icccm_send_save_yourself(EwinGetClientXwin(ewin));
+}
+#endif
+
+void
+ICCCM_Iconify(const EWin * ewin)
+{
+ EUnmapWindow(EwinGetClientWin(ewin));
+ ecore_x_icccm_state_set_iconic(EwinGetClientXwin(ewin));
+}
+
+void
+ICCCM_DeIconify(const EWin * ewin)
+{
+ EMapWindow(EwinGetClientWin(ewin));
+ ecore_x_icccm_state_set_normal(EwinGetClientXwin(ewin));
+}
+
+void
+ICCCM_Withdraw(const EWin * ewin)
+{
+ /* We have a choice of deleting the WM_STATE property
+ * or changing the value to Withdrawn. Since twm/fvwm does
+ * it that way, we change it to Withdrawn.
+ */
+ ecore_x_icccm_state_set_withdrawn(EwinGetClientXwin(ewin));
+
+ XRemoveFromSaveSet(disp, EwinGetClientXwin(ewin));
+}
+
+void
+ICCCM_SizeMatch(const EWin * ewin, int wi, int hi, int *pwo, int *pho)
+{
+ int w, h;
+ int i, j;
+ double aspect, dw, dh;
+
+ w = wi;
+ h = hi;
+
+ if (w < ewin->icccm.width_min)
+ w = ewin->icccm.width_min;
+ if (w > ewin->icccm.width_max)
+ w = ewin->icccm.width_max;
+ if (h < ewin->icccm.height_min)
+ h = ewin->icccm.height_min;
+ if (h > ewin->icccm.height_max)
+ h = ewin->icccm.height_max;
+ if ((w > 0) && (h > 0))
+ {
+ w -= ewin->icccm.base_w;
+ h -= ewin->icccm.base_h;
+ if ((w > 0) && (h > 0))
+ {
+ aspect = ((double)w) / ((double)h);
+ dw = ewin->icccm.w_inc / 4.;
+ dh = ewin->icccm.h_inc / 4.;
+ if (Mode.mode == MODE_RESIZE_H)
+ {
+ if (aspect < ewin->icccm.aspect_min)
+ w = (int)((double)h * ewin->icccm.aspect_min + dw);
+ else if (aspect > ewin->icccm.aspect_max)
+ w = (int)((double)h * ewin->icccm.aspect_max + dw);
+ }
+ else if (Mode.mode == MODE_RESIZE_V)
+ {
+ if (aspect < ewin->icccm.aspect_min)
+ h = (int)((double)w / ewin->icccm.aspect_min + dh);
+ else if (aspect > ewin->icccm.aspect_max)
+ h = (int)((double)w / ewin->icccm.aspect_max + dh);
+ }
+ else
+ {
+ if (aspect < ewin->icccm.aspect_min)
+ {
+ if (ewin->icccm.aspect_min >= 1.)
+ h = (int)((double)w / ewin->icccm.aspect_min + dh);
+ else
+ w = (int)((double)h * ewin->icccm.aspect_min + dw);
+ }
+ else if (aspect > ewin->icccm.aspect_max)
+ {
+ if (ewin->icccm.aspect_max >= 1.)
+ h = (int)((double)w / ewin->icccm.aspect_max + dh);
+ else
+ w = (int)((double)h * ewin->icccm.aspect_max + dw);
+ }
+ }
+ i = w / ewin->icccm.w_inc;
+ j = h / ewin->icccm.h_inc;
+ w = i * ewin->icccm.w_inc;
+ h = j * ewin->icccm.h_inc;
+ }
+ w += ewin->icccm.base_w;
+ h += ewin->icccm.base_h;
+ }
+
+ *pwo = w;
+ *pho = h;
+}
+
+#if 0 /* Unused */
+void
+ICCCM_MatchSize(EWin * ewin)
+{
+ ICCCM_SizeMatch(ewin, ewin->client.w, ewin->client.h, &ewin->client.w,
+ &ewin->client.h);
+}
+#endif
+
+void
+ICCCM_GetIncrementalSize(EWin * ewin, unsigned int w, unsigned int h,
+ unsigned int *wi, unsigned int *hi)
+{
+ *wi = (w - ewin->icccm.base_w) / ewin->icccm.w_inc;
+ *hi = (h - ewin->icccm.base_h) / ewin->icccm.h_inc;
+}
+
+void
+ICCCM_SetSizeConstraints(EWin * ewin, unsigned int wmin, unsigned int hmin,
+ unsigned int wmax, unsigned int hmax,
+ unsigned int wbase, unsigned int hbase,
+ unsigned int winc, unsigned int hinc,
+ double amin, double amax)
+{
+ ewin->icccm.width_min = wmin;
+ ewin->icccm.height_min = hmin;
+ ewin->icccm.width_max = wmax;
+ ewin->icccm.height_max = hmax;
+
+ ewin->icccm.base_w = wbase;
+ ewin->icccm.base_h = hbase;
+ ewin->icccm.w_inc = winc;
+ ewin->icccm.h_inc = hinc;
+
+ ewin->icccm.aspect_min = amin;
+ ewin->icccm.aspect_max = amax;
+
+ ewin->props.no_resize_h = (wmin == wmax);
+ ewin->props.no_resize_v = (hmin == hmax);
+}
+
+void
+ICCCM_Configure(EWin * ewin)
+{
+ XEvent ev;
+ Window child;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ ev.type = ConfigureNotify;
+ ev.xconfigure.display = disp;
+ ev.xconfigure.event = EwinGetClientXwin(ewin);
+ ev.xconfigure.window = EwinGetClientXwin(ewin);
+#if 0 /* FIXME - Remove? */
+ Desk *dsk;
+
+ dsk = EoGetDesk(ewin);
+ ev.xconfigure.x = EoGetX(dsk) + ewin->client.x;
+ ev.xconfigure.y = EoGetY(dsk) + ewin->client.y;
+#else
+ ev.xconfigure.x = ewin->client.x;
+ ev.xconfigure.y = ewin->client.y;
+#endif
+ if (Mode.wm.window)
+ ETranslateCoordinates(VROOT, RROOT,
+ ev.xconfigure.x, ev.xconfigure.y,
+ &ev.xconfigure.x, &ev.xconfigure.y, &child);
+ ev.xconfigure.width = ewin->client.w;
+ ev.xconfigure.height = ewin->client.h;
+ ev.xconfigure.border_width = 0;
+ ev.xconfigure.above = EoGetXwin(ewin);
+ ev.xconfigure.override_redirect = False;
+ EXSendEvent(EwinGetClientXwin(ewin), StructureNotifyMask, &ev);
+}
+
+void
+ICCCM_AdoptStart(const EWin * ewin)
+{
+ Window win = EwinGetClientXwin(ewin);
+
+ if (!EwinIsInternal(ewin))
+ XAddToSaveSet(disp, win);
+}
+
+void
+ICCCM_Adopt(const EWin * ewin)
+{
+ Window win = EwinGetClientXwin(ewin);
+
+ if (ewin->icccm.start_iconified)
+ ecore_x_icccm_state_set_iconic(win);
+ else
+ ecore_x_icccm_state_set_normal(win);
+}
+
+void
+ICCCM_Cmap(EWin * ewin)
+{
+ if (!ewin)
+ {
+ if (Mode.current_cmap)
+ {
+ XUninstallColormap(disp, Mode.current_cmap);
+ Mode.current_cmap = 0;
+ }
+ return;
+ }
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ ICCCM_GetColormap(ewin);
+
+ if ((ewin->client.cmap) && (Mode.current_cmap != ewin->client.cmap))
+ {
+ XWindowAttributes xwa;
+ int i, num;
+ Ecore_X_Window *wlist;
+
+ num = ecore_x_window_prop_window_list_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_COLORMAP_WINDOWS,
+ &wlist);
+ if (num > 0)
+ {
+ for (i = 0; i < num; i++)
+ {
+ if (XGetWindowAttributes(disp, wlist[i], &xwa))
+ {
+ if (xwa.colormap != WinGetCmap(VROOT))
+ {
+ XInstallColormap(disp, xwa.colormap);
+ Mode.current_cmap = xwa.colormap;
+ }
+ }
+ }
+ Efree(wlist);
+ return;
+ }
+ XInstallColormap(disp, ewin->client.cmap);
+ Mode.current_cmap = ewin->client.cmap;
+ }
+}
+
+void
+ICCCM_Focus(const EWin * ewin)
+{
+ if (EDebug(EDBUG_TYPE_FOCUS))
+ {
+ if (ewin)
+ Eprintf("ICCCM_Focus T=%#lx %#lx %s\n", Mode.events.time,
+ EwinGetClientXwin(ewin), EwinGetTitle(ewin));
+ else
+ Eprintf("ICCCM_Focus None T=%#lx\n", Mode.events.time);
+ }
+
+ if (!ewin)
+ {
+ XSetInputFocus(disp, WinGetXwin(VROOT), RevertToPointerRoot,
+ Mode.events.time);
+ HintsSetActiveWindow(None);
+ return;
+ }
+
+ if (ewin->icccm.take_focus)
+ {
+ ecore_x_icccm_take_focus_send(EwinGetClientXwin(ewin),
+ Mode.events.time);
+ }
+
+ XSetInputFocus(disp, EwinGetClientXwin(ewin), RevertToPointerRoot,
+ Mode.events.time);
+
+ HintsSetActiveWindow(EwinGetClientXwin(ewin));
+}
+
+void
+ICCCM_GetGeoms(EWin * ewin)
+{
+ XSizeHints hint;
+ long mask;
+
+ if (XGetWMNormalHints(disp, EwinGetClientXwin(ewin), &hint, &mask))
+ {
+ if (!(ewin->state.placed))
+ {
+ if ((hint.flags & USPosition) || ((hint.flags & PPosition)))
+ {
+ if ((hint.flags & PPosition) && (!EoIsSticky(ewin)))
+ {
+ Desk *dsk;
+
+ dsk = EoGetDesk(ewin);
+ if (!dsk)
+ dsk = DesksGetCurrent();
+ ewin->client.x -= EoGetX(dsk);
+ ewin->client.y -= EoGetY(dsk);
+ if (ewin->client.x + ewin->client.w >= WinGetW(VROOT))
+ {
+ ewin->client.x += EoGetX(dsk);
+ }
+ else if (ewin->client.x < 0)
+ {
+ ewin->client.x += EoGetX(dsk);
+ }
+ if (ewin->client.y + ewin->client.h >= WinGetH(VROOT))
+ {
+ ewin->client.y += EoGetY(dsk);
+ }
+ else if (ewin->client.y < 0)
+ {
+ ewin->client.y += EoGetY(dsk);
+ }
+ }
+ ewin->state.placed = 1;
+ }
+ }
+
+ if (hint.flags & PMinSize)
+ {
+ ewin->icccm.width_min = MAX(0, hint.min_width);
+ ewin->icccm.height_min = MAX(0, hint.min_height);
+ }
+ else
+ {
+ ewin->icccm.width_min = 0;
+ ewin->icccm.height_min = 0;
+ }
+
+ if (hint.flags & PMaxSize)
+ {
+ ewin->icccm.width_max = MIN(hint.max_width, 65535);
+ ewin->icccm.height_max = MIN(hint.max_height, 65535);
+ }
+ else
+ {
+ ewin->icccm.width_max = 65535;
+ ewin->icccm.height_max = 65535;
+ }
+
+ if (hint.flags & PResizeInc)
+ {
+ ewin->icccm.w_inc = MAX(1, hint.width_inc);
+ ewin->icccm.h_inc = MAX(1, hint.height_inc);
+ }
+ else
+ {
+ ewin->icccm.w_inc = 1;
+ ewin->icccm.h_inc = 1;
+ }
+
+ if (hint.flags & PAspect)
+ {
+ if ((hint.min_aspect.y > 0.0) && (hint.min_aspect.x > 0.0))
+ {
+ ewin->icccm.aspect_min =
+ ((double)hint.min_aspect.x) / ((double)hint.min_aspect.y);
+ }
+ else
+ {
+ ewin->icccm.aspect_min = 0.0;
+ }
+ if ((hint.max_aspect.y > 0.0) && (hint.max_aspect.x > 0.0))
+ {
+ ewin->icccm.aspect_max =
+ ((double)hint.max_aspect.x) / ((double)hint.max_aspect.y);
+ }
+ else
+ {
+ ewin->icccm.aspect_max = 65535.0;
+ }
+ }
+ else
+ {
+ ewin->icccm.aspect_min = 0.0;
+ ewin->icccm.aspect_max = 65535.0;
+ }
+
+ if (hint.flags & PBaseSize)
+ {
+ ewin->icccm.base_w = hint.base_width;
+ ewin->icccm.base_h = hint.base_height;
+ }
+ else
+ {
+ ewin->icccm.base_w = ewin->icccm.width_min;
+ ewin->icccm.base_h = ewin->icccm.height_min;
+ }
+
+ if (ewin->icccm.width_min < ewin->icccm.base_w)
+ ewin->icccm.width_min = ewin->icccm.base_w;
+ if (ewin->icccm.height_min < ewin->icccm.base_h)
+ ewin->icccm.height_min = ewin->icccm.base_h;
+
+ if (ewin->icccm.width_max < ewin->icccm.base_w)
+ ewin->icccm.width_max = ewin->icccm.base_w;
+ if (ewin->icccm.height_max < ewin->icccm.base_h)
+ ewin->icccm.height_max = ewin->icccm.base_h;
+
+ if (hint.flags & PWinGravity)
+ ewin->icccm.grav = hint.win_gravity;
+ else
+ ewin->icccm.grav = NorthWestGravity;
+ }
+
+ ewin->props.no_resize_h = (ewin->icccm.width_min == ewin->icccm.width_max);
+ ewin->props.no_resize_v = (ewin->icccm.height_min == ewin->icccm.height_max);
+
+ if (EDebug(EDBUG_TYPE_SNAPS))
+ Eprintf("Snap get icccm %#lx: %4d+%4d %4dx%4d: %s\n",
+ EwinGetClientXwin(ewin), ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, EwinGetTitle(ewin));
+}
+
+#define TryGroup(e) (((e)->icccm.group != None) && ((e)->icccm.group != EwinGetClientXwin(e)))
+
+static void
+ICCCM_GetWmClass(EWin * ewin)
+{
+ _EFREE(EwinGetIcccmCName(ewin));
+ _EFREE(EwinGetIcccmClass(ewin));
+
+ ecore_x_icccm_name_class_get(EwinGetClientXwin(ewin),
+ &EwinGetIcccmCName(ewin),
+ &EwinGetIcccmClass(ewin));
+ if (!EwinGetIcccmCName(ewin) && TryGroup(ewin))
+ ecore_x_icccm_name_class_get(ewin->icccm.group,
+ &EwinGetIcccmCName(ewin),
+ &EwinGetIcccmClass(ewin));
+}
+
+static void
+ICCCM_GetWmCommand(EWin * ewin)
+{
+ int argc;
+ char **argv, s[4096], *ss;
+
+ _EFREE(ewin->icccm.wm_command);
+
+ argc = ecore_x_window_prop_string_list_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_COMMAND, &argv);
+ if ((argc < 0) && TryGroup(ewin))
+ argc = ecore_x_window_prop_string_list_get(ewin->icccm.group,
+ ECORE_X_ATOM_WM_COMMAND,
+ &argv);
+
+ ss = StrlistEncodeEscaped(s, sizeof(s), argv, argc);
+ ewin->icccm.wm_command = Estrdup(ss);
+ StrlistFree(argv, argc);
+}
+
+static void
+ICCCM_GetWmClientMachine(EWin * ewin)
+{
+ _EFREE(ewin->icccm.wm_machine);
+
+ ewin->icccm.wm_machine =
+ ecore_x_window_prop_string_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_CLIENT_MACHINE);
+ if (!ewin->icccm.wm_machine && TryGroup(ewin))
+ ewin->icccm.wm_machine =
+ ecore_x_window_prop_string_get(ewin->icccm.group,
+ ECORE_X_ATOM_WM_CLIENT_MACHINE);
+}
+
+static void
+ICCCM_GetWmIconName(EWin * ewin)
+{
+ _EFREE(ewin->icccm.wm_icon_name);
+
+ ewin->icccm.wm_icon_name =
+ ecore_x_window_prop_string_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_ICON_NAME);
+ if (!ewin->icccm.wm_icon_name && TryGroup(ewin))
+ ewin->icccm.wm_icon_name =
+ ecore_x_window_prop_string_get(ewin->icccm.group,
+ ECORE_X_ATOM_WM_ICON_NAME);
+}
+
+static void
+ICCCM_GetWmWindowRole(EWin * ewin)
+{
+ _EFREE(ewin->icccm.wm_role);
+ ewin->icccm.wm_role =
+ ecore_x_window_prop_string_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_WINDOW_ROLE);
+}
+
+void
+ICCCM_GetInfo(EWin * ewin)
+{
+ ICCCM_GetWmClass(ewin);
+ ICCCM_GetWmCommand(ewin);
+ ICCCM_GetWmClientMachine(ewin);
+ ICCCM_GetWmIconName(ewin);
+ ICCCM_GetWmWindowRole(ewin);
+}
+
+static void
+ICCCM_GetWmHints(EWin * ewin)
+{
+ XWMHints *hint;
+
+ hint = XGetWMHints(disp, EwinGetClientXwin(ewin));
+ if (!hint)
+ return;
+
+ /* I have to make sure the thing i'm docking is a dock app */
+ if ((hint->flags & StateHint) && (hint->initial_state == WithdrawnState))
+ {
+ if (hint->flags & (StateHint | IconWindowHint | IconPositionHint |
+ WindowGroupHint))
+ {
+ if ((hint->icon_x == 0) && (hint->icon_y == 0)
+ && hint->window_group == EwinGetClientXwin(ewin))
+ ewin->state.docked = 1;
+ }
+ }
+
+ ewin->icccm.need_input =
+ ((hint->flags & InputHint) && (!hint->input)) ? 0 : 1;
+
+ ewin->icccm.start_iconified =
+ ((hint->flags & StateHint) &&
+ (hint->initial_state == IconicState)) ? 1 : 0;
+
+ if (hint->flags & IconPixmapHint)
+ {
+ if (ewin->icccm.icon_pmap != hint->icon_pixmap)
+ {
+ ewin->icccm.icon_pmap = hint->icon_pixmap;
+ EwinChange(ewin, EWIN_CHANGE_ICON_PMAP);
+ }
+ }
+ else
+ {
+ ewin->icccm.icon_pmap = None;
+ }
+
+ ewin->icccm.icon_mask =
+ (hint->flags & IconMaskHint) ? hint->icon_mask : None;
+
+ ewin->icccm.icon_win =
+ (hint->flags & IconWindowHint) ? hint->icon_window : None;
+
+ ewin->icccm.group =
+ (hint->flags & WindowGroupHint) ? hint->window_group : None;
+
+ if (hint->flags & XUrgencyHint)
+ {
+ if (!ewin->state.attention)
+ EwinChange(ewin, EWIN_CHANGE_ATTENTION);
+ ewin->icccm.urgency = 1;
+ ewin->state.attention = 1;
+ }
+ else
+ {
+ ewin->icccm.urgency = 0;
+ }
+
+ if (ewin->icccm.group == EwinGetClientXwin(ewin))
+ {
+ ewin->icccm.is_group_leader = 1;
+ }
+ else
+ {
+ ewin->icccm.is_group_leader = 0;
+ }
+
+ XFree(hint);
+}
+
+static void
+ICCCM_GetWmProtocols(EWin * ewin)
+{
+ Atom *prop;
+ int i, num;
+
+ if (XGetWMProtocols(disp, EwinGetClientXwin(ewin), &prop, &num))
+ {
+ ewin->icccm.take_focus = 0;
+ ewin->icccm.delete_window = 0;
+ for (i = 0; i < num; i++)
+ {
+ if (prop[i] == ECORE_X_ATOM_WM_TAKE_FOCUS)
+ ewin->icccm.take_focus = ewin->icccm.need_input = 1;
+ else if (prop[i] == ECORE_X_ATOM_WM_DELETE_WINDOW)
+ ewin->icccm.delete_window = 1;
+#if USE_XSYNC
+ else if (prop[i] == ECORE_X_ATOM_NET_WM_SYNC_REQUEST)
+ {
+ unsigned int c;
+
+ ewin->ewmh.sync_request_enable = 1;
+ ecore_x_window_prop_card32_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER,
+ &c, 1);
+ ewin->ewmh.sync_request_counter = c;
+ }
+#endif
+ }
+ XFree(prop);
+ }
+}
+
+static void
+ICCCM_GetWmTransientFor(EWin * ewin)
+{
+ Window win;
+
+ ewin->icccm.transient = 0;
+ ewin->icccm.transient_for = None;
+ if (XGetTransientForHint(disp, EwinGetClientXwin(ewin), &win))
+ {
+ ewin->icccm.transient = 1;
+ ewin->icccm.transient_for = win;
+ }
+}
+
+static void
+ICCCM_GetWmClientLeader(EWin * ewin)
+{
+ int num;
+ Ecore_X_Window cleader;
+
+ num = ecore_x_window_prop_window_get(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_CLIENT_LEADER,
+ &cleader, 1);
+ if (num > 0)
+ {
+ ewin->icccm.client_leader = cleader;
+ if (!ewin->icccm.group)
+ ewin->icccm.group = cleader;
+ }
+}
+
+void
+ICCCM_GetHints(EWin * ewin)
+{
+ ICCCM_GetWmHints(ewin);
+ ICCCM_GetWmProtocols(ewin);
+ ICCCM_GetWmTransientFor(ewin);
+ ICCCM_GetWmClientLeader(ewin);
+}
+
+void
+ICCCM_SetIconSizes(void)
+{
+ XIconSize *is;
+
+ is = XAllocIconSize();
+ is->min_width = 8;
+ is->min_height = 8;
+ is->max_width = 48;
+ is->max_height = 48;
+ is->width_inc = 1;
+ is->height_inc = 1;
+ XSetIconSizes(disp, WinGetXwin(VROOT), is, 1);
+ XFree(is);
+}
+
+/*
+ * Process received window property change
+ */
+int
+ICCCM_ProcessPropertyChange(EWin * ewin, Atom atom_change)
+{
+ if (atom_change == ECORE_X_ATOM_WM_NAME)
+ {
+ ICCCM_GetTitle(ewin);
+ return 1;
+ }
+
+ /* ICCCM_GetHints */
+ if (atom_change == ECORE_X_ATOM_WM_HINTS)
+ {
+ ICCCM_GetWmHints(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_WM_PROTOCOLS)
+ {
+ ICCCM_GetWmProtocols(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_WM_TRANSIENT_FOR)
+ {
+ ICCCM_GetWmTransientFor(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_WM_CLIENT_LEADER)
+ {
+ ICCCM_GetWmClientLeader(ewin);
+ return 1;
+ }
+
+ /* ICCCM_GetInfo */
+ if (atom_change == ECORE_X_ATOM_WM_ICON_NAME)
+ {
+ ICCCM_GetWmIconName(ewin);
+ return 1;
+ }
+#if 1 /* FIXME - Any reason to process these? */
+ if (atom_change == ECORE_X_ATOM_WM_CLASS)
+ {
+ ICCCM_GetWmClass(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_WM_COMMAND)
+ {
+ ICCCM_GetWmCommand(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_WM_CLIENT_MACHINE)
+ {
+ ICCCM_GetWmClientMachine(ewin);
+ return 1;
+ }
+ if (atom_change == ECORE_X_ATOM_WM_WINDOW_ROLE)
+ {
+ ICCCM_GetWmWindowRole(ewin);
+ return 1;
+ }
+#endif
+
+ if (atom_change == ECORE_X_ATOM_WM_COLORMAP_WINDOWS)
+ {
+ ICCCM_Cmap(ewin);
+ return 1;
+ }
+
+ if (atom_change == ECORE_X_ATOM_WM_NORMAL_HINTS)
+ {
+ ICCCM_GetGeoms(ewin);
+ return 1;
+ }
+
+ return 0;
+}
+
+#if USE_XSYNC
+int
+EwinSyncRequestSend(EWin * ewin)
+{
+ long long count;
+
+ if (!ewin->ewmh.sync_request_enable || EServerIsGrabbed())
+ return 0;
+
+ count = ++ewin->ewmh.sync_request_count;
+
+ if (count == 0)
+ ewin->ewmh.sync_request_count = ++count;
+ ecore_x_client_message32_send(EwinGetClientXwin(ewin),
+ ECORE_X_ATOM_WM_PROTOCOLS,
+ StructureNotifyMask,
+ ECORE_X_ATOM_NET_WM_SYNC_REQUEST,
+ Mode.events.time,
+ (long)(count & 0xffffffff),
+ (long)(count >> 32), 0);
+
+ return 1;
+}
+
+void
+EwinSyncRequestWait(EWin * ewin)
+{
+ XSyncWaitCondition xswc[2];
+ double t;
+
+ if (!ewin->ewmh.sync_request_enable || EServerIsGrabbed())
+ return;
+
+ xswc[0].trigger.counter = ewin->ewmh.sync_request_counter;
+ xswc[0].trigger.value_type = XSyncAbsolute;
+ XSyncIntsToValue(&xswc[0].trigger.wait_value,
+ ewin->ewmh.sync_request_count & 0xffffffff,
+ ewin->ewmh.sync_request_count >> 32);
+ xswc[0].trigger.test_type = XSyncPositiveComparison;
+ XSyncIntsToValue(&xswc[0].event_threshold, 0, 0);
+
+ xswc[1].trigger.counter = Mode.display.server_time;
+ xswc[1].trigger.value_type = XSyncRelative;
+ XSyncIntsToValue(&xswc[1].trigger.wait_value, 200, 0); /* 200 ms */
+ xswc[1].trigger.test_type = XSyncPositiveComparison;
+ XSyncIntsToValue(&xswc[1].event_threshold, 0, 0);
+
+ t = GetTime();
+ XSyncAwait(disp, xswc, 2);
+ if (EDebug(EDBUG_TYPE_SYNC))
+ Eprintf("Sync t=%#lx c=%llx: Delay=%8.6lf us\n",
+ xswc[0].trigger.counter, ewin->ewmh.sync_request_count,
+ GetTime() - t);
+}
+#endif /* USE_XSYNC */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "backgrounds.h"
+#include "conf.h"
+#include "desktops.h"
+#include "e16-ecore_list.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "iclass.h"
+#include "tclass.h"
+#include "xwin.h"
+
+#define ENABLE_DESTROY 0 /* Broken */
+
+struct _imagestate {
+ char *im_file;
+ char *real_file;
+ char got_colors;
+ char unloadable;
+ char transparent;
+ char pixmapfillstyle;
+ char bevelstyle;
+ char rotate;
+ EImage *im;
+ EImageBorder *border;
+ EColor bg, hi, lo, hihi, lolo;
+};
+
+typedef struct {
+ ImageState *normal;
+ ImageState *hilited;
+ ImageState *clicked;
+ ImageState *disabled;
+} ImageStateArray;
+
+struct _imageclass {
+ char *name;
+ ImageStateArray norm, active, sticky, sticky_active;
+ EImageBorder padding;
+ unsigned int ref_count;
+};
+
+static Ecore_List *iclass_list = NULL;
+
+static ImageClass *ImageclassGetFallback(void);
+
+#ifdef ENABLE_THEME_TRANSPARENCY
+
+static EImageColorModifier *icm = NULL;
+static unsigned char gray[256];
+static unsigned char alpha[256];
+
+static int prev_alpha = -1;
+
+int
+TransparencyEnabled(void)
+{
+ return Conf.trans.alpha;
+}
+
+int
+TransparencyUpdateNeeded(void)
+{
+ return Conf.trans.alpha || prev_alpha;
+}
+
+static void
+TransparencyMakeColorModifier(void)
+{
+ int i;
+
+ for (i = 0; i < 256; i++)
+ {
+ gray[i] = i;
+ alpha[i] = 255 - Conf.trans.alpha;
+ }
+
+ if (icm == NULL)
+ icm = EImageColorModifierCreate();
+ EImageColorModifierSetTables(icm, gray, gray, gray, alpha);
+}
+
+void
+TransparencySet(int transparency)
+{
+ int changed;
+
+ if (transparency < 0)
+ transparency = 0;
+ else if (transparency > 255)
+ transparency = 255;
+
+ /* This will render the initial startup stuff correctly since !changed */
+ if (prev_alpha == -1)
+ {
+ prev_alpha = Conf.trans.alpha = transparency;
+ changed = -1;
+ }
+ else
+ {
+ changed = Conf.trans.alpha != transparency;
+ prev_alpha = Conf.trans.alpha;
+ Conf.trans.alpha = transparency;
+ }
+
+ if (!changed)
+ return;
+
+ /* Generate the color modifier tables */
+ TransparencyMakeColorModifier();
+
+ if (changed < 0)
+ return;
+
+ if (prev_alpha == 0)
+ {
+ /* Hack to get tiled backgrounds regenerated at full size */
+ BackgroundsInvalidate(1);
+ }
+ ModulesSignal(ESIGNAL_THEME_TRANS_CHANGE, NULL);
+}
+
+#endif /* ENABLE_THEME_TRANSPARENCY */
+
+EImage *
+ThemeImageLoad(const char *file)
+{
+ EImage *im;
+ char *f;
+
+ if (!file)
+ return NULL;
+
+ if (file[0] == '/')
+ {
+ im = EImageLoad(file);
+ return im;
+ }
+
+ f = ThemeFileFind(file);
+ if (f)
+ {
+ im = EImageLoad(f);
+ Efree(f);
+ return im;
+ }
+
+ return NULL;
+}
+
+static void
+ImagestateColorsSetGray(ImageState * is,
+ unsigned int hihi, unsigned int hi,
+ unsigned int bg, unsigned int lo, unsigned int lolo)
+{
+ SET_COLOR(&(is->hihi), hihi, hihi, hihi);
+ SET_COLOR(&(is->hi), hi, hi, hi);
+ SET_COLOR(&(is->bg), bg, bg, bg);
+ SET_COLOR(&(is->lo), lo, lo, lo);
+ SET_COLOR(&(is->lolo), lolo, lolo, lolo);
+}
+
+static ImageState *
+ImagestateCreate(const char *file)
+{
+ ImageState *is;
+
+ is = ECALLOC(ImageState, 1);
+ if (!is)
+ return NULL;
+
+ is->pixmapfillstyle = FILL_STRETCH;
+ ImagestateColorsSetGray(is, 255, 200, 160, 120, 64);
+ is->bevelstyle = BEVEL_NONE;
+ is->im_file = Estrdup(file);
+
+ return is;
+}
+
+#if ENABLE_DESTROY
+static void
+ImagestateDestroy(ImageState * is)
+{
+ if (!is)
+ return;
+
+ Efree(is->im_file);
+ Efree(is->real_file);
+
+ if (is->im)
+ EImageFree(is->im);
+
+ Efree(is->border);
+
+ Efree(is);
+}
+
+static void
+FreeImageStateArray(ImageStateArray * isa)
+{
+ ImagestateDestroy(isa->normal);
+ ImagestateDestroy(isa->hilited);
+ ImagestateDestroy(isa->clicked);
+ ImagestateDestroy(isa->disabled);
+}
+#endif /* ENABLE_DESTROY */
+
+static void
+ImagestateColorsAlloc(ImageState * is)
+{
+ if (!is || is->got_colors)
+ return;
+
+ EAllocColor(WinGetCmap(VROOT), &is->bg);
+ EAllocColor(WinGetCmap(VROOT), &is->hi);
+ EAllocColor(WinGetCmap(VROOT), &is->lo);
+ EAllocColor(WinGetCmap(VROOT), &is->hihi);
+ EAllocColor(WinGetCmap(VROOT), &is->lolo);
+
+ is->got_colors = 1;
+}
+
+static void
+ImagestateRealize(ImageState * is)
+{
+ if (!is)
+ return;
+ if (is->im) /* Image is already loaded */
+ return;
+
+ if (!is->real_file)
+ {
+ if (!is->im_file)
+ return; /* No file - quit */
+ /* not loaded, load and setup */
+ is->real_file = ThemeFileFind(is->im_file);
+ }
+ if (is->real_file)
+ {
+ is->im = EImageLoad(is->real_file);
+ if (is->im && is->rotate)
+ EImageOrientate(is->im, is->rotate);
+ }
+ if (!is->im)
+ {
+#define S(s) ((s) ? (s) : "(null)")
+ Eprintf
+ ("ImagestateRealize: Hmmm... is->im is NULL (im_file=%s real_file=%s)\n",
+ S(is->im_file), S(is->real_file));
+ Efree(is->real_file);
+ is->real_file = NULL;
+ return;
+ }
+
+ Efree(is->im_file); /* We no longer need the file */
+ is->im_file = NULL;
+
+ EImageCheckAlpha(is->im);
+
+ if (is->border)
+ EImageSetBorder(is->im, is->border);
+
+#if 0 /* To be implemented? */
+ if (is->colmod)
+ {
+ Imlib_set_image_red_curve(pImlib_Context, is->im, is->colmod->red.map);
+ Imlib_set_image_green_curve(pImlib_Context, is->im,
+ is->colmod->green.map);
+ Imlib_set_image_blue_curve(pImlib_Context, is->im,
+ is->colmod->blue.map);
+ }
+#endif
+}
+
+static ImageClass *
+ImageclassCreate(const char *name)
+{
+ ImageClass *ic;
+
+ ic = ECALLOC(ImageClass, 1);
+ if (!ic)
+ return NULL;
+
+ if (!iclass_list)
+ iclass_list = ecore_list_new();
+ ecore_list_prepend(iclass_list, ic);
+
+ ic->name = Estrdup(name);
+ ic->norm.normal = ic->norm.hilited = ic->norm.clicked = ic->norm.disabled =
+ NULL;
+ ic->active.normal = ic->active.hilited = ic->active.clicked =
+ ic->active.disabled = NULL;
+ ic->sticky.normal = ic->sticky.hilited = ic->sticky.clicked =
+ ic->sticky.disabled = NULL;
+ ic->sticky_active.normal = ic->sticky_active.hilited =
+ ic->sticky_active.clicked = ic->sticky_active.disabled = NULL;
+ ic->padding.left = 0;
+ ic->padding.right = 0;
+ ic->padding.top = 0;
+ ic->padding.bottom = 0;
+ ic->ref_count = 0;
+
+ return ic;
+}
+
+#if ENABLE_DESTROY
+static void
+ImageclassDestroy(ImageClass * ic)
+{
+ if (!ic)
+ return;
+
+ if (ic->ref_count > 0)
+ {
+ DialogOK("ImageClass Error!", _("%u references remain\n"),
+ ic->ref_count);
+ return;
+ }
+
+ ecore_list_node_remove(iclass_list, ic);
+
+ Efree(ic->name);
+
+ FreeImageStateArray(&(ic->norm));
+ FreeImageStateArray(&(ic->active));
+ FreeImageStateArray(&(ic->sticky));
+ FreeImageStateArray(&(ic->sticky_active));
+
+ Efree(ic);
+}
+#endif /* ENABLE_DESTROY */
+
+ImageClass *
+ImageclassAlloc(const char *name, int fallback)
+{
+ ImageClass *ic;
+
+ if (!name || !name[0])
+ return NULL;
+
+ ic = ImageclassFind(name, fallback);
+ if (ic)
+ ic->ref_count++;
+
+ return ic;
+}
+
+void
+ImageclassFree(ImageClass * ic)
+{
+ if (ic)
+ ic->ref_count--;
+}
+
+const char *
+ImageclassGetName(ImageClass * ic)
+{
+ return (ic) ? ic->name : NULL;
+}
+
+EImageBorder *
+ImageclassGetPadding(ImageClass * ic)
+{
+ return (ic) ? &(ic->padding) : NULL;
+}
+
+static int
+_ImageclassMatchName(const void *data, const void *match)
+{
+ return strcmp(((const ImageClass *)data)->name, (const char *)match);
+}
+
+ImageClass *
+ImageclassFind(const char *name, int fallback)
+{
+ ImageClass *ic = NULL;
+
+ if (name)
+ ic = (ImageClass *) ecore_list_find(iclass_list, _ImageclassMatchName,
+ name);
+ if (ic || !fallback)
+ return ic;
+
+#if 0
+ Eprintf("%s: Get fallback (%s)\n", __func__, name);
+#endif
+ return ImageclassGetFallback();
+}
+
+#define ISTATE_SET_STATE(which, fallback) \
+ if (!ic->which) ic->which = ic->fallback;
+
+static void
+ImageclassPopulate(ImageClass * ic)
+{
+ if (!ic)
+ return;
+
+ if (!ic->norm.normal)
+ return;
+
+ ISTATE_SET_STATE(norm.hilited, norm.normal);
+ ISTATE_SET_STATE(norm.clicked, norm.normal);
+ ISTATE_SET_STATE(norm.disabled, norm.normal);
+
+ ISTATE_SET_STATE(active.normal, norm.normal);
+ ISTATE_SET_STATE(active.hilited, active.normal);
+ ISTATE_SET_STATE(active.clicked, active.normal);
+ ISTATE_SET_STATE(active.disabled, active.normal);
+
+ ISTATE_SET_STATE(sticky.normal, norm.normal);
+ ISTATE_SET_STATE(sticky.hilited, sticky.normal);
+ ISTATE_SET_STATE(sticky.clicked, sticky.normal);
+ ISTATE_SET_STATE(sticky.disabled, sticky.normal);
+
+ ISTATE_SET_STATE(sticky_active.normal, norm.normal);
+ ISTATE_SET_STATE(sticky_active.hilited, sticky_active.normal);
+ ISTATE_SET_STATE(sticky_active.clicked, sticky_active.normal);
+ ISTATE_SET_STATE(sticky_active.disabled, sticky_active.normal);
+}
+
+int
+ImageclassConfigLoad(FILE * fs)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char *p2;
+ int i1;
+ ImageClass *ic = NULL;
+ ImageState *is = NULL;
+ int l, r, t, b;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, &p2, NULL);
+
+ /* ic not needed */
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ ImageclassPopulate(ic);
+ goto done;
+ case CONFIG_COLORMOD:
+ case ICLASS_COLORMOD:
+ continue;
+ case CONFIG_CLASSNAME:
+ case ICLASS_NAME:
+ if (ImageclassFind(s2, 0))
+ {
+ SkipTillEnd(fs);
+ goto done;
+ }
+ ic = ImageclassCreate(s2);
+ continue;
+ }
+
+ /* ic needed */
+ if (!ic)
+ break;
+
+ switch (i1)
+ {
+ case CONFIG_INHERIT:
+ {
+ ImageClass *ic2;
+
+ ic2 = ImageclassFind(s2, 0);
+ if (!ic2)
+ goto not_ok;
+ ic->norm = ic2->norm;
+ ic->active = ic2->active;
+ ic->sticky = ic2->sticky;
+ ic->sticky_active = ic2->sticky_active;
+ ic->padding = ic2->padding;
+ }
+ break;
+ case ICLASS_PADDING:
+ l = r = t = b = 0;
+ sscanf(p2, "%i %i %i %i", &l, &r, &t, &b);
+ ic->padding.left = l;
+ ic->padding.right = r;
+ ic->padding.top = t;
+ ic->padding.bottom = b;
+ continue;
+ case CONFIG_DESKTOP:
+ /* don't ask... --mandrake */
+ case ICLASS_NORMAL:
+ ic->norm.normal = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_CLICKED:
+ ic->norm.clicked = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_HILITED:
+ ic->norm.hilited = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_DISABLED:
+ ic->norm.disabled = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_NORMAL:
+ ic->sticky.normal = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_CLICKED:
+ ic->sticky.clicked = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_HILITED:
+ ic->sticky.hilited = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_DISABLED:
+ ic->sticky.disabled = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_ACTIVE_NORMAL:
+ ic->active.normal = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_ACTIVE_CLICKED:
+ ic->active.clicked = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_ACTIVE_HILITED:
+ ic->active.hilited = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_ACTIVE_DISABLED:
+ ic->active.disabled = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_ACTIVE_NORMAL:
+ ic->sticky_active.normal = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_ACTIVE_CLICKED:
+ ic->sticky_active.clicked = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_ACTIVE_HILITED:
+ ic->sticky_active.hilited = is = ImagestateCreate(s2);
+ continue;
+ case ICLASS_STICKY_ACTIVE_DISABLED:
+ ic->sticky_active.disabled = is = ImagestateCreate(s2);
+ continue;
+ }
+
+ /* is needed */
+ if (!is)
+ break;
+
+ switch (i1)
+ {
+ case ICLASS_LRTB:
+ is->border = EMALLOC(EImageBorder, 1);
+ l = r = t = b = 0;
+ sscanf(p2, "%i %i %i %i", &l, &r, &t, &b);
+ is->border->left = l;
+ is->border->right = r;
+ is->border->top = t;
+ is->border->bottom = b;
+ /* Hmmm... imlib2 works better with this */
+ is->border->right++;
+ is->border->bottom++;
+ continue;
+ case ICLASS_FILLRULE:
+ is->pixmapfillstyle = atoi(s2);
+ continue;
+ case ICLASS_TRANSPARENT:
+ is->transparent = strtoul(s2, NULL, 0);
+ continue;
+ case ICLASS_ROTATE: /* flip goes here too */
+ is->rotate = strtoul(s2, NULL, 0);
+ continue;
+ case ICLASS_BEVEL:
+#define _R(x) (((x) >> 16) & 0xff)
+#define _G(x) (((x) >> 8) & 0xff)
+#define _B(x) (((x) ) & 0xff)
+#define INT_TO_COLOR(xc, rgb) \
+ do { (&(xc))->red = _R(rgb); (&(xc))->green = _G(rgb); (&(xc))->blue = _B(rgb); } while(0)
+ {
+ int n, bevel, hihi, hi, bg, lo, lolo;
+
+ n = sscanf(p2, "%i %i %i %i %i %i",
+ &bevel, &hihi, &hi, &bg, &lo, &lolo);
+ if (n < 6)
+ goto not_ok;
+ is->bevelstyle = bevel;
+ INT_TO_COLOR(is->hihi, hihi);
+ INT_TO_COLOR(is->hi, hi);
+ INT_TO_COLOR(is->bg, bg);
+ INT_TO_COLOR(is->lo, lo);
+ INT_TO_COLOR(is->lolo, lolo);
+ }
+ break;
+ default:
+ goto not_ok;
+ }
+ }
+ not_ok:
+ err = -1;
+
+ done:
+ return err;
+}
+
+ImageClass *
+ImageclassCreateSimple(const char *name, const char *image)
+{
+ ImageClass *ic;
+
+ ic = ImageclassCreate(name);
+ if (!ic)
+ return NULL;
+
+ ic->norm.normal = ImagestateCreate(image);
+ ic->norm.normal->unloadable = 1;
+ ImageclassPopulate(ic);
+
+ ImagestateRealize(ic->norm.normal);
+
+ return ic;
+}
+
+#ifdef ENABLE_THEME_TRANSPARENCY
+int
+ImageclassIsTransparent(ImageClass * ic)
+{
+ return ic && ic->norm.normal && ic->norm.normal->transparent;
+}
+#endif
+
+static ImageState *
+ImageclassGetImageState1(ImageStateArray * pisa, int state)
+{
+ ImageState *is;
+
+ switch (state)
+ {
+ case STATE_NORMAL:
+ is = pisa->normal;
+ break;
+ case STATE_HILITED:
+ is = pisa->hilited;
+ break;
+ case STATE_CLICKED:
+ is = pisa->clicked;
+ break;
+ case STATE_DISABLED:
+ is = pisa->disabled;
+ break;
+ default:
+ is = NULL;
+ break;
+ }
+
+ return is;
+}
+
+ImageState *
+ImageclassGetImageState(ImageClass * ic, int state, int active, int sticky)
+{
+ ImageState *is;
+
+ if (active)
+ {
+ if (sticky)
+ is = ImageclassGetImageState1(&ic->sticky_active, state);
+ else
+ is = ImageclassGetImageState1(&ic->active, state);
+ }
+ else
+ {
+ if (sticky)
+ is = ImageclassGetImageState1(&ic->sticky, state);
+ else
+ is = ImageclassGetImageState1(&ic->norm, state);
+ }
+
+ return is;
+}
+
+EImage *
+ImageclassGetImage(ImageClass * ic, int active, int sticky, int state)
+{
+ EImage *im;
+ ImageState *is;
+
+ if (!ic)
+ return NULL;
+
+ is = ImageclassGetImageState(ic, state, active, sticky);
+ if (!is)
+ return NULL;
+
+ if (is->im == NULL)
+ ImagestateRealize(is);
+
+ im = is->im;
+ if (!im)
+ return NULL;
+ is->im = NULL;
+
+ return im;
+}
+
+#ifdef ENABLE_TRANSPARENCY
+static int
+pt_type_to_flags(int image_type)
+{
+ int flags;
+
+ if (Conf.trans.alpha == 0)
+ return ICLASS_ATTR_OPAQUE;
+
+ switch (image_type)
+ {
+ default:
+ case ST_SOLID:
+ case ST_BUTTON:
+ flags = ICLASS_ATTR_OPAQUE;
+ break;
+ case ST_BORDER:
+ flags = Conf.trans.border;
+ break;
+ case ST_WIDGET:
+ flags = Conf.trans.widget;
+ break;
+ case ST_ICONBOX:
+ flags = Conf.trans.iconbox;
+ break;
+ case ST_MENU:
+ flags = Conf.trans.menu;
+ break;
+ case ST_MENU_ITEM:
+ flags = Conf.trans.menu_item;
+ break;
+ case ST_TOOLTIP:
+ flags = Conf.trans.tooltip;
+ break;
+ case ST_DIALOG:
+ flags = Conf.trans.dialog;
+ break;
+ case ST_HILIGHT:
+ flags = Conf.trans.hilight;
+ break;
+ case ST_PAGER:
+ flags = Conf.trans.pager;
+ break;
+ case ST_WARPLIST:
+ flags = Conf.trans.warplist;
+ break;
+ }
+ if (flags != ICLASS_ATTR_OPAQUE)
+ flags |= ICLASS_ATTR_USE_CM;
+
+ return flags;
+}
+
+static EImage *
+pt_get_bg_image(Win win, int w, int h, int use_root)
+{
+ EImage *ii = NULL;
+ Win cr;
+ Drawable bg;
+ int xx, yy;
+
+ bg = DeskGetBackgroundPixmap(DesksGetCurrent());
+ if (use_root || bg == None)
+ {
+ cr = VROOT;
+ bg = WinGetXwin(VROOT);
+ }
+ else
+ {
+ cr = EoGetWin(DesksGetCurrent());
+ }
+ ETranslateCoordinates(win, cr, 0, 0, &xx, &yy, NULL);
+#if 0
+ Eprintf("pt_get_bg_image %#lx %d %d %d %d\n", win, xx, yy, w, h);
+#endif
+ if (xx < WinGetW(VROOT) && yy < WinGetH(VROOT) && xx + w >= 0 && yy + h >= 0)
+ {
+ /* Create the background base image */
+ ii = EImageGrabDrawable(bg, None, xx, yy, w, h, !EServerIsGrabbed());
+ }
+
+ return ii;
+}
+
+#endif
+
+EImage *
+ImageclassGetImageBlended(ImageClass * ic, Win win, int w, int h, int active,
+ int sticky, int state, int image_type)
+{
+ ImageState *is;
+ EImage *im, *bg;
+ int flags;
+
+ if (!ic)
+ return NULL;
+
+ is = ImageclassGetImageState(ic, state, active, sticky);
+ if (!is)
+ return NULL;
+
+ if (is->im == NULL)
+ ImagestateRealize(is);
+ im = is->im;
+ if (!im)
+ return NULL;
+
+#ifdef ENABLE_TRANSPARENCY
+ flags = pt_type_to_flags(image_type);
+ if (flags != ICLASS_ATTR_OPAQUE)
+ {
+ bg = pt_get_bg_image(win, w, h, flags & ICLASS_ATTR_GLASS);
+ if (bg)
+ {
+ /* FIXME - Tiling not implemented */
+ EImageBlendCM(bg, im, (flags & ICLASS_ATTR_USE_CM) ? icm : NULL);
+ goto done;
+ }
+ }
+#else
+ flags = image_type;
+ win = None;
+#endif
+
+ if (is->pixmapfillstyle == FILL_STRETCH)
+ {
+ bg = EImageCreateScaled(im, 0, 0, 0, 0, w, h);
+ }
+ else
+ {
+ int iw, ih, tw, th;
+
+ EImageGetSize(im, &iw, &ih);
+
+ tw = w;
+ th = h;
+ if (is->pixmapfillstyle & FILL_TILE_H)
+ tw = iw;
+ if (is->pixmapfillstyle & FILL_TILE_V)
+ th = ih;
+
+ bg = EImageCreate(w, h);
+ EImageTile(bg, im, 0, tw, th, 0, 0, w, h, 0, 0);
+ }
+
+#ifdef ENABLE_TRANSPARENCY
+ done:
+#endif
+ if ((is->unloadable) || (Conf.memory_paranoia))
+ {
+ EImageFree(is->im);
+ is->im = NULL;
+ }
+
+ return bg;
+}
+
+static void
+ImagestateMakePmapMask(ImageState * is, Win win, PmapMask * pmm,
+ int pmapflags, int w, int h, int image_type)
+{
+#ifdef ENABLE_TRANSPARENCY
+ EImage *ii = NULL;
+ int flags;
+ Pixmap pmap, mask;
+
+ flags = pt_type_to_flags(image_type);
+
+ /*
+ * is->transparent flags:
+ * 0x01: Use desktop background pixmap as base
+ * 0x02: Use root window as base (use only for transients, if at all)
+ * 0x04: Don't apply image mask to result
+ */
+ if (is->transparent && EImageHasAlpha(is->im))
+ flags = is->transparent;
+
+ if (flags != ICLASS_ATTR_OPAQUE)
+ {
+ ii = pt_get_bg_image(win, w, h, flags & ICLASS_ATTR_GLASS);
+ }
+ else
+ {
+#if 0
+ Eprintf("ImagestateMakePmapMask %#lx %d %d\n", win, w, h);
+#endif
+ }
+
+ if (ii)
+ {
+ EImageBlendCM(ii, is->im, (flags & ICLASS_ATTR_USE_CM) ? icm : NULL);
+
+ pmm->type = 0;
+ pmm->pmap = pmap = ECreatePixmap(win, w, h, 0);
+ pmm->mask = None;
+ pmm->w = w;
+ pmm->h = h;
+ EImageRenderOnDrawable(ii, win, pmap, 0, 0, 0, w, h);
+
+ if ((pmapflags & IC_FLAG_MAKE_MASK) && !(flags & ICLASS_ATTR_NO_CLIP))
+ {
+ if (EImageHasAlpha(is->im))
+ {
+ /* Make the scaled clip mask to be used */
+ EImageRenderPixmaps(is->im, win, EIMAGE_ANTI_ALIAS, &pmap,
+ &mask, w, h);
+
+ /* Replace the mask with the correct one */
+ pmm->mask = EXCreatePixmapCopy(mask, w, h, 1);
+
+ EImagePixmapsFree(pmap, mask);
+ }
+ }
+ EImageDecache(ii);
+ }
+ else
+#else
+ pmapflags = 0;
+ image_type = 0;
+#endif /* ENABLE_TRANSPARENCY */
+ if (is->pixmapfillstyle == FILL_STRETCH)
+ {
+ pmm->type = 1;
+ pmm->pmap = pmm->mask = None;
+ pmm->w = w;
+ pmm->h = h;
+ EImageRenderPixmaps(is->im, win, EIMAGE_ANTI_ALIAS, &pmm->pmap,
+ &pmm->mask, w, h);
+ }
+ else
+ {
+ int ww, hh, cw, ch, pw, ph;
+
+ EImageGetSize(is->im, &ww, &hh);
+
+ pw = w;
+ ph = h;
+ if (is->pixmapfillstyle & FILL_TILE_H)
+ pw = ww;
+ if (is->pixmapfillstyle & FILL_TILE_V)
+ ph = hh;
+ if (is->pixmapfillstyle & FILL_INT_TILE_H)
+ {
+ cw = w / ww;
+ if (cw * ww < w)
+ cw++;
+ if (cw < 1)
+ cw = 1;
+ pw = w / cw;
+ }
+ if (is->pixmapfillstyle & FILL_INT_TILE_V)
+ {
+ ch = h / hh;
+ if (ch * hh < h)
+ ch++;
+ if (ch < 1)
+ ch = 1;
+ ph = h / ch;
+ }
+ pmm->type = 1;
+ pmm->pmap = pmm->mask = None;
+ pmm->w = pw;
+ pmm->h = ph;
+ EImageRenderPixmaps(is->im, win, EIMAGE_ANTI_ALIAS, &pmm->pmap,
+ &pmm->mask, pw, ph);
+ }
+}
+
+#define LINE(x1, y1, x2, y2) \
+ XDrawLine(disp, win, gc, x + (x1), y + (y1), x + (x2), y + (y2))
+#define RECT(x, y, w, h) \
+ XDrawRectangle(disp, win, gc, x, y, w, h);
+
+static void
+ImagestateDrawBevel(ImageState * is, Drawable win, GC gc,
+ int x, int y, int w, int h)
+{
+ ImagestateColorsAlloc(is);
+
+ switch (is->bevelstyle)
+ {
+ case BEVEL_AMIGA:
+ XSetForeground(disp, gc, is->hihi.pixel);
+ LINE(0, 0, w - 2, 0);
+ LINE(0, 0, 0, h - 2);
+ XSetForeground(disp, gc, is->lolo.pixel);
+ LINE(1, h - 1, w - 1, h - 1);
+ LINE(w - 1, 1, w - 1, h - 1);
+ break;
+ case BEVEL_MOTIF:
+ XSetForeground(disp, gc, is->hi.pixel);
+ LINE(0, 0, w - 1, 0);
+ LINE(0, 0, 0, h - 1);
+ LINE(1, 1, w - 2, 1);
+ LINE(1, 1, 1, h - 2);
+ XSetForeground(disp, gc, is->lo.pixel);
+ LINE(0, h - 1, w - 1, h - 1);
+ LINE(w - 1, 1, w - 1, h - 1);
+ LINE(1, h - 2, w - 2, h - 2);
+ LINE(w - 2, 2, w - 2, h - 2);
+ break;
+ case BEVEL_NEXT:
+ XSetForeground(disp, gc, is->hihi.pixel);
+ LINE(0, 0, w - 1, 0);
+ LINE(0, 0, 0, h - 1);
+ XSetForeground(disp, gc, is->hi.pixel);
+ LINE(1, 1, w - 2, 1);
+ LINE(1, 1, 1, h - 2);
+ XSetForeground(disp, gc, is->lolo.pixel);
+ LINE(1, h - 1, w - 1, h - 1);
+ LINE(w - 1, 1, w - 1, h - 1);
+ XSetForeground(disp, gc, is->lo.pixel);
+ LINE(2, h - 2, w - 2, h - 2);
+ LINE(w - 2, 2, w - 2, h - 2);
+ break;
+ case BEVEL_DOUBLE:
+ XSetForeground(disp, gc, is->hi.pixel);
+ LINE(0, 0, w - 2, 0);
+ LINE(0, 0, 0, h - 2);
+ XSetForeground(disp, gc, is->lo.pixel);
+ LINE(1, 1, w - 3, 1);
+ LINE(1, 1, 1, h - 3);
+ XSetForeground(disp, gc, is->lo.pixel);
+ LINE(1, h - 1, w - 1, h - 1);
+ LINE(w - 1, 1, w - 1, h - 1);
+ XSetForeground(disp, gc, is->hi.pixel);
+ LINE(2, h - 2, w - 2, h - 2);
+ LINE(w - 2, 2, w - 2, h - 2);
+ break;
+ case BEVEL_WIDEDOUBLE:
+ XSetForeground(disp, gc, is->hihi.pixel);
+ LINE(0, 0, w - 1, 0);
+ LINE(0, 0, 0, h - 1);
+ XSetForeground(disp, gc, is->hi.pixel);
+ LINE(1, 1, w - 2, 1);
+ LINE(1, 1, 1, h - 2);
+ LINE(3, h - 4, w - 4, h - 4);
+ LINE(w - 4, 3, w - 4, h - 4);
+ XSetForeground(disp, gc, is->lolo.pixel);
+ LINE(1, h - 1, w - 1, h - 1);
+ LINE(w - 1, 1, w - 1, h - 1);
+ XSetForeground(disp, gc, is->lo.pixel);
+ LINE(2, h - 2, w - 2, h - 2);
+ LINE(w - 2, 2, w - 2, h - 2);
+ LINE(3, 3, w - 4, 3);
+ LINE(3, 3, 3, h - 4);
+ break;
+ case BEVEL_THINPOINT:
+ XSetForeground(disp, gc, is->hi.pixel);
+ LINE(0, 0, w - 2, 0);
+ LINE(0, 0, 0, h - 2);
+ XSetForeground(disp, gc, is->lo.pixel);
+ LINE(1, h - 1, w - 1, h - 1);
+ LINE(w - 1, 1, w - 1, h - 1);
+ XSetForeground(disp, gc, is->hihi.pixel);
+ LINE(0, 0, 1, 0);
+ LINE(0, 0, 0, 1);
+ XSetForeground(disp, gc, is->lolo.pixel);
+ LINE(w - 2, h - 1, w - 1, h - 1);
+ LINE(w - 1, h - 2, w - 1, h - 1);
+ break;
+ case BEVEL_THICKPOINT:
+ XSetForeground(disp, gc, is->hi.pixel);
+ RECT(x, y, w - 1, h - 1);
+ break;
+ default:
+ break;
+ }
+}
+
+static void
+ImagestateDrawNoImg(ImageState * is, Drawable draw, int x, int y, int w, int h)
+{
+ GC gc;
+
+ ImagestateColorsAlloc(is);
+
+ gc = EXCreateGC(draw, 0, NULL);
+ XSetFillStyle(disp, gc, FillSolid);
+ XSetForeground(disp, gc, is->bg.pixel);
+ XFillRectangle(disp, draw, gc, x, y, w, h);
+ if (is->bevelstyle != BEVEL_NONE)
+ ImagestateDrawBevel(is, draw, gc, x, y, w, h);
+ EXFreeGC(gc);
+}
+
+void
+ITApply(Win win, ImageClass * ic, ImageState * is,
+ int state, int active, int sticky, int image_type,
+ TextClass * tc, TextState * ts, const char *text, int flags)
+{
+ int w, h;
+
+ if (win == NULL || !ic)
+ return;
+
+ w = WinGetW(win);
+ h = WinGetH(win);
+ if (w <= 0 || h <= 0)
+ return;
+
+ if (!is)
+ is = ImageclassGetImageState(ic, state, active, sticky);
+ if (!is)
+ return;
+
+ if (tc && text)
+ {
+ if (!ts)
+ ts = TextclassGetTextState(tc, state, active, sticky);
+ }
+
+ if (is->im == NULL)
+ ImagestateRealize(is);
+
+ /* Imlib2 will not render pixmaps with dimensions > 8192 */
+ if (is->im && w <= 8192 && h <= 8192)
+ {
+ PmapMask pmm;
+
+ ImagestateMakePmapMask(is, win, &pmm, IC_FLAG_MAKE_MASK, w, h,
+ image_type);
+
+ if (pmm.pmap)
+ {
+ Pixmap pmap = pmm.pmap;
+
+ if ((ts && text) || (is->bevelstyle != BEVEL_NONE))
+ {
+ if (pmm.type != 0)
+ {
+ pmap = EGetWindowBackgroundPixmap(win);
+ EXCopyAreaTiled(pmm.pmap, None, pmap, 0, 0, w, h, 0, 0);
+ }
+
+ if (is->bevelstyle != BEVEL_NONE)
+ {
+ GC gc;
+
+ gc = EXCreateGC(WinGetXwin(win), 0, NULL);
+ Eprintf("%s: bevel=%d\n", __func__, is->bevelstyle);
+ ImagestateDrawBevel(is, pmap, gc, 0, 0, w, h);
+ EXFreeGC(gc);
+ }
+
+ if (ts && text)
+ TextstateTextDraw(ts, win, pmap, text, 0, 0, w, h,
+ &(ic->padding), 0,
+ TextclassGetJustification(tc), flags);
+ }
+
+ /* Set window pixmap */
+ if (pmap == pmm.pmap)
+ {
+ ESetWindowBackgroundPixmap(win, pmap);
+ EFreeWindowBackgroundPixmap(win);
+ }
+
+ if (pmm.w == w && pmm.h == h)
+ EShapeSetMask(win, 0, 0, pmm.mask);
+ else if (pmm.mask)
+ EShapeSetMaskTiled(win, 0, 0, pmm.mask, w, h);
+ }
+
+ FreePmapMask(&pmm);
+
+ if ((is->unloadable) || (Conf.memory_paranoia))
+ {
+ EImageFree(is->im);
+ is->im = NULL;
+ }
+ }
+ else
+ {
+ ImagestateColorsAlloc(is);
+
+ if (is->bevelstyle == BEVEL_NONE && !text)
+ {
+ ESetWindowBackground(win, is->bg.pixel);
+ }
+ else
+ {
+ Pixmap pmap;
+
+ pmap = EGetWindowBackgroundPixmap(win);
+ ImagestateDrawNoImg(is, pmap, 0, 0, w, h);
+ if (ts && text)
+ TextstateTextDraw(ts, win, pmap, text, 0, 0, w, h,
+ &(ic->padding), 0,
+ TextclassGetJustification(tc), flags);
+ }
+ }
+ EClearWindow(win);
+}
+
+void
+ImageclassApply(ImageClass * ic, Win win, int active, int sticky, int state,
+ int image_type)
+{
+ ITApply(win, ic, NULL, state, active, sticky, image_type, NULL, NULL, NULL,
+ 0);
+}
+
+static void
+PmapMaskTile(PmapMask * pmm, Win win, unsigned int w, unsigned int h)
+{
+ Pixmap pmap, mask;
+
+ pmap = ECreatePixmap(win, w, h, 0);
+ if (pmap == None)
+ return;
+ EXCopyAreaTiled(pmm->pmap, None, pmap, 0, 0, w, h, 0, 0);
+
+ mask = None;
+ if (pmm->mask != None)
+ mask = ECreatePixmap(win, w, h, 1);
+ if (mask != None)
+ EXCopyAreaTiled(pmm->mask, None, mask, 0, 0, w, h, 0, 0);
+
+ FreePmapMask(pmm);
+ pmm->type = 0;
+ pmm->w = w;
+ pmm->h = h;
+ pmm->pmap = pmap;
+ pmm->mask = mask;
+}
+
+void
+ImageclassApplyCopy(ImageClass * ic, Win win, int w, int h,
+ int active, int sticky, int state,
+ PmapMask * pmm, int pmapflags, int image_type)
+{
+ ImageState *is;
+
+ if (pmm == NULL)
+ return;
+
+ pmm->type = 0;
+ pmm->pmap = pmm->mask = 0;
+
+ if ((!ic) || (!win) || (w <= 0) || (h <= 0))
+ return;
+
+ is = ImageclassGetImageState(ic, state, active, sticky);
+ if (!is)
+ return;
+
+ if (is->im == NULL)
+ ImagestateRealize(is);
+
+ /* Imlib2 will not render pixmaps with dimensions > 8192 */
+ if (is->im && w <= 8192 && h <= 8192)
+ {
+ ImagestateMakePmapMask(is, win, pmm, pmapflags, w, h, image_type);
+
+ if ((pmapflags & IC_FLAG_FULL_SIZE) && pmm->pmap &&
+ (pmm->w != w || pmm->h != h))
+ {
+ /* Create new full sized pixmaps and fill them with the */
+ /* pmap and mask tiles */
+ PmapMaskTile(pmm, win, w, h);
+ }
+
+ if ((is->unloadable) || (Conf.memory_paranoia))
+ {
+ EImageFree(is->im);
+ is->im = NULL;
+ }
+ }
+ else
+ {
+ if (pmm->pmap)
+ Eprintf("ImageclassApplyCopy: Hmm... pmm->pmap already set\n");
+
+ pmm->type = 0;
+ pmm->pmap = ECreatePixmap(win, w, h, 0);
+ pmm->mask = 0;
+
+ ImagestateDrawNoImg(is, pmm->pmap, 0, 0, w, h);
+ /* FIXME - No text */
+ }
+}
+
+void
+ImageclassApplySimple(ImageClass * ic, Win win, Drawable draw, int state,
+ int x, int y, int w, int h)
+{
+ EImage *im;
+
+ if (!ic)
+ return;
+
+ im = ImageclassGetImage(ic, 0, 0, state);
+ if (im)
+ {
+ EImageRenderOnDrawable(im, win, draw, 0, x, y, w, h);
+ EImageFree(im);
+ }
+ else
+ {
+ ImageState *is;
+
+ is = ImageclassGetImageState(ic, state, 0, 0);
+ if (!is)
+ return;
+
+ ImagestateDrawNoImg(is, draw, x, y, w, h);
+ }
+}
+
+static ImageClass *
+ImageclassGetFallback(void)
+{
+ ImageClass *ic;
+
+ ic = ImageclassFind("__fb_ic", 0);
+ if (ic)
+ return ic;
+
+ /* Create fallback imageclass */
+ ic = ImageclassCreate("__fb_ic");
+ if (!ic)
+ return ic;
+
+ ic->norm.normal = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->norm.normal, 255, 255, 160, 0, 0);
+ ic->norm.normal->bevelstyle = BEVEL_AMIGA;
+
+ ic->norm.hilited = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->norm.hilited, 255, 255, 192, 0, 0);
+ ic->norm.hilited->bevelstyle = BEVEL_AMIGA;
+
+ ic->norm.clicked = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->norm.clicked, 0, 0, 192, 255, 255);
+ ic->norm.clicked->bevelstyle = BEVEL_AMIGA;
+
+ ic->active.normal = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->active.normal, 255, 255, 0, 0, 0);
+ SET_COLOR(&(ic->active.normal->bg), 180, 140, 160);
+ ic->active.normal->bevelstyle = BEVEL_AMIGA;
+
+ ic->active.hilited = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->active.hilited, 255, 255, 0, 0, 0);
+ SET_COLOR(&(ic->active.hilited->bg), 230, 190, 210);
+ ic->active.hilited->bevelstyle = BEVEL_AMIGA;
+
+ ic->active.clicked = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->active.clicked, 0, 0, 0, 255, 255);
+ SET_COLOR(&(ic->active.clicked->bg), 230, 190, 210);
+ ic->active.clicked->bevelstyle = BEVEL_AMIGA;
+
+ ic->padding.left = 4;
+ ic->padding.right = 4;
+ ic->padding.top = 4;
+ ic->padding.bottom = 4;
+
+ ImageclassPopulate(ic);
+
+ return ic;
+}
+
+ImageClass *
+ImageclassGetBlack(void)
+{
+ ImageClass *ic;
+
+ ic = ImageclassFind("__BLACK", 0);
+ if (ic)
+ return ic;
+
+ /* Create all black image class for filler borders */
+ ic = ImageclassCreate("__BLACK");
+ if (!ic)
+ return ic;
+
+ ic->norm.normal = ImagestateCreate(NULL);
+ ImagestateColorsSetGray(ic->norm.normal, 0, 0, 0, 0, 0);
+
+ ImageclassPopulate(ic);
+
+ return ic;
+}
+
+/*
+ * Imageclass Module
+ */
+
+static void
+ImageclassIpc(const char *params)
+{
+ char param1[1024];
+ char param2[1024];
+ int l;
+ const char *p;
+ ImageClass *ic;
+
+ if (!params)
+ {
+ IpcPrintf("Please specify...\n");
+ return;
+ }
+
+ p = params;
+ l = 0;
+ param1[0] = param2[0] = '\0';
+ sscanf(p, "%1000s %1000s %n", param1, param2, &l);
+ p += l;
+
+ if (!strncmp(param1, "list", 2))
+ {
+ ECORE_LIST_FOR_EACH(iclass_list, ic) IpcPrintf("%s\n", ic->name);
+ return;
+ }
+
+ if (!param1[0])
+ {
+ IpcPrintf("ImageClass not specified\n");
+ return;
+ }
+
+ if (!strcmp(param2, "create"))
+ {
+ /* Not implemented */
+ return;
+ }
+ else if (!strcmp(param2, "free_pixmap"))
+ {
+ Pixmap pmap;
+
+ pmap = (Pixmap) strtol(p, NULL, 0);
+ EImagePixmapsFree(pmap, None);
+ return;
+ }
+
+ ic = ImageclassFind(param1, 0);
+ if (!ic)
+ {
+ IpcPrintf("ImageClass not found: %s\n", param1);
+ return;
+ }
+
+ if (!strcmp(param2, "delete"))
+ {
+#if ENABLE_DESTROY
+ ImageclassDestroy(ic);
+#endif
+ }
+ else if (!strcmp(param2, "modify"))
+ {
+ /* Not implemented */
+ }
+ else if (!strcmp(param2, "get_padding"))
+ {
+ IpcPrintf("%i %i %i %i\n",
+ ic->padding.left, ic->padding.right,
+ ic->padding.top, ic->padding.bottom);
+ }
+ else if (!strcmp(param2, "get_image_size"))
+ {
+ ImagestateRealize(ic->norm.normal);
+ if (ic->norm.normal->im)
+ {
+ int w, h;
+
+ EImageGetSize(ic->norm.normal->im, &w, &h);
+ EImageFree(ic->norm.normal->im);
+ IpcPrintf("%i %i\n", w, h);
+ }
+ }
+ else if (!strcmp(param2, "apply"))
+ {
+ Window xwin;
+ Win win;
+ char state[20];
+ int st, w, h;
+
+ /* 3:xwin 4:state 5:w 6:h */
+ xwin = None;
+ state[0] = '\0';
+ w = h = -1;
+ sscanf(p, "%lx %16s %d %d", &xwin, state, &w, &h);
+
+ win = ECreateWinFromXwin(xwin);
+ if (!win)
+ return;
+
+ if (!strcmp(state, "normal"))
+ st = STATE_NORMAL;
+ else if (!strcmp(state, "hilited"))
+ st = STATE_HILITED;
+ else if (!strcmp(state, "clicked"))
+ st = STATE_CLICKED;
+ else if (!strcmp(state, "disabled"))
+ st = STATE_DISABLED;
+ else
+ st = STATE_NORMAL;
+
+ ImageclassApply(ic, win, 0, 0, st, ST_SOLID);
+ EDestroyWin(win);
+ }
+ else if (!strcmp(param2, "apply_copy"))
+ {
+ Window xwin;
+ Win win;
+ char state[20];
+ int st, w, h;
+ PmapMask pmm;
+
+ /* 3:xwin 4:state 5:w 6:h */
+ xwin = None;
+ state[0] = '\0';
+ w = h = -1;
+ sscanf(p, "%lx %16s %d %d", &xwin, state, &w, &h);
+
+ win = ECreateWinFromXwin(xwin);
+ if (!win)
+ return;
+
+ if (!strcmp(state, "normal"))
+ st = STATE_NORMAL;
+ else if (!strcmp(state, "hilited"))
+ st = STATE_HILITED;
+ else if (!strcmp(state, "clicked"))
+ st = STATE_CLICKED;
+ else if (!strcmp(state, "disabled"))
+ st = STATE_DISABLED;
+ else
+ st = STATE_NORMAL;
+
+ if (w < 0 || h < 0)
+ {
+ IpcPrintf("Error: missing width and/or height\n");
+ return;
+ }
+
+ ImageclassApplyCopy(ic, win, w, h, 0, 0, st, &pmm,
+ IC_FLAG_MAKE_MASK | IC_FLAG_FULL_SIZE, ST_SOLID);
+ IpcPrintf("0x%08lx 0x%08lx\n", pmm.pmap, pmm.mask);
+ EDestroyWin(win);
+ }
+ else if (!strcmp(param2, "query"))
+ {
+ IpcPrintf("ImageClass %s found\n", ic->name);
+ }
+ else if (!strcmp(param2, "ref_count"))
+ {
+ IpcPrintf("%u references remain\n", ic->ref_count);
+ }
+ else
+ {
+ IpcPrintf("Error: unknown operation specified\n");
+ }
+}
+
+static const IpcItem ImageclassIpcArray[] = {
+ {
+ ImageclassIpc,
+ "imageclass", "ic",
+ "List imageclasses, apply an imageclass",
+ NULL}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(ImageclassIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModImageclass;
+const EModule ModImageclass = {
+ "imageclass", "ic",
+ NULL,
+ {N_IPC_FUNCS, ImageclassIpcArray}
+ ,
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ICLASS_H
+#define _ICLASS_H
+
+#include "eimage.h"
+#include "etypes.h"
+#include "xwin.h"
+
+#define BEVEL_NONE 0
+#define BEVEL_AMIGA 1
+#define BEVEL_MOTIF 2
+#define BEVEL_NEXT 3
+#define BEVEL_DOUBLE 4
+#define BEVEL_WIDEDOUBLE 5
+#define BEVEL_THINPOINT 6
+#define BEVEL_THICKPOINT 7
+
+#define FILL_STRETCH 0
+#define FILL_TILE_H 1
+#define FILL_TILE_V 2
+#define FILL_INT_TILE_H 4
+#define FILL_INT_TILE_V 8
+
+/* Selective Transparency item types */
+#define ST_SOLID 0
+#define ST_BORDER 1
+#define ST_WIDGET 2
+#define ST_ICONBOX 3
+#define ST_MENU 4
+#define ST_MENU_ITEM 5
+#define ST_TOOLTIP 6
+#define ST_DIALOG 7
+#define ST_HILIGHT 8
+#define ST_PAGER 9
+#define ST_WARPLIST 10
+#define ST_BUTTON 11
+
+#define ICLASS_ATTR_OPAQUE 0x00 /* No transparency */
+#define ICLASS_ATTR_BG 0x01 /* Background transparency */
+#define ICLASS_ATTR_GLASS 0x02 /* Glass transparency */
+#define ICLASS_ATTR_NO_CLIP 0x04 /* Don't apply clip mask */
+#define ICLASS_ATTR_USE_CM 0x08 /* Use colormodifier */
+
+/* ImageclassApplyCopy flags */
+#define IC_FLAG_NONE 0x00 /* No flags */
+#define IC_FLAG_WRITABLE 0x01 /* Provide writable pixmaps */
+#define IC_FLAG_MAKE_MASK 0x02 /* Make mask */
+#define IC_FLAG_FULL_SIZE 0x04 /* Make full size pixmaps */
+
+/* iclass.c */
+int ImageclassConfigLoad(FILE * fs);
+
+#ifdef ENABLE_THEME_TRANSPARENCY
+void TransparencySet(int transparency);
+int TransparencyEnabled(void);
+int TransparencyUpdateNeeded(void);
+int ImageclassIsTransparent(ImageClass * ic);
+#else
+#define TransparencyEnabled() 0
+#define TransparencyUpdateNeeded() 0
+#define ImageclassIsTransparent(ic) 0
+#endif
+
+ImageClass *ImageclassFind(const char *name, int fallback);
+ImageClass *ImageclassAlloc(const char *name, int fallback);
+void ImageclassFree(ImageClass * ic);
+const char *ImageclassGetName(ImageClass * ic);
+EImageBorder *ImageclassGetPadding(ImageClass * ic);
+ImageState *ImageclassGetImageState(ImageClass * ic, int state,
+ int active, int sticky);
+ImageClass *ImageclassCreateSimple(const char *name, const char *image);
+ImageClass *ImageclassGetBlack(void);
+EImage *ImageclassGetImage(ImageClass * ic, int active, int sticky,
+ int state);
+void ImageclassApplySimple(ImageClass * ic, Win win,
+ Drawable draw, int state, int x,
+ int y, int w, int h);
+void ImageclassApply(ImageClass * ic, Win win,
+ int active, int sticky, int state,
+ int image_type);
+void ImageclassApplyCopy(ImageClass * ic, Win win, int w,
+ int h, int active, int sticky,
+ int state, PmapMask * pmm,
+ int pmapflags, int image_type);
+EImage *ImageclassGetImageBlended(ImageClass * ic, Win win,
+ int w, int h, int active,
+ int sticky, int state,
+ int image_type);
+void ITApply(Win win, ImageClass * ic, ImageState * is,
+ int state, int active, int sticky, int image_type,
+ TextClass * tc, TextState * ts, const char *text,
+ int flags);
+
+#endif /* _ICLASS_H */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "container.h"
+#include "desktops.h"
+#include "e16-ecore_hints.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "hints.h"
+#include "icons.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "xwin.h"
+#include <math.h>
+
+static Container *SelectIconboxForEwin(EWin * ewin);
+
+/* Silly hack to avoid name clash warning when using -Wshadow */
+#define y1 y1_
+
+#define IB_ANIM_TIME Conf_containers.anim_time
+#define IB_ANIM_STEP Conf.animation.step
+
+static void
+IB_Animate_Sleep(double t0, double a)
+{
+ double t, dt;
+
+ t = GetTime();
+ dt = t - t0 - a * 1e-3 * IB_ANIM_TIME;
+ dt = 1e-3 * IB_ANIM_STEP - dt;
+ if (dt > 0)
+ usleep((unsigned long)(1e6 * dt));
+}
+
+static void
+IB_Animate_A(char iconify, EWin * ewin, EWin * ibox)
+{
+ EWin *fr, *to;
+ double a, aa, spd, t0;
+ int x, y, x1, y1, x2, y2, x3, y3, x4, y4, w, h;
+ int fx, fy, fw, fh, tx, ty, tw, th;
+ Window root = WinGetXwin(VROOT);
+ GC gc;
+ XGCValues gcv;
+
+ /* Window: Extents, Iconbox: Center */
+ if (iconify)
+ {
+ fr = ewin;
+ to = ibox;
+ fw = EoGetW(fr) + 4;
+ fh = EoGetH(fr) + 4;
+ fx = EoGetX(fr) - 2;
+ fy = EoGetY(fr) - 2;
+ tw = 4;
+ th = 4;
+ tx = EoGetX(to) + EoGetW(to) / 2 - 2;
+ ty = EoGetY(to) + EoGetH(to) / 2 - 2;
+ }
+ else
+ {
+ fr = ibox;
+ to = ewin;
+ fw = 4;
+ fh = 4;
+ fx = EoGetX(fr) + EoGetW(fr) / 2 - 2;
+ fy = EoGetY(fr) + EoGetH(fr) / 2 - 2;
+ tw = EoGetW(to) + 4;
+ th = EoGetH(to) + 4;
+ tx = EoGetX(to) + 2;
+ ty = EoGetY(to) + 2;
+ }
+ fx += EoGetX(EoGetDesk(fr));
+ fy += EoGetY(EoGetDesk(fr));
+ tx += EoGetX(EoGetDesk(to));
+ ty += EoGetY(EoGetDesk(to));
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gcv.function = GXxor;
+ gcv.line_width = 2;
+ gcv.foreground = Dpy.pixel_white;
+ if (gcv.foreground == 0)
+ gcv.foreground = Dpy.pixel_black;
+ gc = EXCreateGC(root,
+ GCFunction | GCForeground | GCSubwindowMode | GCLineWidth,
+ &gcv);
+
+ spd = (1. * IB_ANIM_STEP) / IB_ANIM_TIME;
+
+ t0 = GetTime();
+ for (a = 0.0; a < 1.0; a += spd)
+ {
+ aa = 1.0 - a;
+
+ x = (int)((fx * aa) + (tx * a));
+ y = (int)((fy * aa) + (ty * a));
+ w = (int)((fw * aa) + (tw * a));
+ h = (int)((fh * aa) + (th * a));
+
+ x = (2 * x + w) / 2; /* x middle */
+ y = (2 * y + h) / 2; /* y middle */
+ w /= 2; /* width/2 */
+ h /= 2; /* height/2 */
+
+ x1 = (int)(x + w * (1 - .5 * sin(3.14159 + a * 6.2831853072)));
+ y1 = (int)(y + h * cos(a * 6.2831853072));
+ x2 = (int)(x + w * (1 - .5 * sin(a * 6.2831853072)));
+ y2 = (int)(y - h * cos(a * 6.2831853072));
+ x3 = (int)(x - w * (1 - .5 * sin(3.14159 + a * 6.2831853072)));
+ y3 = (int)(y - h * cos(a * 6.2831853072));
+ x4 = (int)(x - w * (1 - .5 * sin(a * 6.2831853072)));
+ y4 = (int)(y + h * cos(a * 6.2831853072));
+
+ XDrawLine(disp, root, gc, x1, y1, x2, y2);
+ XDrawLine(disp, root, gc, x2, y2, x3, y3);
+ XDrawLine(disp, root, gc, x3, y3, x4, y4);
+ XDrawLine(disp, root, gc, x4, y4, x1, y1);
+
+ ESync(0);
+ IB_Animate_Sleep(t0, a);
+
+ XDrawLine(disp, root, gc, x1, y1, x2, y2);
+ XDrawLine(disp, root, gc, x2, y2, x3, y3);
+ XDrawLine(disp, root, gc, x3, y3, x4, y4);
+ XDrawLine(disp, root, gc, x4, y4, x1, y1);
+ }
+
+ EXFreeGC(gc);
+}
+
+static void
+IB_Animate_B(char iconify, EWin * ewin, EWin * ibox)
+{
+ EWin *fr, *to;
+ double a, spd, t0;
+ int x, y, w, h;
+ int fx, fy, fw, fh, tx, ty, tw, th;
+ Window root = WinGetXwin(VROOT);
+ GC gc;
+ XGCValues gcv;
+
+ if (iconify)
+ {
+ fr = ewin;
+ to = ibox;
+ }
+ else
+ {
+ fr = ibox;
+ to = ewin;
+ }
+
+ fx = EoGetX(fr) - 2;
+ fy = EoGetY(fr) - 2;
+ fw = EoGetW(fr) + 3;
+ fh = EoGetH(fr) + 3;
+
+ tx = EoGetX(to) - 2;
+ ty = EoGetY(to) - 2;
+ tw = EoGetW(to) + 3;
+ th = EoGetH(to) + 3;
+
+ fx += EoGetX(EoGetDesk(fr));
+ fy += EoGetY(EoGetDesk(fr));
+ tx += EoGetX(EoGetDesk(to));
+ ty += EoGetY(EoGetDesk(to));
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gcv.function = GXxor;
+ gcv.fill_style = FillOpaqueStippled;
+ gcv.foreground = Dpy.pixel_white;
+ if (gcv.foreground == 0)
+ gcv.foreground = Dpy.pixel_black;
+ gc = EXCreateGC(root,
+ GCFunction | GCForeground | GCSubwindowMode | GCFillStyle,
+ &gcv);
+
+ XDrawLine(disp, root, gc, fx, fy, tx, ty);
+ XDrawLine(disp, root, gc, fx + fw, fy, tx + tw, ty);
+ XDrawLine(disp, root, gc, fx, fy + fh, tx, ty + th);
+ XDrawLine(disp, root, gc, fx + fw, fy + fh, tx + tw, ty + th);
+ XDrawRectangle(disp, root, gc, tx, ty, tw, th);
+ XDrawRectangle(disp, root, gc, fx, fy, fw, fh);
+
+ spd = (1. * IB_ANIM_STEP) / IB_ANIM_TIME;
+
+ t0 = GetTime();
+ for (a = 0.0; a < 1.0; a += spd)
+ {
+ x = (int)(fx + a * (tx - fx));
+ w = (int)(fw + a * (tw - fw));
+ y = (int)(fy + a * (ty - fy));
+ h = (int)(fh + a * (th - fh));
+ XDrawRectangle(disp, root, gc, x, y, w, h);
+
+ ESync(0);
+ IB_Animate_Sleep(t0, a);
+
+ XDrawRectangle(disp, root, gc, x, y, w, h);
+ }
+
+ XDrawLine(disp, root, gc, fx, fy, tx, ty);
+ XDrawLine(disp, root, gc, fx + fw, fy, tx + tw, ty);
+ XDrawLine(disp, root, gc, fx, fy + fh, tx, ty + th);
+ XDrawLine(disp, root, gc, fx + fw, fy + fh, tx + tw, ty + th);
+ XDrawRectangle(disp, root, gc, tx, ty, tw, th);
+ XDrawRectangle(disp, root, gc, fx, fy, fw, fh);
+
+ EXFreeGC(gc);
+}
+
+static void
+IB_Animate(Container * ct, int iconify, EWin * ewin)
+{
+ if (Mode.wm.startup || ct->anim_mode <= 0)
+ return;
+
+ if (Conf_containers.anim_time < 10 || Conf_containers.anim_time > 10000)
+ Conf_containers.anim_time = 250;
+
+ EobjsRepaint();
+ EGrabServer();
+
+ switch (ct->anim_mode)
+ {
+ default:
+ break;
+ case 1:
+ IB_Animate_A(iconify, ewin, ct->ewin);
+ break;
+ case 2:
+ IB_Animate_B(iconify, ewin, ct->ewin);
+ break;
+ }
+
+ EUngrabServer();
+}
+
+static int
+IconboxObjEwinFind(Container * ct, EWin * ewin)
+{
+ return ContainerObjectFind(ct, ewin);
+}
+
+static void
+IconboxObjEwinAdd(Container * ct, EWin * ewin)
+{
+ int i;
+
+ i = ContainerObjectAdd(ct, ewin);
+ if (i < 0)
+ return;
+
+ ct->objs[i].im = EwinIconImageGet(ewin, ct->iconsize, ct->icon_mode);
+ ContainerRedraw(ct);
+}
+
+static void
+IconboxObjEwinDel(Container * ct, EWin * ewin)
+{
+ int i;
+
+ i = IconboxObjEwinFind(ct, ewin);
+ if (i < 0)
+ return;
+
+ if (ct->objs[i].im)
+ EImageFree(ct->objs[i].im);
+
+ ContainerObjectDel(ct, ewin);
+}
+
+static void
+IconboxesEwinIconify(EWin * ewin)
+{
+ Container *ct;
+
+ ct = SelectIconboxForEwin(ewin);
+ if (!ct)
+ return;
+
+ SoundPlay(SOUND_ICONIFY);
+
+ if (EoIsShown(ewin) && ct->anim_mode && !ewin->state.showingdesk)
+ IB_Animate(ct, 1, ewin);
+
+ IconboxObjEwinAdd(ct, ewin);
+}
+
+static void
+IconboxesEwinDeIconify(EWin * ewin)
+{
+ Container *ct;
+
+ ct = SelectIconboxForEwin(ewin);
+ if (!ct)
+ return;
+
+ SoundPlay(SOUND_DEICONIFY);
+
+ if (ct->anim_mode && !ewin->state.showingdesk)
+ IB_Animate(ct, 0, ewin);
+
+ IconboxObjEwinDel(ct, ewin);
+ ContainerRedraw(ct);
+ EobjsRepaint();
+}
+
+static void
+RemoveMiniIcon(EWin * ewin)
+{
+ Container *ct;
+
+ ct = SelectIconboxForEwin(ewin);
+ if (!ct)
+ return;
+
+ IconboxObjEwinDel(ct, ewin);
+ ContainerRedraw(ct);
+}
+
+static int
+IconboxFindEwin(Container * ct, void *data)
+{
+ EWin *ewin = (EWin *) data;
+
+ return IconboxObjEwinFind(ct, ewin) >= 0;
+
+}
+
+static Container *
+SelectIconboxForEwin(EWin * ewin)
+{
+ /* find the appropriate iconbox from all available ones for this app */
+ /* if it is to be iconified, or if it is alreayd return which iconbox */
+ /* it's in */
+ Container *ct, *ib_sel = NULL;
+
+ if (!ewin)
+ return NULL;
+
+ if (ewin->state.iconified)
+ {
+ /* find the iconbox this window got iconifed into */
+ ib_sel = ContainersIterate(IconboxFindEwin, IB_TYPE_ICONBOX, ewin);
+ }
+ else
+ {
+ /* pick the closest iconbox physically on screen to put it in */
+ int min_dist;
+ int dx, dy, dist;
+ int i, num;
+ Container **lst;
+
+ lst = ContainersGetList(&num);
+ min_dist = 0x7fffffff;
+ for (i = 0; i < num; i++)
+ {
+ ct = lst[i];
+ if (ct->ewin == NULL || ct->type != IB_TYPE_ICONBOX)
+ continue;
+
+ dx = (EoGetX(ct->ewin) + (EoGetW(ct->ewin) / 2)) -
+ (EoGetX(ewin) + (EoGetW(ewin) / 2));
+ dy = (EoGetY(ct->ewin) + (EoGetH(ct->ewin) / 2)) -
+ (EoGetY(ewin) + (EoGetH(ewin) / 2));
+ dist = (dx * dx) + (dy * dy);
+ if ((!EoIsSticky(ct->ewin)) &&
+ (EoGetDesk(ct->ewin) != EoGetDesk(ewin)))
+ dist += (WinGetW(VROOT) * WinGetW(VROOT)) +
+ (WinGetH(VROOT) * WinGetH(VROOT));
+ if (dist < min_dist)
+ {
+ min_dist = dist;
+ ib_sel = ct;
+ }
+ }
+ Efree(lst);
+ }
+
+ return ib_sel;
+}
+
+static void
+IconboxUpdateEwinIcon(Container * ct, EWin * ewin, int icon_mode)
+{
+ int i;
+
+ if (ct->icon_mode != icon_mode)
+ return;
+
+ i = IconboxObjEwinFind(ct, ewin);
+ if (i < 0)
+ return;
+
+ if (ct->objs[i].im)
+ EImageFree(ct->objs[i].im);
+ ct->objs[i].im = EwinIconImageGet(ewin, ct->iconsize, icon_mode);
+
+ ContainerRedraw(ct);
+}
+
+static void
+IconboxesUpdateEwinIcon(EWin * ewin, int icon_mode)
+{
+ int i, num;
+ Container **lst, *ct;
+
+ lst = ContainersGetList(&num);
+ for (i = 0; i < num; i++)
+ {
+ ct = lst[i];
+ IconboxUpdateEwinIcon(ct, ewin, icon_mode);
+ }
+ Efree(lst);
+}
+
+static void
+IconboxFindIconSize(EImage * im, int *pw, int *ph, int size)
+{
+ int w, h, minsz, maxwh;
+
+ EImageGetSize(im, &w, &h);
+
+ maxwh = (w > h) ? w : h;
+ if (maxwh <= 1)
+ goto done;
+
+ minsz = (size * 3) / 4;
+
+ if (maxwh < minsz || maxwh > size)
+ {
+ w = (w * size) / maxwh;
+ h = (h * size) / maxwh;
+ }
+
+ done:
+ *pw = w;
+ *ph = h;
+}
+
+static void
+IconboxInit(Container * ct)
+{
+ ct->wm_name = "Iconbox";
+ ct->menu_title = _("Iconbox Options");
+ ct->dlg_title = _("Iconbox Settings");
+ ct->iconsize = 48;
+ ct->anim_mode = 1;
+}
+
+static void
+IconboxExit(Container * ct, int wm_exit)
+{
+ while (ct->num_objs)
+ {
+ if (!wm_exit)
+ EwinDeIconify((EWin *) ct->objs[0].obj);
+ IconboxObjEwinDel(ct, (EWin *) ct->objs[0].obj);
+ }
+}
+
+static void
+IconboxSighan(Container * ct __UNUSED__, int sig, void *prm)
+{
+ EWin *ewin;
+
+ switch (sig)
+ {
+ case ESIGNAL_EWIN_ICONIFY:
+ ewin = (EWin *) prm;
+ IconboxesEwinIconify(ewin);
+ break;
+ case ESIGNAL_EWIN_DEICONIFY:
+ ewin = (EWin *) prm;
+ IconboxesEwinDeIconify(ewin);
+ break;
+ case ESIGNAL_EWIN_DESTROY:
+ ewin = (EWin *) prm;
+ if (ewin->state.iconified)
+ RemoveMiniIcon(ewin);
+ break;
+ case ESIGNAL_EWIN_CHANGE_ICON:
+ ewin = (EWin *) prm;
+ if (ewin->state.iconified)
+ IconboxesUpdateEwinIcon(ewin, 1);
+ break;
+ }
+}
+
+static void
+IconboxEvent(Container * ct, XEvent * ev)
+{
+ static EWin *name_ewin = NULL;
+ ToolTip *tt;
+ EWin *ewin;
+ int x, y;
+ const char *name;
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ if (ev->xbutton.button == 1)
+ ct->icon_clicked = 1;
+ break;
+
+ case ButtonRelease:
+ if (!ct->icon_clicked)
+ break;
+ ct->icon_clicked = 0;
+
+ ewin =
+ (EWin *) ContainerObjectFindByXY(ct, ev->xbutton.x, ev->xbutton.y);
+ if (!ewin)
+ break;
+
+ tt = TooltipFind("ICONBOX");
+ if (tt)
+ TooltipHide(tt);
+
+ EwinOpIconify(ewin, OPSRC_USER, 0);
+ break;
+
+ case MotionNotify:
+ x = ev->xmotion.x;
+ y = ev->xmotion.y;
+ goto do_motion;
+
+ case EnterNotify:
+ x = ev->xcrossing.x;
+ y = ev->xcrossing.y;
+ goto do_motion;
+
+ do_motion:
+ if (!ct->shownames)
+ break;
+
+ ewin = (EWin *) ContainerObjectFindByXY(ct, x, y);
+ if (ewin == name_ewin)
+ break;
+ name_ewin = ewin;
+
+ tt = TooltipFind("ICONBOX");
+ if (!tt)
+ break;
+
+ TooltipHide(tt);
+ if (!ewin)
+ break;
+
+ name = EwinGetIconName(ewin);
+ if (name)
+ TooltipShow(tt, name, NULL, Mode.events.cx, Mode.events.cy);
+ break;
+
+ case LeaveNotify:
+ tt = TooltipFind("ICONBOX");
+ if (tt)
+ {
+ TooltipHide(tt);
+ name_ewin = NULL;
+ }
+ break;
+ }
+}
+
+static void
+IconboxObjSizeCalc(Container * ct, ContainerObject * cto)
+{
+ /* Inner size */
+ cto->wi = cto->hi = 8;
+ if (cto->im)
+ IconboxFindIconSize(cto->im, &cto->wi, &cto->hi, ct->iconsize);
+}
+
+static void
+IconboxObjPlace(Container * ct __UNUSED__, ContainerObject * cto, EImage * im)
+{
+ int w, h;
+
+ if (!cto->im)
+ return;
+
+ EImageGetSize(cto->im, &w, &h);
+ EImageBlend(im, cto->im, EIMAGE_BLEND | EIMAGE_ANTI_ALIAS, 0, 0, w, h,
+ cto->xi, cto->yi, cto->wi, cto->hi, 1);
+}
+
+extern const ContainerOps IconboxOps;
+const ContainerOps IconboxOps = {
+ IconboxInit,
+ IconboxExit,
+ IconboxSighan,
+ IconboxEvent,
+ IconboxObjSizeCalc,
+ IconboxObjPlace,
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "eimage.h"
+#include "ewins.h"
+#include "iclass.h"
+#include "icons.h"
+#include "windowmatch.h"
+#include "xwin.h"
+
+static int
+NetwmIconFindBestSize(unsigned int *val, unsigned int len, int size)
+{
+ unsigned int i, j, sj, sbest, sz;
+ int k = -1;
+
+ sz = (unsigned int)size;
+ sj = sbest = 0;
+ for (i = 0; i < len;)
+ {
+ j = i;
+ i += 2 + val[i] * val[i + 1];
+ if (i > len)
+ break;
+ /* Valid */
+ sj = val[j];
+ if (sj == sz)
+ {
+ k = j;
+ break; /* First exact match */
+ }
+ if (sj > sz)
+ {
+ if (sbest > sz && sj >= sbest)
+ continue;
+ }
+ else
+ {
+ if (sj <= sbest)
+ continue;
+ }
+ k = j;
+ sbest = sj;
+ }
+
+ return k;
+}
+
+static void
+IB_IconGetSize(int ww, int hh, int size, int scale, int *pw, int *ph)
+{
+ int w, h;
+
+ w = h = size;
+ w *= scale;
+ h *= scale;
+
+ if (ww > hh)
+ h = (w * hh) / ww;
+ else
+ w = (h * ww) / hh;
+ if (w < 4)
+ w = 4;
+ if (h < 4)
+ h = 4;
+ if (w > ww || h > hh)
+ {
+ w = ww;
+ h = hh;
+ }
+
+ *pw = w;
+ *ph = h;
+}
+
+static EImage *
+IB_SnapEWin(EWin * ewin, int size)
+{
+ /* Make snapshot of window */
+ int w, h, ww, hh;
+ EImage *im;
+ Drawable draw;
+
+ if (!EoIsShown(ewin))
+ return NULL;
+
+ ww = EoGetW(ewin);
+ hh = EoGetH(ewin);
+ if (ww <= 0 || hh <= 0)
+ return NULL;
+
+ if (ewin->state.shaded)
+ EwinInstantUnShade(ewin);
+ EwinRaise(ewin);
+
+ /* Oversample for nicer snapshots */
+ IB_IconGetSize(ww, hh, size, 4, &w, &h);
+
+ draw = EoGetPixmap(ewin);
+ if (draw != None)
+ {
+ Pixmap mask;
+
+ mask = EWindowGetShapePixmap(EoGetWin(ewin));
+ im = EImageGrabDrawableScaled(EoGetWin(ewin), draw, mask, 0, 0, ww, hh,
+ w, h, !EServerIsGrabbed(), 0);
+ if (mask)
+ EFreePixmap(mask);
+ }
+ else
+ {
+ draw = EoGetXwin(ewin);
+ im = EImageGrabDrawableScaled(EoGetWin(ewin), draw, None, 0, 0, ww, hh,
+ w, h, !EServerIsGrabbed(), 1);
+ }
+ EImageSetHasAlpha(im, 1);
+
+ return im;
+}
+
+static EImage *
+IB_GetAppIcon(EWin * ewin, int size)
+{
+ /* Get the applications icon pixmap/mask */
+ int w, h;
+ EImage *im;
+
+ if (ewin->ewmh.wm_icon)
+ {
+ int x;
+
+ x = NetwmIconFindBestSize(ewin->ewmh.wm_icon, ewin->ewmh.wm_icon_len,
+ size);
+ if (x >= 0)
+ {
+ im = EImageCreateFromData(ewin->ewmh.wm_icon[x],
+ ewin->ewmh.wm_icon[x + 1],
+ ewin->ewmh.wm_icon + x + 2);
+ EImageSetHasAlpha(im, 1);
+ return im;
+ }
+ }
+
+ if (!ewin->icccm.icon_pmap)
+ return NULL;
+
+ w = 0;
+ h = 0;
+ EXGetGeometry(ewin->icccm.icon_pmap, NULL, NULL, NULL, &w, &h, NULL, NULL);
+
+ if (w < 1 || h < 1)
+ return NULL;
+
+ im = EImageGrabDrawable(ewin->icccm.icon_pmap, ewin->icccm.icon_mask,
+ 0, 0, w, h, !EServerIsGrabbed());
+ EImageSetHasAlpha(im, 1);
+
+ return im;
+}
+
+static EImage *
+IB_GetEIcon(EWin * ewin)
+{
+ /* get the icon defined for this window in E's iconf match file */
+ const char *file;
+ EImage *im;
+
+ file = WindowMatchEwinIcon(ewin);
+ if (!file)
+ return NULL;
+
+ im = ThemeImageLoad(file);
+
+ return im;
+}
+
+static EImage *
+IB_GetFallbackIcon(EWin * ewin, int size)
+{
+ int w, h, ww, hh;
+ ImageClass *ic;
+ EImage *im;
+
+ ww = EoGetW(ewin);
+ hh = EoGetH(ewin);
+ if (ww <= 0)
+ ww = 1;
+ if (hh <= 0)
+ hh = 1;
+
+ IB_IconGetSize(ww, hh, size, 1, &w, &h);
+
+ ic = ImageclassFind("ICONBOX_HORIZONTAL", 1);
+ im = ImageclassGetImageBlended(ic, EoGetWin(ewin), w, h, 0, 0,
+ STATE_NORMAL, ST_SOLID);
+
+ return im;
+}
+
+#define N_MODES 5
+#define N_TYPES 4
+static const char ewin_icon_modes[N_MODES][N_TYPES] = {
+ {EWIN_ICON_TYPE_SNAP, EWIN_ICON_TYPE_APP, EWIN_ICON_TYPE_IMG,
+ EWIN_ICON_TYPE_FB},
+ {EWIN_ICON_TYPE_APP, EWIN_ICON_TYPE_IMG, EWIN_ICON_TYPE_SNAP,
+ EWIN_ICON_TYPE_FB},
+ {EWIN_ICON_TYPE_IMG, EWIN_ICON_TYPE_SNAP, EWIN_ICON_TYPE_APP,
+ EWIN_ICON_TYPE_FB},
+ {EWIN_ICON_TYPE_IMG, EWIN_ICON_TYPE_APP, EWIN_ICON_TYPE_NONE,
+ EWIN_ICON_TYPE_NONE},
+ {EWIN_ICON_TYPE_APP, EWIN_ICON_TYPE_IMG, EWIN_ICON_TYPE_NONE,
+ EWIN_ICON_TYPE_NONE},
+};
+
+EImage *
+EwinIconImageGet(EWin * ewin, int size, int mode)
+{
+ EImage *im = NULL;
+ int i, type;
+
+ if (mode < 0 || mode >= N_MODES)
+ mode = 4;
+
+ for (i = 0; i < N_TYPES; i++)
+ {
+ type = ewin_icon_modes[mode][i];
+
+ switch (type)
+ {
+ default:
+ goto done;
+
+ case EWIN_ICON_TYPE_SNAP:
+ im = IB_SnapEWin(ewin, size);
+ break;
+
+ case EWIN_ICON_TYPE_APP:
+ im = IB_GetAppIcon(ewin, size);
+ break;
+
+ case EWIN_ICON_TYPE_IMG:
+ im = IB_GetEIcon(ewin);
+ break;
+
+ case EWIN_ICON_TYPE_FB:
+ im = IB_GetFallbackIcon(ewin, size);
+ break;
+ }
+ if (im)
+ goto done;
+ }
+
+ done:
+ return im;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _ICONS_H_
+#define _ICONS_H_
+
+#include "eimage.h"
+#include "ewins.h"
+
+#define EWIN_ICON_TYPE_NONE 0
+#define EWIN_ICON_TYPE_APP 1
+#define EWIN_ICON_TYPE_IMG 2
+#define EWIN_ICON_TYPE_SNAP 3
+#define EWIN_ICON_TYPE_FB 4
+
+EImage *EwinIconImageGet(EWin * ewin, int size, int mode);
+
+#endif /* _ICONS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "borders.h" /* FIXME - Should not be here */
+#include "desktops.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "ewin-ops.h"
+#include "focus.h"
+#include "grabs.h"
+#include "hints.h" /* FIXME - Should not be here */
+#include "screen.h"
+#include "session.h"
+#include "settings.h"
+#include "snaps.h"
+#include "timers.h"
+#include "xwin.h"
+
+#define ENABLE_IPC_INSERT_KEYS 0
+
+#define SS(s) ((s) ? (s) : NoText)
+static const char NoText[] = "-NONE-";
+
+static char *ipc_bufptr = NULL;
+static size_t ipc_bufsiz = 0;
+static char ipc_active = 0;
+
+static void
+IpcPrintInit(void)
+{
+ ipc_bufptr = NULL;
+ ipc_bufsiz = 0;
+ ipc_active = 1;
+}
+
+static void
+IpcPrintDone(void)
+{
+ Efree(ipc_bufptr);
+ ipc_bufptr = NULL;
+ ipc_bufsiz = 0;
+ ipc_active = 0;
+}
+
+static const char *
+IpcPrintGetBuffer(void)
+{
+ if (!ipc_bufptr)
+ return NULL;
+ ipc_bufptr[ipc_bufsiz] = '\0';
+ return ipc_bufptr;
+}
+
+void
+IpcPrintf(const char *fmt, ...)
+{
+ char tmp[FILEPATH_LEN_MAX];
+ int len;
+ va_list args;
+
+ if (!ipc_active)
+ return;
+
+ va_start(args, fmt);
+ len = Evsnprintf(tmp, sizeof(tmp), fmt, args);
+ va_end(args);
+
+ ipc_bufptr = EREALLOC(char, ipc_bufptr, ipc_bufsiz + len + 1);
+
+ memcpy(ipc_bufptr + ipc_bufsiz, tmp, len);
+ ipc_bufsiz += len;
+}
+
+static int
+SetEwinBoolean(const char *txt, char *item, const char *value, int set)
+{
+ int vold, vnew;
+
+ vnew = vold = *item != 0; /* Remember old value */
+
+ if (value == NULL || value[0] == '\0')
+ vnew = !vold;
+ else if (!strcmp(value, "on"))
+ vnew = 1;
+ else if (!strcmp(value, "off"))
+ vnew = 0;
+ else if (!strcmp(value, "?"))
+ IpcPrintf("%s: %s", txt, (vold) ? "on" : "off");
+ else
+ IpcPrintf("Error: %s", value);
+
+ if (vnew != vold)
+ {
+ if (set)
+ *item = vnew;
+ return 1;
+ }
+
+ return 0;
+}
+
+/* The IPC functions */
+
+static void
+IPC_Screen(const char *params)
+{
+ char param[1024];
+ int l;
+ const char *p;
+
+ param[0] = '\0';
+ p = params;
+ if (p)
+ {
+ l = 0;
+ sscanf(p, "%1000s %n", param, &l);
+ p += l;
+ }
+
+ if (!p || !strncmp(param, "list", 2))
+ {
+ ScreenShowInfo(p);
+ }
+ else if (!strncmp(param, "size", 2))
+ {
+ IpcPrintf("Screen %d size %dx%d\n", Dpy.screen,
+ WinGetW(VROOT), WinGetH(VROOT));
+ }
+ else if (!strcmp(param, "split"))
+ {
+ unsigned int nx, ny;
+
+ nx = 2;
+ ny = 1;
+ sscanf(p, "%u %u\n", &nx, &ny);
+ ScreenSplit(nx, ny);
+ }
+}
+
+static void
+IPC_Nop(const char *params __UNUSED__)
+{
+ IpcPrintf("nop");
+}
+
+/* Should be elsewhere */
+static void
+IPC_Border_CB_List(Border * b, void *data __UNUSED__)
+{
+ IpcPrintf("%s\n", BorderGetName(b));
+}
+
+static void
+IPC_Border(const char *params)
+{
+ if (!params)
+ {
+ IpcPrintf("Please specify...\n");
+ return;
+ }
+
+ if (!strncmp(params, "list", 2))
+ {
+ BordersForeach(IPC_Border_CB_List, NULL);
+ }
+}
+
+static void
+IPC_DialogOK(const char *params)
+{
+ if (params)
+ DialogOKstr(_("Message"), params);
+ else
+ IpcPrintf("Error: No text for dialog specified\n");
+}
+
+static int
+CfgStrlistIndex(const char **list, const char *str)
+{
+ int i;
+
+ for (i = 0; list[i]; i++)
+ if (!strcmp(list[i], str))
+ return i;
+ return -1;
+}
+
+static const char *MovResCfgMoveModes[] = {
+ "opaque", "lined", "box", "shaded", "semi-solid", "translucent", NULL
+};
+
+static const char *MovResCfgResizeModes[] = {
+ "opaque", "lined", "box", "shaded", "semi-solid", NULL
+};
+
+static const char *MovResCfgInfoModes[] = {
+ "never", "center", "corner", NULL
+};
+
+static void
+IPC_MoveResize(const char *params)
+{
+ char param1[32];
+ char param2[32];
+ int i;
+
+ if (!params)
+ {
+ IpcPrintf("Please specify...\n");
+ return;
+ }
+
+ param1[0] = param2[0] = '\0';
+ sscanf(params, "%31s %31s", param1, param2);
+
+ if (!strncmp(param1, "move", 2))
+ {
+ if (param2[0] == '\n' || param2[0] == '?')
+ {
+ if (Conf.movres.mode_move < 0 || Conf.movres.mode_move > 5)
+ Conf.movres.mode_move = 0;
+ IpcPrintf("Move mode: %s\n",
+ MovResCfgMoveModes[Conf.movres.mode_move]);
+ return;
+ }
+
+ i = CfgStrlistIndex(MovResCfgMoveModes, param2);
+ if (i >= 0)
+ {
+ Conf.movres.mode_move = i;
+ }
+ else
+ {
+ IpcPrintf("Move mode not found: %s\n", param2);
+ }
+
+ }
+ else if (!strncmp(param1, "resize", 2))
+ {
+ if (param2[0] == '\n' || param2[0] == '?')
+ {
+ if (Conf.movres.mode_resize < 0 || Conf.movres.mode_resize > 4)
+ Conf.movres.mode_resize = 0;
+ IpcPrintf("Resize mode: %s\n",
+ MovResCfgResizeModes[Conf.movres.mode_resize]);
+ return;
+ }
+
+ i = CfgStrlistIndex(MovResCfgResizeModes, param2);
+ if (i >= 0)
+ {
+ Conf.movres.mode_resize = i;
+ }
+ else
+ {
+ IpcPrintf("Resize mode not found: %s\n", param2);
+ }
+
+ }
+ else if (!strncmp(param1, "info", 2))
+ {
+ if (param2[0] == '\n' || param2[0] == '?')
+ {
+ if (Conf.movres.mode_info < 0 || Conf.movres.mode_info > 2)
+ Conf.movres.mode_info = 1;
+ IpcPrintf("Info mode: %s\n",
+ MovResCfgInfoModes[Conf.movres.mode_info]);
+ return;
+ }
+
+ i = CfgStrlistIndex(MovResCfgInfoModes, param2);
+ if (i >= 0)
+ {
+ Conf.movres.mode_info = i;
+ }
+ else
+ {
+ IpcPrintf("Info mode not found: %s\n", param2);
+ }
+
+ }
+}
+
+static void
+IPC_WinList(const char *params)
+{
+ static const char *const TxtPG[] = { "NW", "NE", "SW", "SE" };
+ char format[8];
+ const char *match;
+ EWin **lst, *e;
+ int num, i;
+
+ format[0] = '\0';
+ match = params;
+ if (match)
+ {
+ num = 0;
+ sscanf(params, "%8s %n", format, &num);
+ match += num;
+ }
+ if (!match || !match[0])
+ match = "all";
+
+ lst = EwinsFindByExpr(match, &num, NULL);
+ if (!lst)
+ {
+ IpcPrintf("No windows matching %s\n", match);
+ return;
+ }
+
+ for (i = 0; i < num; i++)
+ {
+ e = lst[i];
+ switch (format[0])
+ {
+ case '\0':
+ IpcPrintf("%#lx : %s\n", EwinGetClientXwin(e),
+ SS(EwinGetIcccmName(e)));
+ break;
+
+ default:
+ IpcPrintf("%#lx : %s :: %d : %d %d : %d %d %dx%d\n",
+ EwinGetClientXwin(e), SS(EwinGetIcccmName(e)),
+ (EoIsSticky(e)) ? -1 : (int)EoGetDeskNum(e), e->area_x,
+ e->area_y, EoGetX(e), EoGetY(e), EoGetW(e), EoGetH(e));
+ break;
+
+ case 'a':
+ IpcPrintf("%#10lx : %5d %5d %4dx%4d :: %2d : %d %d : %s\n",
+ EwinGetClientXwin(e), EoGetX(e), EoGetY(e), EoGetW(e),
+ EoGetH(e), (EoIsSticky(e)) ? -1 : (int)EoGetDeskNum(e),
+ e->area_x, e->area_y, SS(EwinGetIcccmName(e)));
+ break;
+
+ case 'g':
+ IpcPrintf
+ ("%#10lx : %5d %5d %4dx%4d :: %2d : %s %4d,%4d %2d,%2d : %s\n",
+ EwinGetClientXwin(e), EoGetX(e), EoGetY(e), EoGetW(e),
+ EoGetH(e), (EoIsSticky(e)) ? -1 : (int)EoGetDeskNum(e),
+ TxtPG[e->place.gravity & 3], e->place.gx, e->place.gy,
+ e->place.ax, e->place.ay, SS(EwinGetIcccmName(e)));
+ break;
+
+ case 'p':
+ IpcPrintf
+ ("%#10lx : %5d %5d %4dx%4d :: %2d : \"%s\" \"%s\" : \"%s\" : \"%s\"\n",
+ EwinGetClientXwin(e), EoGetX(e), EoGetY(e), EoGetW(e),
+ EoGetH(e), (EoIsSticky(e)) ? -1 : (int)EoGetDeskNum(e),
+ SS(EwinGetIcccmCName(e)), SS(EwinGetIcccmClass(e)),
+ SS(EwinGetIcccmName(e)), SS(e->icccm.wm_role));
+ break;
+ }
+ }
+ Efree(lst);
+}
+
+#if 0 /* TBD */
+static int
+doMoveConstrained(EWin * ewin, const char *params)
+{
+ return ActionMoveStart(ewin, 0, params, 1, 0);
+}
+
+static int
+doMoveNoGroup(EWin * ewin, const char *params)
+{
+ return ActionMoveStart(ewin, 0, params, 0, 1);
+}
+
+static int
+doSwapMove(EWin * ewin, const char *params)
+{
+ Mode.move.swap = 1;
+ return ActionMoveStart(ewin, 0, params, 0, 0);
+}
+
+static int
+doMoveConstrainedNoGroup(EWin * ewin, const char *params)
+{
+ return ActionMoveStart(ewin, 0, params, 1, 1);
+}
+#endif
+
+static Timer *op_timer = NULL;
+
+static int
+OpacityTimeout(void *data)
+{
+ EWin *ewin = (EWin *) data;
+
+ if (!EwinFindByPtr(ewin)) /* May be gone */
+ goto done;
+
+ if (ewin->state.active)
+ EoChangeOpacity(ewin, ewin->props.focused_opacity);
+
+ done:
+ ewin->state.show_coords = 0;
+ op_timer = NULL;
+ return 0;
+}
+
+static void
+IpcWinop(const WinOp * wop, EWin * ewin, const char *prm)
+{
+ char param1[128], param2[128];
+ unsigned int val;
+ char on;
+ int a, b;
+
+ param1[0] = param2[0] = '\0';
+ sscanf(prm, "%128s %128s", param1, param2);
+
+ switch (wop->op)
+ {
+ default:
+ /* We should not get here */
+ IpcPrintf("Error: unknown operation");
+ return;
+
+ case EWIN_OP_BORDER:
+ if (!param1[0])
+ {
+ IpcPrintf("Error: no border specified");
+ goto done;
+ }
+ if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("window border: %s", BorderGetName(ewin->border));
+ goto done;
+ }
+ EwinOpSetBorder(ewin, OPSRC_USER, param1);
+ break;
+
+ case EWIN_OP_TITLE:
+ if (!prm[0])
+ {
+ IpcPrintf("Error: no title specified");
+ goto done;
+ }
+ if (!strcmp(prm, "?"))
+ {
+ IpcPrintf("title: %s", EwinGetIcccmName(ewin));
+ goto done;
+ }
+ HintsSetWindowName(EwinGetClientWin(ewin), prm);
+ break;
+
+ case EWIN_OP_CLOSE:
+ EwinOpClose(ewin, OPSRC_USER);
+ break;
+
+ case EWIN_OP_KILL:
+ EwinOpKill(ewin, OPSRC_USER);
+ break;
+
+ case EWIN_OP_ICONIFY:
+ on = ewin->state.iconified;
+ if (SetEwinBoolean("window iconified", &on, param1, 1))
+ EwinOpIconify(ewin, OPSRC_USER, on);
+ break;
+
+ case EWIN_OP_ALONE:
+ EwinAlone(ewin);
+ break;
+
+ case EWIN_OP_SHADE:
+ on = ewin->state.shaded;
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EwinOpShade(ewin, OPSRC_USER, on);
+ break;
+
+ case EWIN_OP_STICK:
+ on = EoIsSticky(ewin);
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EwinOpStick(ewin, OPSRC_USER, on);
+ break;
+
+ case EWIN_OP_FOCUS:
+ if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("focused: %s", (ewin == GetFocusEwin())? "yes" : "no");
+ goto done;
+ }
+ EwinOpActivate(ewin, OPSRC_USER, 1);
+ break;
+
+ case EWIN_OP_DESK:
+ if (!param1[0])
+ {
+ IpcPrintf("Error: no desktop supplied");
+ goto done;
+ }
+ if (!strncmp(param1, "next", 1))
+ {
+ EwinOpMoveToDesk(ewin, OPSRC_USER, EoGetDesk(ewin), 1);
+ }
+ else if (!strncmp(param1, "prev", 1))
+ {
+ EwinOpMoveToDesk(ewin, OPSRC_USER, EoGetDesk(ewin), -1);
+ }
+ else if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("window desk: %d", EoGetDeskNum(ewin));
+ }
+ else
+ {
+ EwinOpMoveToDesk(ewin, OPSRC_USER, NULL, atoi(param1));
+ }
+ break;
+
+ case EWIN_OP_AREA:
+ if (!param1[0])
+ {
+ IpcPrintf("Error: no area supplied");
+ goto done;
+ }
+ if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("window area: %d %d", ewin->area_x, ewin->area_y);
+ }
+ else if (!strcmp(param1, "move"))
+ {
+ a = b = 0;
+ sscanf(prm, "%*s %i %i", &a, &b);
+ EwinMoveToArea(ewin, ewin->area_x + a, ewin->area_y + b);
+ }
+ else
+ {
+ a = ewin->area_x;
+ b = ewin->area_y;
+ sscanf(param1, "%i", &a);
+ sscanf(param2, "%i", &b);
+ EwinMoveToArea(ewin, a, b);
+ }
+ break;
+
+ case EWIN_OP_MOVE:
+ if (!param1[0])
+ {
+ IpcPrintf("Error: no coords supplied");
+ goto done;
+ }
+ if (!strcmp(param1, "ptr"))
+ {
+ ActionMoveStart(ewin, 0, 0, Mode.nogroup);
+ }
+ else if (!strcmp(param1, "kbd"))
+ {
+ ActionMoveStart(ewin, 1, 0, Mode.nogroup);
+ }
+ else if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("window location: %d %d", EoGetX(ewin), EoGetY(ewin));
+ }
+ else if (!strcmp(param1, "??"))
+ {
+ IpcPrintf("client location: %d %d",
+ EoGetX(ewin) + ewin->border->border.left,
+ EoGetY(ewin) + ewin->border->border.top);
+ }
+ else
+ {
+ a = EoGetX(ewin);
+ b = EoGetY(ewin);
+ sscanf(param1, "%i", &a);
+ sscanf(param2, "%i", &b);
+ EwinOpMove(ewin, OPSRC_USER, a, b);
+ }
+ break;
+
+ case EWIN_OP_SIZE:
+ if (!param1[0])
+ goto done;
+
+ if (!strcmp(param1, "ptr"))
+ {
+ ActionResizeStart(ewin, 0, MODE_RESIZE);
+ }
+ else if (!strcmp(param1, "ptr-h"))
+ {
+ ActionResizeStart(ewin, 0, MODE_RESIZE_H);
+ }
+ else if (!strcmp(param1, "ptr-v"))
+ {
+ ActionResizeStart(ewin, 0, MODE_RESIZE_V);
+ }
+ else if (!strcmp(param1, "kbd"))
+ {
+ ActionResizeStart(ewin, 1, MODE_RESIZE);
+ }
+ else if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("window size: %d %d", ewin->client.w, ewin->client.h);
+ }
+ else if (!strcmp(param1, "??"))
+ {
+ IpcPrintf("frame size: %d %d", EoGetW(ewin), EoGetH(ewin));
+ }
+ else
+ {
+ a = ewin->client.w;
+ b = ewin->client.h;
+ sscanf(param1, "%i", &a);
+ sscanf(param2, "%i", &b);
+ EwinOpResize(ewin, OPSRC_USER, a, b);
+ }
+ break;
+
+ case EWIN_OP_MOVE_REL:
+ if (!param1[0])
+ goto done;
+ a = b = 0;
+ sscanf(prm, "%i %i", &a, &b);
+ a += EoGetX(ewin);
+ b += EoGetY(ewin);
+ EwinOpMove(ewin, OPSRC_USER, a, b);
+ break;
+
+ case EWIN_OP_SIZE_REL:
+ if (!param1[0])
+ goto done;
+ a = b = 0;
+ sscanf(prm, "%i %i", &a, &b);
+ a += ewin->client.w;
+ b += ewin->client.h;
+ EwinOpResize(ewin, OPSRC_USER, a, b);
+ break;
+
+ case EWIN_OP_MAX_WIDTH:
+ MaxSizeHV(ewin, param1, 1, 0);
+ break;
+
+ case EWIN_OP_MAX_HEIGHT:
+ MaxSizeHV(ewin, param1, 0, 1);
+ break;
+
+ case EWIN_OP_MAX_SIZE:
+ MaxSizeHV(ewin, param1, 1, 1);
+ break;
+
+ case EWIN_OP_FULLSCREEN:
+ on = ewin->state.fullscreen;
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EwinOpFullscreen(ewin, OPSRC_USER, on);
+ break;
+
+ case EWIN_OP_ZOOM:
+ if (InZoom())
+ Zoom(NULL);
+ else
+ Zoom(ewin);
+ break;
+
+ case EWIN_OP_LAYER:
+ if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("window layer: %d", EoGetLayer(ewin));
+ goto done;
+ }
+ val = atoi(param1);
+ EwinOpSetLayer(ewin, OPSRC_USER, val);
+ break;
+
+ case EWIN_OP_RAISE:
+ EwinOpRaise(ewin, OPSRC_USER);
+ break;
+
+ case EWIN_OP_LOWER:
+ EwinOpLower(ewin, OPSRC_USER);
+ break;
+
+ case EWIN_OP_OPACITY:
+ a = OpacityToPercent(ewin->ewmh.opacity);
+ if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("opacity: %u", a);
+ goto done;
+ }
+ b = a;
+ sscanf(param1, "%i", &b);
+ if ((param1[0] == '+') || (param1[0] == '-'))
+ b += a;
+ a = (b < 0) ? 1 : (b > 100) ? 100 : b;
+ EwinOpSetOpacity(ewin, OPSRC_USER, a);
+ if (a && ewin->state.active)
+ {
+ EoChangeOpacity(ewin, OpacityFromPercent(a));
+ TIMER_DEL(op_timer);
+ if (ewin->props.focused_opacity)
+ TIMER_ADD(op_timer, 0.001 * 700, OpacityTimeout, ewin);
+ }
+ if (ewin->state.in_action)
+ CoordsShowOpacity(ewin);
+ break;
+
+ case EWIN_OP_FOCUSED_OPACITY:
+ a = OpacityToPercent(ewin->props.focused_opacity);
+ if (!strcmp(param1, "?"))
+ {
+ IpcPrintf("focused_opacity: %u", a);
+ goto done;
+ }
+ b = a;
+ sscanf(param1, "%i", &b);
+ if ((param1[0] == '+') || (param1[0] == '-'))
+ b += a;
+ a = (b < 0) ? 0 : (b > 100) ? 100 : b;
+ EwinOpSetFocusedOpacity(ewin, OPSRC_USER, a);
+ if (ewin->state.in_action)
+ CoordsShowOpacity(ewin);
+ break;
+
+ case EWIN_OP_SNAP:
+ SnapshotEwinParse(ewin, prm);
+ break;
+
+ case EWIN_OP_SKIP_LISTS:
+ on = ewin->props.skip_ext_task;
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EwinOpSkipLists(ewin, OPSRC_USER, on);
+ break;
+
+ case EWIN_OP_NEVER_USE_AREA:
+ on = ewin->props.never_use_area;
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ ewin->props.never_use_area = on;
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_FOCUS_CLICK:
+ on = ewin->props.focusclick;
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ ewin->props.focusclick = on;
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_AUTOSHADE:
+ on = ewin->props.autoshade;
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ ewin->props.autoshade = on;
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_NO_BUTTON_GRABS:
+ on = ewin->props.no_button_grabs;
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ {
+ ewin->props.no_button_grabs = on;
+ if (ewin->props.no_button_grabs)
+ UnGrabButtonGrabs(EoGetWin(ewin));
+ else
+ GrabButtonGrabs(EoGetWin(ewin));
+ }
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_INH_APP_FOCUS:
+ on = EwinInhGetApp(ewin, focus);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetApp(ewin, focus, on);
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_INH_APP_MOVE:
+ on = EwinInhGetApp(ewin, move);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetApp(ewin, move, on);
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_INH_APP_SIZE:
+ on = EwinInhGetApp(ewin, size);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetApp(ewin, size, on);
+ goto ewin_update_snap_flags;
+
+ case EWIN_OP_INH_USER_CLOSE:
+ on = EwinInhGetUser(ewin, close);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetUser(ewin, close, on);
+ goto ewin_update_state_hints;
+
+ case EWIN_OP_INH_USER_MOVE:
+ on = EwinInhGetUser(ewin, move);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetUser(ewin, move, on);
+ goto ewin_update_state_hints;
+
+ case EWIN_OP_INH_USER_SIZE:
+ on = EwinInhGetUser(ewin, size);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetUser(ewin, size, on);
+ goto ewin_update_state_hints;
+
+ case EWIN_OP_INH_WM_FOCUS:
+ on = EwinInhGetWM(ewin, focus);
+ SetEwinBoolean(wop->name, &on, param1, 1);
+ EwinInhSetWM(ewin, focus, on);
+ goto ewin_update_state;
+
+#if USE_COMPOSITE
+ case EWIN_OP_FADE:
+ on = EoGetFade(ewin);
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EoSetFade(ewin, on);
+ break;
+
+ case EWIN_OP_SHADOW:
+ on = EoGetShadow(ewin);
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EoChangeShadow(ewin, on);
+ break;
+
+ case EWIN_OP_NO_REDIRECT:
+ on = EoGetNoRedirect(ewin);
+ on = ewin->o.noredir;
+ if (SetEwinBoolean(wop->name, &on, param1, 1))
+ EoSetNoRedirect(ewin, on);
+ break;
+#endif
+ ewin_update_snap_flags:
+ SnapshotEwinUpdate(ewin, SNAP_USE_FLAGS);
+ break;
+
+ ewin_update_state:
+ EwinStateUpdate(ewin);
+ break;
+
+ ewin_update_state_hints:
+ EwinStateUpdate(ewin);
+ HintsSetWindowState(ewin);
+ break;
+ }
+
+ done:
+ return;
+}
+
+static void
+IPC_WinOps(const char *params)
+{
+ char match[128];
+ char operation[128];
+ const char *p;
+ EWin **lst;
+ int i, num, flags;
+ const WinOp *wop;
+
+ if (!params)
+ {
+ IpcPrintf("Error: no window specified");
+ return;
+ }
+
+ match[0] = operation[0] = '\0';
+ num = 0;
+ sscanf(params, "%128s %128s %n", match, operation, &num);
+ p = params + num;
+
+ if (!operation[0])
+ {
+ IpcPrintf("Error: no operation specified");
+ return;
+ }
+
+ wop = EwinOpFind(operation);
+ if (!wop)
+ {
+ IpcPrintf("Error: unknown operation");
+ return;
+ }
+
+ lst = EwinsFindByExpr(match, &num, &flags);
+ if (!lst)
+ {
+ IpcPrintf("No windows matching %s\n", match);
+ return;
+ }
+
+ if (flags)
+ Mode.nogroup = 1;
+
+ for (i = 0; i < num; i++)
+ IpcWinop(wop, lst[i], p);
+
+ Mode.nogroup = 0;
+
+ Efree(lst);
+}
+
+static void
+IPC_Remember(const char *params)
+{
+ int window, l;
+ EWin *ewin;
+
+ if (!params)
+ {
+ IpcPrintf("Error: no parameters\n");
+ goto done;
+ }
+
+ l = 0;
+ window = 0;
+ sscanf(params, "%x %n", &window, &l);
+ if (l <= 0)
+ return;
+
+ ewin = EwinFindByClient(window);
+ if (!ewin)
+ {
+ IpcPrintf("Error: Window not found: %#x\n", window);
+ goto done;
+ }
+
+ SnapshotEwinParse(ewin, params + l);
+
+ done:
+ return;
+}
+
+static void
+IPC_ForceSave(const char *params __UNUSED__)
+{
+ autosave();
+}
+
+static void
+IPC_Exec(const char *params)
+{
+ if (params)
+ execApplication(params, EXEC_SET_LANG | EXEC_SET_STARTUP_ID);
+ else
+ IpcPrintf("exec what?\n");
+}
+
+static void
+IPC_Restart(const char *params __UNUSED__)
+{
+ SessionExit(EEXIT_RESTART, NULL);
+}
+
+static void
+IPC_Exit(const char *params)
+{
+ char param1[1024];
+ const char *p2;
+ int l;
+
+ param1[0] = 0;
+ l = 0;
+ if (params)
+ sscanf(params, "%1000s %n", param1, &l);
+ p2 = (l > 0) ? params + l : NULL;
+
+ if (!param1[0])
+ SessionExit(EEXIT_EXIT, NULL);
+ else if (!strcmp(param1, "logout"))
+ SessionExit(EEXIT_LOGOUT, NULL);
+ else if (!strcmp(param1, "restart"))
+ SessionExit(EEXIT_RESTART, NULL);
+ else if (!strcmp(param1, "theme"))
+ SessionExit(EEXIT_THEME, p2);
+ else if (!strcmp(param1, "exec"))
+ SessionExit(EEXIT_EXEC, p2);
+}
+
+#if ENABLE_DIALOGS
+static void
+IPC_About(const char *params __UNUSED__)
+{
+ About();
+}
+#endif
+
+static void
+IPC_Version(const char *params __UNUSED__)
+{
+ IpcPrintf("%s %s\n", e_wm_name, e_wm_version);
+}
+
+static void
+IPC_Debug(const char *params)
+{
+ char param[1024];
+ int l;
+ const char *p;
+
+ if (!params)
+ return;
+
+ p = params;
+ l = 0;
+ sscanf(p, "%1000s %n", param, &l);
+ p += l;
+
+ if (!strncmp(param, "event", 2))
+ {
+ EDebugInit(p);
+ }
+ else if (!strncmp(param, "grab", 2))
+ {
+ l = 0;
+ sscanf(p, "%1000s %n", param, &l);
+ p += l;
+
+ if (!strcmp(param, "?"))
+ {
+ IpcPrintf("Pointer grab on=%d win=%#lx\n",
+ Mode.grabs.pointer_grab_active,
+ Mode.grabs.pointer_grab_window);
+ }
+ else if (!strncmp(param, "allow", 2))
+ {
+ l = 0;
+ sscanf(p, "%d", &l);
+ XAllowEvents(disp, l, CurrentTime);
+ IpcPrintf("XAllowEvents\n");
+ }
+ else if (!strncmp(param, "unset", 2))
+ {
+ GrabPointerRelease();
+ IpcPrintf("Ungrab\n");
+ }
+ }
+ else if (!strncmp(param, "sync", 2))
+ {
+ l = 0;
+ sscanf(p, "%1000s %n", param, &l);
+ p += l;
+ if (!strncmp(param, "on", 2))
+ {
+ XSynchronize(disp, True);
+ IpcPrintf("Sync on\n");
+ }
+ else if (!strncmp(param, "off", 2))
+ {
+ XSynchronize(disp, False);
+ IpcPrintf("Sync off\n");
+ }
+ }
+}
+
+static void
+IPC_Set(const char *params)
+{
+ ConfigurationSet(params);
+}
+
+static void
+IPC_Show(const char *params)
+{
+ ConfigurationShow(params);
+}
+
+static void
+EwinShowInfo(const EWin * ewin)
+{
+ int bl, br, bt, bb;
+
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+
+ IpcPrintf("WM_NAME %s\n"
+ "_NET_WM_NAME %s\n"
+ "WM_ICON_NAME %s\n"
+ "WM_CLASS name.class %s.%s\n"
+ "WM_WINDOW_ROLE %s\n"
+ "WM_COMMAND %s\n"
+ "WM_CLIENT_MACHINE %s\n"
+ "Client window %#10lx x,y %4i,%4i wxh %4ix%4i\n"
+ "Container window %#10lx\n"
+ "Frame window %#10lx x,y %4i,%4i wxh %4ix%4i\n"
+#if USE_COMPOSITE
+ "Named pixmap %#10lx\n"
+#endif
+ "Border %s lrtb %i,%i,%i,%i\n"
+ "Icon window, pixmap, mask %#10lx, %#10lx, %#10lx\n"
+ "Is group leader %i Window group leader %#lx Client leader %#10lx\n"
+ "Has transients %i Transient type %i Transient for %#10lx\n"
+ "No resize H/V %i/%i Shaped %i\n"
+ "Base, min, max, inc w/h %ix%i, %ix%i, %ix%i %ix%i\n"
+ "Aspect min, max %5.5f, %5.5f\n"
+ "Struts lrtb %i,%i,%i,%i\n"
+ "MWM border %i resizeh %i title %i menu %i minimize %i maximize %i\n"
+ "NeedsInput %i TakeFocus %i FocusNever %i FocusClick %i\n"
+ "NeverUseArea %i FixedPos %i FixedSize %i\n"
+ "Desktop %i Layer %i(%i)\n"
+ "Iconified %i Sticky %i Shaded %i Docked %i\n"
+ "State %i Shown %i Visibility %i Active %i\n"
+ "Member of groups %i\n"
+#if USE_COMPOSITE
+ "Opacity %3i(%x) Focused Opacity %3i\n"
+ "Shadow %i Fade %i NoRedirect %i\n"
+#else
+ "Opacity %3i\n"
+#endif
+ ,
+ SS(EwinGetIcccmName(ewin)),
+ SS(ewin->ewmh.wm_name),
+ SS(ewin->icccm.wm_icon_name),
+ SS(EwinGetIcccmCName(ewin)), SS(EwinGetIcccmClass(ewin)),
+ SS(ewin->icccm.wm_role),
+ SS(ewin->icccm.wm_command),
+ SS(ewin->icccm.wm_machine),
+ EwinGetClientXwin(ewin),
+ ewin->client.x, ewin->client.y, ewin->client.w, ewin->client.h,
+ EwinGetContainerXwin(ewin),
+ EoGetXwin(ewin),
+ EoGetX(ewin), EoGetY(ewin), EoGetW(ewin), EoGetH(ewin),
+#if USE_COMPOSITE
+ EoGetPixmap(ewin),
+#endif
+ EwinBorderGetName(ewin), bl, br, bt, bb,
+ ewin->icccm.icon_win,
+ ewin->icccm.icon_pmap, ewin->icccm.icon_mask,
+ EwinIsWindowGroupLeader(ewin), EwinGetWindowGroup(ewin),
+ ewin->icccm.client_leader, EwinGetTransientCount(ewin),
+ EwinIsTransient(ewin), EwinGetTransientFor(ewin),
+ ewin->props.no_resize_h, ewin->props.no_resize_v,
+ ewin->state.shaped, ewin->icccm.base_w, ewin->icccm.base_h,
+ ewin->icccm.width_min, ewin->icccm.height_min,
+ ewin->icccm.width_max, ewin->icccm.height_max,
+ ewin->icccm.w_inc, ewin->icccm.h_inc,
+ ewin->icccm.aspect_min, ewin->icccm.aspect_max,
+ ewin->strut.left, ewin->strut.right,
+ ewin->strut.top, ewin->strut.bottom,
+ ewin->mwm.decor_border, ewin->mwm.decor_resizeh,
+ ewin->mwm.decor_title, ewin->mwm.decor_menu,
+ ewin->mwm.decor_minimize, ewin->mwm.decor_maximize,
+ ewin->icccm.need_input, ewin->icccm.take_focus,
+ EwinInhGetWM(ewin, focus), ewin->props.focusclick,
+ ewin->props.never_use_area, EwinInhGetUser(ewin, move),
+ EwinInhGetUser(ewin, size), EoGetDeskNum(ewin),
+ EoGetLayer(ewin), ewin->o.ilayer,
+ ewin->state.iconified, EoIsSticky(ewin), ewin->state.shaded,
+ ewin->state.docked, ewin->state.state, EoIsShown(ewin),
+ ewin->state.visibility, ewin->state.active, ewin->num_groups,
+ OpacityToPercent(ewin->ewmh.opacity)
+#if USE_COMPOSITE
+ , EoGetOpacity(ewin),
+ OpacityToPercent(ewin->props.focused_opacity), EoGetShadow(ewin),
+ EoGetFade(ewin), EoGetNoRedirect(ewin)
+#endif
+ );
+}
+
+static void
+IPC_EwinInfo(const char *params)
+{
+ char match[FILEPATH_LEN_MAX];
+ EWin **lst;
+ int i, num;
+
+ if (!params)
+ return;
+
+ sscanf(params, "%1000s", match);
+
+ lst = EwinsFindByExpr(match, &num, NULL);
+ if (!lst)
+ {
+ IpcPrintf("No windows matching %s\n", match);
+ return;
+ }
+
+ for (i = 0; i < num; i++)
+ {
+ EwinShowInfo(lst[i]);
+ if (i != num - 1)
+ IpcPrintf("\n");
+ }
+
+ Efree(lst);
+}
+
+static void
+IPC_ObjInfo(const char *params __UNUSED__)
+{
+ int i, num;
+ EObj *const *lst, *eo;
+
+ lst = EobjListStackGet(&num);
+
+ IpcPrintf
+ ("Num Window De T V Shape Dsk S F L Pos Size C R Name\n");
+ for (i = 0; i < num; i++)
+ {
+ eo = lst[i];
+ IpcPrintf
+ (" %2d %#9lx %2d %d %d %2d/%2d %3d %d %d %3d %5d,%5d %4dx%4d %d %d %s\n",
+ i, EobjGetXwin(eo), WinGetDepth(EobjGetWin(eo)), eo->type,
+ eo->shown, eo->shaped, EShapeCheck(EobjGetWin(eo)), eo->desk->num,
+ eo->sticky, eo->floating, eo->ilayer,
+ EobjGetX(eo), EobjGetY(eo), EobjGetW(eo), EobjGetH(eo),
+#if USE_COMPOSITE
+ (eo->cmhook) ? 1 : 0, !eo->noredir
+#else
+ 0, 0
+#endif
+ , EobjGetName(eo));
+ }
+}
+
+static void
+IPC_Reparent(const char *params)
+{
+ char param1[FILEPATH_LEN_MAX];
+ char param2[FILEPATH_LEN_MAX];
+ EWin *ewin, *enew;
+
+ if (params == NULL)
+ return;
+
+ sscanf(params, "%100s %100s", param1, param2);
+
+ ewin = EwinFindByExpr(param1);
+ enew = EwinFindByExpr(param2);
+ if (!ewin || !enew)
+ IpcPrintf("No matching client or target EWin found\n");
+ else
+ EwinReparent(ewin, EwinGetClientWin(enew));
+}
+
+static void
+IPC_Warp(const char *params)
+{
+ int x, y;
+
+ if (!params)
+ return;
+
+ x = y = 0;
+ if (!strcmp(params, "?"))
+ {
+ EQueryPointer(NULL, &x, &y, NULL, NULL);
+ IpcPrintf("Pointer location: %d %d\n", x, y);
+ }
+ else if (!strncmp(params, "abs", 3))
+ {
+ sscanf(params, "%*s %i %i", &x, &y);
+ EXWarpPointer(WinGetXwin(VROOT), x, y);
+ }
+ else if (!strncmp(params, "rel", 3))
+ {
+ sscanf(params, "%*s %i %i", &x, &y);
+ EXWarpPointer(None, x, y);
+ }
+ else if (!strncmp(params, "scr", 3))
+ {
+ x = (Dpy.screen + 1) % ScreenCount(disp);
+ sscanf(params, "%*s %i", &x);
+ if (x >= 0 && x < ScreenCount(disp))
+ {
+ EXWarpPointer(RootWindow(disp, x), DisplayWidth(disp, x) / 2,
+ DisplayHeight(disp, x) / 2);
+ /* IIRC warping to a different screen once did cause
+ * LeaveNotify's on the current root window. This does not
+ * happen in xorg 1.5.3 (and probably other versions).
+ * So, check and focus out if left. */
+ FocusCheckScreen();
+ }
+ }
+ else
+ {
+ sscanf(params, "%i %i", &x, &y);
+ EXWarpPointer(None, x, y);
+ }
+}
+
+#if ENABLE_IPC_INSERT_KEYS
+struct _keyset {
+ const char *sym;
+ int state;
+ const char *ch;
+};
+
+static const struct _keyset ks[] = {
+ {"a", 0, "a"},
+ {"b", 0, "b"},
+ {"c", 0, "c"},
+ {"d", 0, "d"},
+ {"e", 0, "e"},
+ {"f", 0, "f"},
+ {"g", 0, "g"},
+ {"h", 0, "h"},
+ {"i", 0, "i"},
+ {"j", 0, "j"},
+ {"k", 0, "k"},
+ {"l", 0, "l"},
+ {"m", 0, "m"},
+ {"n", 0, "n"},
+ {"o", 0, "o"},
+ {"p", 0, "p"},
+ {"q", 0, "q"},
+ {"r", 0, "r"},
+ {"s", 0, "s"},
+ {"t", 0, "t"},
+ {"u", 0, "u"},
+ {"v", 0, "v"},
+ {"w", 0, "w"},
+ {"x", 0, "x"},
+ {"y", 0, "y"},
+ {"z", 0, "z"},
+ {"a", ShiftMask, "A"},
+ {"b", ShiftMask, "B"},
+ {"c", ShiftMask, "C"},
+ {"d", ShiftMask, "D"},
+ {"e", ShiftMask, "E"},
+ {"f", ShiftMask, "F"},
+ {"g", ShiftMask, "G"},
+ {"h", ShiftMask, "H"},
+ {"i", ShiftMask, "I"},
+ {"j", ShiftMask, "J"},
+ {"k", ShiftMask, "K"},
+ {"l", ShiftMask, "L"},
+ {"m", ShiftMask, "M"},
+ {"n", ShiftMask, "N"},
+ {"o", ShiftMask, "O"},
+ {"p", ShiftMask, "P"},
+ {"q", ShiftMask, "Q"},
+ {"r", ShiftMask, "R"},
+ {"s", ShiftMask, "S"},
+ {"t", ShiftMask, "T"},
+ {"u", ShiftMask, "U"},
+ {"v", ShiftMask, "V"},
+ {"w", ShiftMask, "W"},
+ {"x", ShiftMask, "X"},
+ {"y", ShiftMask, "Y"},
+ {"z", ShiftMask, "Z"},
+ {"grave", 0, "`"},
+ {"1", 0, "1"},
+ {"2", 0, "2"},
+ {"3", 0, "3"},
+ {"4", 0, "4"},
+ {"5", 0, "5"},
+ {"6", 0, "6"},
+ {"7", 0, "7"},
+ {"8", 0, "8"},
+ {"9", 0, "9"},
+ {"0", 0, "0"},
+ {"minus", 0, "-"},
+ {"equal", 0, "="},
+ {"bracketleft", 0, "["},
+ {"bracketright", 0, "]"},
+ {"backslash", 0, "\\\\"},
+ {"semicolon", 0, "\\s"},
+ {"apostrophe", 0, "\\a"},
+ {"comma", 0, ","},
+ {"period", 0, "."},
+ {"slash", 0, "/"},
+ {"grave", ShiftMask, "~"},
+ {"1", ShiftMask, "!"},
+ {"2", ShiftMask, "@"},
+ {"3", ShiftMask, "#"},
+ {"4", ShiftMask, "$"},
+ {"5", ShiftMask, "%"},
+ {"6", ShiftMask, "^"},
+ {"7", ShiftMask, "&"},
+ {"8", ShiftMask, "*"},
+ {"9", ShiftMask, "("},
+ {"0", ShiftMask, ")"},
+ {"minus", ShiftMask, "_"},
+ {"equal", ShiftMask, "+"},
+ {"bracketleft", ShiftMask, "{"},
+ {"bracketright", ShiftMask, "}"},
+ {"backslash", ShiftMask, "|"},
+ {"semicolon", ShiftMask, ":"},
+ {"apostrophe", ShiftMask, "\\q"},
+ {"comma", ShiftMask, "<"},
+ {"period", ShiftMask, ">"},
+ {"slash", ShiftMask, "?"},
+ {"space", ShiftMask, " "},
+ {"Return", ShiftMask, "\\n"},
+ {"Tab", ShiftMask, "\\t"}
+};
+
+static void
+IPC_InsertKeys(const char *params, Client * c __UNUSED__)
+{
+ Window win = 0;
+ int i, rev;
+ const char *s;
+ XKeyEvent ev;
+
+ if (!params)
+ return;
+
+ s = params;
+ XGetInputFocus(disp, &win, &rev);
+ if (win == None)
+ return;
+
+ SoundPlay(SOUND_INSERT_KEYS);
+ ev.window = win;
+ for (i = 0; i < (int)strlen(s); i++)
+ {
+ int j;
+
+ ev.x = Mode.events.cx;
+ ev.y = Mode.events.cy;
+ ev.x_root = Mode.events.cx;
+ ev.y_root = Mode.events.cy;
+ for (j = 0; j < (int)(sizeof(ks) / sizeof(struct _keyset)); j++)
+ {
+ if (strncmp(ks[j].ch, &(s[i]), strlen(ks[j].ch)))
+ continue;
+
+ i += strlen(ks[j].ch) - 1;
+ ev.keycode = EKeynameToKeycode(ks[j].sym);
+ ev.state = ks[j].state;
+ ev.type = KeyPress;
+ EXSendEvent(win, 0, (XEvent *) & ev);
+ ev.type = KeyRelease;
+ EXSendEvent(win, 0, (XEvent *) & ev);
+ break;
+ }
+ }
+}
+#endif /* ENABLE_IPC_INSERT_KEYS */
+
+/*
+ * Compatibility stuff - DO NOT USE
+ */
+static int
+IPC_Compat(const char *params)
+{
+ int ok = 0;
+ char param1[128];
+ const char *p;
+ int len;
+
+ if (!params)
+ goto done;
+
+ len = 0;
+ param1[0] = '\0';
+ sscanf(params, "%127s %n", param1, &len);
+ p = params + len;
+
+ ok = 1;
+ if (!strcmp(param1, "goto_desktop"))
+ {
+ if (*p == '?')
+ IpcPrintf("Current Desktop: %d\n", DesksGetCurrentNum());
+ }
+ else if (!strcmp(param1, "num_desks"))
+ {
+ if (*p == '?')
+ IpcPrintf("Number of Desks: %d\n", DesksGetNumber());
+ }
+#if !USE_COMPOSITE
+ else if (!strcmp(param1, "cm"))
+ {
+ DialogOK(_("Message"), _("e16 was built without %s support"),
+ _("composite"));
+ }
+#endif
+#if !HAVE_SOUND
+ else if (!strcmp(param1, "sound"))
+ {
+ DialogOK(_("Message"), _("e16 was built without %s support"),
+ _("sound"));
+ }
+#endif
+ else
+ {
+ ok = 0;
+ }
+
+ done:
+ return ok;
+}
+
+/* the IPC Array */
+
+/* the format of an IPC member of the IPC array is as follows:
+ * {
+ * NameOfMyFunction,
+ * "command_name",
+ * "quick-help explanation",
+ * "extended help data"
+ * "may go on for several lines, be sure\n"
+ * "to add line feeds when you need them and to \"quote\"\n"
+ * "properly"
+ * }
+ *
+ * when you add a function into this array, make sure you also add it into
+ * the declarations above and also put the function in this file. PLEASE
+ * if you add a new function in, add help to it also. since my end goal
+ * is going to be to have this whole IPC usable by an end-user or to your
+ * scripter, it should be easy to learn to use without having to crack
+ * open the source code.
+ * --Mandrake
+ */
+static void IPC_Help(const char *params);
+
+static const IpcItem IPCArray[] = {
+ {
+ IPC_Help,
+ "help", "?",
+ "Gives you this help screen",
+ "Additional parameters will retrieve help on many topics - "
+ "\"help <command>\"." "\n" "use \"help all\" for a list of commands.\n"},
+ {
+ IPC_Version,
+ "version", "ver",
+ "Displays the current version of Enlightenment running",
+ NULL},
+ {
+ IPC_Nop,
+ "nop", NULL,
+ "IPC No-operation - returns nop",
+ NULL},
+#if ENABLE_DIALOGS
+ {
+ IPC_About, "about", NULL, "Show E info", NULL},
+ {
+ IPC_Cfg, "configure", "cfg", "Configuration dialogs", NULL},
+#endif
+ {
+ IPC_Exec,
+ "exec", NULL,
+ "Execute program",
+ " exec <command> Execute command\n"},
+ {
+ IPC_Restart,
+ "restart", NULL,
+ "Restart Enlightenment",
+ NULL},
+ {
+ IPC_Exit,
+ "exit", "q",
+ "Exit Enlightenment",
+ " exit Exit immediately\n"
+ " exit logout Show logout dialog\n"
+ " exit restart Restart\n"
+ " exit theme <theme> Restart with new theme\n"
+ " exit exec <program> Exit and start program\n"},
+ {
+ IPC_ForceSave,
+ "save_config", "s",
+ "Force Enlightenment to save settings now",
+ NULL},
+ {
+ IPC_WinOps,
+ "win_op", "wop",
+ "Change a property of a specific window",
+ "Use \"win_op <windowid> <property> <value>\" to change the property of a window\n"
+ "You can use the \"window_list\" command to retrieve a list of available windows\n"
+ "You can use ? after most of these commands to receive the current\n"
+ "status of that flag\n"
+ "Available win_op commands are:\n"
+ " win_op <windowid> border <BORDERNAME>\n"
+ " win_op <windowid> title <title>\n"
+ " win_op <windowid> <close/kill>\n"
+ " win_op <windowid> <focus/iconify/alone/shade/stick>\n"
+#if USE_COMPOSITE
+ " win_op <windowid> <fade/shadow>\n"
+#endif
+ " win_op <windowid> desk <desktochangeto/next/prev>\n"
+ " win_op <windowid> area <x> <y>\n"
+ " win_op <windowid> <move/size> <x> <y> or <kbd/ptr>\n"
+ " (you can use ? and ?? to retreive client and frame locations)\n"
+ " win_op <windowid> <mr/sr> <x> <y> (incremental move/size)\n"
+ " win_op <windowid> toggle_<width/height/size> <conservative/available/xinerama>\n"
+ " win_op <windowid> <fullscreen/zoom>\n"
+ " win_op <windowid> layer <0-100,4=normal>\n"
+ " win_op <windowid> <raise/lower>\n"
+ " win_op <windowid> opacity [+|-]<1-100(100=opaque)> (+/-: incremental change)\n"
+#if USE_COMPOSITE
+ " win_op <windowid> focused_opacity [+|-]<0-100(0=follow opacity, 100=opaque)>\n"
+#endif
+ " win_op <windowid> snap <what>\n"
+ " <what>: all, none, border, command, desktop, dialog, group, icon,\n"
+ " layer, location, opacity, shade, shadow, size, sticky\n"
+ " win_op <windowid> <focusclick/never_use_area/no_button_grabs/skiplists>\n"
+ " win_op <windowid> <no_app_focus/move/size>\n"
+ " win_op <windowid> <no_user_close/move/size>\n"
+ " win_op <windowid> <no_wm_focus>\n"
+ "<windowid> may be substituted with \"current\" to use the current window\n"},
+ {
+ IPC_WinList,
+ "window_list", "wl",
+ "Get a list of managed application windows",
+ "The window list can be shown in a number of different formats:\n"
+ " window_list \"windowid : title\"\n"
+ " window_list all \"windowid : x y w x h :: desk : area_x area_y : title\"\n"
+ " window_list ext \"windowid : title :: desk : area_x area_y : x y wxh\"\n"
+ " window_list prop \"windowid : x y w x h :: desk : name class Title\"\n"},
+ {
+ IPC_MoveResize,
+ "movres", "mr",
+ "Show/set Window move/resize/geometry info modes",
+ " movres move <?/opaque/lined/box/shaded/semi-solid/translucent>\n"
+ " movres resize <?/opaque/lined/box/shaded/semi-solid>\n"
+ " movres info <?/never/center/corner>\n"},
+ {
+ IPC_DialogOK,
+ "dialog_ok", "dok",
+ "Pop up a dialog box with an OK button",
+ "Use \"dialog_ok <message>\" to pop up a dialog box\n"},
+ {
+ IPC_Border, "border", NULL, "List available borders", NULL},
+ {
+ IPC_Screen, "screen", NULL, "Return screen information",
+ " screen list List screens\n"
+ " screen size Show current screen size\n"
+ " screen split nx ny Simulate xinerama by subdividing screen\n"},
+ {
+ SnapshotsIpcFunc,
+ "list_remember", "rl",
+ "Retrieve a list of remembered windows and their attributes",
+ SnapshotsIpcText},
+ {
+ IPC_Debug,
+ "debug", NULL,
+ "Set debug options",
+ " debug events <EvNo>:<EvNo>...\n"},
+ {
+ IPC_Set, "set", NULL, "Set configuration parameter", NULL},
+ {
+ IPC_Show, "show", "sh", "Show configuration parameter(s)", NULL},
+ {
+ IPC_EwinInfo, "win_info", "wi", "Show client window info", NULL},
+ {
+ IPC_ObjInfo, "obj_info", "oi", "Show window object info", NULL},
+ {
+ IPC_Reparent,
+ "reparent", "rep",
+ "Reparent window",
+ " reparent <windowid> <new parent>\n"},
+ {
+ IPC_Remember,
+ "remember", NULL,
+ "Remembers parameters for client windows (obsolete)",
+ " remember <windowid> <parameter>...\n"
+ "For compatibility with epplets only. In stead use\n"
+ " wop <windowid> snap <parameter>...\n"},
+ {
+ IPC_Warp,
+ "warp", NULL,
+ "Warp/query pointer",
+ " warp ? Get pointer position\n"
+ " warp abs <x> <y> Set pointer position\n"
+ " warp rel <x> <y> Move pointer relative to current position\n"
+ " warp scr [<i>] Move pointer to other screen (default next)\n"
+ " warp <x> <y> Same as \"warp rel\"\n"},
+#if ENABLE_IPC_INSERT_KEYS
+ {
+ IPC_InsertKeys,
+ "keys", NULL,
+ "Send key events to focused window",
+ " keys <string>\n"},
+#endif
+};
+
+static int ipc_item_count = 0;
+static const IpcItem **ipc_item_list = NULL;
+
+static const IpcItem **
+IPC_GetList(int *pnum)
+{
+ int i, num;
+ const IpcItem **lst;
+
+ if (ipc_item_list)
+ {
+ /* Must be re-generated if modules are ever added/removed */
+ *pnum = ipc_item_count;
+ return ipc_item_list;
+ }
+
+ num = sizeof(IPCArray) / sizeof(IpcItem);
+ lst = EMALLOC(const IpcItem *, num);
+
+ for (i = 0; i < num; i++)
+ lst[i] = &IPCArray[i];
+
+ ModulesGetIpcItems(&lst, &num);
+
+ ipc_item_count = num;
+ ipc_item_list = lst;
+ *pnum = num;
+ return lst;
+}
+
+/* The IPC Handler */
+/* this is the function that actually loops through the IPC array
+ * and finds the command that you were trying to run, and then executes it.
+ * you shouldn't have to touch this function
+ * - Mandrake
+ */
+static int
+IpcExec(const char *params)
+{
+ int i, num, ok;
+ char cmd[128];
+ const char *prm;
+ const IpcItem **lst, *ipc;
+
+ if (EDebug(EDBUG_TYPE_IPC))
+ Eprintf("IpcExec: %s\n", params);
+
+ cmd[0] = 0;
+ num = 0;
+ if (params)
+ sscanf(params, "%100s %n", cmd, &num);
+ prm = (num > 0 && params[num]) ? params + num : NULL;
+
+ lst = IPC_GetList(&num);
+
+ ok = 0;
+ for (i = 0; i < num; i++)
+ {
+ ipc = lst[i];
+ if (!(ipc->nick && !strcmp(cmd, ipc->nick)) && strcmp(cmd, ipc->name))
+ continue;
+
+ ipc->func(prm);
+
+ ok = 1;
+ break;
+ }
+
+ if (!ok && params)
+ ok = IPC_Compat(params);
+
+ return ok;
+}
+
+int
+IpcExecReply(const char *params, IpcReplyFunc * reply, void *data)
+{
+ int ok;
+
+ IpcPrintInit();
+ ok = IpcExec(params);
+ reply(data, IpcPrintGetBuffer());
+ IpcPrintDone();
+
+ return ok;
+}
+
+int
+EFunc(EWin * ewin, const char *params)
+{
+ int ok;
+
+ SetContextEwin(ewin);
+ ok = IpcExec(params);
+ SetContextEwin(NULL);
+
+ return ok;
+}
+
+static int
+doEFuncDeferred(void *data)
+{
+ void **prm = (void **)data;
+ EWin *ewin;
+
+ ewin = (EWin *) prm[0];
+ if (ewin && !EwinFindByPtr(ewin))
+ return 0;
+
+ EFunc(ewin, (const char *)prm[1]);
+
+ Efree(prm[1]);
+ Efree(data);
+
+ return 0;
+}
+
+void
+EFuncDefer(EWin * ewin, const char *cmd)
+{
+ void **prm;
+ Timer *defer_timer;
+
+ prm = EMALLOC(void *, 2);
+
+ if (!prm)
+ return;
+ prm[0] = ewin;
+ prm[1] = Estrdup(cmd);
+
+ TIMER_ADD(defer_timer, 0.0, doEFuncDeferred, prm);
+}
+
+static int
+ipccmp(void *p1, void *p2)
+{
+ return strcmp(((IpcItem *) p1)->name, ((IpcItem *) p2)->name);
+}
+
+static void
+IPC_Help(const char *params)
+{
+ int i, num;
+ const IpcItem **lst, *ipc;
+ const char *nick;
+
+ lst = IPC_GetList(&num);
+
+ IpcPrintf(_("Enlightenment IPC Commands Help\n"));
+
+ if (!params)
+ {
+ IpcPrintf(_("Use \"help all\" for descriptions of each command\n"
+ "Use \"help <command>\" for an individual description\n\n"));
+ IpcPrintf(_("Commands currently available:\n"));
+
+ Quicksort((void **)lst, 0, num - 1, ipccmp);
+
+ for (i = 0; i < num; i++)
+ {
+ ipc = lst[i];
+ nick = (ipc->nick) ? ipc->nick : "";
+ IpcPrintf(" %-16s %-4s ", ipc->name, nick);
+ if ((i % 3) == 2)
+ IpcPrintf("\n");
+ }
+ if (i % 3)
+ IpcPrintf("\n");
+ }
+ else if (!strcmp(params, "all"))
+ {
+ IpcPrintf(_
+ ("Use \"help full\" for full descriptions of each command\n"));
+ IpcPrintf(_("Use \"help <command>\" for an individual description\n"));
+ IpcPrintf(_("Commands currently available:\n"));
+ IpcPrintf(_(" <command> : <description>\n"));
+
+ for (i = 0; i < num; i++)
+ {
+ ipc = lst[i];
+ nick = (ipc->nick) ? ipc->nick : "";
+ IpcPrintf("%18s %4s: %s\n", ipc->name, nick, ipc->help_text);
+ }
+ }
+ else if (!strcmp(params, "full"))
+ {
+ IpcPrintf(_("Commands currently available:\n"));
+ IpcPrintf(_(" <command> : <description>\n"));
+
+ for (i = 0; i < num; i++)
+ {
+ IpcPrintf("----------------------------------------\n");
+ ipc = lst[i];
+ nick = (ipc->nick) ? ipc->nick : "";
+ IpcPrintf("%18s %4s: %s\n", ipc->name, nick, ipc->help_text);
+ if (ipc->extended_help_text)
+ IpcPrintf("%s", ipc->extended_help_text);
+ }
+ }
+ else
+ {
+ for (i = 0; i < num; i++)
+ {
+ ipc = lst[i];
+ if (strcmp(params, ipc->name) &&
+ (ipc->nick == NULL || strcmp(params, ipc->nick)))
+ continue;
+
+ nick = (ipc->nick) ? ipc->nick : "";
+ IpcPrintf("----------------------------------------\n");
+ IpcPrintf("%18s %4s: %s\n", ipc->name, nick, ipc->help_text);
+ IpcPrintf("----------------------------------------\n");
+ if (ipc->extended_help_text)
+ IpcPrintf("%s", ipc->extended_help_text);
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _IPC_H_
+#define _IPC_H_
+
+#include "etypes.h"
+#include "util.h"
+
+typedef struct {
+ void (*func) (const char *line);
+ const char *name;
+ const char *nick;
+ const char *help_text;
+ const char *extended_help_text;
+} IpcItem;
+
+typedef struct {
+ int num;
+ const IpcItem *lst;
+} IpcItemList;
+
+typedef void (IpcReplyFunc) (void *data, const char *str);
+int IpcExecReply(const char *params, IpcReplyFunc * reply,
+ void *data);
+void __PRINTF__ IpcPrintf(const char *fmt, ...);
+
+int EFunc(EWin * ewin, const char *params);
+void EFuncDefer(EWin * ewin, const char *params);
+
+#endif /* _IPC_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "emodule.h"
+#include "lang.h"
+#include <X11/Xlib.h>
+
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+
+#if HAVE_LANGINFO_CODESET
+#include <langinfo.h>
+#endif
+
+#ifndef ENABLE_NLS
+#define bindtextdomain(pkg,locale)
+#define textdomain(pkg)
+#define bind_textdomain_codeset(pkg,enc)
+#endif
+
+#if HAVE_ICONV
+
+#include <iconv.h>
+#define BAD_CD ((iconv_t)-1)
+
+#ifndef ICONV_CONST /* Not sure this is necessary */
+#define ICONV_CONST
+#endif
+
+static iconv_t iconv_cd_int2utf8 = BAD_CD;
+static iconv_t iconv_cd_utf82int = BAD_CD;
+static iconv_t iconv_cd_int2loc = BAD_CD;
+static iconv_t iconv_cd_loc2int = BAD_CD;
+
+static char *
+Eiconv(iconv_t icd, const char *txt, size_t len)
+{
+ char buf[4096];
+ ICONV_CONST char *pi;
+ char *po;
+ size_t err, ni, no;
+
+ pi = (ICONV_CONST char *)txt;
+ po = buf;
+ ni = (len > 0) ? len : strlen(txt);
+ if (icd == BAD_CD)
+ return Estrndup(txt, ni);
+ no = sizeof(buf);
+ err = iconv(icd, &pi, &ni, &po, &no);
+
+ po = Estrndup(buf, sizeof(buf) - no);
+
+ return po;
+}
+
+static iconv_t
+EiconvOpen(const char *to, const char *from)
+{
+ iconv_t icd;
+
+ icd = iconv_open(to, from);
+ if (icd == BAD_CD)
+ Eprintf("*** WARNING - Missing conversion %s->%s\n", from, to);
+
+ return icd;
+}
+
+#endif
+
+#if 0 /* Unused */
+/* Convert locale to internal format (alloc always) */
+char *
+EstrLoc2Int(const char *str, int len)
+{
+ if (str == NULL)
+ return NULL;
+
+#if HAVE_ICONV
+ if (iconv_cd_loc2int != BAD_CD)
+ return Eiconv(iconv_cd_loc2int, str, len);
+#endif
+
+ if (len <= 0)
+ len = strlen(str);
+ return Estrndup(str, len);
+}
+#endif
+
+/* Convert UTF-8 to internal format (alloc always) */
+char *
+EstrUtf82Int(const char *str, int len)
+{
+ if (str == NULL)
+ return NULL;
+
+#if HAVE_ICONV
+ if (iconv_cd_utf82int != BAD_CD)
+ return Eiconv(iconv_cd_utf82int, str, len);
+#endif
+
+ if (len <= 0)
+ len = strlen(str);
+ return Estrndup(str, len);
+}
+
+/* Convert internal to required (alloc only if necessary) */
+const char *
+EstrInt2Enc(const char *str, int want_utf8)
+{
+#if HAVE_ICONV
+ if (Mode.locale.utf8_int == want_utf8)
+ return str;
+
+ if (str == NULL)
+ return NULL;
+
+ if (want_utf8)
+ return Eiconv(iconv_cd_int2utf8, str, strlen(str));
+
+ return Eiconv(iconv_cd_int2loc, str, strlen(str));
+#else
+ want_utf8 = 0;
+ return str;
+#endif
+}
+
+/* Free string returned by EstrInt2Enc() */
+void
+EstrInt2EncFree(const char *str, int want_utf8)
+{
+#if HAVE_ICONV
+ if (Mode.locale.utf8_int == want_utf8)
+ return;
+
+ Efree((char *)str);
+#else
+ str = NULL;
+ want_utf8 = 0;
+#endif
+}
+
+/*
+ * Stuff to do mb/utf8 <-> wc conversions.
+ */
+#if HAVE_ICONV
+static iconv_t iconv_cd_str2wcs = BAD_CD;
+static iconv_t iconv_cd_wcs2str = BAD_CD;
+#endif
+
+int
+EwcOpen(int utf8)
+{
+#if HAVE_ICONV
+ const char *enc;
+
+ if (utf8)
+ enc = "UTF-8";
+ else
+ enc = nl_langinfo(CODESET);
+
+#if SIZEOF_WCHAR_T == 4
+ iconv_cd_str2wcs = EiconvOpen("UCS-4", enc);
+ iconv_cd_wcs2str = EiconvOpen(enc, "UCS-4");
+#else
+ iconv_cd_str2wcs = EiconvOpen("WCHAR_T", enc);
+ iconv_cd_wcs2str = EiconvOpen(enc, "WCHAR_T");
+#endif
+
+ if (iconv_cd_str2wcs != BAD_CD && iconv_cd_wcs2str != BAD_CD)
+ return 0;
+
+ EwcClose();
+ return -1;
+#else
+ /* NB! This case will not work properly if needed MB encoding is utf8
+ * but locale isn't */
+ utf8 = 0;
+ return 0;
+#endif
+}
+
+void
+EwcClose(void)
+{
+#if HAVE_ICONV
+ if (iconv_cd_str2wcs != BAD_CD)
+ iconv_close(iconv_cd_str2wcs);
+ iconv_cd_str2wcs = BAD_CD;
+ if (iconv_cd_wcs2str != BAD_CD)
+ iconv_close(iconv_cd_wcs2str);
+ iconv_cd_wcs2str = BAD_CD;
+#endif
+}
+
+int
+EwcStrToWcs(const char *str, int len, wchar_t * wcs, int wcl)
+{
+#if HAVE_ICONV
+ ICONV_CONST char *pi;
+ char *po;
+ size_t ni, no, rc;
+ char buf[4096];
+
+ pi = (ICONV_CONST char *)str;
+ ni = len;
+
+ if (!wcs)
+ {
+ no = 4096;
+ po = buf;
+ rc = iconv(iconv_cd_str2wcs, &pi, &ni, &po, &no);
+ if (rc == (size_t) (-1) || no == 0)
+ return -1;
+ wcl = (4096 - no) / sizeof(wchar_t);
+ return wcl;
+ }
+
+ po = (char *)wcs;
+ no = wcl * sizeof(wchar_t);
+ rc = iconv(iconv_cd_str2wcs, &pi, &ni, &po, &no);
+ if (rc == (size_t) (-1))
+ return 0;
+ return wcl - no / sizeof(wchar_t);
+#else
+ if (!wcs)
+ return mbstowcs(NULL, str, 0);
+
+ mbstowcs(wcs, str, wcl);
+ wcs[wcl] = (wchar_t) '\0';
+
+ len = 0;
+ return wcl;
+#endif
+}
+
+int
+EwcWcsToStr(const wchar_t * wcs, int wcl, char *str, int len)
+{
+#if HAVE_ICONV
+ ICONV_CONST char *pi;
+ size_t ni, no, rc;
+
+ pi = (ICONV_CONST char *)wcs;
+ ni = wcl * sizeof(wchar_t);
+ no = len;
+ rc = iconv(iconv_cd_wcs2str, &pi, &ni, &str, &no);
+ if (rc == (size_t) (-1))
+ return 0;
+ return len - no;
+#else
+ int i, j, n;
+
+ j = 0;
+ for (i = 0; i < wcl; i++)
+ {
+ if (j + (int)MB_CUR_MAX > len)
+ break;
+ n = wctomb(str + j, wcs[i]);
+ if (n > 0)
+ j += n;
+ }
+ str[j] = '\0';
+ return j;
+#endif
+}
+
+/*
+ * Setup
+ */
+
+static struct {
+ char *internal;
+ char *exported;
+} Conf_locale =
+{
+NULL, NULL};
+
+static struct {
+ char init;
+ char *env_language;
+ char *env_lc_all;
+ char *env_lc_messages;
+ char *env_lang;
+} locale_data;
+
+static void
+LangEnvironmentSetup(const char *locale)
+{
+ /* Precedence: LANGUAGE, LC_ALL, LC_MESSAGES, LANG */
+ if (locale)
+ {
+ /* Set requested */
+ Esetenv("LANGUAGE", locale);
+ Esetenv("LC_ALL", locale);
+ Esetenv("LANG", locale);
+ }
+ else
+ {
+ /* Restore saved */
+ Esetenv("LANGUAGE", locale_data.env_language);
+ Esetenv("LC_ALL", locale_data.env_lc_all);
+ Esetenv("LC_MESSAGES", locale_data.env_lc_messages);
+ Esetenv("LANG", locale_data.env_lang);
+ }
+}
+
+static void
+LangEnvironmentSave(void)
+{
+ if (locale_data.init)
+ return;
+ locale_data.init = 1;
+
+ locale_data.env_language = Estrdup(getenv("LANGUAGE"));
+ locale_data.env_lc_all = Estrdup(getenv("LC_ALL"));
+ locale_data.env_lc_messages = Estrdup(getenv("LC_MESSAGES"));
+ locale_data.env_lang = Estrdup(getenv("LANG"));
+}
+
+void
+LangExport(void)
+{
+ if (Conf_locale.exported)
+ LangEnvironmentSetup(Conf_locale.exported);
+ else if (Conf_locale.internal)
+ LangEnvironmentSetup(NULL);
+}
+
+void
+LangInit(void)
+{
+ const char *enc_loc, *enc_int;
+
+ if (!locale_data.init)
+ LangEnvironmentSave();
+
+ LangEnvironmentSetup(Conf_locale.internal);
+
+ setlocale(LC_ALL, ""); /* Set up things according to env vars */
+
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
+ if (!XSupportsLocale())
+ setlocale(LC_ALL, "C");
+ XSetLocaleModifiers("");
+
+ /* I dont want any internationalisation of my numeric input & output */
+ setlocale(LC_NUMERIC, "C");
+
+ /* Get the environment character encoding */
+#if HAVE_LANGINFO_CODESET
+ enc_loc = nl_langinfo(CODESET);
+#else
+ enc_loc = "ISO-8859-1";
+#endif
+
+ /* Debug - possibility to set desired internal representation */
+ enc_int = getenv("E_CHARSET");
+ if (enc_int)
+ bind_textdomain_codeset(PACKAGE, enc_int);
+ else
+ enc_int = enc_loc;
+
+ Mode.locale.lang = setlocale(LC_MESSAGES, NULL);
+ if (EDebug(EDBUG_TYPE_VERBOSE))
+ {
+ Eprintf("Locale: %s\n", setlocale(LC_ALL, NULL));
+ Eprintf("Character encoding: locale=%s internal=%s MB_CUR_MAX=%zu\n",
+ enc_loc, enc_int, MB_CUR_MAX);
+ }
+
+ if (!Estrcasecmp(enc_loc, "utf8") || !Estrcasecmp(enc_loc, "utf-8"))
+ Mode.locale.utf8_loc = 1;
+ if (!Estrcasecmp(enc_int, "utf8") || !Estrcasecmp(enc_int, "utf-8"))
+ Mode.locale.utf8_int = 1;
+
+#if HAVE_ICONV
+ if (Mode.locale.utf8_int && Mode.locale.utf8_loc)
+ return;
+ if (Mode.locale.utf8_int)
+ {
+ iconv_cd_loc2int = EiconvOpen("UTF-8", enc_loc);
+ iconv_cd_int2loc = EiconvOpen(enc_loc, "UTF-8");
+ }
+ else
+ {
+ iconv_cd_utf82int = EiconvOpen(enc_loc, "UTF-8");
+ iconv_cd_int2utf8 = EiconvOpen("UTF-8", enc_loc);
+ }
+#endif
+}
+
+void
+LangExit(void)
+{
+#if HAVE_ICONV
+ if (iconv_cd_int2utf8 != BAD_CD)
+ iconv_close(iconv_cd_int2utf8);
+ if (iconv_cd_utf82int != BAD_CD)
+ iconv_close(iconv_cd_utf82int);
+ if (iconv_cd_int2loc != BAD_CD)
+ iconv_close(iconv_cd_int2loc);
+ if (iconv_cd_loc2int != BAD_CD)
+ iconv_close(iconv_cd_loc2int);
+ iconv_cd_int2utf8 = iconv_cd_utf82int = BAD_CD;
+ iconv_cd_int2loc = iconv_cd_loc2int = BAD_CD;
+#endif
+
+ LangEnvironmentSetup(NULL);
+}
+
+static void
+LangCfgChange(void *item __UNUSED__, const char *locale)
+{
+ if (*locale == '\0')
+ locale = NULL;
+ LangExit();
+ _EFDUP(Conf_locale.internal, locale);
+ LangInit();
+}
+
+static const CfgItem LocaleCfgItems[] = {
+ CFG_FUNC_STR(Conf_locale, internal, LangCfgChange),
+ CFG_ITEM_STR(Conf_locale, exported),
+};
+#define N_CFG_ITEMS (sizeof(LocaleCfgItems)/sizeof(CfgItem))
+
+extern const EModule ModLocale;
+const EModule ModLocale = {
+ "locale", NULL,
+ NULL,
+ {0, NULL},
+ {N_CFG_ITEMS, LocaleCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _LANG_H_
+#define _LANG_H_
+
+#include <stdlib.h>
+
+#include "config.h"
+
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+# define N_(String) gettext_noop(String)
+# else
+# define N_(String) (String)
+# endif
+#else
+# define _(String) (String)
+# define N_(String) (String)
+#endif
+
+/* lang.c */
+void LangInit(void);
+void LangExit(void);
+void LangExport(void);
+
+char *EstrUtf82Int(const char *str, int len);
+const char *EstrInt2Enc(const char *str, int want_utf8);
+void EstrInt2EncFree(const char *str, int want_utf8);
+
+int EwcOpen(int utf8);
+void EwcClose(void);
+int EwcStrToWcs(const char *str, int len, wchar_t * wcs,
+ int wcl);
+int EwcWcsToStr(const wchar_t * wcs, int wcl, char *str,
+ int len);
+
+#endif /* _LANG_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "cursors.h"
+#include "ecompmgr.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "events.h"
+#include "ewins.h"
+#include "grabs.h"
+#include "hints.h"
+#include "tclass.h"
+#include "timers.h"
+#include "util.h"
+
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <X11/keysym.h>
+
+#define USE_TIMER 0
+#define USE_ANIMATOR 1
+
+/* Magnifier window */
+typedef struct {
+ EWin *ewin;
+ const char *title;
+#if USE_TIMER
+ Timer *timer;
+#endif
+ int cx, cy; /* Center */
+ int scale; /* Zoom level */
+ int sx, sy; /* Scene x,y */
+ int sw, sh; /* Scene wxh */
+ char mode;
+ char bpress;
+ char filter;
+ char grabbing;
+ char step;
+ unsigned int damage_count;
+ char update;
+} MagWindow;
+
+static void MagwinDestroy(MagWindow * mw);
+
+static MagWindow *MagWin = NULL;
+
+static void
+MagwinDrawText(MagWindow * mw, int x, int y, const char *txt)
+{
+ TextClass *tc;
+ int cw, ch;
+
+ tc = TextclassFind("COORDS", 1);
+ if (!tc)
+ return;
+
+ TextSize(tc, 0, 0, 0, txt, &cw, &ch, 17);
+ TextDraw(tc, EwinGetClientWin(mw->ewin), None, 0, 0, 0,
+ txt, x, y, cw, ch, 17, 0);
+}
+
+static unsigned int
+MagwinGetPixel(Drawable draw, unsigned int x, unsigned int y)
+{
+ EImage *im;
+ unsigned int *pd, pixel;
+
+ im = EImageGrabDrawable(draw, None, x, y, 1, 1, 0);
+ pd = (unsigned int *)EImageGetData(im);
+ pixel = *pd;
+ EImageFree(im);
+
+ return pixel;
+}
+
+static void
+MagwinRedraw(MagWindow * mw, int paint)
+{
+ int ww, wh;
+ int sx, sy, sw, sh;
+ double scale;
+ Drawable draw;
+ char buf[128];
+ int px, py;
+ int qx, qy;
+ int out;
+ unsigned int pixel;
+
+ ww = mw->ewin->client.w;
+ wh = mw->ewin->client.h;
+
+ if (mw->scale < -6)
+ mw->scale = -6;
+ else if (mw->scale > 6)
+ mw->scale = 6;
+ scale = pow(2., (double)(mw->scale));
+ sw = (int)((ww + .999 * scale) / scale);
+ if (sw > WinGetW(VROOT))
+ scale = (double)ww / (double)WinGetW(VROOT);
+ sh = (int)((wh + .999 * scale) / scale);
+ if (sh > WinGetH(VROOT) && scale < (double)wh / (double)WinGetH(VROOT))
+ scale = (double)wh / (double)WinGetH(VROOT);
+ sw = (int)((ww + .999 * scale) / scale);
+ sh = (int)((wh + .999 * scale) / scale);
+ sx = mw->cx - sw / 2;
+ sy = mw->cy - sh / 2;
+ if (sx < 0)
+ sx = 0;
+ else if (sx + sw > WinGetW(VROOT))
+ sx = WinGetW(VROOT) - sw;
+ if (sy < 0)
+ sy = 0;
+ else if (sy + sh > WinGetH(VROOT))
+ sy = WinGetH(VROOT) - sh;
+
+ mw->sx = sx;
+ mw->sy = sy;
+ mw->sw = sw;
+ mw->sh = sh;
+
+ if (paint)
+ {
+ int dw, dh;
+
+ dw = (int)(sw * scale + .5);
+ dh = (int)(sh * scale + .5);
+ draw = ECompMgrGetRootBuffer();
+ if (draw == None)
+ draw = WinGetXwin(VROOT);
+ ScaleRect(VROOT, draw, EwinGetClientWin(mw->ewin),
+ EwinGetClientXwin(mw->ewin), sx, sy, sw, sh,
+ 0, 0, dw, dh, (mw->filter) ? EIMAGE_ANTI_ALIAS : 0);
+ }
+
+ /* Check if pointer is in magnifier window */
+ EQueryPointer(EwinGetClientWin(mw->ewin), &px, &py, NULL, NULL);
+ out = px < 0 || px >= mw->ewin->client.w ||
+ py < 0 || py >= mw->ewin->client.h;
+ /* If inside grab pixel before drawing in window */
+ pixel = (out) ? 0 : MagwinGetPixel(EwinGetClientXwin(mw->ewin), px, py);
+
+ /* Show magnified area coordinates */
+ Esnprintf(buf, sizeof(buf), "%d,%d %dx%d", sx, sy, sw, sh);
+ MagwinDrawText(mw, 10, 10, buf);
+
+ if (out)
+ return;
+
+ /* Show info about pixel at cursor (if in magnifier) */
+ qx = (int)(px / scale);
+ qy = (int)(py / scale);
+ if (qx > WinGetW(VROOT) - 1)
+ qx = WinGetW(VROOT) - 1;
+ if (qy > WinGetH(VROOT) - 1)
+ qy = WinGetH(VROOT) - 1;
+ Esnprintf(buf, sizeof(buf), "%d,%d: pixel=%#08x", sx + qx, sy + qy, pixel);
+ MagwinDrawText(mw, 10, 20, buf);
+}
+
+static int
+_MagwinUpdate(MagWindow * mw)
+{
+ if (mw != MagWin)
+ return 0;
+
+ /* Validate ewin */
+ if (!EwinFindByPtr(mw->ewin))
+ return 0;
+
+ if (!mw->update && Mode.events.damage_count == mw->damage_count)
+ return 1;
+ mw->damage_count = Mode.events.damage_count;
+
+ /* FIXME - Check damage */
+
+ MagwinRedraw(mw, 1);
+
+ mw->update = 0;
+
+ return 1;
+}
+
+#if USE_TIMER
+static int
+_MagwinTimeout(int val __UNUSED__, void *data)
+{
+ MagWindow *mw = (MagWindow *) data;
+ int again;
+
+ again = _MagwinUpdate(mw);
+ if (again)
+ return 1;
+
+ mw->timer = NULL;
+ return 0;
+}
+#elif USE_ANIMATOR
+static int
+_MagwinAnimator(void *data)
+{
+ MagWindow *mw = (MagWindow *) data;
+
+ return _MagwinUpdate(mw);
+}
+#endif
+
+static int
+MagwinKeyPress(MagWindow * mw, KeySym key)
+{
+ switch (key)
+ {
+ case XK_q: /* Quit */
+ case XK_Escape:
+ return 1;
+ case XK_g: /* Toggle grabs */
+ if (mw->grabbing)
+ {
+ GrabPointerRelease();
+ GrabKeyboardRelease();
+ mw->grabbing = 0;
+ }
+ else
+ {
+ GrabPointerSet(EwinGetClientWin(mw->ewin), ECSR_GRAB, 0);
+ GrabKeyboardSet(EwinGetClientWin(mw->ewin));
+ mw->grabbing = 1;
+ }
+ break;
+ case XK_f: /* Toggle filter */
+ mw->filter += 1;
+ if (mw->filter >= 2)
+ mw->filter = 0;
+ break;
+ case XK_i: /* Zoom in */
+ case XK_Page_Up:
+ mw->scale += 1;
+ break;
+ case XK_o: /* Zoom out */
+ case XK_Page_Down:
+ mw->scale -= 1;
+ if (mw->scale < -20)
+ mw->scale = -20;
+ break;
+
+ case XK_Left:
+ mw->cx -= mw->step;
+ if (mw->cx < mw->sw / 2)
+ mw->cx = mw->sw / 2;
+ break;
+ case XK_Right:
+ mw->cx += mw->step;
+ if (mw->cx > WinGetW(VROOT) - mw->sw / 2)
+ mw->cx = WinGetW(VROOT) - mw->sw / 2;
+ break;
+ case XK_Up:
+ mw->cy -= mw->step;
+ if (mw->cy < mw->sh / 2)
+ mw->cy = mw->sh / 2;
+ break;
+ case XK_Down:
+ mw->cy += mw->step;
+ if (mw->cy > WinGetH(VROOT) - mw->sh / 2)
+ mw->cy = WinGetH(VROOT) - mw->sh / 2;
+ break;
+
+ case XK_r: /* Switch render mode */
+ Conf.testing.use_render_for_scaling =
+ !Conf.testing.use_render_for_scaling;
+ break;
+
+ case XK_s: /* x/y move step size */
+ mw->step = (mw->step == 1) ? 4 : 1;
+ break;
+ }
+
+ return 0;
+}
+
+static void
+MagwinEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ MagWindow *mw = (MagWindow *) prm;
+ KeySym key;
+ int done = 0;
+
+ switch (ev->type)
+ {
+ default:
+ break;
+
+ case KeyPress:
+ key = XLookupKeysym(&ev->xkey, 0);
+ done = MagwinKeyPress(mw, key);
+ mw->update = 1;
+ break;
+
+ case ButtonPress:
+ switch (ev->xbutton.button)
+ {
+ default:
+ break;
+ case 1:
+ MagwinKeyPress(mw, XK_g);
+ break;
+ case 3:
+ MagwinKeyPress(mw, XK_f);
+ break;
+ case 4:
+ MagwinKeyPress(mw, XK_i);
+ break;
+ case 5:
+ MagwinKeyPress(mw, XK_o);
+ break;
+ }
+ mw->bpress = 1;
+ mw->update = 1;
+ break;
+ case ButtonRelease:
+ mw->bpress = 0;
+ break;
+
+ case MotionNotify:
+ if (mw->grabbing)
+ {
+ mw->cx = Mode.events.mx;
+ mw->cy = Mode.events.my;
+ mw->update = 1;
+ }
+ else
+ {
+ mw->update = 1;
+ }
+ break;
+
+ case MapNotify:
+ MagwinKeyPress(mw, XK_g);
+#if USE_TIMER
+ TIMER_ADD(mw->timer, .050, _MagwinTimeout, 0, mw);
+#elif USE_ANIMATOR
+ AnimatorAdd(_MagwinAnimator, mw);
+#endif
+ mw->update = 1;
+ break;
+ }
+
+ if (done)
+ EwinHide(mw->ewin);
+}
+
+static void
+_MagEwinInit(EWin * ewin)
+{
+ MagWindow *mw = (MagWindow *) ewin->data;
+
+ EwinSetTitle(ewin, mw->title);
+ EwinSetClass(ewin, "Magnifier", "Enlightenment_Magnifier");
+
+ EoSetSticky(ewin, 1);
+ EoSetShadow(ewin, 0);
+}
+
+static void
+_MagEwinClose(EWin * ewin)
+{
+ MagwinDestroy((MagWindow *) ewin->data);
+ ewin->data = NULL;
+ MagWin = NULL;
+}
+
+static const EWinOps _MagEwinOps = {
+ _MagEwinInit,
+ NULL,
+ NULL,
+ _MagEwinClose,
+};
+
+static MagWindow *
+MagwinCreate(const char *title, int width, int height)
+{
+ MagWindow *mw;
+ Win win;
+ int x, y, w, h;
+
+ mw = ECALLOC(MagWindow, 1);
+ if (!mw)
+ return NULL;
+
+ win = VROOT;
+ w = width;
+ h = height;
+ x = ((win->w - w) / 2);
+ y = ((win->h - h) / 2);
+
+ win = ECreateClientWindow(VROOT, x, y, w, h);
+
+ mw->title = title;
+ mw->ewin = AddInternalToFamily(win, NULL, EWIN_TYPE_MISC, &_MagEwinOps, mw);
+ if (!mw->ewin)
+ {
+ Efree(mw);
+ return NULL;
+ }
+
+ mw->ewin->o.ghost = 1;
+ EoSetLayer(mw->ewin, 10);
+ EwinMoveToDesktop(mw->ewin, EoGetDesk(mw->ewin));
+ EwinMoveResize(mw->ewin, EoGetX(mw->ewin), EoGetY(mw->ewin), w, h);
+
+ mw->ewin->client.event_mask |=
+ KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask |
+ StructureNotifyMask;
+ ESelectInput(win, mw->ewin->client.event_mask);
+
+ EventCallbackRegister(win, 0, MagwinEvent, mw);
+
+ EQueryPointer(VROOT, &mw->cx, &mw->cy, NULL, NULL);
+ mw->scale = 1;
+ mw->step = 4;
+
+ return mw;
+}
+
+static void
+MagwinDestroy(MagWindow * mw)
+{
+#if USE_TIMER
+ TIMER_DEL(mw->timer);
+#endif
+ EventCallbackUnregister(EwinGetClientWin(mw->ewin), 0, MagwinEvent, mw);
+ EDestroyWindow(EwinGetClientWin(mw->ewin));
+ Efree(mw);
+}
+
+static void
+MagwinShow(void)
+{
+ if (MagWin)
+ return;
+
+ MagWin = MagwinCreate(_("Magnifier"),
+ WinGetW(VROOT) / 4, WinGetH(VROOT) / 4);
+ if (!MagWin)
+ {
+ Eprintf("Failed to create magnifier window\n");
+ return;
+ }
+
+ EwinShow(MagWin->ewin);
+}
+
+/*
+ * MagWin Module
+ */
+
+static void
+MagwinIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || !strcmp(cmd, "show"))
+ {
+ MagwinShow();
+ }
+}
+
+static const IpcItem MagwinIpcArray[] = {
+ {
+ MagwinIpc,
+ "magwin", "mag",
+ "Magnifier functions",
+ " magwin show\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(MagwinIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModMagwin;
+const EModule ModMagwin = {
+ "magwin", NULL,
+ NULL,
+ {N_IPC_FUNCS, MagwinIpcArray},
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "comms.h"
+#include "cursors.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "edbus.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "events.h"
+#include "ewins.h"
+#include "file.h"
+#include "grabs.h"
+#include "hints.h"
+#include "session.h"
+#include "snaps.h"
+#include "user.h"
+#include "xwin.h"
+#include <sys/utsname.h>
+#include <signal.h>
+#include <time.h>
+
+const char e_wm_name[] = "e16";
+const char e_wm_version[] = VERSION;
+
+EConf Conf;
+EMode Mode;
+
+static int EoptGet(int argc, char **argv);
+static void EoptHelp(void);
+static void ECheckEprog(const char *name);
+static void EDirUserSet(const char *dir);
+static void EConfNameSet(const char *dir);
+static void EDirUserCacheSet(const char *dir);
+static void EDirsSetup(void);
+static void RunInitPrograms(void);
+
+static int eoptind = 0;
+const char *eoptarg = NULL;
+
+typedef struct {
+ char sopt;
+ char arg;
+ const char *lopt;
+ const char *oarg;
+ const char *desc;
+} EOpt;
+
+static const EOpt Eopts[] = {
+ {'d', 1, "display", "display", "Set display"},
+ {'f', 0, "fast", NULL, "Fast startup"},
+ {'h', 0, "help", NULL, "Show help"},
+ {'m', 1, NULL, NULL, NULL},
+ {'p', 1, "config-prefix", "prefix", "Configuration file name prefix"},
+ {'P', 1, "econfdir", "path", "Set user configuration directory"},
+ {'Q', 1, "ecachedir", "path", "Set user cache directory"},
+ {'s', 1, "single", "screen", "Run only on given screen"},
+ {'S', 1, "sm-client-id", "session id", "Set session manager ID"},
+ {'t', 1, "theme", "name", "Select theme"},
+ {'v', 0, "verbose", NULL, "Show additional info"},
+ {'V', 0, "version", NULL, "Show version"},
+ {'w', 1, "window", "WxH", "Run in window"},
+ {'X', 1, NULL, NULL, NULL},
+};
+
+int
+main(int argc, char **argv)
+{
+ int ch, i, loop;
+ struct utsname ubuf;
+ const char *str, *dstr;
+
+ /* This function runs all the setup for startup, and then
+ * proceeds into the primary event loop at the end.
+ */
+
+ /* Init state variable struct */
+ memset(&Mode, 0, sizeof(EMode));
+
+ Mode.wm.master = 1;
+ Mode.wm.pid = getpid();
+ Mode.wm.exec_name = argv[0];
+ Mode.wm.startup = 1;
+
+ Mode.mode = MODE_NONE;
+ Mode.move.check = 1;
+
+ EXInit();
+ Dpy.screen = -1;
+
+ str = getenv("EDEBUG");
+ if (str)
+ EDebugInit(str);
+ str = getenv("EDEBUG_COREDUMP");
+ if (str)
+ Mode.wm.coredump = 1;
+ str = getenv("EDEBUG_EXIT");
+ if (str)
+ Mode.debug_exit = atoi(str);
+
+ str = getenv("ECONFNAME");
+ if (str)
+ EConfNameSet(str);
+ str = getenv("ECONFDIR");
+ if (str)
+ EDirUserSet(str);
+ str = getenv("ECACHEDIR");
+ if (str)
+ EDirUserCacheSet(str);
+
+ srand((unsigned int)time(NULL));
+
+ if (!uname(&ubuf))
+ Mode.wm.machine_name = Estrdup(ubuf.nodename);
+ if (!Mode.wm.machine_name)
+ Mode.wm.machine_name = Estrdup("localhost");
+
+ /* Now we're going to interpret any of the commandline parameters
+ * that are passed to it -- Well, at least the ones that we
+ * understand.
+ */
+
+ Mode.theme.path = NULL;
+ dstr = NULL;
+
+ for (loop = 1; loop;)
+ {
+ ch = EoptGet(argc, argv);
+ if (ch <= 0)
+ break;
+#if 0
+ Eprintf("Opt: %c: %d - %s\n", ch, eoptind, eoptarg);
+#endif
+ switch (ch)
+ {
+ default:
+ case '?':
+ printf("e16: Ignoring: ");
+ for (i = eoptind; i < argc; i++)
+ printf("%s ", argv[i]);
+ printf("\n");
+ loop = 0;
+ break;
+ case 'h':
+ EoptHelp();
+ exit(0);
+ break;
+ case 'd':
+ dstr = eoptarg;
+ break;
+ case 'f':
+ Mode.wm.restart = 1;
+ break;
+ case 'p':
+ EConfNameSet(eoptarg);
+ break;
+ case 'P':
+ EDirUserSet(eoptarg);
+ break;
+ case 'Q':
+ EDirUserCacheSet(eoptarg);
+ break;
+ case 's':
+ Mode.wm.single = 1;
+ Dpy.screen = strtoul(eoptarg, NULL, 10);
+ break;
+ case 'S':
+ SetSMID(eoptarg);
+ break;
+ case 't':
+ Mode.theme.path = Estrdup(eoptarg);
+ break;
+ case 'V':
+ printf("%s %s\n", e_wm_name, e_wm_version);
+ exit(0);
+ break;
+ case 'v':
+ EDebugSet(EDBUG_TYPE_VERBOSE, 1);
+ break;
+ case 'w':
+ sscanf(eoptarg, "%dx%d", &Mode.wm.win_w, &Mode.wm.win_h);
+ Mode.wm.window = 1;
+ Mode.wm.single = 1;
+ Mode.wm.master = 0;
+ break;
+#ifdef USE_EXT_INIT_WIN
+ case 'X':
+ ExtInitWinSet(strtoul(eoptarg, NULL, 0));
+ Mode.wm.restart = 1;
+ break;
+#endif
+ case 'm':
+ Mode.wm.master = 0;
+ Mode.wm.master_screen = strtoul(eoptarg, NULL, 10);
+ break;
+ }
+ }
+
+ SignalsSetup(); /* Install signal handlers */
+
+ SetupX(dstr); /* This is where the we fork per screen */
+ /* X is now running, and we have forked per screen */
+
+ /* So far nothing should rely on a selected settings or theme. */
+ ConfigurationLoad(); /* Load settings */
+
+ /* Initialise internationalisation */
+ LangInit();
+
+ ECheckEprog("epp");
+ ECheckEprog("eesh");
+ EDirsSetup();
+
+ /* The theme path must now be available for config file loading. */
+ ThemePathFind();
+
+ /* Set the Environment variables */
+ Esetenv("EVERSION", e_wm_version);
+ Esetenv("EROOT", EDirRoot());
+ Esetenv("EBIN", EDirBin());
+ Esetenv("ECONFDIR", EDirUser());
+ Esetenv("ECACHEDIR", EDirUserCache());
+ Esetenv("ETHEME", Mode.theme.path);
+
+ /* Move elsewhere? */
+ EImageInit();
+ HintsInit();
+ CommsInit();
+ SessionInit();
+ SnapshotsLoad();
+
+#if USE_DBUS
+ DbusInit();
+#endif
+
+ if (Mode.wm.window)
+ EMapWindow(VROOT);
+
+ ModulesSignal(ESIGNAL_INIT, NULL);
+
+ /* Load the theme */
+ ThemeConfigLoad();
+
+ if (Mode.debug_exit)
+ return 0;
+
+ /* Do initial configuration */
+ ModulesSignal(ESIGNAL_CONFIGURE, NULL);
+
+ /* Set root window cursor */
+ ECsrApply(ECSR_ROOT, WinGetXwin(VROOT));
+
+#ifdef USE_EXT_INIT_WIN
+ /* Kill the E process owning the "init window" */
+ ExtInitWinKill();
+#endif
+
+ /* let's make sure we set this up and go to our desk anyways */
+ DeskGoto(DesksGetCurrent());
+ ESync(ESYNC_MAIN);
+
+#ifdef SIGCONT
+ for (i = 0; i < Mode.wm.child_count; i++)
+ kill(Mode.wm.children[i], SIGCONT);
+#endif
+
+ ModulesSignal(ESIGNAL_START, NULL);
+#if ENABLE_DIALOGS
+ DialogsInit();
+#endif
+ EwinsManage();
+
+ RunInitPrograms();
+ SnapshotsSpawn();
+
+ if (!Mode.wm.restart)
+ StartupWindowsOpen();
+
+ Conf.startup.firsttime = 0;
+ Mode.wm.save_ok = Conf.autosave;
+ Mode.wm.startup = 0;
+ autosave();
+
+ /* The primary event loop */
+ EventsMain();
+
+ SessionExit(EEXIT_QUIT, NULL);
+
+ return 0;
+}
+
+void
+EExit(int exitcode)
+{
+ int i;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("EExit(%d)\n", exitcode);
+
+ if (disp)
+ {
+ EUngrabServer();
+ GrabPointerRelease();
+ XAllowEvents(disp, AsyncBoth, CurrentTime);
+
+ /* XSetInputFocus(disp, None, RevertToParent, CurrentTime); */
+ /* I think this is a better way to release the grabs: (felix) */
+ XSetInputFocus(disp, PointerRoot, RevertToPointerRoot, CurrentTime);
+ ESelectInput(VROOT, 0);
+ EDisplayClose();
+ }
+
+ if (Mode.wm.master)
+ {
+ for (i = 0; i < Mode.wm.child_count; i++)
+ kill(Mode.wm.children[i], SIGINT);
+ }
+ else
+ {
+ exitcode = 0;
+ }
+
+ exit(exitcode);
+}
+
+/*
+ * Command line parsing.
+ * Not entirely standard compliant, but close enough.
+ */
+static int
+EoptGet(int argc, char **argv)
+{
+ const char *s;
+ unsigned int i, len;
+ int lopt;
+ const EOpt *eopt;
+
+ eoptind++;
+ if (eoptind >= argc)
+ return 0;
+
+ s = argv[eoptind];
+ if (*s++ != '-')
+ return 0;
+
+ lopt = 0;
+ if (*s == '-')
+ {
+ lopt = 1;
+ s++;
+ }
+
+ eoptarg = NULL;
+ eopt = NULL;
+ for (i = 0; i < sizeof(Eopts) / sizeof(EOpt); i++)
+ {
+ eopt = &Eopts[i];
+
+ /* Short option */
+ if (!lopt)
+ {
+ if (!eopt->sopt || eopt->sopt != s[0])
+ continue;
+ if (eopt->arg)
+ {
+ if (s[1])
+ {
+ eoptarg = s + 1;
+ goto found;
+ }
+ goto found;
+ }
+ if (s[1])
+ break;
+ goto found;
+ }
+
+ if (!eopt->lopt)
+ continue;
+
+ /* Long option */
+ len = strlen(eopt->lopt);
+ if (strncmp(eopt->lopt, s, len))
+ continue;
+ if (eopt->arg)
+ {
+ if (s[len] == '\0')
+ goto found;
+ if (s[len] != '=')
+ break;
+ eoptarg = s + len + 1;
+ }
+ goto found;
+ }
+ return '?';
+
+ found:
+ if (!eopt->arg || eoptarg)
+ return eopt->sopt;
+
+ if (eoptind >= argc - 1)
+ return '?'; /* Missing param */
+
+ eoptind++;
+ eoptarg = argv[eoptind];
+ return eopt->sopt;
+}
+
+static void
+EoptHelp(void)
+{
+ unsigned int i;
+ const EOpt *eopt;
+ char buf[256];
+
+ printf("e16 options:\n");
+ for (i = 0; i < sizeof(Eopts) / sizeof(EOpt); i++)
+ {
+ eopt = &Eopts[i];
+ if (!eopt->desc)
+ continue;
+ if (eopt->oarg)
+ Esnprintf(buf, sizeof(buf), "--%s <%s>", eopt->lopt, eopt->oarg);
+ else
+ Esnprintf(buf, sizeof(buf), "--%s", eopt->lopt);
+ printf(" -%c %-30s\t%s\n", eopt->sopt, buf, eopt->desc);
+ }
+}
+
+static void
+RunDocBrowser(void)
+{
+ char buf[FILEPATH_LEN_MAX];
+
+ Esnprintf(buf, sizeof(buf), "%s/edox", EDirBin());
+ if (!canexec(buf))
+ return;
+ Esnprintf(buf, sizeof(buf), "%s/E-docs/MAIN", EDirRoot());
+ if (!canread(buf))
+ return;
+
+ Esnprintf(buf, sizeof(buf), "%s/edox %s/E-docs", EDirBin(), EDirRoot());
+ execApplication(buf, 0);
+}
+
+static void
+RunMenuGen(void)
+{
+ char buf[FILEPATH_LEN_MAX];
+
+ Esnprintf(buf, sizeof(buf), "%s/scripts/e_gen_menu", EDirRoot());
+ execApplication(buf, EXEC_SET_LANG);
+}
+
+static void
+RunInitPrograms(void)
+{
+ if (Mode.wm.session_start)
+ SessionHelper(ESESSION_INIT);
+
+ SessionHelper(ESESSION_START);
+
+ if (Mode.firsttime && Mode.wm.master)
+ {
+ RunMenuGen();
+ RunDocBrowser();
+ }
+}
+
+const char *
+EDirBin(void)
+{
+ return ENLIGHTENMENT_BIN;
+}
+
+const char *
+EDirRoot(void)
+{
+ return ENLIGHTENMENT_ROOT;
+}
+
+static void
+EConfNameSet(const char *name)
+{
+ Efree(Mode.conf.name);
+ Mode.conf.name = Estrdup(name);
+ Esetenv("ECONFNAME", Mode.conf.name);
+}
+
+static void
+EDirUserSet(const char *dir)
+{
+ if (!strcmp(dir, EDirUser()))
+ return;
+ Efree(Mode.conf.dir);
+ Mode.conf.dir = Estrdup(dir);
+}
+
+static void
+EDirUserCacheSet(const char *dir)
+{
+ if (!strcmp(dir, EDirUser()))
+ return;
+ Efree(Mode.conf.cache_dir);
+ Mode.conf.cache_dir = Estrdup(dir);
+}
+
+static const char *
+EConfNameDefault(void)
+{
+ return "e_config";
+}
+
+static const char *
+EConfName(void)
+{
+ return (Mode.conf.name) ? Mode.conf.name : EConfNameDefault();
+}
+
+const char *
+EDirUser(void)
+{
+ static char *user_dir = NULL;
+ char *home, buf[4096];
+
+ if (Mode.conf.dir)
+ return Mode.conf.dir;
+
+ if (user_dir)
+ return user_dir;
+
+ home = homedir(getuid());
+ Esnprintf(buf, sizeof(buf), "%s/.e16", home);
+ Efree(home);
+ user_dir = Estrdup(buf);
+
+ return user_dir;
+}
+
+const char *
+EDirUserCache(void)
+{
+ if (Mode.conf.cache_dir)
+ return Mode.conf.cache_dir;
+ return EDirUser();
+}
+
+void
+Etmp(char *s)
+{
+ static unsigned int n_calls = 0;
+
+ Esnprintf(s, 1024, "%s/TMP_%d_%d", EDirUser(), getpid(), n_calls++);
+}
+
+static void
+EDirCheck(const char *dir)
+{
+ if (file_test(dir, EFILE_DIR | EPERM_RWX))
+ return;
+
+ Alert(_("%s must be a directory in which you have\n"
+ "read, write, and execute permission.\n"), dir);
+ EExit(1);
+}
+
+void
+EDirMake(const char *base, const char *name)
+{
+ char s[1024];
+
+ Esnprintf(s, sizeof(s), "%s/%s", base, name);
+ if (!exists(s))
+ E_md(s);
+ else
+ EDirCheck(s);
+}
+
+static void
+EDirsSetup(void)
+{
+ char s[1024], ss[1024], *home;
+
+ home = homedir(getuid());
+ if (home)
+ {
+ EDirCheck(home);
+ Efree(home);
+ }
+
+ Esnprintf(s, sizeof(s), "%s", EDirUser());
+ if (exists(s))
+ {
+ if (!isdir(s))
+ {
+ Esnprintf(ss, sizeof(ss), "%s.old", EDirUser());
+ E_mv(s, ss);
+ E_md(s);
+ }
+ else
+ EDirCheck(s);
+ }
+ else
+ E_md(s);
+
+ Esnprintf(s, sizeof(s), "%s/menus", EDirUser());
+ Mode.firsttime = !exists(s);
+
+ EDirMake(EDirUser(), "themes");
+ EDirMake(EDirUser(), "backgrounds");
+ EDirMake(EDirUser(), "menus");
+
+ EDirMake(EDirUserCache(), "cached");
+ EDirMake(EDirUserCache(), "cached/cfg");
+}
+
+/*
+ * The user control config is called "~/.e16/e_config-$DISPLAY"
+ * The client data appends ".clients" onto this filename and the snapshot data
+ * appends ".snapshots".
+ */
+const char *
+EGetSavePrefix(void)
+{
+ static char *def_prefix = NULL;
+ char *s, buf[1024];
+
+ if (def_prefix)
+ return def_prefix;
+
+ if (Mode.conf.name)
+ Esnprintf(buf, sizeof(buf), "%s/%s-%d", EDirUser(), EConfName(),
+ Dpy.screen);
+ else if (Mode.wm.window)
+ Esnprintf(buf, sizeof(buf), "%s/%s-window", EDirUser(),
+ EConfNameDefault());
+ else
+ Esnprintf(buf, sizeof(buf), "%s/%s-%s", EDirUser(), EConfNameDefault(),
+ Dpy.name);
+ def_prefix = Estrdup(buf);
+
+ for (s = def_prefix; (s = strchr(s, ':')) != NULL; *s = '-')
+ ;
+
+ return def_prefix;
+}
+
+static void
+ECheckEprog(const char *name)
+{
+ char s[1024];
+
+ Esnprintf(s, sizeof(s), "%s/%s", EDirBin(), name);
+
+ if (!exists(s))
+ {
+ Alert(_("!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n" "\n"
+ "Enlightenment's utility executable cannot be found at:\n"
+ "\n" "%s\n"
+ "This is a fatal error and Enlightenment will cease to run.\n"
+ "Please rectify this situation and ensure it is installed\n"
+ "correctly.\n" "\n"
+ "The reason this could be missing is due to badly created\n"
+ "packages, someone manually deleting that program or perhaps\n"
+ "an error in installing Enlightenment.\n"), s);
+ EExit(0);
+ }
+
+ if (!canexec(s))
+ {
+ Alert(_("!!!!!!!! ERROR ERROR ERROR ERROR !!!!!!!!\n" "\n"
+ "Enlightenment's utility executable is not able to be executed:\n"
+ "\n" "%s\n"
+ "This is a fatal error and Enlightenment will cease to run.\n"
+ "Please rectify this situation and ensure it is installed\n"
+ "correctly.\n"), s);
+ EExit(0);
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2005-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include <ctype.h>
+
+char *
+Estrtrim(char *s)
+{
+ int l;
+
+ while (*s == ' ')
+ s++;
+ if (!*s)
+ return s;
+
+ l = strlen(s);
+ while (isspace(s[l - 1]))
+ l--;
+ s[l] = '\0';
+
+ return s;
+}
+
+char *
+Estrdup(const char *s)
+{
+#if USE_LIBC_STRDUP
+ if (s)
+ return strdup(s);
+ return NULL;
+#else
+ int sz;
+
+ if (!s)
+ return NULL;
+ sz = strlen(s);
+ ss = EMALLOC(char, sz + 1);
+ strncpy(ss, s, sz + 1);
+ return ss;
+#endif
+}
+
+char *
+Estrndup(const char *s, size_t n)
+{
+#if USE_LIBC_STRNDUP
+ if (s)
+ return strndup(s, n);
+ return NULL;
+#else
+ char *ss;
+
+ if (!s)
+ return NULL;
+ ss = EMALLOC(char, n + 1);
+ strncpy(ss, s, n);
+ ss[n] = '\0';
+ return ss;
+#endif
+}
+
+char *
+Estrdupcat2(char *ss, const char *s1, const char *s2)
+{
+ char *s;
+ int len, l1, l2;
+
+ if (!ss)
+ return Estrdup(s2);
+
+ len = (ss) ? strlen(ss) : 0;
+ l1 = (s1) ? strlen(s1) : 0;
+ l2 = (s2) ? strlen(s2) : 0;
+
+ s = EREALLOC(char, ss, len + l1 + l2 + 1);
+ if (!s)
+ return NULL;
+ if (s1 && l1)
+ memcpy(s + len, s1, l1);
+ if (s2 && l2)
+ memcpy(s + len + l1, s2, l2);
+ s[len + l1 + l2] = '\0';
+
+ return s;
+}
+
+#if 0 /* Unused */
+char **
+StrlistDup(char **lst, int num)
+{
+ char **ss;
+ int i;
+
+ if (!lst || num <= 0)
+ return NULL;
+
+ ss = EMALLOC(char *, num + 1);
+ for (i = 0; i < num; i++)
+ ss[i] = Estrdup(lst[i]);
+ ss[i] = NULL;
+
+ return ss;
+}
+#endif
+
+void
+StrlistFree(char **lst, int num)
+{
+ if (!lst)
+ return;
+ while (num--)
+ Efree(lst[num]);
+ Efree(lst);
+}
+
+#if 0 /* FIXME - Remove? */
+char *
+StrlistJoin(char **lst, int num)
+{
+ int i, size;
+ char *s;
+
+ if (!lst || num <= 0)
+ return NULL;
+
+ s = NULL;
+
+ size = strlen(lst[0]) + 1;
+ s = EMALLOC(char, size);
+ strcpy(s, lst[0]);
+ for (i = 1; i < num; i++)
+ {
+ size += strlen(lst[i]) + 1;
+ s = EREALLOC(char, s, size);
+
+ strcat(s, " ");
+ strcat(s, lst[i]);
+ }
+
+ return s;
+}
+#endif
+
+char *
+StrlistEncodeEscaped(char *buf, int len, char **lst, int num)
+{
+ int i, j, ch;
+ char *s, *p;
+
+ if (!lst || num <= 0)
+ return NULL;
+
+ j = 0;
+ s = buf;
+ p = lst[0];
+ for (i = 0; i < len - 2; i++)
+ {
+ if (!p) /* A string list should not contain NULL items */
+ break;
+
+ ch = *p++;
+ switch (ch)
+ {
+ default:
+ *s++ = ch;
+ break;
+ case '\0':
+ if (++j >= num)
+ goto done;
+ p = lst[j];
+ if (!p || !p[0])
+ goto done;
+ *s++ = ' ';
+ break;
+ case ' ':
+ *s++ = '\\';
+ *s++ = ' ';
+ i++;
+ break;
+ }
+ }
+
+ done:
+ *s = '\0';
+ return buf;
+}
+
+char **
+StrlistDecodeEscaped(const char *str, int *pnum)
+{
+ int num, len;
+ const char *s, *p;
+ char **lst;
+
+ if (!str)
+ return NULL;
+
+ lst = NULL;
+ num = 0;
+ s = str;
+ for (;;)
+ {
+ while (*s == ' ')
+ s++;
+ if (*s == '\0')
+ break;
+
+ lst = EREALLOC(char *, lst, num + 1);
+
+ lst[num] = NULL;
+ len = 0;
+
+ for (;;)
+ {
+ p = strchr(s, ' ');
+ if (!p)
+ p = s + strlen(s);
+
+ lst[num] = EREALLOC(char, lst[num], len + p - s + 1);
+
+ memcpy(lst[num] + len, s, p - s);
+ len += p - s;
+ lst[num][len] = '\0';
+
+ s = p;
+ if (p[-1] == '\\')
+ {
+ if (*p)
+ lst[num][len - 1] = ' ';
+ else
+ break;
+ }
+ else
+ {
+ break;
+ }
+ while (*s == ' ')
+ s++;
+ if (*s == '\0')
+ break;
+ }
+ num++;
+ }
+
+ /* Append NULL item */
+ lst = EREALLOC(char *, lst, num + 1);
+
+ lst[num] = NULL;
+
+ *pnum = num;
+ return lst;
+}
+
+char **
+StrlistFromString(const char *str, int delim, int *num)
+{
+ const char *s, *p;
+ char **lst;
+ int n, len;
+
+ lst = NULL;
+ n = 0;
+ for (s = str; s; s = p)
+ {
+ p = strchr(s, delim);
+ if (p)
+ {
+ len = p - s;
+ p++;
+ }
+ else
+ {
+ len = strlen(s);
+ }
+ if (len <= 0)
+ continue;
+
+ lst = EREALLOC(char *, lst, n + 2);
+
+ lst[n++] = Estrndup(s, len);
+ }
+
+ if (lst)
+ lst[n] = NULL;
+ *num = n;
+ return lst;
+}
+
+void
+Esetenv(const char *name, const char *value)
+{
+ if (value)
+ {
+#if HAVE_SETENV
+ setenv(name, value, 1);
+#else
+ char buf[FILEPATH_LEN_MAX];
+
+ Esnprintf(buf, FILEPATH_LEN_MAX, "%s=%s", name, value);
+ putenv(Estrdup(buf));
+#endif
+ }
+ else
+ {
+#if HAVE_UNSETENV
+ unsetenv(name);
+#else
+ if (getenv(name))
+ putenv((char *)name);
+#endif
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "backgrounds.h"
+#include "borders.h"
+#include "desktops.h"
+#include "ewins.h"
+#include "file.h"
+#include "groups.h"
+#include "iclass.h"
+#include "menus.h"
+#include "parse.h"
+#include "progress.h"
+#include <errno.h>
+#include <sys/stat.h>
+
+static char menu_scan_recursive = 0;
+
+static Menu *MenuCreateFromDirectory(const char *name, Menu * parent,
+ MenuStyle * ms, const char *dir);
+static int _ext_is_imagetype(const char *ext);
+
+static MenuItem *
+MenuItemCreateFromBackground(const char *bgid, const char *file)
+{
+ MenuItem *mi;
+ Background *bg;
+ ImageClass *ic;
+ char thumb[1024], buf[1024];
+
+ bg = BrackgroundCreateFromImage(bgid, file, thumb, sizeof(thumb));
+ if (!bg)
+ return NULL;
+
+ ic = ImageclassCreateSimple("`", thumb);
+
+ Esnprintf(buf, sizeof(buf), "bg use %s", bgid);
+
+ mi = MenuItemCreate(NULL, ic, buf, NULL);
+
+ return mi;
+}
+
+static const char *
+_dircache_filename(char *buf, unsigned int len, struct stat *st)
+{
+ static const char chmap[] =
+ "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";
+ int aa, bb, cc;
+
+ aa = (int)st->st_ino;
+ bb = filedev_map((int)st->st_dev);
+ cc = (st->st_mtime > st->st_ctime) ? st->st_mtime : st->st_ctime;
+ Esnprintf(buf, len, ".%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",
+ chmap[(aa >> 0) & 0x3f], chmap[(aa >> 6) & 0x3f],
+ chmap[(aa >> 12) & 0x3f], chmap[(aa >> 18) & 0x3f],
+ chmap[(aa >> 24) & 0x3f], chmap[(aa >> 28) & 0x3f],
+ chmap[(bb >> 0) & 0x3f], chmap[(bb >> 6) & 0x3f],
+ chmap[(bb >> 12) & 0x3f], chmap[(bb >> 18) & 0x3f],
+ chmap[(bb >> 24) & 0x3f], chmap[(bb >> 28) & 0x3f],
+ chmap[(cc >> 0) & 0x3f], chmap[(cc >> 6) & 0x3f],
+ chmap[(cc >> 12) & 0x3f], chmap[(cc >> 18) & 0x3f],
+ chmap[(cc >> 24) & 0x3f], chmap[(cc >> 28) & 0x3f]);
+
+ return buf;
+}
+
+static int
+MenuLoadFromDirectory(Menu * m)
+{
+ Progressbar *p = NULL;
+ Menu *mm;
+ int i, num, len;
+ const char *dir;
+ char **list, s[4096], ss[4096], cs[4096];
+ const char *ext;
+ MenuItem *mi;
+ struct stat st;
+ FILE *f;
+ time_t lastmod;
+
+ dir = MenuGetData(m);
+ lastmod = moddate(dir);
+ if (!menu_scan_recursive && lastmod <= MenuGetTimestamp(m))
+ return 0;
+ MenuSetTimestamp(m, lastmod);
+
+ MenuEmpty(m, 0);
+
+ if (stat(dir, &st) < 0)
+ return 1;
+
+ if (Mode.backgrounds.force_scan)
+ goto skip_dir_cache;
+
+ Esnprintf(cs, sizeof(cs), "%s/cached/img/%s",
+ EDirUserCache(), _dircache_filename(ss, sizeof(ss), &st));
+ if (exists(cs))
+ {
+ /* cached dir listing - use it */
+
+ f = fopen(cs, "r");
+ if (!f)
+ return 1;
+ while (fgets(s, sizeof(s), f))
+ {
+ char s2[4096];
+
+ s[strlen(s) - 1] = 0;
+ len = 0;
+ sscanf(s, "%1000s %1000s %n", ss, s2, &len);
+ if (!strcmp(ss, "BG"))
+ {
+ Esnprintf(ss, sizeof(ss), "%s/%s", dir, s2);
+ mi = MenuItemCreateFromBackground(s + len, ss);
+ MenuAddItem(m, mi);
+ }
+ else if (!strcmp(ss, "EXE"))
+ {
+ Esnprintf(ss, sizeof(ss), "exec %s/%s", dir, s2);
+ mi = MenuItemCreate(NULL, NULL, ss, NULL);
+ MenuAddItem(m, mi);
+ }
+ else if (!strcmp(ss, "DIR"))
+ {
+ Esnprintf(ss, sizeof(ss), "%s/%s", dir, s2);
+ mm = MenuCreateFromDirectory(ss, m, NULL, ss);
+ mi = MenuItemCreate(s2, NULL, NULL, mm);
+ MenuAddItem(m, mi);
+ }
+ }
+ fclose(f);
+ return 1;
+ }
+
+ skip_dir_cache:
+ Esnprintf(s, sizeof(s), "Scanning %s", dir);
+
+ p = ProgressbarCreate(s, 600, 16);
+ if (p)
+ ProgressbarShow(p);
+
+ f = fopen(cs, "w");
+
+ list = E_ls(dir, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (p)
+ ProgressbarSet(p, (i * 100) / num);
+ Esnprintf(ss, sizeof(ss), "%s/%s", dir, list[i]);
+ /* skip "dot" files and dirs - senisble */
+ if ((*(list[i]) == '.') || (stat(ss, &st) < 0))
+ continue;
+
+ ext = fileext(ss);
+ if (S_ISDIR(st.st_mode))
+ {
+ /* Submenu */
+ mm = MenuCreateFromDirectory(ss, m, NULL, ss);
+ mi = MenuItemCreate(list[i], NULL, NULL, mm);
+ MenuAddItem(m, mi);
+ if (f)
+ fprintf(f, "DIR %s\n", list[i]);
+ }
+#if 0
+ else if (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))
+ {
+ /* Executable */
+ /* that's it - people are stupid and have executable images and just */
+ /* don't get it - so I'm disablign this to save people from their own */
+ /* stupidity */
+ mi = MenuItemCreate(list[i], NULL, ss, NULL);
+ MenuAddItem(m, mi);
+ if (f)
+ fprintf(f, "EXE %s\n", list[i]);
+ }
+#endif
+ else if (_ext_is_imagetype(ext))
+ {
+ /* Background */
+ char s3[512];
+
+ _dircache_filename(s3, sizeof(s3), &st);
+
+ mi = MenuItemCreateFromBackground(s3, ss);
+ if (mi)
+ {
+ MenuAddItem(m, mi);
+
+ if (f)
+ fprintf(f, "BG %s %s\n", list[i], s3);
+ }
+ }
+ }
+ if (f)
+ fclose(f);
+ if (p)
+ ProgressbarDestroy(p);
+ if (list)
+ StrlistFree(list, num);
+
+ return 1;
+}
+
+static Menu *
+MenuCreateFromDirectory(const char *name, Menu * parent, MenuStyle * ms,
+ const char *dir)
+{
+ static int calls = 0;
+ Menu *m;
+
+ if (calls > 32)
+ return NULL;
+ calls++;
+
+ m = MenuCreate(name, NULL, parent, ms);
+ MenuSetData(m, Estrdup(dir));
+ MenuSetLoader(m, MenuLoadFromDirectory);
+
+ if (menu_scan_recursive)
+ MenuLoadFromDirectory(m);
+
+ calls--;
+
+ return m;
+}
+
+void
+ScanBackgroundMenu(void)
+{
+ menu_scan_recursive = 1;
+ MenuLoad(MenuFind("BACKGROUNDS_MENU", NULL));
+ Mode.backgrounds.force_scan = 0;
+ menu_scan_recursive = 0;
+}
+
+static void
+FillFlatFileMenu(Menu * m, const char *file)
+{
+ FILE *f;
+ char first = 1;
+ char s[4096];
+ unsigned int len;
+
+ f = fopen(file, "r");
+ if (!f)
+ {
+ Eprintf("Unable to open menu file %s -- %s\n", file, strerror(errno));
+ return;
+ }
+
+ MenuSetIconSize(m, 0); /* Scale to default */
+
+ while (fgets(s, 4096, f))
+ {
+ if (s[0] == '#')
+ continue;
+ len = strlen(s);
+ while (len && (s[len - 1] == '\n' || s[len - 1] == '\r'))
+ len--;
+ if (len == 0)
+ continue;
+ s[len] = '\0';
+
+ if (first)
+ {
+ char *title, *style, *alias;
+
+ first = 0;
+
+ title = style = alias = NULL;
+ parse(s, "%S%S%S", &title, &style, &alias);
+
+ if (title)
+ MenuSetTitle(m, title);
+ if (!style)
+ style = (char *)"ROOT";
+ MenuSetStyle(m, MenuStyleFind(style));
+ if (alias)
+ MenuSetAlias(m, alias);
+ }
+ else
+ {
+ char *txt, *icon, *act, *params;
+ char wd[4096];
+ MenuItem *mi;
+ ImageClass *icc = NULL;
+ Menu *mm;
+
+ txt = icon = act = params = NULL;
+ parse(s, "%S%T%S%S", &txt, &icon, &act, ¶ms);
+
+ if (icon && exists(icon))
+ {
+ Esnprintf(wd, sizeof(wd), "__FM.%s", icon);
+ icc = ImageclassFind(wd, 0);
+ if (!icc)
+ icc = ImageclassCreateSimple(wd, icon);
+ }
+ if ((act) && (!strcmp(act, "exec")) && (params))
+ {
+ sscanf(params, "%4000s", wd);
+ if (path_canexec(wd))
+ {
+ Esnprintf(wd, sizeof(wd), "exec %s", params);
+ mi = MenuItemCreate(txt, icc, wd, NULL);
+ MenuAddItem(m, mi);
+ }
+ }
+ else if ((act) && (!strcmp(act, "menu")) && (params))
+ {
+ mm = MenuFind(params, NULL);
+ if (mm)
+ {
+ mi = MenuItemCreate(txt, icc, NULL, mm);
+ MenuAddItem(m, mi);
+ }
+ }
+ else if (act)
+ {
+ mi = MenuItemCreate(txt, icc, act, NULL);
+ MenuAddItem(m, mi);
+ }
+ }
+ }
+ fclose(f);
+}
+
+static int
+MenuLoadFromFlatFile(Menu * m)
+{
+ const char *ff;
+ time_t lastmod;
+
+ ff = MenuGetData(m);
+ lastmod = moddate(ff);
+ if (lastmod <= MenuGetTimestamp(m))
+ return 0;
+ MenuSetTimestamp(m, lastmod);
+
+ MenuEmpty(m, 0);
+ FillFlatFileMenu(m, ff);
+
+ return 1;
+}
+
+static Menu *
+MenuCreateFromFlatFile(const char *name, Menu * parent, MenuStyle * ms,
+ const char *file)
+{
+ Menu *m = NULL;
+ char *ff, buf[4096];
+ static int calls = 0;
+
+ if (calls > 32)
+ return NULL;
+ calls++;
+
+ if (!file)
+ file = name;
+
+ if (isabspath(file))
+ {
+ ff = FindFile(file, NULL);
+ }
+ else
+ {
+ /* Check menus subdir first */
+ Esnprintf(buf, sizeof(buf), "menus/%s", file);
+ ff = FindFile(buf, NULL);
+ if (!ff)
+ ff = FindFile(file, NULL);
+ }
+ if (!ff)
+ goto done;
+
+ m = MenuCreate(file, NULL, parent, ms);
+ if (name != file)
+ MenuSetAlias(m, name);
+ MenuSetData(m, ff);
+ MenuSetLoader(m, MenuLoadFromFlatFile);
+
+ done:
+ calls--;
+
+ return m;
+}
+
+static int
+MenuLoadFromThemes(Menu * m)
+{
+ char **lst;
+ int i, num;
+ char ss[4096], *s;
+ MenuItem *mi;
+
+ if (MenuGetTimestamp(m))
+ return 0;
+ MenuSetTimestamp(m, 1);
+
+ lst = ThemesList(&num);
+ for (i = 0; i < num; i++)
+ {
+ s = ThemePathName(lst[i]);
+ Esnprintf(ss, sizeof(ss), "theme use %s", s);
+ mi = MenuItemCreate(s, NULL, ss, NULL);
+ MenuAddItem(m, mi);
+ Efree(s);
+ }
+ if (lst)
+ StrlistFree(lst, i);
+
+ return 1;
+}
+
+static Menu *
+MenuCreateFromThemes(const char *name, MenuStyle * ms)
+{
+ Menu *m;
+
+ m = MenuCreate(name, NULL, NULL, ms);
+ MenuSetTitle(m, _("Themes"));
+ MenuSetInternal(m);
+ MenuSetLoader(m, MenuLoadFromThemes);
+
+ return m;
+}
+
+static int
+BorderNameCompare(void *b1, void *b2)
+{
+ if (b1 && b2)
+ return strcmp(BorderGetName((Border *) b1), BorderGetName((Border *) b2));
+
+ return 0;
+}
+
+static Menu *
+MenuCreateFromBorders(const char *name, MenuStyle * ms)
+{
+ char s[128];
+ Menu *m;
+ Border **lst;
+ int i, num;
+ MenuItem *mi;
+
+ m = MenuCreate(name, NULL, NULL, ms);
+ MenuSetTitle(m, _("Border"));
+
+ lst = BordersGetList(&num);
+ if (lst)
+ Quicksort((void **)lst, 0, num - 1, BorderNameCompare);
+ for (i = 0; i < num; i++)
+ {
+ /* if its not internal (ie doesnt start with _ ) */
+ if (lst[i]->name[0] != '_')
+ {
+ Esnprintf(s, sizeof(s), "wop * bo %s", lst[i]->name);
+ mi = MenuItemCreate(lst[i]->name, NULL, s, NULL);
+ MenuAddItem(m, mi);
+ }
+ }
+ Efree(lst);
+
+ return m;
+}
+
+static int
+MenuCheckShowEwinDesk(EWin * ewin, void *prm)
+{
+ if (!EwinGetTitle(ewin) || ewin->props.skip_winlist)
+ return 0;
+ return prm == NULL || EwinGetDesk(ewin) == prm;
+}
+
+static void
+MenuLoadFromEwins(Menu * m, int (*f) (EWin * ewin, void *prm), void *prm)
+{
+ EWin *const *lst;
+ int i, num;
+ char s[256];
+ MenuItem *mi;
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ if (!f(lst[i], prm))
+ continue;
+
+ Esnprintf(s, sizeof(s), "wop %#lx focus", EwinGetClientXwin(lst[i]));
+ mi = MenuItemCreate(EwinGetTitle(lst[i]), NULL, s, NULL);
+ MenuAddItem(m, mi);
+ }
+}
+
+static int
+MenuLoadFromAllEwins(Menu * m)
+{
+ MenuEmpty(m, 0);
+ MenuLoadFromEwins(m, MenuCheckShowEwinDesk, NULL);
+ return 1;
+}
+
+static Menu *
+MenuCreateFromAllEWins(const char *name, MenuStyle * ms)
+{
+ Menu *m;
+
+ m = MenuCreate(name, NULL, NULL, ms);
+ MenuSetTitle(m, _("Window List"));
+ MenuSetInternal(m);
+ MenuSetDynamic(m);
+ MenuSetLoader(m, MenuLoadFromAllEwins);
+
+ return m;
+}
+
+static int
+MenuLoadFromDesktops(Menu * m)
+{
+ Menu *mm;
+ unsigned int i;
+ char s[256];
+ MenuItem *mi;
+
+ MenuEmpty(m, 0);
+
+ for (i = 0; i < DesksGetNumber(); i++)
+ {
+ mm = MenuCreate("__SUBMENUDESK_E", NULL, m, NULL);
+ Esnprintf(s, sizeof(s), "desk goto %i", i);
+ mi = MenuItemCreate(_("Go to this Desktop"), NULL, s, NULL);
+ MenuAddItem(mm, mi);
+ MenuLoadFromEwins(mm, MenuCheckShowEwinDesk, DeskGet(i));
+
+ Esnprintf(s, sizeof(s), _("Desktop %i"), i);
+ mi = MenuItemCreate(s, NULL, NULL, mm);
+ MenuAddItem(m, mi);
+ }
+
+ return 1;
+}
+
+static Menu *
+MenuCreateFromDesktops(const char *name, MenuStyle * ms)
+{
+ Menu *m;
+
+ m = MenuCreate(name, NULL, NULL, ms);
+ MenuSetTitle(m, _("Desks"));
+ MenuSetInternal(m);
+ MenuSetDynamic(m);
+ MenuSetLoader(m, MenuLoadFromDesktops);
+
+ return m;
+}
+
+static int
+MenuLoadFromGroups(Menu * m)
+{
+ Menu *mm;
+ Group **lst;
+ int i, j, num;
+ char s[256];
+ MenuItem *mi;
+
+ MenuEmpty(m, 0);
+
+ lst = GroupsGetList(&num);
+ if (!lst)
+ return 1;
+
+ for (i = 0; i < num; i++)
+ {
+ mm = MenuCreate("__SUBMENUGROUP_E", NULL, m, NULL);
+
+ Esnprintf(s, sizeof(s), "gop %li showhide",
+ EwinGetClientXwin(lst[i]->members[0]));
+ mi = MenuItemCreate(_("Show/Hide this group"), NULL, s, NULL);
+
+ Esnprintf(s, sizeof(s), "wop %#lx ic",
+ EwinGetClientXwin(lst[i]->members[0]));
+ MenuAddItem(mm, mi);
+ mi = MenuItemCreate(_("Iconify this group"), NULL, s, NULL);
+ MenuAddItem(mm, mi);
+
+ for (j = 0; j < lst[i]->num_members; j++)
+ {
+ Esnprintf(s, sizeof(s), "wop %#lx focus",
+ EwinGetClientXwin(lst[i]->members[j]));
+ mi = MenuItemCreate(EwinGetTitle(lst[i]->members[j]), NULL,
+ s, NULL);
+ MenuAddItem(mm, mi);
+ }
+ Esnprintf(s, sizeof(s), _("Group %i"), i);
+ mi = MenuItemCreate(s, NULL, NULL, mm);
+ MenuAddItem(m, mi);
+ }
+ Efree(lst);
+
+ return 1;
+}
+
+static Menu *
+MenuCreateFromGroups(const char *name, MenuStyle * ms)
+{
+ Menu *m;
+
+ m = MenuCreate(name, NULL, NULL, ms);
+ MenuSetTitle(m, _("Groups"));
+ MenuSetInternal(m);
+ MenuSetDynamic(m);
+ MenuSetLoader(m, MenuLoadFromGroups);
+
+ return m;
+}
+
+#if 0 /* Not finished */
+Menu *
+MenuCreateMoveToDesktop(char *name, Menu * parent, MenuStyle * ms)
+{
+ Menu *m;
+ int i;
+ char s1[256], s2[256];
+
+ MenuItem *mi;
+
+ m = MenuCreate(name, NULL, parent, ms);
+
+ for (i = 0; i < Mode.numdesktops; i++)
+ {
+ Esnprintf(s1, sizeof(s1), _("Desktop %i"), i);
+ Esnprintf(s2, sizeof(s2), "%i", i);
+ mi = MenuItemCreate(s1, NULL, s2, NULL);
+ MenuAddItem(m, mi);
+ }
+
+ return m;
+}
+#endif
+
+Menu *
+MenusCreateInternal(const char *type, const char *name, const char *style,
+ const char *prm)
+{
+ Menu *m;
+ MenuStyle *ms;
+
+ m = NULL;
+ ms = NULL;
+ if (style)
+ ms = MenuStyleFind(style);
+
+ if (!type)
+ {
+ if (!strstr(name, ".menu"))
+ type = name;
+ }
+
+ if (!type || !strcmp(type, "file"))
+ {
+ m = MenuCreateFromFlatFile(name, NULL, ms, prm);
+ }
+ else if (!strcmp(type, "dirscan"))
+ {
+ SoundPlay(SOUND_SCANNING);
+ m = MenuCreateFromDirectory(name, NULL, ms, prm);
+ }
+ else if (!strcmp(type, "borders"))
+ {
+ m = MenuCreateFromBorders(name, ms);
+ }
+ else if (!strcmp(type, "themes"))
+ {
+ m = MenuCreateFromThemes(name, ms);
+ }
+ else if (!strcmp(type, "windowlist"))
+ {
+ m = MenuCreateFromAllEWins(name, ms);
+ }
+ else if (!strcmp(type, "deskmenu"))
+ {
+ m = MenuCreateFromDesktops(name, ms);
+ }
+ else if (!strcmp(type, "groupmenu"))
+ {
+ m = MenuCreateFromGroups(name, ms);
+ }
+
+ return m;
+}
+
+static int
+_ext_is_imagetype(const char *ext)
+{
+ static const char *const exts[] = {
+ "jpg", "jpeg", "gif", "png", "tif", "tiff",
+ "xpm", "ppm", "pgm", "pnm", "bmp", NULL
+ };
+ int i;
+
+ for (i = 0; exts[i]; i++)
+ if (!Estrcasecmp(exts[i], ext))
+ return 1;
+
+ return 0;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "borders.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "file.h"
+#include "grabs.h"
+#include "hints.h"
+#include "iclass.h"
+#include "menus.h"
+#include "screen.h"
+#include "settings.h"
+#include "tclass.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "xwin.h"
+#include <time.h>
+#include <X11/keysym.h>
+
+#define DEBUG_MENU_EVENTS 0
+
+#define MENU_UNLOAD_CHECK_INTERVAL 300 /* Seconds */
+
+static struct {
+ Menu *first;
+ Menu *active;
+ EWin *context_ewin;
+ EObj *cover_win;
+ char just_shown;
+} Mode_menus;
+
+struct _menustyle {
+ char *name;
+ TextClass *tclass;
+ ImageClass *bg_iclass;
+ ImageClass *item_iclass;
+ ImageClass *sub_iclass;
+ char use_item_bg;
+ char iconpos;
+ int maxx;
+ int maxy;
+ char *border_name;
+ unsigned int ref_count;
+};
+
+struct _menuitem {
+ Menu *menu;
+ ImageClass *icon_iclass;
+ char *text;
+ char *params;
+ Menu *child;
+ char state;
+ PmapMask pmm[3];
+ Win win;
+ Win icon_win;
+ short icon_w;
+ short icon_h;
+ short text_w;
+ short text_h;
+ short text_x;
+ short text_y;
+};
+
+struct _menu {
+ EWin *ewin;
+ Win win;
+ PmapMask pmm;
+ int w, h;
+ char *name;
+ char *title;
+ char *alias;
+ MenuStyle *style;
+ MenuLoader *loader;
+ int num;
+ MenuItem **items;
+ int icon_size;
+ char internal; /* Don't destroy when reloading */
+ char dynamic; /* May be emptied on close */
+ char shown;
+ char stuck;
+ char redraw;
+ char filled; /* Has been filled */
+ Menu *parent;
+ Menu *child;
+ MenuItem *sel_item;
+ time_t last_change;
+ time_t last_access;
+ void *data;
+ unsigned int ref_count;
+};
+
+#define MENU_ITEM_EVENT_MASK \
+ KeyPressMask | KeyReleaseMask | \
+ ButtonPressMask | ButtonReleaseMask | \
+ EnterWindowMask | LeaveWindowMask
+
+static void MenuRedraw(Menu * m);
+static void MenuRealize(Menu * m);
+static void MenuActivateItem(Menu * m, MenuItem * mi);
+static void MenuDrawItem(Menu * m, MenuItem * mi, char shape,
+ int state);
+
+static void MenuHandleEvents(Win win, XEvent * ev, void *m);
+static void MenuItemHandleEvents(Win win, XEvent * ev, void *mi);
+static void MenuMaskerHandleEvents(Win win, XEvent * ev, void *prm);
+
+static void MenusHide(void);
+
+static Ecore_List *menu_list = NULL;
+static Ecore_List *menu_style_list = NULL;
+static Timer *menu_timer_submenu = NULL;
+
+static MenuItem *
+MenuFindItemByChild(Menu * m, Menu * mc)
+{
+ int i;
+
+ if (!mc)
+ return (m->num) ? m->items[0] : NULL;
+
+ for (i = 0; i < m->num; i++)
+ {
+ if (mc == m->items[i]->child)
+ return m->items[i];
+ }
+
+ return NULL;
+}
+
+void
+MenuHide(Menu * m)
+{
+ EWin *ewin;
+
+ if (!m || !m->shown)
+ return;
+
+ if (m->sel_item)
+ MenuDrawItem(m, m->sel_item, 1, STATE_NORMAL);
+ m->sel_item = NULL;
+
+ ewin = m->ewin;
+ if (ewin)
+ {
+ EUnmapWindow(m->win);
+ EReparentWindow(m->win, VROOT, ewin->client.x, ewin->client.y);
+ EwinHide(ewin);
+ }
+ m->ewin = NULL;
+
+ m->stuck = 0;
+ m->shown = 0;
+ m->parent = NULL;
+ m->last_access = time(0);
+ if (m->child)
+ {
+ MenuHide(m->child);
+ m->child = NULL;
+ }
+ if (m->dynamic)
+ MenuEmpty(m, 0);
+ m->ref_count--;
+}
+
+static void
+_MenuEwinInit(EWin * ewin)
+{
+ Menu *m = (Menu *) ewin->data;
+
+ EwinSetTitle(ewin, _(m->title));
+ EwinSetClass(ewin, m->name, "Enlightenment_Menu");
+
+ ewin->props.skip_ext_task = 1;
+ ewin->props.skip_ext_pager = 1;
+ ewin->props.no_actions = 1;
+ ewin->props.skip_focuslist = 1;
+ ewin->props.skip_winlist = 1;
+ ewin->props.ignorearrange = 1;
+ EwinInhSetWM(ewin, focus, 1);
+
+ ICCCM_SetSizeConstraints(ewin, m->w, m->h, m->w, m->h, 0, 0, 1, 1,
+ 0.0, 65535.0);
+ ewin->icccm.grav = StaticGravity;
+
+ EoSetLayer(ewin, 12);
+ ewin->ewmh.opacity = OpacityFromPercent(Conf.opacity.menus);
+}
+
+static void
+_MenuEwinMoveResize(EWin * ewin, int resize __UNUSED__)
+{
+ Menu *m = (Menu *) ewin->data;
+
+ if (!m)
+ return;
+
+ if (Mode.mode != MODE_NONE && !m->redraw)
+ return;
+
+ if (TransparencyUpdateNeeded())
+ m->redraw = 1;
+
+ if ((!m->style->use_item_bg && m->pmm.pmap == 0) || m->redraw)
+ {
+ MenuRedraw(m);
+ EwinUpdateShapeInfo(ewin);
+ }
+}
+
+static void
+_MenuEwinClose(EWin * ewin)
+{
+ Menu *m = (Menu *) ewin->data;
+
+ if (m == Mode_menus.active)
+ {
+ GrabKeyboardRelease();
+ Mode_menus.active = NULL;
+ }
+
+ ewin->data = NULL;
+}
+
+static const EWinOps _MenuEwinOps = {
+ _MenuEwinInit,
+ NULL,
+ _MenuEwinMoveResize,
+ _MenuEwinClose,
+};
+
+static void MenuShowMasker(Menu * m);
+
+int
+MenuLoad(Menu * m)
+{
+ if (!m || !m->loader)
+ return 0;
+
+ return m->loader(m);
+}
+
+static void
+MenuShow(Menu * m, char noshow)
+{
+ EWin *ewin;
+ int x, y, w, h;
+ int wx, wy, mw, mh;
+ int head_num = 0;
+
+ if (m->shown)
+ return;
+
+ if (MenuLoad(m))
+ MenuRealize(m);
+
+ if (m->num <= 0)
+ return;
+
+ if (!m->win || !m->items[0]->win)
+ MenuRealize(m);
+
+ if (!m->style)
+ return;
+
+ ewin = m->ewin;
+ if (ewin)
+ {
+#if 0 /* ??? */
+ EwinRaise(ewin);
+ EwinShow(ewin);
+ return;
+#else
+ MenuHide(m);
+#endif
+ }
+
+ EGetGeometry(m->items[0]->win, NULL, &x, &y, &w, &h, NULL, NULL);
+ mw = m->w;
+ mh = m->h;
+
+ EQueryPointer(NULL, &wx, &wy, NULL, NULL);
+ wx -= EoGetX(DesksGetCurrent()) + x + (w / 2);
+ wy -= EoGetY(DesksGetCurrent()) + y + (h / 2);
+ if (Conf.menus.onscreen)
+ {
+ Border *b;
+
+ b = BorderFind(m->style->border_name);
+ if (b)
+ {
+ int sx, sy, sw, sh;
+
+ head_num = ScreenGetGeometryByPointer(&sx, &sy, &sw, &sh);
+
+ if (wx > sx + sw - mw - b->border.right)
+ wx = sx + sw - mw - b->border.right;
+ if (wx < sx + b->border.left)
+ wx = sx + b->border.left;
+
+ if (wy > sy + sh - mh - b->border.bottom)
+ wy = sy + sh - mh - b->border.bottom;
+ if (wy < sy + b->border.top)
+ wy = sy + b->border.top;
+ }
+ }
+
+ EMoveWindow(m->win, wx, wy);
+
+ ewin = AddInternalToFamily(m->win, m->style->border_name, EWIN_TYPE_MENU,
+ &_MenuEwinOps, m);
+ m->ewin = ewin;
+ if (ewin)
+ {
+ ewin->client.event_mask |= KeyPressMask;
+ ESelectInput(m->win, ewin->client.event_mask);
+
+ ewin->head = head_num;
+
+ EwinMoveToDesktop(ewin, EoGetDesk(ewin));
+ EwinResize(ewin, ewin->client.w, ewin->client.h);
+
+ if (Conf.menus.animate)
+ EwinInstantShade(ewin, 0);
+
+ if (!noshow)
+ {
+ ICCCM_Cmap(NULL);
+ EwinOpFloatAt(ewin, OPSRC_NA, EoGetX(ewin), EoGetY(ewin));
+ EwinShow(ewin);
+ if (Conf.menus.animate)
+ EwinUnShade(ewin);
+ }
+ }
+
+ m->stuck = 0;
+ m->shown = 1;
+ m->last_access = time(0);
+ Mode_menus.just_shown = 1;
+
+ if (!Mode_menus.first)
+ {
+ Mode_menus.context_ewin = GetContextEwin();
+#if 0
+ Eprintf("Mode_menus.context_ewin set %s\n",
+ EwinGetTitle(Mode_menus.context_ewin));
+#endif
+ ESync(ESYNC_MENUS);
+ Mode_menus.first = m;
+ MenuShowMasker(m);
+ TooltipsEnable(0);
+ GrabKeyboardSet(m->win);
+ }
+ m->ref_count++;
+}
+
+static MenuStyle *
+MenuStyleCreate(const char *name)
+{
+ MenuStyle *ms;
+
+ ms = ECALLOC(MenuStyle, 1);
+ if (!ms)
+ return NULL;
+
+ if (!menu_style_list)
+ menu_style_list = ecore_list_new();
+ ecore_list_prepend(menu_style_list, ms);
+
+ ms->name = Estrdup(name);
+ ms->iconpos = ICON_LEFT;
+
+ return ms;
+}
+
+MenuItem *
+MenuItemCreate(const char *text, ImageClass * iclass,
+ const char *action_params, Menu * child)
+{
+ MenuItem *mi;
+
+ mi = ECALLOC(MenuItem, 1);
+
+ mi->icon_iclass = iclass;
+#if 0
+ if (iclass)
+ ImageclassIncRefcount(iclass);
+#endif
+
+ mi->text = (text) ? Estrdup((text[0]) ? text : "?!?") : NULL;
+ mi->params = Estrdup(action_params);
+ mi->child = child;
+ if (child)
+ child->ref_count++;
+ mi->state = STATE_NORMAL;
+
+ return mi;
+}
+
+static int
+_MenuStyleMatchName(const void *data, const void *match)
+{
+ return strcmp(((const MenuStyle *)data)->name, (const char *)match);
+}
+
+MenuStyle *
+MenuStyleFind(const char *name)
+{
+ MenuStyle *ms;
+
+ ms = (MenuStyle *) ecore_list_find(menu_style_list, _MenuStyleMatchName,
+ name);
+ if (ms)
+ return ms;
+
+ ms = (MenuStyle *) ecore_list_find(menu_style_list, _MenuStyleMatchName,
+ "__fb_ms");
+ if (ms)
+ return ms;
+
+ ms = MenuStyleCreate("__fb_ms");
+ if (!ms)
+ return ms;
+
+ ms->tclass = TextclassFind(NULL, 1);
+ ms->bg_iclass = ImageclassFind(NULL, 1);
+ ms->item_iclass = ImageclassFind(NULL, 1);
+ ms->sub_iclass = ImageclassFind(NULL, 1);
+
+ return ms;
+}
+
+void
+MenuSetInternal(Menu * m)
+{
+ m->internal = 1;
+}
+
+void
+MenuSetDynamic(Menu * m)
+{
+ m->dynamic = 1;
+}
+
+void
+MenuSetName(Menu * m, const char *name)
+{
+ _EFDUP(m->name, name);
+}
+
+void
+MenuSetAlias(Menu * m, const char *alias)
+{
+ _EFDUP(m->alias, alias);
+}
+
+void
+MenuSetTitle(Menu * m, const char *title)
+{
+ _EFDUP(m->title, title);
+}
+
+void
+MenuSetIconSize(Menu * m, int size)
+{
+ if (size > 48)
+ size = 48;
+ m->icon_size = size;
+}
+
+void
+MenuSetData(Menu * m, char *data)
+{
+ Efree(m->data);
+ m->data = data;
+}
+
+void
+MenuSetLoader(Menu * m, MenuLoader * loader)
+{
+ m->loader = loader;
+}
+
+void
+MenuSetTimestamp(Menu * m, time_t t)
+{
+ m->last_change = t;
+}
+
+const char *
+MenuGetName(const Menu * m)
+{
+ return m->name;
+}
+
+const char *
+MenuGetData(const Menu * m)
+{
+ return (const char *)m->data;
+}
+
+time_t
+MenuGetTimestamp(const Menu * m)
+{
+ return m->last_change;
+}
+
+void
+MenuSetStyle(Menu * m, MenuStyle * ms)
+{
+ if (m->style)
+ m->style->ref_count--;
+ if (!ms && m->parent)
+ ms = m->parent->style;
+ if (!ms)
+ ms = MenuStyleFind("DEFAULT");
+ m->style = ms;
+ if (ms)
+ ms->ref_count++;
+}
+
+Menu *
+MenuCreate(const char *name, const char *title, Menu * parent, MenuStyle * ms)
+{
+ Menu *m;
+
+ m = ECALLOC(Menu, 1);
+ if (!m)
+ return m;
+
+ m->parent = parent;
+ MenuSetName(m, name);
+ MenuSetTitle(m, title);
+ if (ms)
+ MenuSetStyle(m, ms);
+ m->icon_size = -1; /* Use image size */
+
+ if (!menu_list)
+ menu_list = ecore_list_new();
+ ecore_list_append(menu_list, m);
+
+ return m;
+}
+
+void
+MenuDestroy(Menu * m)
+{
+ if (!m)
+ return;
+
+ if (!ecore_list_goto(menu_list, m))
+ return;
+
+ MenuHide(m);
+ MenuEmpty(m, 1);
+
+ if (m->ref_count)
+ return;
+
+ ecore_list_node_remove(menu_list, m);
+
+ if (m->win)
+ EDestroyWindow(m->win);
+
+ Efree(m->name);
+ Efree(m->alias);
+ Efree(m->title);
+ Efree(m->data);
+
+ Efree(m);
+}
+
+/* NB - this doesnt free imageclasses if we created them for the menu
+ * FIXME: so it will leak if we create new imageclasses and stop using
+ * old ones for menu icons. we need to add some ref counting in menu icon
+ * imageclasses to knw to free them when not used
+ */
+void
+MenuEmpty(Menu * m, int destroying)
+{
+ int i, j;
+ MenuItem *mi;
+
+ for (i = 0; i < m->num; i++)
+ {
+ mi = m->items[i];
+ if (!mi)
+ continue;
+
+ if (mi->child)
+ {
+ mi->child->ref_count--;
+ MenuDestroy(mi->child);
+ }
+ Efree(mi->text);
+ Efree(mi->params);
+ for (j = 0; j < 3; j++)
+ FreePmapMask(&(mi->pmm[j]));
+ if (!destroying && mi->win)
+ EDestroyWindow(mi->win);
+ ImageclassFree(mi->icon_iclass);
+ Efree(mi);
+ }
+ Efree(m->items);
+ m->items = NULL;
+ m->num = 0;
+ m->sel_item = NULL;
+
+ FreePmapMask(&m->pmm);
+
+ m->filled = 0;
+}
+
+static void
+MenuFreePixmaps(Menu * m)
+{
+ int i, j;
+ MenuItem *mi;
+
+ for (i = 0; i < m->num; i++)
+ {
+ mi = m->items[i];
+ if (!mi)
+ continue;
+
+ for (j = 0; j < 3; j++)
+ FreePmapMask(mi->pmm + j);
+ }
+
+ FreePmapMask(&m->pmm);
+
+ m->filled = 0;
+}
+
+#if 0 /* Unused */
+void
+MenuRepack(Menu * m)
+{
+ EWin *ewin;
+
+ m->redraw = 1;
+ if (m->win)
+ MenuRealize(m);
+
+ ewin = m->ewin;
+ if (!ewin)
+ return;
+
+ ICCCM_SetSizeConstraints(ewin, m->w, m->h, m->w, m->h, 0, 0, 1, 1,
+ 0.0, 65535.0);
+ EwinResize(ewin, m->w, m->h);
+ EwinRaise(ewin);
+}
+#endif
+
+void
+MenuAddItem(Menu * m, MenuItem * item)
+{
+ MenuItem **items;
+
+ if (!item)
+ return;
+
+ items = EREALLOC(MenuItem *, m->items, m->num + 1);
+ if (!items)
+ return;
+
+ items[m->num] = item;
+ m->items = items;
+ m->num++;
+}
+
+static void
+MenuRealize(Menu * m)
+{
+ int i, maxh, maxw, nmaxy;
+ int maxx1, maxx2, w, h, x, y, r, mmw, mmh;
+ EImage *im;
+ EImageBorder *pad, *pad_item, *pad_sub;
+ char has_i, has_s;
+
+ if (m->num <= 0)
+ return;
+
+ if (!m->style)
+ {
+ MenuSetStyle(m, NULL);
+ if (!m->style)
+ return;
+ }
+
+ if (!m->win)
+ {
+ m->win = ECreateClientWindow(VROOT, 0, 0, 1, 1);
+ EventCallbackRegister(m->win, 0, MenuHandleEvents, m);
+ }
+
+ maxh = maxw = 0;
+ maxx1 = 0;
+ maxx2 = 0;
+ has_i = 0;
+ has_s = 0;
+
+ for (i = 0; i < m->num; i++)
+ {
+ m->items[i]->menu = m;
+
+ if (m->items[i]->child)
+ has_s = 1;
+ else
+ has_i = 1;
+
+ m->items[i]->win = ECreateWindow(m->win, 0, 0, 1, 1, 0);
+ EventCallbackRegister(m->items[i]->win, 0, MenuItemHandleEvents,
+ m->items[i]);
+ ESelectInput(m->items[i]->win, MENU_ITEM_EVENT_MASK);
+ EMapWindow(m->items[i]->win);
+
+ if ((m->style->tclass) && (m->items[i]->text))
+ {
+ TextSize(m->style->tclass, 0, 0, 0, _(m->items[i]->text), &w, &h,
+ 17);
+ if (h > maxh)
+ maxh = h;
+ if (w > maxx1)
+ maxx1 = w;
+ m->items[i]->text_w = w;
+ m->items[i]->text_h = h;
+ }
+ if (m->items[i]->icon_iclass && Conf.menus.show_icons)
+ {
+ im = ImageclassGetImage(m->items[i]->icon_iclass, 0, 0, 0);
+ if (im)
+ {
+ w = h = 0;
+ if (m->icon_size > 0)
+ w = h = m->icon_size;
+ else if (m->icon_size == 0)
+ w = h = Conf.menus.icon_size;
+ if (w <= 0 || h <= 0)
+ EImageGetSize(im, &w, &h);
+ m->items[i]->icon_w = w;
+ m->items[i]->icon_h = h;
+ m->items[i]->icon_win =
+ ECreateWindow(m->items[i]->win, 0, 0, w, h, 0);
+ EMapWindow(m->items[i]->icon_win);
+ if (h > maxh)
+ maxh = h;
+ if (w > maxx2)
+ maxx2 = w;
+ EImageFree(im);
+ }
+ else
+ m->items[i]->icon_iclass = NULL;
+ }
+ }
+
+ pad = ImageclassGetPadding(m->style->bg_iclass);
+ pad_item = ImageclassGetPadding(m->style->item_iclass);
+ pad_sub = ImageclassGetPadding(m->style->sub_iclass);
+ if (((has_i) && (has_s)) || ((!has_i) && (!has_s)))
+ {
+ if (pad_item->top > pad_sub->top)
+ maxh += pad_item->top;
+ else
+ maxh += pad_sub->top;
+ if (pad_item->bottom > pad_sub->bottom)
+ maxh += pad_item->bottom;
+ else
+ maxh += pad_sub->bottom;
+ maxw = maxx1 + maxx2;
+ if (pad_item->left > pad_sub->left)
+ maxw += pad_item->left;
+ else
+ maxw += pad_sub->left;
+ if (pad_item->right > pad_sub->right)
+ maxw += pad_item->right;
+ else
+ maxw += pad_sub->right;
+ }
+ else if (has_i)
+ {
+ maxh += pad_item->top;
+ maxh += pad_item->bottom;
+ maxw = maxx1 + maxx2;
+ maxw += pad_item->left;
+ maxw += pad_item->right;
+ }
+ else if (has_s)
+ {
+ maxh += pad_sub->top;
+ maxh += pad_sub->bottom;
+ maxw = maxx1 + maxx2;
+ maxw += pad_sub->left;
+ maxw += pad_sub->right;
+ }
+
+ mmw = 0;
+ mmh = 0;
+
+ nmaxy = 3 * WinGetH(VROOT) / (4 * maxh + 1);
+ if (m->style->maxy && nmaxy > m->style->maxy)
+ nmaxy = m->style->maxy;
+
+ r = 0;
+ x = 0;
+ y = 0;
+ for (i = 0; i < m->num; i++)
+ {
+ if (r == 0 && (m->style->bg_iclass) && (!m->style->use_item_bg))
+ {
+ x += pad->left;
+ y += pad->top;
+ }
+ EMoveResizeWindow(m->items[i]->win, x, y, maxw, maxh);
+ if (m->style->iconpos == ICON_LEFT)
+ {
+ m->items[i]->text_x = pad_item->left + maxx2;
+ m->items[i]->text_w = maxx1;
+ m->items[i]->text_y = (maxh - m->items[i]->text_h) / 2;
+ if (m->items[i]->icon_win)
+ EMoveWindow(m->items[i]->icon_win,
+ pad_item->left +
+ ((maxx2 - m->items[i]->icon_w) / 2),
+ ((maxh - m->items[i]->icon_h) / 2));
+ }
+ else
+ {
+ m->items[i]->text_x = pad_item->left;
+ m->items[i]->text_w = maxx1;
+ m->items[i]->text_y = (maxh - m->items[i]->text_h) / 2;
+ if (m->items[i]->icon_win)
+ EMoveWindow(m->items[i]->icon_win,
+ maxw - pad_item->right - maxx2 +
+ ((maxx2 - m->items[i]->icon_w) / 2),
+ ((maxh - m->items[i]->icon_h) / 2));
+ }
+ if (m->items[i]->icon_iclass && Conf.menus.show_icons)
+ {
+ ImageclassApply(m->items[i]->icon_iclass, m->items[i]->icon_win,
+ 0, 0, STATE_NORMAL, ST_MENU_ITEM);
+ }
+ if (x + maxw > mmw)
+ mmw = x + maxw;
+ if (y + maxh > mmh)
+ mmh = y + maxh;
+ if ((m->style->maxx) || (nmaxy))
+ {
+ if (nmaxy)
+ {
+ y += maxh;
+ r++;
+ if (r >= nmaxy)
+ {
+ r = 0;
+ x += maxw;
+ y = 0;
+ }
+ }
+ else
+ {
+ x += maxw;
+ r++;
+ if (r >= m->style->maxx)
+ {
+ r = 0;
+ y += maxh;
+ x = 0;
+ }
+ }
+ }
+ else
+ y += maxh;
+ }
+
+ if ((m->style->bg_iclass) && (!m->style->use_item_bg))
+ {
+ mmw += pad->right;
+ mmh += pad->bottom;
+ }
+
+ m->redraw = 1;
+ m->w = mmw;
+ m->h = mmh;
+ EResizeWindow(m->win, mmw, mmh);
+}
+
+static void
+MenuRedraw(Menu * m)
+{
+ int i, j;
+
+ if (m->redraw)
+ {
+ for (i = 0; i < m->num; i++)
+ {
+ for (j = 0; j < 3; j++)
+ FreePmapMask(&(m->items[i]->pmm[j]));
+
+ }
+ m->redraw = 0;
+ }
+
+ if (!m->style->use_item_bg)
+ {
+ FreePmapMask(&m->pmm);
+ ImageclassApplyCopy(m->style->bg_iclass, m->win, m->w, m->h, 0,
+ 0, STATE_NORMAL, &m->pmm, IC_FLAG_MAKE_MASK,
+ ST_MENU);
+ EGetWindowBackgroundPixmap(m->win);
+ EXCopyAreaTiled(m->pmm.pmap, None, WinGetPmap(m->win),
+ 0, 0, m->w, m->h, 0, 0);
+ EShapeSetMask(m->win, 0, 0, m->pmm.mask);
+ EClearWindow(m->win);
+ for (i = 0; i < m->num; i++)
+ MenuDrawItem(m, m->items[i], 0, -1);
+ }
+ else
+ {
+ for (i = 0; i < m->num; i++)
+ MenuDrawItem(m, m->items[i], 0, -1);
+ EShapePropagate(m->win);
+ }
+
+ m->filled = 1;
+}
+
+static void
+MenuDrawItem(Menu * m, MenuItem * mi, char shape, int state)
+{
+ PmapMask *mi_pmm;
+
+ if (state >= 0)
+ mi->state = state;
+ mi_pmm = &(mi->pmm[(int)(mi->state)]);
+
+ if (!mi_pmm->pmap)
+ {
+ int x, y, w, h;
+ int item_type;
+ ImageClass *ic;
+ GC gc;
+ PmapMask pmm;
+
+ EGetGeometry(mi->win, NULL, &x, &y, &w, &h, NULL, NULL);
+
+ mi_pmm->type = 0;
+ mi_pmm->pmap = ECreatePixmap(mi->win, w, h, 0);
+ mi_pmm->mask = None;
+
+ ic = (mi->child) ? m->style->sub_iclass : m->style->item_iclass;
+ item_type = (mi->state != STATE_NORMAL) ? ST_MENU_ITEM : ST_MENU;
+
+ if (!m->style->use_item_bg)
+ {
+ gc = EXCreateGC(m->pmm.pmap, 0, NULL);
+ XCopyArea(disp, WinGetPmap(m->win), mi_pmm->pmap, gc, x, y, w, h,
+ 0, 0);
+ if ((mi->state != STATE_NORMAL) || (mi->child))
+ {
+ ImageclassApplyCopy(ic, mi->win, w, h, 0, 0, mi->state, &pmm,
+ IC_FLAG_MAKE_MASK, item_type);
+ EXCopyAreaTiled(pmm.pmap, pmm.mask, mi_pmm->pmap,
+ 0, 0, w, h, 0, 0);
+ FreePmapMask(&pmm);
+ }
+ EXFreeGC(gc);
+ }
+ else
+ {
+ ImageclassApplyCopy(ic, mi->win, w, h, 0, 0, mi->state, &pmm,
+ IC_FLAG_MAKE_MASK, item_type);
+ EXCopyAreaTiled(pmm.pmap, pmm.mask, mi_pmm->pmap,
+ 0, 0, w, h, 0, 0);
+ FreePmapMask(&pmm);
+ }
+
+ if (mi->text)
+ {
+ TextDraw(m->style->tclass, mi->win, mi_pmm->pmap, 0, 0, mi->state,
+ _(mi->text), mi->text_x, mi->text_y, mi->text_w,
+ mi->text_h, 17,
+ TextclassGetJustification(m->style->tclass));
+ }
+ }
+
+ ESetWindowBackgroundPixmap(mi->win, mi_pmm->pmap);
+ EShapeSetMask(mi->win, 0, 0, mi_pmm->mask);
+ EClearWindow(mi->win);
+
+ if ((shape) && (m->style->use_item_bg))
+ EShapePropagate(m->win);
+}
+
+static void
+MenuShowMasker(Menu * m __UNUSED__)
+{
+ EObj *eo = Mode_menus.cover_win;
+
+ if (!eo)
+ {
+ eo = EobjWindowCreate(EOBJ_TYPE_EVENT,
+ 0, 0, WinGetW(VROOT), WinGetH(VROOT),
+ 0, "Masker");
+ if (!eo)
+ return;
+
+ EobjReparent(eo, EoObj(DesksGetCurrent()), 0, 0);
+ EobjSetLayer(eo, 11);
+ ESelectInput(EobjGetWin(eo), ButtonPressMask | ButtonReleaseMask |
+ EnterWindowMask | LeaveWindowMask);
+ EventCallbackRegister(EobjGetWin(eo), 0, MenuMaskerHandleEvents, NULL);
+
+ Mode_menus.cover_win = eo;
+ }
+
+ EobjMap(eo, 0);
+}
+
+static void
+MenuHideMasker(void)
+{
+ EObj *eo = Mode_menus.cover_win;
+
+ if (!eo)
+ return;
+
+ EventCallbackUnregister(EobjGetWin(eo), 0, MenuMaskerHandleEvents, NULL);
+ EobjWindowDestroy(eo);
+ Mode_menus.cover_win = NULL;
+}
+
+static void
+MenusDestroyLoaded(void)
+{
+ Menu *m;
+ int found_one;
+
+ MenusHide();
+
+ /* Free all menustyles first (gulp) */
+ do
+ {
+ found_one = 0;
+ ECORE_LIST_FOR_EACH(menu_list, m)
+ {
+ if (m->internal)
+ continue;
+ if (m->ref_count)
+ continue;
+
+ MenuDestroy(m);
+ /* Destroying a menu may result in sub-menus being
+ * destroyed too, so we have to re-find all menus
+ * afterwards. Inefficient yes, but it works...
+ */
+ found_one = 1;
+ break;
+ }
+ }
+ while (found_one);
+}
+
+static int
+_MenuMatchName(const void *data, const void *match)
+{
+ const Menu *m = (const Menu *)data;
+
+ if ((m->name && !strcmp((const char *)match, m->name)) ||
+ (m->alias && !strcmp((const char *)match, m->alias)))
+ return 0;
+
+ return 1;
+}
+
+Menu *
+MenuFind(const char *name, const char *param)
+{
+ Menu *m;
+
+ m = (Menu *) ecore_list_find(menu_list, _MenuMatchName, name);
+ if (m)
+ return (m);
+
+ /* Not in list - try if we can load internal */
+ m = MenusCreateInternal(NULL, name, NULL, param);
+
+ return m;
+}
+
+/*
+ * Aliases for "well-known" menus for backward compatibility.
+ */
+static const char *const menu_aliases[] = {
+ "APPS_SUBMENU", "file.menu",
+ "CONFIG_SUBMENU", "settings.menu",
+ "DESKTOP_SUBMENU", "desktop.menu",
+ "MAINT_SUBMENU", "maintenance.menu",
+ "ROOT_2", "enlightenment.menu",
+ "WINOPS_MENU", "winops.menu",
+};
+#define N_MENU_ALIASES (sizeof(menu_aliases)/sizeof(char*)/2)
+
+static const char *
+_MenuCheckAlias(const char *name)
+{
+ unsigned int i;
+
+ for (i = 0; i < N_MENU_ALIASES; i++)
+ if (!strcmp(name, menu_aliases[2 * i]))
+ return menu_aliases[2 * i + 1];
+
+ return NULL;
+}
+
+static void
+MenusShowNamed(const char *name, const char *param)
+{
+ Menu *m;
+ const char *name2;
+
+ name2 = _MenuCheckAlias(name);
+ if (name2)
+ name = name2;
+
+ /* Hide any menus currently up */
+ if (MenusActive())
+ MenusHide();
+
+ m = MenuFind(name, param);
+ if (!m)
+ return;
+
+ if (!m->ewin) /* Don't show if already shown */
+ MenuShow(m, 0);
+}
+
+int
+MenusActive(void)
+{
+ return Mode_menus.first != NULL;
+}
+
+static void
+MenusHide(void)
+{
+ TIMER_DEL(menu_timer_submenu);
+
+ MenuHide(Mode_menus.first);
+ Mode_menus.first = NULL;
+ MenuHideMasker();
+ TooltipsEnable(1);
+}
+
+static void
+MenusTouch(void)
+{
+ Menu *m;
+
+ ECORE_LIST_FOR_EACH(menu_list, m) m->redraw = 1;
+}
+
+/*
+ * Menu event handlers
+ */
+
+static MenuItem *
+MenuFindNextItem(Menu * m, MenuItem * mi, int inc)
+{
+ int i;
+
+ if (mi == NULL)
+ {
+ if (m->num > 0)
+ return m->items[0];
+ else
+ return NULL;
+ }
+
+ for (i = 0; i < m->num; i++)
+ if (m->items[i] == mi)
+ {
+ i = (i + inc + m->num) % m->num;
+ return m->items[i];
+ }
+
+ return NULL;
+}
+
+static KeySym
+MenuKeyPressConversion(KeySym key)
+{
+ if (key == Conf.menus.key.left)
+ return XK_Left;
+ if (key == Conf.menus.key.right)
+ return XK_Right;
+ if (key == Conf.menus.key.up)
+ return XK_Up;
+ if (key == Conf.menus.key.down)
+ return XK_Down;
+ if (key == Conf.menus.key.escape)
+ return XK_Escape;
+ if (key == Conf.menus.key.ret)
+ return XK_Return;
+
+ /* The key does not correspond to any set, use the default behavior
+ * associated to the key */
+ return key;
+}
+
+static void
+MenuEventKeyPress(Menu * m, XEvent * ev)
+{
+ KeySym key;
+ MenuItem *mi;
+ EWin *ewin;
+
+ mi = NULL;
+ if (Mode_menus.active)
+ {
+ m = Mode_menus.active;
+ mi = m->sel_item;
+ }
+
+ /* NB! m != NULL */
+
+ key = XLookupKeysym(&ev->xkey, 0);
+ switch (MenuKeyPressConversion(key))
+ {
+ case XK_Escape:
+ MenusHide();
+ break;
+
+ case XK_Down:
+ check_next:
+ mi = MenuFindNextItem(m, mi, 1);
+ goto check_activate;
+
+ case XK_Up:
+ mi = MenuFindNextItem(m, mi, -1);
+ goto check_activate;
+
+ case XK_Left:
+ m = m->parent;
+ if (!m)
+ break;
+ mi = m->sel_item;
+ goto check_activate;
+
+ case XK_Right:
+ if (mi == NULL)
+ goto check_next;
+ m = mi->child;
+ if (!m || m->num <= 0)
+ break;
+ ewin = m->ewin;
+ if (ewin == NULL || !EwinIsMapped(ewin))
+ break;
+ mi = MenuFindItemByChild(m, m->child);
+ goto check_activate;
+
+ check_activate:
+ if (!mi)
+ break;
+ MenuActivateItem(m, mi);
+ break;
+
+ case XK_Return:
+ if (!mi)
+ break;
+ if (!mi->params)
+ break;
+ EFuncDefer(Mode_menus.context_ewin, mi->params);
+ MenusHide();
+ EobjsRepaint();
+ break;
+ }
+}
+
+static void
+MenuItemEventMouseDown(MenuItem * mi, XEvent * ev __UNUSED__)
+{
+ Menu *m;
+
+ Mode_menus.just_shown = 0;
+
+ m = mi->menu;
+ MenuDrawItem(m, mi, 1, STATE_CLICKED);
+}
+
+static void
+MenuItemEventMouseUp(MenuItem * mi, XEvent * ev __UNUSED__)
+{
+ Menu *m;
+
+ if (Mode_menus.just_shown)
+ {
+ Mode_menus.just_shown = 0;
+ if (ev->xbutton.time - Mode.events.last_btime < 250)
+ return;
+ }
+
+ m = mi->menu;
+
+ if ((m) && (mi->state))
+ {
+ MenuDrawItem(m, mi, 1, STATE_HILITED);
+ if ((mi->params) /* && (!Mode_menus.just_shown) */ )
+ {
+ EFuncDefer(Mode_menus.context_ewin, mi->params);
+ MenusHide();
+ EobjsRepaint();
+ }
+ }
+}
+
+#if 0 /* Was in HandleMotion() */
+void
+MenusHandleMotion(void)
+{
+#define SCROLL_RATIO 2/3
+ if ((MenusActive() || (Mode_menus.clicked)))
+ {
+ int i, offx = 0, offy = 0, xdist = 0, ydist = 0;
+ EWin *ewin;
+ EWin *menus[256];
+ int fx[256];
+ int fy[256];
+ int tx[256];
+ int ty[256];
+ static int menu_scroll_dist = 4;
+ int my_width, my_height, x_org, y_org, head_num = 0;
+
+ head_num =
+ ScreenGetGeometry(Mode.events.mx, Mode.events.my, &x_org, &y_org,
+ &my_width, &my_height);
+
+ if (Mode.events.mx > ((x_org + my_width) - (menu_scroll_dist + 1)))
+ {
+ xdist =
+ -(menu_scroll_dist + (Mode.events.mx - (x_org + my_width)));
+ }
+ else if (Mode.events.mx < (menu_scroll_dist + x_org))
+ {
+ xdist = x_org + menu_scroll_dist - (Mode.events.mx);
+ }
+
+ if (Mode.events.my > (WinGetH(VROOT) - (menu_scroll_dist + 1)))
+ {
+ ydist =
+ -(menu_scroll_dist + (Mode.events.my - (y_org + my_height)));
+ }
+ else if (Mode.events.my < (menu_scroll_dist + y_org))
+ {
+ ydist = y_org + menu_scroll_dist - (Mode.events.my);
+ }
+
+ /* That's a hack to avoid unwanted events:
+ * If the user entered the border area, he has to
+ * leave it first, before he can scroll menus again ...
+ */
+ if ((xdist != 0) || (ydist != 0) || Mode.doingslide)
+ {
+ /* -10 has no meaning, only makes sure that the if's */
+ /* above can't be fulfilled ... */
+ menu_scroll_dist = -10;
+ }
+ else
+ {
+ menu_scroll_dist = 13;
+ }
+
+ if (Mode_menus.current_depth > 0)
+ {
+ int x1, y1, x2, y2;
+
+ x1 = x_org + my_width;
+ x2 = x_org - 1;
+ y1 = y_org + my_height;
+ y2 = y_org - 1;
+ /* work out the minimum and maximum extents of our */
+ /* currently active menus */
+ for (i = 0; i < Mode_menus.current_depth; i++)
+ {
+ if (Mode_menus.list[i])
+ {
+ ewin = Mode_menus.list[i]->ewin;
+ if (ewin)
+ {
+ if (EoGetX(ewin) < x1)
+ x1 = EoGetX(ewin);
+ if (EoGetY(ewin) < y1)
+ y1 = EoGetY(ewin);
+ if ((EoGetX(ewin) + EoGetW(ewin) - 1) > x2)
+ x2 = EoGetX(ewin) + EoGetW(ewin) - 1;
+ if ((EoGetY(ewin) + EoGetH(ewin) - 1) > y2)
+ y2 = EoGetY(ewin) + EoGetH(ewin) - 1;
+ }
+ }
+ }
+
+ if (xdist < 0)
+ {
+ offx = (x_org + my_width) - x2;
+ }
+ else if (xdist > 0)
+ {
+ offx = x_org - x1;
+ }
+ if (ydist < 0)
+ {
+ offy = (y_org + my_height) - y2;
+ }
+ else if (ydist > 0)
+ {
+ offy = y_org - y1;
+ }
+
+ if ((xdist < 0) && (offx <= 0))
+ xdist = offx;
+ if ((xdist > 0) && (offx >= 0))
+ xdist = offx;
+ if ((ydist < 0) && (offy <= 0))
+ ydist = offy;
+ if ((ydist > 0) && (offy >= 0))
+ ydist = offy;
+
+ /* only if any active menus are partially off screen then scroll */
+ if ((((xdist > 0) && (x1 < x_org))
+ || ((xdist < 0) && (x2 >= (x_org + my_width))))
+ || (((ydist > 0) && (y1 < y_org))
+ || ((ydist < 0) && (y2 >= (y_org + my_height)))))
+ {
+ /* If we would scroll too far, limit scrolling to 2/3s of screen */
+ if (ydist < -my_width)
+ ydist = -my_width * SCROLL_RATIO;
+ if (ydist > my_width)
+ ydist = my_width * SCROLL_RATIO;
+
+ if (xdist < -my_height)
+ xdist = -my_height * SCROLL_RATIO;
+ if (xdist > my_height)
+ xdist = my_height * SCROLL_RATIO;
+
+ if (Mode_menus.current_depth)
+ {
+#ifdef USE_XINERAMA
+ ewin = Mode_menus.list[0]->ewin;
+ if (ewin->head == head_num)
+ {
+#endif
+ for (i = 0; i < Mode_menus.current_depth; i++)
+ {
+ menus[i] = NULL;
+ if (Mode_menus.list[i])
+ {
+ ewin = Mode_menus.list[i]->ewin;
+ if (ewin)
+ {
+ menus[i] = ewin;
+ fx[i] = EoGetX(ewin);
+ fy[i] = EoGetY(ewin);
+ tx[i] = EoGetX(ewin) + xdist;
+ ty[i] = EoGetY(ewin) + ydist;
+ }
+ }
+ }
+ SlideEwinsTo(menus, fx, fy, tx, ty,
+ Mode_menus.current_depth,
+ Conf.shadespeed, 0);
+ if (((xdist != 0) || (ydist != 0))
+ && (Conf.menus.warp))
+ EXWarpPointer(None, xdist, ydist);
+#ifdef USE_XINERAMA
+ }
+#endif
+ }
+ }
+ }
+ }
+}
+#endif
+
+struct _mdata {
+ Menu *m;
+ MenuItem *mi;
+};
+
+static void
+MenusSetEvents(int on)
+{
+ int i;
+ Menu *m;
+ long event_mask;
+
+ event_mask = (on) ? MENU_ITEM_EVENT_MASK : 0;
+
+ for (m = Mode_menus.first; m; m = m->child)
+ {
+ for (i = 0; i < m->num; i++)
+ ESelectInput(m->items[i]->win, event_mask);
+ }
+}
+
+static void
+MenuSelectItem(Menu * m, MenuItem * mi, int focus)
+{
+ if (mi && focus)
+ {
+ if (Mode_menus.active != m)
+ {
+ Mode_menus.active = m;
+ GrabKeyboardRelease();
+ GrabKeyboardSet(m->win);
+ }
+ }
+
+ if (mi == m->sel_item)
+ return;
+
+ if (m->sel_item)
+ MenuDrawItem(m, m->sel_item, 1, STATE_NORMAL);
+
+ if (mi)
+ MenuDrawItem(m, mi, 1, STATE_HILITED);
+
+ m->sel_item = mi;
+}
+
+static void
+MenuSelectItemByChild(Menu * m, Menu * mc)
+{
+ MenuItem *mi;
+
+ mi = MenuFindItemByChild(m, mc);
+ if (!mi)
+ return;
+
+ MenuSelectItem(m, mi, 0);
+}
+
+static void
+_SubmenuCheckSlide(Menu * m, MenuItem * mi, EWin * ewin, EWin * ewin2,
+ int xo, int yo, int ww, int hh)
+{
+ EWin *menus[256], *etmp;
+ int fx[256], fy[256], tx[256], ty[256];
+ int i;
+ int sx, sy, sw, sh;
+ int xdist = 0, ydist = 0;
+
+ if (!Conf.menus.onscreen)
+ return;
+
+ ScreenGetGeometryByHead(Mode_menus.first->ewin->head, &sx, &sy, &sw, &sh);
+
+ if (EoGetX(Mode_menus.first->ewin) < sx)
+ xdist = sx - EoGetX(Mode_menus.first->ewin);
+ if (xdist + EoGetX(ewin) + xo + ww > sx + sw)
+ xdist = sx + sw - (EoGetX(ewin) + xo + ww);
+ if (EoGetX(ewin) + xdist < sx)
+ xdist = sx - EoGetX(ewin);
+
+ if (EoGetY(Mode_menus.first->ewin) < sy)
+ ydist = sy - EoGetY(Mode_menus.first->ewin);
+ if (ydist + EoGetY(ewin) + yo + hh > sy + sh)
+ ydist = sy + sh - (EoGetY(ewin) + yo + hh);
+ if (EoGetY(ewin) + ydist < sy)
+ ydist = sy - EoGetY(ewin);
+
+ if (xdist == 0 && ydist == 0)
+ return;
+
+ i = 0;
+ for (m = Mode_menus.first; m; m = m->child)
+ {
+ etmp = m->ewin;
+ if (!etmp || etmp == ewin2)
+ break;
+ menus[i] = etmp;
+ fx[i] = EoGetX(etmp);
+ fy[i] = EoGetY(etmp);
+ tx[i] = EoGetX(etmp) + xdist;
+ ty[i] = EoGetY(etmp) + ydist;
+ i++;
+ }
+
+ MenusSetEvents(0); /* Disable menu item events while sliding */
+ Mode.move.check = 0; /* Bypass on-screen checks */
+ SlideEwinsTo(menus, fx, fy, tx, ty, i, Conf.shading.speed, 0);
+ Mode.move.check = 1;
+ MenusSetEvents(1);
+
+ if (Conf.menus.warp)
+ EXWarpPointer(WinGetXwin(mi->win), mi->text_w / 2, mi->text_h / 2);
+}
+
+static int
+SubmenuShowTimeout(void *dat)
+{
+ int mx, my, my2, xo, yo, mw, ww, hh;
+ Menu *m;
+ MenuItem *mi;
+ EWin *ewin2, *ewin;
+ struct _mdata *data;
+ int bl1, br1, bt1, bb1;
+ int bl2, br2, bt2, bb2;
+
+ data = (struct _mdata *)dat;
+ if (!data || !data->m)
+ goto done;
+
+ m = data->m;
+ if (!ecore_list_goto(menu_list, m))
+ goto done;
+ ewin = m->ewin;
+ if (!ewin || !EwinFindByPtr(ewin))
+ goto done;
+ if (!EoIsShown(ewin))
+ goto done;
+
+ mi = data->mi;
+ if (!mi)
+ goto done;
+
+ if (mi->child != m->child)
+ MenuHide(m->child);
+ m->child = mi->child;
+ if (!mi->child)
+ {
+ _SubmenuCheckSlide(m, mi, ewin, NULL, 0, 0, 0, 0);
+ goto done;
+ }
+
+ mi->child->parent = m;
+ MenuShow(mi->child, 1);
+ ewin2 = mi->child->ewin;
+ if (!ewin2 || !EwinFindByPtr(ewin2))
+ goto done;
+
+ EGetGeometry(mi->win, NULL, &mx, &my, &mw, NULL, NULL, NULL);
+ my2 = 0;
+ if (mi->child->num > 0 && mi->child->items[0])
+ EGetGeometry(mi->child->items[0]->win, NULL, NULL, &my2, NULL, NULL, NULL,
+ NULL);
+
+ /* Sub-menu offsets relative to parent menu origin */
+ EwinBorderGetSize(ewin, &bl1, &br1, &bt1, &bb1);
+ EwinBorderGetSize(ewin2, &bl2, &br2, &bt2, &bb2);
+ xo = bl1 + mx + mw;
+ yo = bt1 + my - (bt2 + my2);
+
+ /* Size of new submenu (may be shaded atm.) */
+ ww = mi->child->w + bl2 + br2;
+ hh = mi->child->h + bt2 + bb2;
+
+ _SubmenuCheckSlide(m, mi, ewin, ewin2, xo, yo, ww, hh);
+
+ Mode.move.check = 0; /* Bypass on-screen checks */
+ EwinMove(ewin2, EoGetX(ewin) + xo, EoGetY(ewin) + yo);
+ Mode.move.check = 1;
+ EwinOpFloatAt(ewin2, OPSRC_NA, EoGetX(ewin2), EoGetY(ewin2));
+ EwinRaise(ewin2);
+ EwinShow(ewin2);
+
+ if (Conf.menus.animate)
+ EwinUnShade(ewin2);
+
+ done:
+ menu_timer_submenu = NULL;
+ return 0;
+}
+
+static void
+MenuActivateItem(Menu * m, MenuItem * mi)
+{
+ static struct _mdata mdata;
+ MenuItem *mi_prev;
+
+ mi_prev = m->sel_item;
+
+ if (m->child)
+ MenuSelectItem(m->child, NULL, 0);
+ MenuSelectItem(m, mi, 1);
+ if (m->parent)
+ MenuSelectItemByChild(m->parent, m);
+
+ if (mi == mi_prev)
+ return;
+
+ if (mi && !mi->child && mi_prev && !mi_prev->child)
+ return;
+
+ TIMER_DEL(menu_timer_submenu);
+
+ if ((mi && mi->child && !mi->child->shown) || (mi && mi->child != m->child))
+ {
+ mdata.m = m;
+ mdata.mi = mi;
+ TIMER_ADD(menu_timer_submenu, 0.2, SubmenuShowTimeout, &mdata);
+ }
+}
+
+static void
+MenuItemEventMouseIn(MenuItem * mi, XEvent * ev)
+{
+ if (ev->xcrossing.detail == NotifyInferior)
+ return;
+
+ MenuActivateItem(mi->menu, mi);
+}
+
+static void
+MenuItemEventMouseOut(MenuItem * mi, XEvent * ev)
+{
+ if (ev->xcrossing.detail == NotifyInferior)
+ return;
+
+ if (!mi->child)
+ MenuSelectItem(mi->menu, NULL, 0);
+}
+
+static void
+MenuHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Menu *m = (Menu *) prm;
+
+#if DEBUG_MENU_EVENTS
+ Eprintf("MenuHandleEvents %d\n", ev->type);
+#endif
+ switch (ev->type)
+ {
+ case KeyPress:
+ MenuEventKeyPress(m, ev);
+ break;
+ case ButtonRelease:
+ break;
+ case EnterNotify:
+ GrabKeyboardSet(m->win);
+ break;
+ }
+}
+
+static void
+MenuItemHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ MenuItem *mi = (MenuItem *) prm;
+
+#if DEBUG_MENU_EVENTS
+ Eprintf("MenuItemHandleEvents %d\n", ev->type);
+#endif
+ switch (ev->type)
+ {
+ case ButtonPress:
+ MenuItemEventMouseDown(mi, ev);
+ break;
+ case ButtonRelease:
+ MenuItemEventMouseUp(mi, ev);
+ break;
+ case EnterNotify:
+ MenuItemEventMouseIn(mi, ev);
+ break;
+ case LeaveNotify:
+ MenuItemEventMouseOut(mi, ev);
+ break;
+ }
+}
+
+static void
+MenuMaskerHandleEvents(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
+{
+#if DEBUG_MENU_EVENTS
+ Eprintf("MenuMaskerHandleEvents %d\n", ev->type);
+#endif
+ switch (ev->type)
+ {
+ case ButtonRelease:
+ MenusHide();
+ break;
+ }
+}
+
+/*
+ * Configuration load/save
+ */
+#include "conf.h"
+
+int
+MenuStyleConfigLoad(FILE * fs)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1;
+ MenuStyle *ms = NULL;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ goto done;
+ case CONFIG_CLASSNAME:
+ ms = MenuStyleCreate(s2);
+ break;
+ case CONFIG_TEXT:
+ ms->tclass = TextclassAlloc(s2, 1);
+ break;
+ case MENU_BG_ICLASS:
+ ms->bg_iclass = ImageclassAlloc(s2, 1);
+ break;
+ case MENU_ITEM_ICLASS:
+ ms->item_iclass = ImageclassAlloc(s2, 1);
+ break;
+ case MENU_SUBMENU_ICLASS:
+ ms->sub_iclass = ImageclassAlloc(s2, 1);
+ break;
+ case MENU_USE_ITEM_BACKGROUND:
+ ms->use_item_bg = atoi(s2);
+ if (ms->use_item_bg)
+ {
+ if (ms->bg_iclass)
+ {
+ ImageclassFree(ms->bg_iclass);
+ ms->bg_iclass = NULL;
+ }
+ }
+ break;
+ case MENU_MAX_COLUMNS:
+ ms->maxx = atoi(s2);
+ break;
+ case MENU_MAX_ROWS:
+ ms->maxy = atoi(s2);
+ break;
+ case CONFIG_BORDER:
+ _EFDUP(ms->border_name, s2);
+ break;
+ default:
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ return err;
+}
+
+int
+MenuConfigLoad(FILE * fs)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char s3[FILEPATH_LEN_MAX];
+ char s4[FILEPATH_LEN_MAX];
+ char s5[FILEPATH_LEN_MAX];
+ char *p2, *p3;
+ char *txt = NULL;
+ const char *params;
+ int i1, i2, len;
+ Menu *m = NULL, *mm;
+ MenuItem *mi;
+ ImageClass *ic = NULL;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, &p2, &p3);
+ switch (i1)
+ {
+ default:
+ break;
+
+ case CONFIG_VERSION:
+ continue;
+
+ case CONFIG_MENU:
+ err = -1;
+ i2 = atoi(s2);
+ if (i2 != CONFIG_OPEN)
+ goto done;
+ m = NULL;
+ ic = NULL;
+ _EFREE(txt);
+ continue;
+ case CONFIG_CLOSE:
+ err = 0;
+ continue;
+
+ case MENU_PREBUILT:
+ m = MenuFind(s2, NULL);
+ if (m)
+ continue;
+ sscanf(p3, "%4000s %4000s %4000s", s3, s4, s5);
+ m = MenusCreateInternal(s4, s2, s3, s5);
+ if (m)
+ m->ref_count++;
+ continue;
+
+ case CONFIG_CLASSNAME:
+ if (!m)
+ m = MenuCreate(s2, NULL, NULL, NULL);
+ else
+ MenuSetName(m, s2);
+ params = _MenuCheckAlias(s2);
+ if (m && params)
+ MenuSetAlias(m, params);
+ continue;
+
+ case MENU_ITEM:
+ ic = NULL;
+ if (strcmp("NULL", s2))
+ ic = ImageclassFind(s2, 0);
+ _EFDUP(txt, p3);
+ continue;
+ }
+
+ /* The rest require the menu m to be created */
+ if (!m)
+ {
+ ConfigParseError("Menu", s);
+ continue;
+ }
+
+ switch (i1)
+ {
+ case MENU_USE_STYLE:
+ MenuSetStyle(m, MenuStyleFind(s2));
+ break;
+ case MENU_TITLE:
+ MenuSetTitle(m, p2);
+ break;
+ case MENU_ACTION:
+ if ((txt) || (ic))
+ {
+ char ok = 1;
+
+ /* if its an execute line then check to see if the exec is
+ * on your system before adding the menu entry */
+ if (!strcmp(s2, "exec"))
+ {
+ sscanf(p3, "%1000s", s3);
+ ok = path_canexec(s3);
+ }
+ if (ok)
+ {
+ mi = MenuItemCreate(txt, ic, p2, NULL);
+ MenuAddItem(m, mi);
+ }
+ ic = NULL;
+ _EFREE(txt);
+ }
+ break;
+ case MENU_SUBMENU:
+ len = 0;
+ sscanf(p3, "%s %n", s3, &len);
+ ic = NULL;
+ if (strcmp("NULL", s3))
+ ic = ImageclassFind(s3, 1);
+ mm = MenuFind(s2, NULL);
+ mi = MenuItemCreate(p3 + len, ic, NULL, mm);
+ MenuAddItem(m, mi);
+ break;
+ default:
+ break;
+ }
+ }
+
+ done:
+ if (err)
+ ConfigAlertLoad("Menu");
+ _EFREE(txt);
+
+ return err;
+}
+
+static int
+MenusTimeout(void *data __UNUSED__)
+{
+ Menu *m;
+ time_t ts;
+
+ /* Unload contents if loadable and no access in > 5 min */
+ ts = time(0);
+ ECORE_LIST_FOR_EACH(menu_list, m)
+ {
+ if (m->shown || !m->filled ||
+ ts - m->last_access < MENU_UNLOAD_CHECK_INTERVAL)
+ continue;
+
+ m->last_change = 0;
+ if (!m->loader)
+ MenuFreePixmaps(m);
+ else if (m->ref_count)
+ MenuEmpty(m, 0);
+ else
+ MenuDestroy(m);
+ }
+
+ return 1;
+}
+
+/*
+ * Menus Module
+ */
+
+static void
+MenusSighan(int sig, void *prm __UNUSED__)
+{
+ Timer *menu_unload_timer;
+
+ switch (sig)
+ {
+ case ESIGNAL_CONFIGURE:
+ ConfigFileLoad("menus.cfg", NULL, MenuConfigLoad, 1);
+ break;
+
+ case ESIGNAL_START:
+ TIMER_ADD(menu_unload_timer, 1. * MENU_UNLOAD_CHECK_INTERVAL,
+ MenusTimeout, NULL);
+ break;
+
+ case ESIGNAL_AREA_SWITCH_START:
+ case ESIGNAL_DESK_SWITCH_START:
+ MenusHide();
+ break;
+
+ case ESIGNAL_EWIN_UNMAP:
+ if ((EWin *) prm == Mode_menus.context_ewin)
+ MenusHide();
+ break;
+
+ case ESIGNAL_THEME_TRANS_CHANGE:
+ MenusTouch();
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+
+static char tmp_warpmenus;
+static char tmp_animated_menus;
+static char tmp_menusonscreen;
+
+static void
+CB_ConfigureMenus(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.menus.warp = tmp_warpmenus;
+ Conf.menus.animate = tmp_animated_menus;
+ Conf.menus.onscreen = tmp_menusonscreen;
+ }
+ autosave();
+}
+
+static void
+_DlgFillMenus(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_warpmenus = Conf.menus.warp;
+ tmp_animated_menus = Conf.menus.animate;
+ tmp_menusonscreen = Conf.menus.onscreen;
+
+ DialogItemTableSetOptions(table, 3, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetText(di, _("Animated display of menus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_animated_menus);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetText(di, _("Always pop up menus on screen"));
+ DialogItemCheckButtonSetPtr(di, &tmp_menusonscreen);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetText(di, _("Warp pointer after moving menus"));
+ DialogItemCheckButtonSetPtr(di, &tmp_warpmenus);
+}
+
+const DialogDef DlgMenus = {
+ "CONFIGURE_MENUS",
+ N_("Menus"),
+ N_("Menu Settings"),
+ SOUND_SETTINGS_MENUS,
+ "pix/place.png",
+ N_("Enlightenment Menu\n" "Settings Dialog\n"),
+ _DlgFillMenus,
+ DLG_OAC, CB_ConfigureMenus,
+};
+#endif /* ENABLE_DIALOGS */
+
+static void
+MenusIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+ Menu *m;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ IpcPrintf("Menus - active=%d\n", MenusActive());
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+#define SS(s) ((s) ? (s) : "-")
+#define ST(s) ((s) ? (s->name) : "-")
+ ECORE_LIST_FOR_EACH(menu_list, m)
+ IpcPrintf("%s(%s/%s): %s\n", m->name, SS(m->alias), ST(m->style),
+ SS(m->title));
+ }
+ else if (!strncmp(cmd, "reload", 2))
+ {
+ MenusDestroyLoaded();
+ ConfigFileLoad("menus.cfg", NULL, MenuConfigLoad, 1);
+ }
+ else if (!strncmp(cmd, "show", 2))
+ {
+ if (*p == '\0')
+ p = NULL;
+ if (p && !strcmp(prm, "named"))
+ {
+ Esnprintf(prm, sizeof(prm), "%s", p);
+ p = NULL;
+ }
+ SoundPlay(SOUND_MENU_SHOW);
+ MenusShowNamed(prm, p);
+ }
+}
+
+static const IpcItem MenusIpcArray[] = {
+ {
+ MenusIpc,
+ "menus", "mnu",
+ "Menu functions",
+ " menus list Show existing menus\n"
+ " menus reload Reload menus.cfg without restarting\n"
+ " menus show <name> Show named menu\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(MenusIpcArray)/sizeof(IpcItem))
+
+static const CfgItem MenusCfgItems[] = {
+ CFG_ITEM_BOOL(Conf.menus, animate, 0),
+ CFG_ITEM_BOOL(Conf.menus, onscreen, 1),
+ CFG_ITEM_BOOL(Conf.menus, warp, 1),
+ CFG_ITEM_BOOL(Conf.menus, show_icons, 1),
+ CFG_ITEM_INT(Conf.menus, icon_size, 16),
+ CFG_ITEM_HEX(Conf.menus, key.left, XK_Left),
+ CFG_ITEM_HEX(Conf.menus, key.right, XK_Right),
+ CFG_ITEM_HEX(Conf.menus, key.up, XK_Up),
+ CFG_ITEM_HEX(Conf.menus, key.down, XK_Down),
+ CFG_ITEM_HEX(Conf.menus, key.escape, XK_Escape),
+ CFG_ITEM_HEX(Conf.menus, key.ret, XK_Return),
+};
+#define N_CFG_ITEMS (sizeof(MenusCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModMenus;
+const EModule ModMenus = {
+ "menus", "menu",
+ MenusSighan,
+ {N_IPC_FUNCS, MenusIpcArray},
+ {N_CFG_ITEMS, MenusCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _MENUS_H_
+#define _MENUS_H_
+
+#include "etypes.h"
+
+typedef struct _menu Menu;
+typedef struct _menuitem MenuItem;
+typedef struct _menustyle MenuStyle;
+
+typedef int (MenuLoader) (Menu * m);
+
+/* menus.c */
+int MenuStyleConfigLoad(FILE * fs);
+MenuStyle *MenuStyleFind(const char *name);
+
+int MenuConfigLoad(FILE * fs);
+Menu *MenuCreate(const char *name, const char *title,
+ Menu * parent, MenuStyle * ms);
+void MenuDestroy(Menu * m);
+void MenuHide(Menu * m);
+void MenuEmpty(Menu * m, int destroying);
+int MenuLoad(Menu * m);
+Menu *MenuFind(const char *name, const char *param);
+MenuItem *MenuItemCreate(const char *text, ImageClass * ic,
+ const char *action_params, Menu * child);
+void MenuSetInternal(Menu * m);
+void MenuSetDynamic(Menu * m);
+void MenuSetName(Menu * m, const char *name);
+void MenuSetAlias(Menu * m, const char *alias);
+void MenuSetStyle(Menu * m, MenuStyle * ms);
+void MenuSetTitle(Menu * m, const char *title);
+void MenuSetIconSize(Menu * m, int size);
+void MenuSetData(Menu * m, char *data);
+void MenuSetLoader(Menu * m, MenuLoader * loader);
+void MenuSetTimestamp(Menu * m, time_t t);
+void MenuAddItem(Menu * m, MenuItem * mi);
+const char *MenuGetName(const Menu * m);
+const char *MenuGetData(const Menu * m);
+time_t MenuGetTimestamp(const Menu * m);
+
+int MenusActive(void);
+
+/* menus-misc.c */
+Menu *MenusCreateInternal(const char *type, const char *name,
+ const char *style, const char *prm);
+
+#endif /* _MENUS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "eobj.h"
+#include "xwin.h"
+#include <sys/time.h>
+#include <time.h>
+
+/* This is a general quicksort algorithm, using median-of-three strategy.
+ *
+ * Parameters:
+ * ===========
+ * a: array of items to be sorted (list of void pointers).
+ * l: left edge of sub-array to be sorted. Toplevel call has 0 here.
+ * r: right edge of sub-array to be sorted. Toplevel call has |a| - 1 here.
+ * CompareFunc: Pointer to a function that accepts two general items d1 and d2
+ * and returns values as follows:
+ *
+ * < 0 --> d1 "smaller" than d2
+ * > 0 --> d1 "larger" than d2
+ * 0 --> d1 "==" d2.
+ *
+ * See sample application in ipc.c's IPC_Help.
+ */
+void
+Quicksort(void **a, int l, int r, int (*CompareFunc) (void *d1, void *d2))
+{
+
+ int i, j, m;
+ void *v, *t;
+
+ if (r > l)
+ {
+
+ m = (r + l) / 2 + 1;
+ if (CompareFunc(a[l], a[r]) > 0)
+ {
+ t = a[l];
+ a[l] = a[r];
+ a[r] = t;
+ }
+ if (CompareFunc(a[l], a[m]) > 0)
+ {
+ t = a[l];
+ a[l] = a[m];
+ a[m] = t;
+ }
+ if (CompareFunc(a[r], a[m]) > 0)
+ {
+ t = a[r];
+ a[r] = a[m];
+ a[m] = t;
+ }
+
+ v = a[r];
+ i = l - 1;
+ j = r;
+
+ for (;;)
+ {
+ while (CompareFunc(a[++i], v) < 0)
+ ;
+ while (CompareFunc(a[--j], v) > 0)
+ ;
+ if (i >= j)
+ break;
+ t = a[i];
+ a[i] = a[j];
+ a[j] = t;
+ }
+ t = a[i];
+ a[i] = a[r];
+ a[r] = t;
+ Quicksort(a, l, i - 1, CompareFunc);
+ Quicksort(a, i + 1, r, CompareFunc);
+ }
+}
+
+/*
+ * Stuff to make loops for animated effects.
+ */
+struct timeval etl_tv_start;
+static int etl_k1, etl_k2;
+static double etl_k, etl_fac;
+
+/*
+ * Return elapsed time in seconds since t0
+ */
+static double
+ETimeElapsed(struct timeval *t0)
+{
+ struct timeval tv;
+ int sec, usec;
+
+ gettimeofday(&tv, NULL);
+ sec = tv.tv_sec - t0->tv_sec;
+ usec = tv.tv_usec - t0->tv_usec;
+ return (double)sec + (((double)usec) / 1000000);
+}
+
+#include <math.h>
+
+static float
+ETimeCurve(int k1, int k2, float k, int mode)
+{
+ float x, l;
+
+ if (k >= k2 || mode == 0)
+ return k;
+
+ l = k2 - k1;
+ x = k - k1;
+
+ switch (mode)
+ {
+ case 1: /* Sinuoidal - half cycle */
+ x = x / l - 0.5; /* x: -0.5 -> 0.5 */
+ x = (float)(0.5 * (1. + sin(x * M_PI)));
+ break;
+ case 2: /* Sinuoidal - quarter cycle */
+ x = x / l; /* x: 0 -> 1 */
+ x = (float)sin(x * M_PI / 2);
+ break;
+ }
+
+ return k1 + x * l;
+}
+
+void
+ETimedLoopInit(int k1, int k2, int speed)
+{
+ etl_k1 = k1;
+ etl_k2 = k2;
+ if (speed < 500)
+ speed = 500;
+ /* When speed is 1000 the loop will take one sec. */
+ etl_fac = (k2 - k1) * (double)speed / 1000.;
+
+ gettimeofday(&etl_tv_start, NULL);
+ ESync(ESYNC_TLOOP);
+}
+
+int
+ETimedLoopNext(void)
+{
+ double tm, y;
+
+ /* Is this portable? */
+ usleep(5000);
+
+ /* Find elapsed time since loop start */
+ tm = ETimeElapsed(&etl_tv_start);
+ etl_k = etl_k1 + tm * etl_fac;
+#if 0
+ Eprintf("ETimedLoopNext k=%4f tm=%.3f\n", etl_k, tm);
+#endif
+ y = ETimeCurve(etl_k1, etl_k2, (float)etl_k, 2);
+
+ EobjsRepaint();
+
+ return (int)y;
+}
+
+/*
+ * Debug/error message printing.
+ */
+static struct timeval tv0 = { 0, 0 };
+
+static void
+_tvdiff(struct timeval *tvd, const struct timeval *tv1,
+ const struct timeval *tv2)
+{
+ long tsec, tus;
+
+ tsec = tv2->tv_sec - tv1->tv_sec;
+ tus = tv2->tv_usec - tv1->tv_usec;
+ if (tus < 0)
+ {
+ tus += 1000000;
+ tsec -= 1;
+ }
+ tvd->tv_sec = tsec;
+ tvd->tv_usec = tus;
+}
+
+void
+Eprintf(const char *fmt, ...)
+{
+ va_list args;
+ struct timeval tv;
+
+ if (tv0.tv_sec == 0)
+ gettimeofday(&tv0, NULL);
+
+ gettimeofday(&tv, NULL);
+ _tvdiff(&tv, &tv0, &tv);
+
+ if (Conf.difftime)
+ {
+ static struct timeval tv1 = { 0, 0 };
+ struct timeval tvd;
+ unsigned long nreq;
+
+ _tvdiff(&tvd, &tv1, &tv);
+ tv1 = tv;
+
+ nreq = (disp) ? NextRequest(disp) : 0;
+ fprintf(stdout, "[%d] %#8lx %4ld.%06ld [%3ld.%06ld]: ", getpid(), nreq,
+ (long)tv1.tv_sec, tv1.tv_usec, (long)tvd.tv_sec, tvd.tv_usec);
+ }
+ else
+ {
+ fprintf(stdout, "[%d] %4ld.%06ld: ", getpid(),
+ (long)tv.tv_sec, tv.tv_usec);
+ }
+
+ va_start(args, fmt);
+ vfprintf(stdout, fmt, args);
+ va_end(args);
+}
+
+#if ENABLE_DEBUG_EVENTS
+/*
+ * Event debug stuff
+ */
+#define N_DEBUG_FLAGS 256
+static char ev_debug;
+static char ev_debug_flags[N_DEBUG_FLAGS];
+
+/*
+ * param is <ItemNumber>[:<ItemNumber> ... ]
+ *
+ * ItemNumber:
+ * 0 : Verbose flag
+ * 1 : X11 errors
+ * [ 2; 35 [ : X11 event codes, see /usr/include/X11/X.h
+ * [ 64; ... [ : Remapped X11 events, see events.h
+ * [ 128; 256 [ : E events, see E.h
+ */
+void
+EDebugInit(const char *param)
+{
+ const char *s;
+ int ix, onoff;
+
+ if (!param)
+ return;
+
+ for (;;)
+ {
+ s = strchr(param, ':');
+ if (!param[0])
+ break;
+ ev_debug = 1;
+ ix = strtol(param, NULL, 0);
+ onoff = (ix >= 0);
+ if (ix < 0)
+ ix = -ix;
+ if (ix < N_DEBUG_FLAGS)
+ {
+ if (onoff)
+ ev_debug_flags[ix]++;
+ else
+ ev_debug_flags[ix] = 0;
+ }
+ if (!s)
+ break;
+ param = s + 1;
+ }
+}
+
+int
+EDebug(unsigned int type)
+{
+ return (ev_debug &&
+ (type < sizeof(ev_debug_flags))) ? ev_debug_flags[type] : 0;
+}
+
+void
+EDebugSet(unsigned int type, int value)
+{
+ if (type >= sizeof(ev_debug_flags))
+ return;
+
+ ev_debug = 1;
+ ev_debug_flags[type] += value;
+}
+
+#endif
+
+#if USE_MODULES
+/*
+ * Dynamic module loading
+ */
+#include <dlfcn.h>
+
+const void *
+ModLoadSym(const char *lib, const char *sym, const char *name)
+{
+ char buf[1024];
+ void *h;
+
+ Esnprintf(buf, sizeof(buf), "%s/lib%s_%s.so", ENLIGHTENMENT_LIB, lib, name);
+ if (EDebug(1))
+ Eprintf("ModLoad %s\n", buf);
+ h = dlopen(buf, RTLD_NOW | RTLD_LOCAL);
+ if (!h)
+ Eprintf("*** ModLoad %s: %s\n", buf, dlerror());
+ if (!h)
+ return NULL;
+
+ Esnprintf(buf, sizeof(buf), "%s_%s", sym, name);
+ h = dlsym(h, buf);
+ if (!h)
+ Eprintf("*** ModLoad %s: %s\n", buf, dlerror());
+
+ return h;
+}
+
+#endif /* USE_MODULES */
--- /dev/null
+/*
+ * Copyright (C) 2003-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "dialog.h"
+#include "eimage.h"
+#include "emodule.h"
+#include "settings.h"
+#include "snaps.h"
+
+/***********************************************************************
+ * *** should all go elsewhere ***
+ **********************************************************************/
+
+/* Use static module list for now */
+extern const EModule ModAclass;
+extern const EModule ModBackgrounds;
+extern const EModule ModButtons;
+
+#if USE_COMPOSITE
+extern const EModule ModCompMgr;
+extern const EModule ModMagwin;
+#endif
+#if USE_GLX
+extern const EModule ModGlwin;
+#endif
+extern const EModule ModCursors;
+extern const EModule ModDesktops;
+extern const EModule ModEffects;
+extern const EModule ModEwins;
+extern const EModule ModFocus;
+extern const EModule ModGroups;
+extern const EModule ModImageclass;
+extern const EModule ModIconboxes;
+extern const EModule ModLocale;
+extern const EModule ModMenus;
+extern const EModule ModMisc;
+extern const EModule ModPagers;
+extern const EModule ModSlideouts;
+
+#if HAVE_SOUND
+extern const EModule ModSound;
+#endif
+extern const EModule ModTextclass;
+extern const EModule ModTheme;
+extern const EModule ModTooltips;
+
+#ifdef ENABLE_THEME_TRANSPARENCY
+extern const EModule ModTransparency;
+#endif
+extern const EModule ModWarplist;
+extern const EModule ModWindowMatch;
+
+const EModule *p_modules[] = {
+ &ModAclass,
+ &ModBackgrounds,
+ &ModButtons,
+#if USE_COMPOSITE
+ &ModCompMgr,
+ &ModMagwin,
+#endif
+ &ModCursors,
+ &ModDesktops,
+ &ModEwins,
+ &ModEffects,
+ &ModFocus,
+#if USE_GLX
+ &ModGlwin,
+#endif
+ &ModGroups,
+ &ModIconboxes,
+ &ModImageclass,
+ &ModLocale,
+ &ModMenus,
+ &ModMisc,
+ &ModPagers,
+ &ModSlideouts,
+#if HAVE_SOUND
+ &ModSound,
+#endif
+ &ModTextclass,
+ &ModTheme,
+ &ModTooltips,
+#ifdef ENABLE_THEME_TRANSPARENCY
+ &ModTransparency,
+#endif
+ &ModWarplist,
+ &ModWindowMatch,
+};
+int n_modules = sizeof(p_modules) / sizeof(EModule *);
+
+#if 0
+static void
+MiscSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_START:
+ break;
+ }
+}
+#endif
+
+static void
+_CfgImageCacheSize(void *item __UNUSED__, const char *value)
+{
+ int size_old, size_new;
+
+ if (!value || !value[0])
+ return;
+
+ size_new = atoi(value);
+ size_old = EImageSetCacheSize(size_new);
+ IpcPrintf("Image cache size %u->%u byte\n", size_old, size_new);
+}
+
+static const CfgItem MiscCfgItems[] = {
+
+ CFG_ITEM_INT(Conf, animation.step, 10),
+
+ CFG_ITEM_INT(Conf, buttons.move_resistance, 10),
+
+ CFG_ITEM_BOOL(Conf, dialogs.headers, 0),
+ CFG_ITEM_BOOL(Conf, dialogs.button_image, 0),
+
+ CFG_ITEM_BOOL(Conf, dock.enable, 1),
+ CFG_ITEM_BOOL(Conf, dock.sticky, 1),
+ CFG_ITEM_INT(Conf, dock.dirmode, DOCK_DOWN),
+ CFG_ITEM_INT(Conf, dock.startx, 0),
+ CFG_ITEM_INT(Conf, dock.starty, 0),
+
+ CFG_ITEM_BOOL(Conf, hints.set_xroot_info_on_root_window, 0),
+
+ CFG_ITEM_INT(Conf, movres.mode_move, 0),
+ CFG_ITEM_INT(Conf, movres.mode_resize, 2),
+ CFG_ITEM_INT(Conf, movres.mode_info, 1),
+ CFG_ITEM_INT(Conf, movres.mode_maximize_default, 1),
+ CFG_ITEM_HEX(Conf, movres.color, 0x00ff0000),
+ CFG_ITEM_BOOL(Conf, movres.avoid_server_grab, 1),
+ CFG_ITEM_BOOL(Conf, movres.update_while_moving, 0),
+ CFG_ITEM_BOOL(Conf, movres.enable_sync_request, 0),
+ CFG_ITEM_BOOL(Conf, movres.dragbar_nocover, 0),
+
+ CFG_ITEM_INT(Conf, opacity.menus, 85),
+ CFG_ITEM_INT(Conf, opacity.movres, 60),
+ CFG_ITEM_INT(Conf, opacity.tooltips, 80),
+ CFG_ITEM_INT(Conf, opacity.focused, 100),
+ CFG_ITEM_INT(Conf, opacity.unfocused, 100),
+
+ CFG_ITEM_BOOL(Conf, place.manual, 0),
+ CFG_ITEM_BOOL(Conf, place.manual_mouse_pointer, 0),
+ CFG_ITEM_BOOL(Conf, place.center_if_desk_full, 0),
+ CFG_ITEM_BOOL(Conf, place.ignore_struts, 0),
+ CFG_ITEM_BOOL(Conf, place.raise_fullscreen, 0),
+ CFG_ITEM_BOOL(Conf, place.slidein, 0),
+ CFG_ITEM_BOOL(Conf, place.cleanupslide, 1),
+ CFG_ITEM_INT(Conf, place.slidemode, 0),
+ CFG_ITEM_INT(Conf, place.slidespeedmap, 6000),
+ CFG_ITEM_INT(Conf, place.slidespeedcleanup, 8000),
+
+ CFG_ITEM_BOOL(Conf, session.enable_script, 0),
+ CFG_ITEM_STR(Conf, session.script),
+ CFG_ITEM_BOOL(Conf, session.enable_logout_dialog, 1),
+ CFG_ITEM_BOOL(Conf, session.enable_reboot_halt, 0),
+ CFG_ITEM_STR(Conf, session.cmd_reboot),
+ CFG_ITEM_STR(Conf, session.cmd_halt),
+
+ CFG_ITEM_BOOL(Conf, shading.animate, 1),
+ CFG_ITEM_INT(Conf, shading.speed, 8000),
+
+ CFG_ITEM_BOOL(Conf, snap.enable, 1),
+ CFG_ITEM_INT(Conf, snap.edge_snap_dist, 8),
+ CFG_ITEM_INT(Conf, snap.screen_snap_dist, 32),
+
+ CFG_ITEM_BOOL(Conf, startup.firsttime, 1),
+ CFG_ITEM_BOOL(Conf, startup.animate, 1),
+
+ CFG_ITEM_BOOL(Conf, testing.argb_internal_objects, 0),
+ CFG_ITEM_BOOL(Conf, testing.argb_internal_clients, 0),
+ CFG_ITEM_BOOL(Conf, testing.argb_clients, 0),
+ CFG_ITEM_BOOL(Conf, testing.argb_clients_inherit_attr, 0),
+ CFG_FUNC_INT(Conf, testing.image_cache_size, -1, _CfgImageCacheSize),
+ CFG_ITEM_INT(Conf, testing.mask_alpha_threshold, 8),
+ CFG_ITEM_BOOL(Conf, testing.enable_startup_id, 1),
+ CFG_ITEM_BOOL(Conf, testing.use_render_for_scaling, 0),
+ CFG_ITEM_BOOL(Conf, testing.bindings_reload, 1),
+ CFG_ITEM_HEX(Conf, testing.no_sync_mask, 0),
+
+ CFG_ITEM_BOOL(Conf, autosave, 1),
+ CFG_ITEM_BOOL(Conf, memory_paranoia, 1),
+ CFG_ITEM_BOOL(Conf, save_under, 0),
+ CFG_ITEM_BOOL(Conf, difftime, 0),
+};
+#define N_CFG_ITEMS ((int)(sizeof(MiscCfgItems)/sizeof(CfgItem)))
+
+/* Stuff not elsewhere */
+const EModule ModMisc = {
+ "misc", NULL,
+ NULL,
+ {0, NULL},
+ {N_CFG_ITEMS, MiscCfgItems}
+};
+
+void
+autosave(void)
+{
+ if (!Mode.wm.save_ok)
+ return;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("autosave\n");
+
+ SnapshotsSaveReal(NULL);
+
+ /* Save the configuration parameters */
+ ConfigurationSave();
+}
--- /dev/null
+/*
+ * Copyright (C) 2004-2007 Jaron Omega
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "dialog.h"
+#include "emodule.h"
+#include "iclass.h"
+#include "settings.h"
+#include "timers.h"
+
+#ifdef ENABLE_THEME_TRANSPARENCY
+/*
+ * Theme transparency settings
+ */
+
+#if ENABLE_DIALOGS
+static Timer *st_timer = NULL;
+
+static int
+TransparencyChangeTimeout(void *data)
+{
+ TransparencySet(PTR2INT(data));
+
+ st_timer = NULL;
+ return 0;
+}
+
+static void
+TransparencyChange(int val)
+{
+ TIMER_DEL(st_timer);
+ TIMER_ADD(st_timer, .01, TransparencyChangeTimeout, INT2PTR(val));
+}
+
+/*
+ * Configuration dialog
+ */
+static int tmp_theme_transparency;
+
+static int tmp_st_border;
+static int tmp_st_widget;
+static int tmp_st_dialog;
+static int tmp_st_menu;
+static int tmp_st_tooltip;
+static int tmp_st_hilight;
+
+static void
+CB_ConfigureTrans(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.trans.border = tmp_st_border;
+ Conf.trans.widget = tmp_st_widget;
+ Conf.trans.dialog = tmp_st_dialog;
+ Conf.trans.menu = tmp_st_menu;
+ Conf.trans.tooltip = tmp_st_tooltip;
+
+ if (tmp_st_hilight == ICLASS_ATTR_GLASS)
+ {
+ Conf.trans.hilight = tmp_st_hilight;
+ Conf.trans.menu_item = ICLASS_ATTR_GLASS;
+
+ }
+ else if (tmp_st_hilight == ICLASS_ATTR_BG)
+ {
+ Conf.trans.hilight = tmp_st_hilight;
+ Conf.trans.menu_item = ICLASS_ATTR_BG;
+
+ }
+ else if (tmp_st_hilight == ICLASS_ATTR_OPAQUE)
+ {
+ Conf.trans.hilight = tmp_st_hilight;
+ Conf.trans.menu_item = ICLASS_ATTR_OPAQUE;
+
+ }
+
+ Conf.trans.pager = ICLASS_ATTR_BG;
+ Conf.trans.iconbox = ICLASS_ATTR_BG;
+ Conf.trans.warplist = ICLASS_ATTR_BG;
+#if 0 /* Should not be necessary */
+ TransparencyChange(tmp_theme_transparency);
+#endif
+ }
+ autosave();
+}
+
+static void
+CB_ThemeTransparency(Dialog * d __UNUSED__, int val __UNUSED__, void *data)
+{
+ DItem *di;
+ char s[256];
+
+ di = (DItem *) data;
+ Esnprintf(s, sizeof(s), _("Theme transparency: %2d"),
+ tmp_theme_transparency);
+ DialogItemSetText(di, s);
+
+ TransparencyChange(tmp_theme_transparency);
+}
+
+static void
+_DlgFillThemeTrans(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *label;
+ DItem *radio_border, *radio_widget, *radio_menu,
+ *radio_dialog, *radio_tooltip, *radio_hilight;
+ char s[256];
+
+ tmp_st_border = Conf.trans.border;
+ tmp_st_widget = Conf.trans.widget;
+ tmp_st_dialog = Conf.trans.dialog;
+ tmp_st_menu = Conf.trans.menu;
+ tmp_st_tooltip = Conf.trans.tooltip;
+ tmp_st_hilight = Conf.trans.hilight;
+
+ tmp_theme_transparency = Conf.trans.alpha;
+
+ DialogItemTableSetOptions(table, 7, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 7);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Changes Might Require Restart:"));
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 7);
+
+ di = DialogAddItem(table, DITEM_NONE);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Borders:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Menus:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Hilights:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("E Widgets:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("E Dialogs:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Tooltips:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 1024);
+ DialogItemSetText(di, _("Opaque"));
+
+ radio_border = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_border);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio_menu = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_menu);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio_hilight = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_hilight);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio_widget = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_widget);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio_dialog = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_dialog);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio_tooltip = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_tooltip);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 1024);
+ DialogItemSetText(di, _("Background"));
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_border);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+ DialogItemRadioButtonGroupSetValPtr(radio_border, &tmp_st_border);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_menu);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_hilight);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_widget);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+ DialogItemRadioButtonGroupSetValPtr(radio_widget, &tmp_st_widget);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_dialog);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+ DialogItemRadioButtonGroupSetValPtr(radio_dialog, &tmp_st_dialog);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_tooltip);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 1024);
+ DialogItemSetText(di, _("Glass"));
+
+ di = DialogAddItem(table, DITEM_NONE);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_menu);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+ DialogItemRadioButtonGroupSetValPtr(radio_menu, &tmp_st_menu);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_hilight);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+ DialogItemRadioButtonGroupSetValPtr(radio_hilight, &tmp_st_hilight);
+
+ di = DialogAddItem(table, DITEM_NONE);
+
+ di = DialogAddItem(table, DITEM_NONE);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemRadioButtonSetFirst(di, radio_tooltip);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+ DialogItemRadioButtonGroupSetValPtr(radio_tooltip, &tmp_st_tooltip);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 7);
+
+ di = label = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 7);
+ DialogItemSetAlign(di, 512, 512);
+ Esnprintf(s, sizeof(s), _("Theme transparency: %2d"),
+ tmp_theme_transparency);
+ DialogItemSetText(di, s);
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSetColSpan(di, 7);
+ DialogItemSliderSetMinLength(di, 10);
+ DialogItemSliderSetBounds(di, 0, 255);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 16);
+ DialogItemSliderSetValPtr(di, &tmp_theme_transparency);
+ DialogItemSetCallback(di, CB_ThemeTransparency, 0, (void *)label);
+}
+
+const DialogDef DlgThemeTrans = {
+ "CONFIGURE_TRANS",
+ N_("Transparency"),
+ N_("Selective Transparency Settings"),
+ SOUND_SETTINGS_TRANS,
+ "pix/tips.png",
+ N_("Enlightenment Selective Transparency\n" "Settings Dialog\n"),
+ _DlgFillThemeTrans,
+ DLG_OAC, CB_ConfigureTrans,
+};
+#endif /* ENABLE_DIALOGS */
+
+static void
+TransparencySighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_CONFIGURE:
+ TransparencySet(Conf.trans.alpha);
+ break;
+ }
+}
+
+static const CfgItem TransCfgItems[] = {
+ CFG_ITEM_INT(Conf.trans, alpha, 0),
+ CFG_ITEM_INT(Conf.trans, menu, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, menu_item, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, tooltip, ICLASS_ATTR_GLASS),
+ CFG_ITEM_INT(Conf.trans, widget, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, hilight, ICLASS_ATTR_OPAQUE),
+ CFG_ITEM_INT(Conf.trans, border, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, iconbox, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, dialog, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, pager, ICLASS_ATTR_BG),
+ CFG_ITEM_INT(Conf.trans, warplist, ICLASS_ATTR_BG),
+};
+#define N_CFG_ITEMS (sizeof(TransCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModTransparency;
+const EModule ModTransparency = {
+ "transparency", "tr",
+ TransparencySighan,
+ {0, NULL},
+ {N_CFG_ITEMS, TransCfgItems}
+};
+
+#endif /* ENABLE_THEME_TRANSPARENCY */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "cursors.h"
+#include "desktops.h"
+#include "emodule.h"
+#include "events.h"
+#include "ewins.h"
+#include "focus.h"
+#include "grabs.h"
+#include "groups.h"
+#include "hints.h"
+#include "timers.h"
+#include "xwin.h"
+#include <X11/keysym.h>
+
+static struct {
+ EWin *ewin;
+ char mode;
+ char using_kbd;
+ char nogroup;
+ char grab_server;
+ int start_x, start_y;
+ int cur_x, cur_y;
+ int win_x, win_y, win_w, win_h;
+ int swapcoord_x, swapcoord_y;
+ int resize_detail;
+} Mode_mr;
+
+static int
+_NeedServerGrab(int mode)
+{
+ if (mode == 0)
+ return 0;
+ if (mode <= 2)
+ return !Conf.movres.avoid_server_grab;
+ return 1;
+}
+
+void
+EwinShapeSet(EWin * ewin)
+{
+ int bl, br, bt, bb;
+
+ ewin->shape_x = EoGetX(ewin);
+ ewin->shape_y = EoGetY(ewin);
+
+ if (ewin->state.shaded)
+ {
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+ ewin->shape_w = EoGetW(ewin) - (bl + br);
+ ewin->shape_h = EoGetH(ewin) - (bt + bb);
+ }
+ else
+ {
+ ewin->shape_w = ewin->client.w;
+ ewin->shape_h = ewin->client.h;
+ }
+}
+
+int
+ActionMoveStart(EWin * ewin, int kbd, int constrained, int nogroup)
+{
+ EWin **gwins;
+ int i, num, cx, cy;
+
+ if (!ewin || ewin->state.inhibit_move)
+ return 0;
+
+ Mode_mr.ewin = ewin;
+ Mode_mr.using_kbd = kbd;
+ Mode_mr.nogroup = nogroup;
+
+ EventsGetXY(&cx, &cy);
+
+ SoundPlay(SOUND_MOVE_START);
+
+ if (kbd)
+ GrabKeyboardSet(EoGetWin(ewin));
+ else
+ GrabPointerSet(EoGetWin(ewin), ECSR_ACT_MOVE, 1);
+
+ Mode.mode = MODE_MOVE_PENDING;
+ Mode.constrained = constrained;
+
+ Mode_mr.start_x = Mode_mr.cur_x = cx;
+ Mode_mr.start_y = Mode_mr.cur_y = cy;
+
+ Mode_mr.win_x = Mode_mr.start_x - (EoGetX(ewin) + EoGetX(EoGetDesk(ewin)));
+ Mode_mr.win_y = Mode_mr.start_y - (EoGetY(ewin) + EoGetY(EoGetDesk(ewin)));
+
+ EwinRaise(ewin);
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE, nogroup
+ || Mode.move.swap, &num);
+
+ if (Conf.movres.mode_move < 0 || Conf.movres.mode_move > 5)
+ Conf.movres.mode_move = 0;
+ Mode_mr.mode = Conf.movres.mode_move;
+ if (num > 1 && Conf.movres.mode_move == 5)
+ Mode_mr.mode = 0;
+ Mode_mr.grab_server = _NeedServerGrab(Mode_mr.mode);
+
+ for (i = 0; i < num; i++)
+ {
+ EwinShapeSet(gwins[i]);
+ EwinOpFloatAt(gwins[i], OPSRC_USER, EoGetX(gwins[i]), EoGetY(gwins[i]));
+ if (Mode_mr.mode == 0)
+ {
+ ewin->state.moving = 1;
+ EwinUpdateOpacity(gwins[i]);
+ }
+ }
+ Efree(gwins);
+
+ Mode_mr.swapcoord_x = EoGetX(ewin);
+ Mode_mr.swapcoord_y = EoGetY(ewin);
+
+ return 0;
+}
+
+static int
+ActionMoveEnd(EWin * ewin)
+{
+ EWin **gwins;
+ int num, i;
+ Desk *d1, *d2;
+
+ if (ewin && ewin != Mode_mr.ewin)
+ return 0;
+
+ GrabKeyboardRelease();
+ GrabPointerRelease();
+
+ SoundPlay(SOUND_MOVE_STOP);
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ goto done;
+
+ ewin->state.show_coords = 0;
+
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE, Mode_mr.nogroup
+ || Mode.move.swap, &num);
+
+ if (Mode.mode == MODE_MOVE)
+ {
+ for (i = 0; i < num; i++)
+ DrawEwinShape(gwins[i], Mode_mr.mode,
+ gwins[i]->shape_x, gwins[i]->shape_y,
+ gwins[i]->client.w, gwins[i]->client.h, 2, i);
+ }
+ Mode.mode = MODE_NONE;
+
+ d2 = DesktopAt(Mode.events.mx, Mode.events.my);
+
+ for (i = 0; i < num; i++)
+ {
+ ewin = gwins[i];
+ d1 = EoGetDesk(ewin);
+ if (d2 == d1)
+ EwinOpUnfloatAt(ewin, OPSRC_USER, d2, ewin->shape_x, ewin->shape_y);
+ else
+ EwinOpUnfloatAt(ewin, OPSRC_USER, d2,
+ ewin->shape_x - (EoGetX(d2) - EoGetX(d1)),
+ ewin->shape_y - (EoGetY(d2) - EoGetY(d1)));
+ if (Mode_mr.mode == 0)
+ {
+ ewin->state.moving = 0;
+ EwinUpdateOpacity(ewin);
+ }
+ }
+
+ Efree(gwins);
+
+ ESync(ESYNC_MOVRES);
+
+ done:
+ Mode.mode = MODE_NONE;
+ Mode.move.swap = 0;
+ Mode.place.doing_manual = 0;
+
+ if (Mode_mr.grab_server)
+ {
+ FocusEnable(1);
+ EUngrabServer();
+ ModulesSignal(ESIGNAL_ANIMATION_RESUME, NULL);
+ }
+
+ return 0;
+}
+
+static int
+ActionMoveSuspend(void)
+{
+ EWin *ewin, **lst;
+ int i, num;
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ return 0;
+
+ if (Mode.mode == MODE_MOVE_PENDING)
+ return 0;
+
+ /* If non opaque undraw our boxes */
+ if (Mode_mr.grab_server)
+ {
+ lst = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE,
+ Mode_mr.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+ DrawEwinShape(ewin, Mode_mr.mode, ewin->shape_x,
+ ewin->shape_y, ewin->client.w, ewin->client.h, 3, i);
+ }
+ Efree(lst);
+
+ EUngrabServer();
+ }
+
+ return 0;
+}
+
+static int
+ActionMoveResume(void)
+{
+ EWin *ewin, **lst;
+ int i, num;
+ int x, y, fl, dx, dy;
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ return 0;
+
+ GrabPointerSet(EoGetWin(ewin), ECSR_ACT_MOVE, 1);
+
+ fl = (Mode_mr.mode == 5) ? 4 : 0;
+ if (Mode.mode == MODE_MOVE_PENDING)
+ {
+ Mode.mode = MODE_MOVE;
+ fl = 0; /* This is the first time we draw it */
+ }
+
+ if (Mode_mr.grab_server)
+ EGrabServer();
+
+ dx =
+ Mode.events.mx - Mode_mr.win_x - EoGetX(EoGetDesk(ewin)) - ewin->shape_x;
+ dy =
+ Mode.events.my - Mode_mr.win_y - EoGetY(EoGetDesk(ewin)) - ewin->shape_y;
+
+ /* Redraw any windows that were in "move mode" */
+ lst = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE,
+ Mode_mr.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+
+ if (!EoIsFloating(ewin))
+ continue;
+
+ x = ewin->shape_x + dx;
+ y = ewin->shape_y + dy;
+ DrawEwinShape(ewin, Mode_mr.mode, x, y,
+ ewin->client.w, ewin->client.h, fl, i);
+ }
+ Efree(lst);
+
+ return 0;
+}
+
+#define RD(h, v) (((h) << 8) + (v))
+#define RD_H(hv) (((hv) >> 8) & 0xff)
+#define RD_V(hv) (((hv) ) & 0xff)
+
+int
+ActionResizeStart(EWin * ewin, int kbd, int hv)
+{
+ int x, y, w, h, ww, hh, cx, cy;
+ unsigned int csr;
+
+ if (!ewin || ewin->state.inhibit_resize)
+ return 0;
+
+ Mode_mr.ewin = ewin;
+
+ EventsGetXY(&cx, &cy);
+
+ SoundPlay(SOUND_RESIZE_START);
+
+ if (Conf.movres.mode_resize < 0 || Conf.movres.mode_resize > 4)
+ Conf.movres.mode_resize = 0;
+ Mode_mr.mode = Conf.movres.mode_resize;
+ Mode_mr.using_kbd = kbd;
+ Mode_mr.grab_server = _NeedServerGrab(Mode_mr.mode);
+ if (Mode_mr.grab_server)
+ {
+ EGrabServer();
+ ModulesSignal(ESIGNAL_ANIMATION_SUSPEND, NULL);
+ /* Run idlers (stacking, border updates, ...) before drawing lines */
+ IdlersRun();
+ }
+ if (Mode_mr.mode == 0)
+ {
+ ewin->state.resizing = 1;
+ EwinUpdateOpacity(ewin);
+ }
+
+ switch (hv)
+ {
+ default:
+ case MODE_RESIZE:
+ Mode.mode = hv;
+ if (kbd)
+ {
+ Mode_mr.resize_detail = 0;
+ csr = ECSR_ACT_RESIZE_BR;
+ break;
+ }
+ x = cx - EoGetX(ewin);
+ y = cy - EoGetY(ewin);
+ w = EoGetW(ewin) >> 1;
+ h = EoGetH(ewin) >> 1;
+ ww = EoGetW(ewin) / 6;
+ hh = EoGetH(ewin) / 6;
+
+ csr = ECSR_ACT_RESIZE;
+ if ((x < w) && (y < h))
+ {
+ Mode_mr.resize_detail = RD(1, 1);
+ csr = ECSR_ACT_RESIZE_TL;
+ }
+ else if ((x >= w) && (y < h))
+ {
+ Mode_mr.resize_detail = RD(2, 1);
+ csr = ECSR_ACT_RESIZE_TR;
+ }
+ else if ((x < w) && (y >= h))
+ {
+ Mode_mr.resize_detail = RD(1, 2);
+ csr = ECSR_ACT_RESIZE_BL;
+ }
+ else if ((x >= w) && (y >= h))
+ {
+ Mode_mr.resize_detail = RD(2, 2);
+ csr = ECSR_ACT_RESIZE_BR;
+ }
+
+ /* The following four if statements added on 07/22/04 by Josh Holtrop.
+ * They allow strictly horizontal or vertical resizing when the
+ * cursor is towards the middle of an edge of a window. */
+ if ((abs(x - w) < (w >> 1)) && (y < hh))
+ {
+ Mode.mode = MODE_RESIZE_V;
+ Mode_mr.resize_detail = RD(0, 1);
+ csr = ECSR_ACT_RESIZE_V;
+ }
+ else if ((abs(x - w) < (w >> 1)) && (y > (EoGetH(ewin) - hh)))
+ {
+ Mode.mode = MODE_RESIZE_V;
+ Mode_mr.resize_detail = RD(0, 2);
+ csr = ECSR_ACT_RESIZE_V;
+ }
+ else if ((abs(y - h) < (h >> 1)) && (x < ww))
+ {
+ Mode.mode = MODE_RESIZE_H;
+ Mode_mr.resize_detail = RD(1, 0);
+ csr = ECSR_ACT_RESIZE_H;
+ }
+ else if ((abs(y - h) < (h >> 1)) && (x > (EoGetW(ewin) - ww)))
+ {
+ Mode.mode = MODE_RESIZE_H;
+ Mode_mr.resize_detail = RD(2, 0);
+ csr = ECSR_ACT_RESIZE_H;
+ }
+ break;
+
+ case MODE_RESIZE_H:
+ Mode.mode = hv;
+ x = cx - EoGetX(ewin);
+ w = EoGetW(ewin) >> 1;
+ if (x < w)
+ Mode_mr.resize_detail = RD(1, 0);
+ else
+ Mode_mr.resize_detail = RD(2, 0);
+ csr = ECSR_ACT_RESIZE_H;
+ break;
+
+ case MODE_RESIZE_V:
+ Mode.mode = hv;
+ y = cy - EoGetY(ewin);
+ h = EoGetH(ewin) >> 1;
+ if (y < h)
+ Mode_mr.resize_detail = RD(0, 1);
+ else
+ Mode_mr.resize_detail = RD(0, 2);
+ csr = ECSR_ACT_RESIZE_V;
+ break;
+ }
+
+ Mode_mr.start_x = Mode_mr.cur_x = cx;
+ Mode_mr.start_y = Mode_mr.cur_y = cy;
+ Mode_mr.win_x = EoGetX(ewin);
+ Mode_mr.win_y = EoGetY(ewin);
+ Mode_mr.win_w = ewin->client.w;
+ Mode_mr.win_h = ewin->client.h;
+
+ if (kbd)
+ GrabKeyboardSet(EoGetWin(ewin));
+ else
+ GrabPointerSet(EoGetWin(ewin), csr, 1);
+
+ EwinShapeSet(ewin);
+ ewin->state.show_coords = 1;
+ DrawEwinShape(ewin, Conf.movres.mode_resize, EoGetX(ewin), EoGetY(ewin),
+ ewin->client.w, ewin->client.h, 0, 0);
+
+ return 0;
+}
+
+static int
+ActionResizeEnd(EWin * ewin)
+{
+ if (ewin && ewin != Mode_mr.ewin)
+ return 0;
+
+ Mode.mode = MODE_NONE;
+
+ GrabKeyboardRelease();
+ GrabPointerRelease();
+
+ SoundPlay(SOUND_RESIZE_STOP);
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ goto done;
+
+ ewin->state.show_coords = 0;
+ DrawEwinShape(ewin, Conf.movres.mode_resize, ewin->shape_x, ewin->shape_y,
+ ewin->shape_w, ewin->shape_h, 2, 0);
+
+ if (Mode_mr.mode == 0)
+ {
+ ewin->state.resizing = 0;
+ EwinUpdateOpacity(ewin);
+ }
+ else
+ {
+ if (ewin->state.shaded)
+ EwinOpMove(ewin, OPSRC_USER, ewin->shape_x, ewin->shape_y);
+ else
+ EwinOpMoveResize(ewin, OPSRC_USER, ewin->shape_x, ewin->shape_y,
+ ewin->shape_w, ewin->shape_h);
+ }
+
+ ESync(ESYNC_MOVRES);
+
+ done:
+ if (Mode_mr.grab_server)
+ {
+ EUngrabServer();
+ ModulesSignal(ESIGNAL_ANIMATION_RESUME, NULL);
+ }
+
+ return 0;
+}
+
+static void
+ActionMoveHandleMotion(void)
+{
+ int dx, dy, dd;
+ EWin *ewin, **gwins, *ewin1;
+ int i, num;
+ int ndx, ndy;
+ int screen_snap_dist;
+ char jumpx, jumpy;
+ int min_dx, max_dx, min_dy, max_dy;
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ return;
+
+ EdgeCheckMotion(Mode.events.mx, Mode.events.my);
+
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE,
+ Mode_mr.nogroup || Mode.move.swap, &num);
+
+ if (Mode.mode == MODE_MOVE_PENDING)
+ {
+ if (Mode_mr.grab_server)
+ {
+ EGrabServer();
+ FocusEnable(0);
+ ModulesSignal(ESIGNAL_ANIMATION_SUSPEND, NULL);
+ }
+
+ if (Mode_mr.mode == 0 || num == 1)
+ ewin->state.show_coords = 1;
+
+ for (i = 0; i < num; i++)
+ {
+ ewin1 = gwins[i];
+ DrawEwinShape(ewin1, Mode_mr.mode, EoGetX(ewin1), EoGetY(ewin1),
+ ewin1->client.w, ewin1->client.h, 0, i);
+ if (Conf.movres.mode_move == 0)
+ Mode_mr.mode = 0;
+ }
+ Mode.mode = MODE_MOVE;
+ dx = Mode.events.mx - Mode_mr.start_x;
+ dy = Mode.events.my - Mode_mr.start_y;
+ }
+ else if (Mode.mode == MODE_MOVE)
+ {
+ dx = Mode.events.mx - Mode.events.px;
+ dy = Mode.events.my - Mode.events.py;
+ }
+ else
+ {
+ /* It should not be possible to get here. */
+ goto done;
+ }
+
+ jumpx = 0;
+ jumpy = 0;
+ min_dx = dx;
+ min_dy = dy;
+ max_dx = dx;
+ max_dy = dy;
+
+ for (i = 0; i < num; i++)
+ {
+ ndx = dx;
+ ndy = dy;
+ /* make our ewin resist other ewins around the place */
+ SnapEwin(gwins[i], dx, dy, &ndx, &ndy);
+ if ((dx < 0) && (ndx <= 0))
+ {
+ if (ndx > min_dx)
+ min_dx = ndx;
+ if (ndx < max_dx)
+ max_dx = ndx;
+ }
+ else if (ndx >= 0)
+ {
+ if (ndx < min_dx)
+ min_dx = ndx;
+ if (ndx > max_dx)
+ max_dx = ndx;
+ }
+ if ((dy < 0) && (ndy <= 0))
+ {
+ if (ndy > min_dy)
+ min_dy = ndy;
+ if (ndy < max_dy)
+ max_dy = ndy;
+ }
+ else if (ndy >= 0)
+ {
+ if (ndy < min_dy)
+ min_dy = ndy;
+ if (ndy > max_dy)
+ max_dy = ndy;
+ }
+ }
+ if (min_dx == dx)
+ ndx = max_dx;
+ else
+ ndx = min_dx;
+ if (min_dy == dy)
+ ndy = max_dy;
+ else
+ ndy = min_dy;
+
+ screen_snap_dist =
+ Mode.constrained ? (WinGetW(VROOT) +
+ WinGetH(VROOT)) : Conf.snap.screen_snap_dist;
+
+ for (i = 0; i < num; i++)
+ {
+ ewin1 = gwins[i];
+
+ /* jump out of snap horizontally */
+ dd = ewin1->req_x - ewin1->shape_x;
+ if (dd < 0)
+ dd = -dd;
+ if ((ndx != dx) &&
+ (((ewin1->shape_x == 0) &&
+ (dd > screen_snap_dist)) ||
+ ((ewin1->shape_x == (WinGetW(VROOT) - EoGetW(ewin1))) &&
+ (dd > screen_snap_dist)) ||
+ ((ewin1->shape_x != 0) &&
+ (ewin1->shape_x != (WinGetW(VROOT) - EoGetW(ewin1)) &&
+ (dd > Conf.snap.edge_snap_dist)))))
+ {
+ jumpx = 1;
+ ndx = ewin1->req_x - ewin1->shape_x + dx;
+ }
+
+ /* jump out of snap vertically */
+ dd = ewin1->req_y - ewin1->shape_y;
+ if (dd < 0)
+ dd = -dd;
+ if ((ndy != dy) &&
+ (((ewin1->shape_y == 0) &&
+ (dd > screen_snap_dist)) ||
+ ((ewin1->shape_y == (WinGetH(VROOT) - EoGetH(ewin1))) &&
+ (dd > screen_snap_dist)) ||
+ ((ewin1->shape_y != 0) &&
+ (ewin1->shape_y != (WinGetH(VROOT) - EoGetH(ewin1)) &&
+ (dd > Conf.snap.edge_snap_dist)))))
+ {
+ jumpy = 1;
+ ndy = ewin1->req_y - ewin1->shape_y + dy;
+ }
+ }
+
+ for (i = 0; i < num; i++)
+ {
+ ewin1 = gwins[i];
+
+ /* if its opaque move mode check to see if we have to float */
+ /* the window above all desktops (reparent to root) */
+ if (Mode_mr.mode == 0)
+ {
+ Desk *dsk;
+
+ dsk = EoGetDesk(ewin1);
+ DetermineEwinFloat(ewin1, ndx, ndy);
+ if (dsk != EoGetDesk(ewin1))
+ {
+ ewin1->shape_x += EoGetX(dsk);
+ ewin1->shape_y += EoGetY(dsk);
+ ewin1->req_x += EoGetX(dsk);
+ ewin1->req_y += EoGetY(dsk);
+ }
+ }
+
+ /* draw the new position of the window */
+ DrawEwinShape(ewin1, Mode_mr.mode,
+ ewin1->shape_x + ndx, ewin1->shape_y + ndy,
+ ewin1->client.w, ewin1->client.h, 1, i);
+
+ /* if we didnt jump the window after a resist at the edge */
+ /* reset the requested x to be the prev. requested + delta */
+ /* if we did jump set requested to current shape position */
+ ewin1->req_x = (jumpx) ? ewin1->shape_x : ewin1->req_x + dx;
+ ewin1->req_y = (jumpy) ? ewin1->shape_y : ewin1->req_y + dy;
+
+ /* swapping of group member locations: */
+ if (Mode.move.swap && GroupsGetSwapmove())
+ {
+ EWin **all_gwins, *ewin2;
+ int j, all_gwins_num;
+
+ all_gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_ANY, 0,
+ &all_gwins_num);
+
+ for (j = 0; j < all_gwins_num; j++)
+ {
+ ewin2 = all_gwins[j];
+
+ if (ewin1 == ewin2)
+ continue;
+
+ /* check for sufficient overlap and avoid flickering */
+ if (((ewin1->shape_x >= ewin2->shape_x &&
+ ewin1->shape_x <= ewin2->shape_x + EoGetW(ewin2) / 2 &&
+ dx <= 0) ||
+ (ewin1->shape_x <= ewin2->shape_x &&
+ ewin1->shape_x + EoGetW(ewin1) / 2 >= ewin2->shape_x &&
+ dx >= 0)) &&
+ ((ewin1->shape_y >= ewin2->shape_y &&
+ ewin1->shape_y <= ewin2->shape_y + EoGetH(ewin2) / 2 &&
+ dy <= 0) ||
+ (EoGetY(ewin1) <= EoGetY(ewin2) &&
+ ewin1->shape_y + EoGetH(ewin1) / 2 >= ewin2->shape_y &&
+ dy >= 0)))
+ {
+ int tmp_swapcoord_x;
+ int tmp_swapcoord_y;
+
+ tmp_swapcoord_x = Mode_mr.swapcoord_x;
+ tmp_swapcoord_y = Mode_mr.swapcoord_y;
+ Mode_mr.swapcoord_x = ewin2->shape_x;
+ Mode_mr.swapcoord_y = ewin2->shape_y;
+ EwinOpMove(ewin2, OPSRC_USER,
+ tmp_swapcoord_x, tmp_swapcoord_y);
+ break;
+ }
+ }
+
+ Efree(all_gwins);
+ }
+ }
+
+ done:
+ Efree(gwins);
+}
+
+static void
+ActionResizeHandleMotion(void)
+{
+ int x, y, w, h;
+ EWin *ewin;
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ return;
+
+ w = ewin->client.w;
+ h = ewin->client.h;
+ x = ewin->shape_x;
+ y = ewin->shape_y;
+
+ switch (RD_H(Mode_mr.resize_detail))
+ {
+ default:
+ break;
+ case 1: /* Left */
+ w = Mode_mr.win_w - (Mode.events.mx - Mode_mr.start_x);
+ ICCCM_SizeMatch(ewin, w, h, &w, &h);
+ x = Mode_mr.win_x + (Mode_mr.win_w - w);
+ break;
+ case 2: /* Right */
+ w = Mode_mr.win_w + (Mode.events.mx - Mode_mr.start_x);
+ ICCCM_SizeMatch(ewin, w, h, &w, &h);
+ break;
+ }
+
+ switch (RD_V(Mode_mr.resize_detail))
+ {
+ default:
+ break;
+ case 1: /* Top */
+ h = Mode_mr.win_h - (Mode.events.my - Mode_mr.start_y);
+ ICCCM_SizeMatch(ewin, w, h, &w, &h);
+ y = Mode_mr.win_y + (Mode_mr.win_h - h);
+ break;
+ case 2: /* Bottom */
+ h = Mode_mr.win_h + (Mode.events.my - Mode_mr.start_y);
+ ICCCM_SizeMatch(ewin, w, h, &w, &h);
+ break;
+ }
+
+ DrawEwinShape(ewin, Conf.movres.mode_resize, x, y, w, h, 1, 0);
+}
+
+void
+ActionsHandleKey(unsigned int key)
+{
+ EWin *ewin;
+ int resize, delta, end = 0;
+
+ ewin = Mode_mr.ewin;
+ if (!ewin)
+ return;
+
+ resize = Mode.mode == MODE_RESIZE ||
+ Mode.mode == MODE_RESIZE_H || Mode.mode == MODE_RESIZE_V;
+
+ Mode.events.px = Mode_mr.cur_x;
+ Mode.events.py = Mode_mr.cur_y;
+ delta = 5;
+
+ switch (key)
+ {
+ default:
+ return;
+ case XK_Escape:
+ Mode_mr.cur_x = Mode_mr.start_x;
+ Mode_mr.cur_y = Mode_mr.start_y;
+ case XK_Return:
+ end = 1;
+ break;
+
+ case XK_Left:
+ if (!RD_H(Mode_mr.resize_detail))
+ Mode_mr.resize_detail |= RD(1, 0);
+ if (resize && ewin->icccm.w_inc > delta)
+ delta = ewin->icccm.w_inc;
+ Mode_mr.cur_x -= delta;
+ break;
+ case XK_Right:
+ if (!RD_H(Mode_mr.resize_detail))
+ Mode_mr.resize_detail |= RD(2, 0);
+ if (resize && ewin->icccm.w_inc > delta)
+ delta = ewin->icccm.w_inc;
+ Mode_mr.cur_x += delta;
+ break;
+ case XK_Up:
+ if (!RD_V(Mode_mr.resize_detail))
+ Mode_mr.resize_detail |= RD(0, 1);
+ if (resize && ewin->icccm.h_inc > delta)
+ delta = ewin->icccm.h_inc;
+ Mode_mr.cur_y -= delta;
+ break;
+ case XK_Down:
+ if (!RD_V(Mode_mr.resize_detail))
+ Mode_mr.resize_detail |= RD(0, 2);
+ if (resize && ewin->icccm.h_inc > delta)
+ delta = ewin->icccm.h_inc;
+ Mode_mr.cur_y += delta;
+ break;
+ }
+
+ Mode_mr.using_kbd = 2;
+ Mode.events.mx = Mode_mr.cur_x;
+ Mode.events.my = Mode_mr.cur_y;
+
+ switch (Mode.mode)
+ {
+ case MODE_MOVE_PENDING:
+ case MODE_MOVE:
+ ActionMoveHandleMotion();
+ if (end)
+ ActionMoveEnd(NULL);
+ break;
+
+ case MODE_RESIZE:
+ case MODE_RESIZE_H:
+ case MODE_RESIZE_V:
+ ActionResizeHandleMotion();
+ if (end)
+ ActionResizeEnd(NULL);
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+ActionsHandleMotion(void)
+{
+ switch (Mode.mode)
+ {
+ case MODE_MOVE_PENDING:
+ case MODE_MOVE:
+ ActionMoveHandleMotion();
+ break;
+
+ case MODE_RESIZE:
+ case MODE_RESIZE_H:
+ case MODE_RESIZE_V:
+ ActionResizeHandleMotion();
+ break;
+
+ default:
+ break;
+ }
+}
+
+int
+ActionsSuspend(void)
+{
+ switch (Mode.mode)
+ {
+ case MODE_MOVE_PENDING:
+ case MODE_MOVE:
+ ActionMoveSuspend();
+ break;
+ case MODE_RESIZE:
+ case MODE_RESIZE_H:
+ case MODE_RESIZE_V:
+ ActionResizeEnd(NULL);
+ break;
+ }
+
+ return 0;
+}
+
+int
+ActionsResume(void)
+{
+ switch (Mode.mode)
+ {
+ case MODE_MOVE_PENDING:
+ case MODE_MOVE:
+ ActionMoveResume();
+ break;
+ }
+
+ return 0;
+}
+
+int
+ActionsEnd(EWin * ewin)
+{
+ int did_end = 1;
+
+ switch (Mode.mode)
+ {
+ case MODE_RESIZE:
+ case MODE_RESIZE_H:
+ case MODE_RESIZE_V:
+ ActionResizeEnd(ewin);
+ Mode.action_inhibit = 1;
+ break;
+
+ case MODE_MOVE_PENDING:
+ case MODE_MOVE:
+ ActionMoveEnd(ewin);
+ Mode.action_inhibit = 1;
+ break;
+
+ default:
+ did_end = 0;
+ break;
+ }
+
+ return did_end;
+}
+
+void
+SlideEwinTo(EWin * ewin, int fx, int fy, int tx, int ty, int speed, int mode)
+{
+ SlideEwinsTo(&ewin, &fx, &fy, &tx, &ty, 1, speed, mode);
+}
+
+void
+SlideEwinsTo(EWin ** ewin, int *fx, int *fy, int *tx, int *ty, int num_wins,
+ int speed, int mode)
+{
+ int k, x, y, w, h, i;
+ char firstlast;
+
+ if (num_wins <= 0)
+ return;
+
+ firstlast = 0;
+ FocusEnable(0);
+ SoundPlay(SOUND_WINDOW_SLIDE);
+
+ Mode_mr.grab_server = _NeedServerGrab(mode);
+ if (Mode_mr.grab_server)
+ EGrabServer();
+
+ ETimedLoopInit(0, 1024, speed);
+ for (k = 0; k <= 1024;)
+ {
+ for (i = 0; i < num_wins; i++)
+ {
+ if (!ewin[i])
+ continue;
+
+ x = ((fx[i] * (1024 - k)) + (tx[i] * k)) >> 10;
+ y = ((fy[i] * (1024 - k)) + (ty[i] * k)) >> 10;
+ w = ewin[i]->client.w;
+ h = ewin[i]->client.h;
+ if (mode == 0)
+ EoMove(ewin[i], x, y);
+ else
+ DrawEwinShape(ewin[i], mode, x, y, w, h, firstlast, i);
+ firstlast = 1;
+ }
+ /* We may loop faster here than originally intended */
+ k = ETimedLoopNext();
+ }
+
+ for (i = 0; i < num_wins; i++)
+ {
+ if (!ewin[i])
+ continue;
+
+ ewin[i]->state.animated = 0;
+
+ if (mode > 0)
+ DrawEwinShape(ewin[i], mode, tx[i], ty[i], ewin[i]->client.w,
+ ewin[i]->client.h, 2, i);
+ EwinMove(ewin[i], tx[i], ty[i]);
+ }
+
+ FocusEnable(1);
+
+ if (Mode_mr.grab_server)
+ EUngrabServer();
+
+ SoundPlay(SOUND_WINDOW_SLIDE_END);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "ewins.h"
+#include "hints.h"
+
+/* Motif window hints */
+#define MWM_HINTS_FUNCTIONS (1L << 0)
+#define MWM_HINTS_DECORATIONS (1L << 1)
+#define MWM_HINTS_INPUT_MODE (1L << 2)
+#define MWM_HINTS_STATUS (1L << 3)
+
+/* bit definitions for MwmHints.functions */
+#define MWM_FUNC_ALL (1L << 0)
+#define MWM_FUNC_RESIZE (1L << 1)
+#define MWM_FUNC_MOVE (1L << 2)
+#define MWM_FUNC_MINIMIZE (1L << 3)
+#define MWM_FUNC_MAXIMIZE (1L << 4)
+#define MWM_FUNC_CLOSE (1L << 5)
+
+/* bit definitions for MwmHints.decorations */
+#define MWM_DECOR_ALL (1L << 0)
+#define MWM_DECOR_BORDER (1L << 1)
+#define MWM_DECOR_RESIZEH (1L << 2)
+#define MWM_DECOR_TITLE (1L << 3)
+#define MWM_DECOR_MENU (1L << 4)
+#define MWM_DECOR_MINIMIZE (1L << 5)
+#define MWM_DECOR_MAXIMIZE (1L << 6)
+
+/* bit definitions for MwmHints.inputMode */
+#define MWM_INPUT_MODELESS 0
+#define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1
+#define MWM_INPUT_SYSTEM_MODAL 2
+#define MWM_INPUT_FULL_APPLICATION_MODAL 3
+
+#define PROP_MWM_HINTS_ELEMENTS 5
+#define PROP_MWM_HINTS_ELEMENTS_MIN 4
+
+static Atom _MOTIF_WM_HINTS = 0;
+
+/* Motif window hints */
+typedef struct {
+ long flags;
+ long functions;
+ long decorations;
+ long inputMode;
+ long status;
+} MWMHints;
+
+void
+MWM_GetHints(EWin * ewin, Atom atom_change)
+{
+ int fmt;
+ Atom a2;
+ unsigned long num, end;
+ MWMHints *mwmhints;
+ unsigned char *puc;
+
+ if (EwinIsInternal(ewin))
+ return;
+
+ if (!_MOTIF_WM_HINTS)
+ _MOTIF_WM_HINTS = EInternAtom("_MOTIF_WM_HINTS");
+
+ if (atom_change && atom_change != _MOTIF_WM_HINTS)
+ return;
+
+ ewin->mwm.valid = 1;
+ ewin->mwm.decor_border = 1;
+ ewin->mwm.decor_resizeh = 1;
+ ewin->mwm.decor_title = 1;
+ ewin->mwm.decor_menu = 1;
+ ewin->mwm.decor_minimize = 1;
+ ewin->mwm.decor_maximize = 1;
+ ewin->mwm.func_resize = 1;
+ ewin->mwm.func_move = 1;
+ ewin->mwm.func_minimize = 1;
+ ewin->mwm.func_maximize = 1;
+ ewin->mwm.func_close = 1;
+
+ puc = NULL;
+ XGetWindowProperty(disp, EwinGetClientXwin(ewin), _MOTIF_WM_HINTS, 0, 20,
+ False, _MOTIF_WM_HINTS, &a2, &fmt, &num, &end, &puc);
+ mwmhints = (MWMHints *) puc;
+ if (!mwmhints)
+ return;
+
+ if (num < PROP_MWM_HINTS_ELEMENTS_MIN)
+ goto done;
+
+ if (mwmhints->flags & MWM_HINTS_DECORATIONS)
+ {
+ ewin->mwm.decor_border = 0;
+ ewin->mwm.decor_resizeh = 0;
+ ewin->mwm.decor_title = 0;
+ ewin->mwm.decor_menu = 0;
+ ewin->mwm.decor_minimize = 0;
+ ewin->mwm.decor_maximize = 0;
+ if (mwmhints->decorations & MWM_DECOR_ALL)
+ {
+ ewin->mwm.decor_border = 1;
+ ewin->mwm.decor_resizeh = 1;
+ ewin->mwm.decor_title = 1;
+ ewin->mwm.decor_menu = 1;
+ ewin->mwm.decor_minimize = 1;
+ ewin->mwm.decor_maximize = 1;
+ }
+ if (mwmhints->decorations & MWM_DECOR_BORDER)
+ ewin->mwm.decor_border = 1;
+ if (mwmhints->decorations & MWM_DECOR_RESIZEH)
+ ewin->mwm.decor_resizeh = 1;
+ if (mwmhints->decorations & MWM_DECOR_TITLE)
+ ewin->mwm.decor_title = 1;
+ if (mwmhints->decorations & MWM_DECOR_MENU)
+ ewin->mwm.decor_menu = 1;
+ if (mwmhints->decorations & MWM_DECOR_MINIMIZE)
+ ewin->mwm.decor_minimize = 1;
+ if (mwmhints->decorations & MWM_DECOR_MAXIMIZE)
+ ewin->mwm.decor_maximize = 1;
+ }
+
+ if (mwmhints->flags & MWM_HINTS_FUNCTIONS)
+ {
+ ewin->mwm.func_resize = 0;
+ ewin->mwm.func_move = 0;
+ ewin->mwm.func_minimize = 0;
+ ewin->mwm.func_maximize = 0;
+ ewin->mwm.func_close = 0;
+ if (mwmhints->functions & MWM_FUNC_ALL)
+ {
+ ewin->mwm.func_resize = 1;
+ ewin->mwm.func_move = 1;
+ ewin->mwm.func_minimize = 1;
+ ewin->mwm.func_maximize = 1;
+ ewin->mwm.func_close = 1;
+ }
+ if (mwmhints->functions & MWM_FUNC_RESIZE)
+ ewin->mwm.func_resize = 1;
+ if (mwmhints->functions & MWM_FUNC_MOVE)
+ ewin->mwm.func_move = 1;
+ if (mwmhints->functions & MWM_FUNC_MINIMIZE)
+ ewin->mwm.func_minimize = 1;
+ if (mwmhints->functions & MWM_FUNC_MAXIMIZE)
+ ewin->mwm.func_maximize = 1;
+ if (mwmhints->functions & MWM_FUNC_CLOSE)
+ ewin->mwm.func_close = 1;
+ }
+
+ if (!ewin->mwm.decor_title && !ewin->mwm.decor_border)
+ ewin->props.no_border = 1;
+
+ done:
+ if (mwmhints)
+ XFree(mwmhints);
+}
+
+void
+MWM_SetInfo(void)
+{
+ Atom a1;
+ struct {
+ long flags;
+ Window win;
+ } mwminfo;
+
+ a1 = EInternAtom("_MOTIF_WM_INFO");
+ mwminfo.flags = 2;
+ mwminfo.win = WinGetXwin(VROOT);
+ XChangeProperty(disp, WinGetXwin(VROOT), a1, a1, 32, PropModeReplace,
+ (unsigned char *)&mwminfo, 2);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "backgrounds.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "ecompmgr.h"
+#include "emodule.h"
+#include "ewins.h"
+#include "focus.h"
+#include "groups.h"
+#include "hints.h"
+#include "hiwin.h"
+#include "iclass.h"
+#include "menus.h"
+#include "settings.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "xwin.h"
+
+#define DEBUG_PAGER 0
+#if DEBUG_PAGER
+#define Dprintf(fmt...) if(EDebug(EDBUG_TYPE_PAGER))Eprintf(fmt)
+#else
+#define Dprintf(fmt...)
+#endif
+
+#define USE_PAGER_BACKGROUND_CACHE 1
+#define HIQ ((Conf_pagers.hiq) ? 0x200 : 0x100)
+
+#define PAGER_MODE_SIMPLE 0
+#define PAGER_MODE_SNAP 1
+#define PAGER_MODE_LIVE 2
+
+#define PAGER_UPD_EWIN_GEOM 0
+#define PAGER_UPD_EWIN_GONE 1
+#define PAGER_UPD_EWIN_DAMAGE 2
+
+#define EwinGetVX(ew) (ew->vx)
+#define EwinGetVY(ew) (ew->vy)
+#define EwinGetVX2(ew) (ew->vx + EoGetW(ew))
+#define EwinGetVY2(ew) (ew->vy + EoGetH(ew))
+
+static struct {
+ char enable;
+ char zoom;
+ char title;
+ char hiq;
+ int mode;
+ int scanspeed;
+ int sel_button;
+ int win_button;
+ int menu_button;
+} Conf_pagers;
+
+static struct {
+ int zoom;
+ Idler *idler;
+ char update_pending;
+ char timer_pending;
+} Mode_pagers;
+
+typedef struct {
+ EWin *ewin;
+ Win win;
+ int w, h;
+ char *name;
+ Pixmap bgpmap;
+ Desk *dsk;
+ int dw, dh;
+ int screen_w, screen_h;
+ int update_phase;
+ Win sel_win;
+ Timer *scan_timer;
+
+ /* State flags */
+ char do_newbg;
+ char do_update;
+ int x1, y1, x2, y2;
+ float scale;
+ unsigned int serial;
+ int serdif;
+} Pager;
+
+static void PagerScanCancel(Pager * p);
+static int PagerScanTimeout(void *data);
+static void PagerCheckUpdate(Pager * p, void *prm);
+static void PagerUpdateEwinsFromPager(Pager * p);
+static void PagerHiwinHide(void);
+static void PagerEvent(Win win, XEvent * ev, void *prm);
+static void PagerHiwinEvent(Win win, XEvent * ev, void *prm);
+
+static Ecore_List *pager_list = NULL;
+
+static Hiwin *hiwin = NULL;
+
+static int
+PagersGetMode(void)
+{
+ int mode = Conf_pagers.mode;
+
+ if (mode == PAGER_MODE_LIVE && !ECompMgrIsActive())
+ mode = PAGER_MODE_SNAP;
+
+ return mode;
+}
+
+static Pager *
+PagerCreate(void)
+{
+ Pager *p;
+
+ if (!Conf_pagers.enable)
+ return NULL;
+
+ p = ECALLOC(Pager, 1);
+ if (!p)
+ return NULL;
+
+ if (!pager_list)
+ pager_list = ecore_list_new();
+ ecore_list_append(pager_list, p);
+
+ p->name = NULL;
+ p->win = ECreateClientWindow(VROOT, 0, 0, 1, 1);
+ EventCallbackRegister(p->win, 0, PagerEvent, p);
+ p->sel_win = ECreateWindow(p->win, 0, 0, 1, 1, 0);
+
+ return p;
+}
+
+static void
+PagerDestroy(Pager * p)
+{
+ ecore_list_node_remove(pager_list, p);
+
+ PagerScanCancel(p);
+ Efree(p->name);
+ PagerHiwinHide();
+ if (p->bgpmap != None)
+ EFreePixmap(p->bgpmap);
+
+ Efree(p);
+}
+
+static void
+PagerScanTrig(Pager * p)
+{
+ if (p->scan_timer || Conf_pagers.scanspeed <= 0)
+ return;
+
+ TIMER_ADD(p->scan_timer, 1 / ((double)Conf_pagers.scanspeed),
+ PagerScanTimeout, p);
+}
+
+static void
+PagerScanCancel(Pager * p)
+{
+ TIMER_DEL(p->scan_timer);
+}
+
+static int
+PagerScanTimeout(void *data)
+{
+ Pager *p;
+ EWin *ewin;
+ int y, y2, phase, cx, cy, ww, hh, xx, yy;
+ static int offsets[8] = { 0, 4, 2, 6, 1, 5, 3, 7 };
+ int pager_mode = PagersGetMode();
+
+ p = (Pager *) data;
+
+ if (pager_mode != PAGER_MODE_SNAP)
+ goto nomore;
+
+ ewin = p->ewin;
+ if (!ewin || !EoIsShown(ewin))
+ goto nomore;
+ if (p->dsk != DesksGetCurrent())
+ goto nomore;
+ if (ewin->state.visibility == VisibilityFullyObscured)
+ goto nomore;
+
+ if (Conf_pagers.scanspeed <= 0)
+ goto nomore;
+
+ if (Mode.mode != MODE_NONE)
+ goto nomore;
+
+ DeskCurrentGetArea(&cx, &cy);
+ ww = p->dw;
+ hh = p->dh;
+ xx = cx * ww;
+ yy = cy * hh;
+ phase = p->update_phase;
+ if (ww <= 0 || hh <= 0)
+ goto nomore;
+
+#if 0
+ /* Due to a bug in imlib2 <= 1.2.0 we have to scan left->right in stead
+ * of top->bottom, at least for now. */
+ y = ((phase & 0xfffffff8) + offsets[phase % 8]) % hh;
+ y2 = (y * WinGetH(VROOT)) / hh;
+
+ ScaleRect(VROOT, WinGetXwin(VROOT), p->win, WinGetPmap(p->win), 0,
+ y2, WinGetW(VROOT), WinGetH(VROOT) / hh, xx, yy + y, ww, 1, HIQ);
+ EClearArea(p->win, xx, yy + y, ww, 1);
+ y2 = p->h;
+#else
+ y = ((phase & 0xfffffff8) + offsets[phase % 8]) % ww;
+ y2 = (y * WinGetW(VROOT)) / ww;
+
+ ScaleRect(VROOT, WinGetXwin(VROOT), p->win, WinGetPmap(p->win), y2,
+ 0, WinGetW(VROOT) / ww, WinGetH(VROOT), xx + y, yy, 1, hh, HIQ);
+ EClearArea(p->win, xx + y, yy, 1, hh);
+ y2 = p->w;
+#endif
+ p->update_phase++;
+ if (p->update_phase >= y2)
+ {
+ PagerUpdateEwinsFromPager(p);
+ p->update_phase = 0;
+ }
+
+ TimerSetInterval(p->scan_timer, 1 / ((double)Conf_pagers.scanspeed));
+ return 1;
+
+ nomore:
+ p->scan_timer = NULL;
+ return 0;
+}
+
+#if 0 /* FIXME - Remove? */
+static void
+PagerHiwinUpdate(Hiwin * phi, Pager * p __UNUSED__, EWin * ewin)
+{
+ EImage *im;
+
+ if (!EoIsShown(phi) || !ewin->mini_pmm.pmap)
+ return;
+
+ im = EImageGrabDrawable(ewin->mini_pmm.pmap, None, 0, 0,
+ ewin->mini_w, ewin->mini_h, 0);
+ EImageRenderOnDrawable(im, EoGetWin(phi), 0, 0, 0, EoGetW(phi), EoGetH(phi));
+ EImageDecache(im);
+}
+#endif
+
+static void
+PagerEwinUpdateMini(Pager * p, EWin * ewin)
+{
+ int w, h, update, use_iclass, serdif;
+ Drawable draw;
+ int pager_mode = PagersGetMode();
+
+ w = (EoGetW(ewin) * p->dw) / WinGetW(VROOT);
+ h = (EoGetH(ewin) * p->dh) / WinGetH(VROOT);
+
+ if (w < 1)
+ w = 1;
+ if (h < 1)
+ h = 1;
+
+ serdif = EoGetSerial(ewin) - p->serial;
+
+ update = 0;
+ if (!ewin->mini_pmm.pmap)
+ update = 1;
+ if (ewin->mini_w != w || ewin->mini_h != h)
+ update = 1;
+
+ if (serdif > 0 && ewin->type != EWIN_TYPE_PAGER &&
+ pager_mode == PAGER_MODE_LIVE && Mode.mode == 0)
+ update = 1;
+ if (serdif > p->serdif)
+ p->serdif = serdif;
+
+ if (!update)
+ return;
+
+ Dprintf("PagerEwinUpdateMini %#lx/%#lx wxh=%dx%d ser=%#x/%#x dif=%d: %s\n",
+ EwinGetClientXwin(ewin), EoGetXwin(ewin), w, h,
+ EoGetSerial(ewin), p->serial, serdif, EwinGetTitle(ewin));
+
+ p->do_update = 1;
+
+ FreePmapMask(&ewin->mini_pmm);
+
+ ewin->mini_w = w;
+ ewin->mini_h = h;
+ ewin->mini_pmm.type = 0;
+ ewin->mini_pmm.pmap = ECreatePixmap(p->win, w, h, 0);
+
+ draw = None;
+ if (pager_mode != PAGER_MODE_SIMPLE)
+ {
+ draw = EoGetPixmap(ewin);
+ if (draw == None && EwinIsOnScreen(ewin))
+ draw = EoGetXwin(ewin);
+ }
+ use_iclass = draw == None;
+
+ if (use_iclass)
+ {
+ ImageClass *ic;
+
+ ic = ImageclassFind("PAGER_WIN", 1);
+ ImageclassApplySimple(ic, p->win, ewin->mini_pmm.pmap,
+ STATE_NORMAL, 0, 0, w, h);
+ Dprintf("Use Iclass, pmap=%#lx\n", ewin->mini_pmm.pmap);
+ }
+ else
+ {
+ ScaleRect(EoGetWin(ewin), draw, p->win, ewin->mini_pmm.pmap,
+ 0, 0, EoGetW(ewin), EoGetH(ewin), 0, 0, w, h, HIQ);
+ Dprintf("Grab scaled, pmap=%#lx\n", ewin->mini_pmm.pmap);
+ }
+
+#if 0 /* FIXME - Remove? */
+ if (hiwin && ewin == hiwin->ewin)
+ PagerHiwinUpdate(hiwin, p, ewin);
+#endif
+}
+
+static void
+doPagerUpdate(Pager * p)
+{
+ int x, y, ax, ay, cx, cy, vx, vy;
+ GC gc = None;
+ EWin *const *lst;
+ int i, num, update_screen_included, update_screen_only;
+ int pager_mode = PagersGetMode();
+ Pixmap pmap;
+
+ p->update_phase = 0;
+ DesksGetAreaSize(&ax, &ay);
+ DeskGetArea(p->dsk, &cx, &cy);
+ vx = cx * WinGetW(VROOT);
+ vy = cy * WinGetH(VROOT);
+
+ update_screen_included = update_screen_only = 0;
+ if (pager_mode == PAGER_MODE_SNAP && p->dsk == DesksGetCurrent()
+ && Mode.mode == 0)
+ {
+ /* Update from screen unless update area is entirely off-screen */
+ if (!(p->x2 <= vx || p->y2 <= vy ||
+ p->x1 >= vx + WinGetW(VROOT) || p->y1 >= vy + WinGetH(VROOT)))
+ update_screen_included = 1;
+
+ /* Check if update area is entirely on-screen */
+ if (p->x1 >= vx && p->y1 >= vy &&
+ p->x2 <= vx + WinGetW(VROOT) && p->y2 <= vy + WinGetH(VROOT))
+ update_screen_only = 1;
+ }
+ p->x1 = p->y1 = 99999;
+ p->x2 = p->y2 = -99999;
+
+ pmap = EGetWindowBackgroundPixmap(p->win);
+
+ if (update_screen_only)
+ goto do_screen_update;
+
+ lst = EwinListGetForDesk(&num, p->dsk);
+ for (i = num - 1; i >= 0; i--)
+ {
+ EWin *ewin;
+
+ ewin = lst[i];
+ if (!EoIsShown(ewin))
+ continue;
+
+ PagerEwinUpdateMini(p, ewin);
+ }
+ if (p->serdif > 0)
+ p->serial += p->serdif;
+ p->serdif = 0;
+
+ if (!p->do_update)
+ return;
+ p->do_update = 0;
+
+ gc = EXCreateGC(pmap, 0, NULL);
+ if (gc == None)
+ return;
+
+ Dprintf("doPagerUpdate %d: Repaint\n", p->dsk->num);
+ for (y = 0; y < ay; y++)
+ {
+ for (x = 0; x < ax; x++)
+ {
+#if 0 /* Skip? */
+ if (update_screen_included && x == cx && y == cy)
+ continue;
+#endif
+ XCopyArea(disp, p->bgpmap, pmap, gc, 0, 0, p->dw, p->dh,
+ x * p->dw, y * p->dh);
+ }
+ }
+
+ for (i = num - 1; i >= 0; i--)
+ {
+ EWin *ewin;
+ int wx, wy, ww, wh;
+
+ ewin = lst[i];
+ if (!EoIsShown(ewin))
+ continue;
+
+ wx = (EwinGetVX(ewin) * p->dw) / WinGetW(VROOT);
+ wy = (EwinGetVY(ewin) * p->dh) / WinGetH(VROOT);
+ ww = (EoGetW(ewin) * p->dw) / WinGetW(VROOT);
+ wh = (EoGetH(ewin) * p->dh) / WinGetH(VROOT);
+
+ if (ewin->mini_pmm.pmap)
+ {
+ if (ewin->mini_pmm.mask)
+ {
+ XSetClipMask(disp, gc, ewin->mini_pmm.mask);
+ XSetClipOrigin(disp, gc, wx, wy);
+ }
+ XCopyArea(disp, ewin->mini_pmm.pmap, pmap, gc, 0, 0,
+ ww, wh, wx, wy);
+ if (ewin->mini_pmm.mask)
+ XSetClipMask(disp, gc, None);
+ }
+ else
+ {
+ XSetForeground(disp, gc, Dpy.pixel_black);
+ XDrawRectangle(disp, pmap, gc, wx - 1, wy - 1, ww + 1, wh + 1);
+ XSetForeground(disp, gc, Dpy.pixel_white);
+ XFillRectangle(disp, pmap, gc, wx, wy, ww, wh);
+ }
+ }
+
+ if (!update_screen_included)
+ {
+ EClearWindow(p->win);
+ goto done;
+ }
+
+ do_screen_update:
+ Dprintf("doPagerUpdate %d: Snap screen\n", p->dsk->num);
+ /* Update pager area by snapshotting entire screen */
+ ScaleRect(VROOT, WinGetXwin(VROOT), p->win, pmap, 0, 0,
+ WinGetW(VROOT), WinGetH(VROOT), cx * p->dw, cy * p->dh,
+ p->dw, p->dh, HIQ);
+
+ EClearWindow(p->win);
+
+ /* Update ewin snapshots */
+ PagerUpdateEwinsFromPager(p);
+
+ done:
+ if (gc != None)
+ EXFreeGC(gc);
+}
+
+static void
+PagerUpdate(Pager * p, int why, int x1, int y1, int x2, int y2)
+{
+ if (!Conf_pagers.enable)
+ return;
+
+ if (p->x1 > x1)
+ p->x1 = x1;
+ if (p->y1 > y1)
+ p->y1 = y1;
+ if (p->x2 < x2)
+ p->x2 = x2;
+ if (p->y2 < y2)
+ p->y2 = y2;
+
+ p->do_update = 1;
+ Mode_pagers.update_pending |= 1 << why;
+}
+
+static void
+PagerReconfigure(Pager * p, int apply)
+{
+ int ax, ay, w, h, dx, dy;
+ double aspect, f;
+
+ DesksGetAreaSize(&ax, &ay);
+
+ aspect = ((double)WinGetW(VROOT)) / ((double)WinGetH(VROOT));
+
+ dx = 2;
+ for (;;)
+ {
+ f = dx / aspect;
+ dy = (int)(f + .5);
+ f -= (double)dy;
+ if (f < 0)
+ f = -f;
+ if (f < .1)
+ break;
+ if (dx >= 8)
+ break;
+ dx += 1;
+ }
+
+ ICCCM_SetSizeConstraints(p->ewin,
+ WinGetW(VROOT) / 64 * ax,
+ WinGetH(VROOT) / 64 * ay,
+ WinGetW(VROOT) / 4 * ax,
+ WinGetH(VROOT) / 4 * ay, 0, 0, dx * ax, dy * ay,
+ aspect * ((double)ax / (double)ay),
+ aspect * ((double)ax / (double)ay));
+
+ if (apply)
+ {
+ w = (int)((double)ax * (double)WinGetW(VROOT) / (double)p->scale + .5);
+ h = (int)((double)ay * (double)WinGetH(VROOT) / (double)p->scale + .5);
+ EwinResize(p->ewin, w + (dx * ax) / 2, h + (dy * ay) / 2);
+ EwinReposition(p->ewin);
+ }
+}
+
+static void
+PagerUpdateBg(Pager * p)
+{
+ Pixmap pmap;
+ GC gc;
+ Background *bg;
+ ImageClass *ic;
+ int pager_mode = PagersGetMode();
+
+ p->x1 = p->y1 = 0;
+ p->x2 = p->y2 = 99999;
+
+ pmap = p->bgpmap;
+ if (pmap != None)
+ EFreePixmap(pmap);
+ pmap = p->bgpmap = ECreatePixmap(p->win, p->dw, p->dh, 0);
+
+ bg = DeskBackgroundGet(p->dsk);
+ if (pager_mode != PAGER_MODE_SIMPLE && bg)
+ {
+#if USE_PAGER_BACKGROUND_CACHE
+ char s[4096];
+ char *uniq;
+ EImage *im;
+
+ uniq = BackgroundGetUniqueString(bg);
+ Esnprintf(s, sizeof(s), "%s/cached/pager/%s.%i.%i.%s.png",
+ EDirUserCache(), BackgroundGetName(bg), p->dw, p->dh, uniq);
+ Efree(uniq);
+
+ im = EImageLoad(s);
+ if (im)
+ {
+ EImageRenderOnDrawable(im, p->win, pmap, 0, 0, 0, p->dw, p->dh);
+ EImageDecache(im);
+ }
+ else
+ {
+#endif
+ BackgroundApplyPmap(bg, p->win, pmap, p->dw, p->dh);
+#if USE_PAGER_BACKGROUND_CACHE
+ im = EImageGrabDrawable(pmap, None, 0, 0, p->dw, p->dh, 0);
+ EImageSave(im, s);
+ EImageDecache(im);
+ }
+#endif
+ return;
+ }
+
+ if (pager_mode != PAGER_MODE_SIMPLE && p->dsk->bg.pmap)
+ {
+ ScaleTile(VROOT, p->dsk->bg.pmap, p->win, pmap,
+ 0, 0, p->dw, p->dh, HIQ);
+ return;
+ }
+
+ ic = ImageclassFind("PAGER_BACKGROUND", 1);
+ if (ic)
+ {
+ ImageclassApplySimple(ic, p->win, pmap, STATE_NORMAL,
+ 0, 0, p->dw, p->dh);
+ return;
+ }
+
+ gc = EXCreateGC(pmap, 0, NULL);
+ if (gc == None)
+ return;
+
+ XSetForeground(disp, gc, Dpy.pixel_black);
+ XDrawRectangle(disp, pmap, gc, 0, 0, p->dw, p->dh);
+ XSetForeground(disp, gc, Dpy.pixel_white);
+ XFillRectangle(disp, pmap, gc, 1, 1, p->dw - 2, p->dh - 2);
+
+ EXFreeGC(gc);
+}
+
+static void
+_PagerEwinInit(EWin * ewin)
+{
+ Pager *p = (Pager *) ewin->data;
+ char s[128];
+
+ Esnprintf(s, sizeof(s), "Pager-%i", p->dsk->num);
+ EwinSetTitle(ewin, s);
+ Esnprintf(s, sizeof(s), "%i", p->dsk->num);
+ EwinSetClass(ewin, s, "Enlightenment_Pager");
+
+ ewin->props.skip_ext_task = 1;
+ ewin->props.skip_ext_pager = 1;
+ ewin->props.skip_focuslist = 1;
+ ewin->props.skip_winlist = 1;
+ EwinInhSetWM(ewin, focus, 1);
+ ewin->props.autosave = 1;
+
+ EoSetSticky(ewin, 1);
+}
+
+static void
+_PagerEwinMoveResize(EWin * ewin, int resize __UNUSED__)
+{
+ Pager *p = (Pager *) ewin->data;
+ int w, h;
+ int ax, ay, cx, cy;
+ ImageClass *ic;
+
+ if (!Conf_pagers.enable || !p || Mode.mode != MODE_NONE)
+ return;
+
+ w = ewin->client.w;
+ h = ewin->client.h;
+ if ((w == p->w && h == p->h) || w <= 1 || h <= 1)
+ return;
+
+ DesksGetAreaSize(&ax, &ay);
+
+ p->w = w;
+ p->h = h;
+ p->dw = w / ax;
+ p->dh = h / ay;
+
+ if (p->scale <= 0. || Mode.op_source == OPSRC_USER)
+ p->scale = ((float)WinGetW(VROOT) / p->dw +
+ (float)WinGetH(VROOT) / p->dh) / 2;
+
+ p->do_newbg = 1;
+ PagerCheckUpdate(p, NULL);
+
+ ic = ImageclassFind("PAGER_SEL", 0);
+ if (ic)
+ {
+ DeskGetArea(p->dsk, &cx, &cy);
+ EMoveResizeWindow(p->sel_win, cx * p->dw, cy * p->dh, p->dw, p->dh);
+ ImageclassApply(ic, p->sel_win, 0, 0, STATE_NORMAL, ST_PAGER);
+ }
+}
+
+static void
+_PagerEwinClose(EWin * ewin)
+{
+ PagerDestroy((Pager *) ewin->data);
+ ewin->data = NULL;
+}
+
+static const EWinOps _PagerEwinOps = {
+ _PagerEwinInit,
+ NULL,
+ _PagerEwinMoveResize,
+ _PagerEwinClose,
+};
+
+static void
+PagerShow(Pager * p)
+{
+ EWin *ewin;
+ int w, h;
+
+ if (!Conf_pagers.enable)
+ return;
+
+ if (p->ewin)
+ {
+ EwinShow(p->ewin);
+ return;
+ }
+
+ ewin = AddInternalToFamily(p->win, "PAGER", EWIN_TYPE_PAGER,
+ &_PagerEwinOps, p);
+ p->ewin = ewin;
+ if (!ewin)
+ return;
+
+ p->screen_w = WinGetW(VROOT);
+ p->screen_h = WinGetH(VROOT);
+
+ PagerReconfigure(p, 0);
+
+ ewin->client.event_mask |=
+ ButtonPressMask | ButtonReleaseMask |
+ EnterWindowMask | LeaveWindowMask | PointerMotionMask;
+ ESelectInput(p->win, ewin->client.event_mask);
+
+ w = ewin->client.w;
+ h = ewin->client.h;
+
+ EwinMoveToDesktop(ewin, EoGetDesk(ewin));
+ if (ewin->state.placed)
+ {
+ EwinMoveResize(ewin, EoGetX(ewin), EoGetY(ewin), w, h);
+ }
+ else
+ {
+ /* no snapshots ? first time ? make a row on the bottom left up */
+ int ax, ay;
+
+ DesksGetAreaSize(&ax, &ay);
+ w = ((48 * WinGetW(VROOT)) / WinGetH(VROOT)) * ax;
+ h = 48 * ay;
+ EwinResize(ewin, w, h); /* Does layout */
+ EwinMove(ewin, 0, WinGetH(VROOT) -
+ (DesksGetNumber() - p->dsk->num) * EoGetH(ewin));
+ }
+
+ EwinShow(ewin);
+}
+
+typedef struct {
+ Desk *dsk;
+ void (*func) (Pager * p, void *prm);
+ void *prm;
+} pager_foreach_data;
+
+static void
+_PagersForeachFunc(void *item, void *prm)
+{
+ Pager *p = (Pager *) item;
+ pager_foreach_data *data = (pager_foreach_data *) prm;
+
+ if (data->dsk && data->dsk != p->dsk)
+ return;
+ data->func(p, data->prm);
+}
+
+static void
+PagersForeach(Desk * dsk, void (*func) (Pager * p, void *prm), void *prm)
+{
+ pager_foreach_data data;
+
+ data.dsk = dsk;
+ data.func = func;
+ data.prm = prm;
+ ecore_list_for_each(pager_list, _PagersForeachFunc, &data);
+}
+
+typedef struct {
+ int why;
+ int x1, y1, x2, y2;
+} pager_update_data;
+
+static void
+_PagerUpdate(Pager * p, void *prm)
+{
+ pager_update_data *pud = (pager_update_data *) prm;
+
+ PagerUpdate(p, pud->why, pud->x1, pud->y1, pud->x2, pud->y2);
+}
+
+static void
+PagersUpdate(Desk * dsk, int why, int x1, int y1, int x2, int y2)
+{
+ pager_update_data pud;
+
+ if (ecore_list_count(pager_list) <= 0)
+ return;
+
+ pud.why = why;
+ pud.x1 = x1;
+ pud.y1 = y1;
+ pud.x2 = x2;
+ pud.y2 = y2;
+ PagersForeach(dsk, _PagerUpdate, &pud);
+}
+
+static void
+PagerCheckUpdate(Pager * p, void *prm __UNUSED__)
+{
+ if (p->do_newbg)
+ {
+ PagerUpdateBg(p);
+ p->do_update = 1;
+ }
+
+ if (p->do_update)
+ doPagerUpdate(p);
+
+ p->do_newbg = p->do_update = 0;
+}
+
+static int
+_PagersUpdateTimeout(void *data __UNUSED__)
+{
+ Mode_pagers.timer_pending = 0;
+
+ return 0;
+}
+
+static void
+PagersCheckUpdate(void)
+{
+ static double tlast = 0.;
+ double t, dt;
+ Timer *pager_update_timer;
+
+ if (!Mode_pagers.update_pending || !Conf_pagers.enable)
+ return;
+
+ if (Mode_pagers.update_pending == (1 << PAGER_UPD_EWIN_DAMAGE))
+ {
+ t = GetTime();
+ dt = (Conf_pagers.scanspeed > 0) ? 1. / Conf_pagers.scanspeed : .1;
+ if (t - tlast < dt)
+ {
+ /* The purpose of this timer is to trigger the idler */
+ if (!Mode_pagers.timer_pending)
+ TIMER_ADD(pager_update_timer, dt, _PagersUpdateTimeout, NULL);
+ Mode_pagers.timer_pending = 1;
+ return;
+ }
+ tlast = t;
+ }
+
+ PagersForeach(NULL, PagerCheckUpdate, NULL);
+
+ Mode_pagers.update_pending = 0;
+}
+
+static void
+_PagersIdler(void *data __UNUSED__)
+{
+ PagersCheckUpdate();
+}
+
+static void
+PagerEwinUpdateFromPager(Pager * p, EWin * ewin)
+{
+ int x, y, w, h;
+ static GC gc = 0;
+
+ if (!EoIsShown(ewin) || !EwinIsOnScreen(ewin))
+ return;
+
+ Dprintf("PagerEwinUpdateFromPager %d\n", p->dsk->num);
+
+ x = EwinGetVX(ewin);
+ y = EwinGetVY(ewin);
+ w = EoGetW(ewin);
+ h = EoGetH(ewin);
+ x = (x * p->dw) / WinGetW(VROOT);
+ y = (y * p->dh) / WinGetH(VROOT);
+ w = (w * p->dw) / WinGetW(VROOT);
+ h = (h * p->dh) / WinGetH(VROOT);
+ if (w <= 0)
+ w = 1;
+ if (h <= 0)
+ h = 1;
+
+ if (!gc)
+ gc = EXCreateGC(WinGetPmap(p->win), 0, NULL);
+
+ /* NB! If the pixmap/mask was created by imlib, free it. Due to imlibs */
+ /* image/pixmap cache it may be in use elsewhere. */
+ if (ewin->mini_pmm.pmap &&
+ ((ewin->mini_pmm.type) || (ewin->mini_w != w) || (ewin->mini_h != h)))
+ FreePmapMask(&ewin->mini_pmm);
+
+ if (!ewin->mini_pmm.pmap)
+ {
+ ewin->mini_w = w;
+ ewin->mini_h = h;
+ ewin->mini_pmm.type = 0;
+ ewin->mini_pmm.pmap = ECreatePixmap(p->win, w, h, 0);
+ ewin->mini_pmm.mask = None;
+ }
+
+ if (!ewin->mini_pmm.pmap)
+ return;
+
+ XCopyArea(disp, WinGetPmap(p->win), ewin->mini_pmm.pmap, gc, x, y, w, h, 0,
+ 0);
+
+#if 0 /* FIXME - Remove? */
+ if (hiwin && ewin == hiwin->ewin)
+ PagerHiwinUpdate(hiwin, p, ewin);
+#endif
+}
+
+static void
+PagerUpdateEwinsFromPager(Pager * p)
+{
+ int i, num;
+ EWin *const *lst;
+
+ lst = EwinListGetForDesk(&num, p->dsk);
+ for (i = 0; i < num; i++)
+ PagerEwinUpdateFromPager(p, lst[i]);
+}
+
+static void
+PagersUpdateEwin(EWin * ewin, int why)
+{
+ Desk *dsk;
+
+ if (!Conf_pagers.enable)
+ return;
+
+ switch (why)
+ {
+ case PAGER_UPD_EWIN_GEOM:
+ if (!EoIsShown(ewin) || ewin->state.animated)
+ return;
+ break;
+
+ case PAGER_UPD_EWIN_GONE:
+ if (ewin == HiwinGetEwin(hiwin, 0))
+ PagerHiwinHide();
+ break;
+
+ case PAGER_UPD_EWIN_DAMAGE:
+ if (ewin->type == EWIN_TYPE_PAGER)
+ return;
+ if (PagersGetMode() != PAGER_MODE_LIVE)
+ return;
+ break;
+ }
+
+ dsk = (EoIsFloating(ewin)) ? DesksGetCurrent() : EoGetDesk(ewin);
+ PagersUpdate(dsk, why, EwinGetVX(ewin), EwinGetVY(ewin),
+ EwinGetVX2(ewin), EwinGetVY2(ewin));
+}
+
+static EWin *
+EwinInPagerAt(Pager * p, int px, int py)
+{
+ EWin *const *lst, *ewin;
+ int i, num, x, y, w, h;
+
+ if (!Conf_pagers.enable)
+ return NULL;
+
+ lst = EwinListGetForDesk(&num, p->dsk);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+ if (!EoIsShown(ewin))
+ continue;
+
+ x = (EwinGetVX(ewin) * p->dw) / WinGetW(VROOT);
+ y = (EwinGetVY(ewin) * p->dh) / WinGetH(VROOT);
+ w = (EoGetW(ewin) * p->dw) / WinGetW(VROOT);
+ h = (EoGetH(ewin) * p->dh) / WinGetH(VROOT);
+
+ if (px >= x && py >= y && px < (x + w) && py < (y + h))
+ return ewin;
+ }
+
+ return NULL;
+}
+
+static void
+PagerMenuShow(Pager * p, int x, int y)
+{
+ static Menu *p_menu = NULL, *pw_menu = NULL;
+ MenuItem *mi;
+ EWin *ewin;
+ char s[1024];
+
+ if (!Conf_pagers.enable)
+ return;
+
+ ewin = EwinInPagerAt(p, x, y);
+ if (ewin)
+ {
+ if (pw_menu)
+ MenuDestroy(pw_menu);
+
+ pw_menu =
+ MenuCreate("__DESK_WIN_MENU", _("Window Options"), NULL, NULL);
+
+ Esnprintf(s, sizeof(s), "wop %#lx ic", EwinGetClientXwin(ewin));
+ mi = MenuItemCreate(_("Iconify"), NULL, s, NULL);
+ MenuAddItem(pw_menu, mi);
+
+ Esnprintf(s, sizeof(s), "wop %#lx close", EwinGetClientXwin(ewin));
+ mi = MenuItemCreate(_("Close"), NULL, s, NULL);
+ MenuAddItem(pw_menu, mi);
+
+ Esnprintf(s, sizeof(s), "wop %#lx kill", EwinGetClientXwin(ewin));
+ mi = MenuItemCreate(_("Annihilate"), NULL, s, NULL);
+ MenuAddItem(pw_menu, mi);
+
+ Esnprintf(s, sizeof(s), "wop %#lx st", EwinGetClientXwin(ewin));
+ mi = MenuItemCreate(_("Stick / Unstick"), NULL, s, NULL);
+ MenuAddItem(pw_menu, mi);
+
+ EFunc(NULL, "menus show __DESK_WIN_MENU");
+ return;
+ }
+
+ if (p_menu)
+ MenuDestroy(p_menu);
+ p_menu = MenuCreate("__DESK_MENU", _("Desktop Options"), NULL, NULL);
+
+ mi = MenuItemCreate(_("Pager Settings..."), NULL, "cfg pagers", NULL);
+ MenuAddItem(p_menu, mi);
+
+ if (PagersGetMode() != PAGER_MODE_SIMPLE)
+ {
+ mi = MenuItemCreate(_("Snapshotting Off"), NULL, "pg mode simp", NULL);
+ MenuAddItem(p_menu, mi);
+
+ if (Conf_pagers.hiq)
+ mi = MenuItemCreate(_("High Quality Off"), NULL, "pg hiq off", NULL);
+ else
+ mi = MenuItemCreate(_("High Quality On"), NULL, "pg hiq on", NULL);
+ MenuAddItem(p_menu, mi);
+ }
+ else
+ {
+ mi = MenuItemCreate(_("Snapshotting On"), NULL, "pg mode live", NULL);
+ MenuAddItem(p_menu, mi);
+ }
+ if (Conf_pagers.zoom)
+ mi = MenuItemCreate(_("Zoom Off"), NULL, "pg zoom off", NULL);
+ else
+ mi = MenuItemCreate(_("Zoom On"), NULL, "pg zoom on", NULL);
+ MenuAddItem(p_menu, mi);
+
+ EFunc(NULL, "menus show __DESK_MENU");
+}
+
+static void
+PagerClose(Pager * p)
+{
+ EwinHide(p->ewin);
+}
+
+static void
+_PagerUpdateSel(Pager * p, void *prm __UNUSED__)
+{
+ int cx, cy;
+ ImageClass *ic;
+
+ if (p->dsk != DesksGetCurrent())
+ EUnmapWindow(p->sel_win);
+ else
+ {
+ DeskGetArea(p->dsk, &cx, &cy);
+ EMoveWindow(p->sel_win, cx * p->dw, cy * p->dh);
+ EMapWindow(p->sel_win);
+ ic = ImageclassFind("PAGER_SEL", 0);
+ if (ic)
+ ImageclassApply(ic, p->sel_win, 0, 0, STATE_NORMAL, ST_PAGER);
+ }
+}
+
+static void
+UpdatePagerSel(void)
+{
+ if (!Conf_pagers.enable)
+ return;
+
+ PagersForeach(NULL, _PagerUpdateSel, NULL);
+}
+
+static void
+PagerShowTt(EWin * ewin)
+{
+ static EWin *tt_ewin = NULL;
+ ToolTip *tt;
+
+ Dprintf("PagerShowTt %s\n", (ewin) ? EwinGetIconName(ewin) : NULL);
+
+ if (!Conf_pagers.title || (ewin == tt_ewin))
+ return;
+
+ if (MenusActive()) /* Don't show Tooltip when menu is up */
+ return;
+
+ tt = TooltipFind("PAGER");
+ if (tt)
+ {
+ if (ewin)
+ TooltipShow(tt, EwinGetIconName(ewin), NULL, Mode.events.cx,
+ Mode.events.cy);
+ else
+ TooltipHide(tt);
+ }
+
+ tt_ewin = ewin;
+}
+
+static void
+PagerHiwinInit(Pager * p, EWin * ewin)
+{
+ Hiwin *phi = hiwin;
+ int wx, wy, ww, wh, px, py;
+
+ if (!phi)
+ {
+ phi = HiwinCreate();
+ if (!phi)
+ return;
+ hiwin = phi;
+ }
+
+ wx = (EwinGetVX(ewin) * p->dw) / WinGetW(VROOT);
+ wy = (EwinGetVY(ewin) * p->dh) / WinGetH(VROOT);
+ ww = (EoGetW(ewin) * p->dw) / WinGetW(VROOT);
+ wh = (EoGetH(ewin) * p->dh) / WinGetH(VROOT);
+ ETranslateCoordinates(p->win, VROOT, 0, 0, &px, &py, NULL);
+
+ HiwinInit(phi, ewin);
+ HiwinSetGeom(phi, px + wx, py + wy, ww, wh);
+ HiwinSetCallback(phi, PagerHiwinEvent, p);
+}
+
+static void
+PagerHiwinHide(void)
+{
+ Dprintf("PagerHiwinHide\n");
+ HiwinHide(hiwin);
+ PagerShowTt(NULL);
+}
+
+static void
+PagerHiwinShow(Pager * p, EWin * ewin, int zoom, int confine)
+{
+ Hiwin *phi = hiwin;
+
+ if (MenusActive()) /* Don't show HiWin when menu is up */
+ return;
+
+ if (!phi || ewin)
+ {
+ PagerHiwinInit(p, ewin);
+ phi = hiwin;
+ if (!phi)
+ return;
+ }
+
+ HiwinShow(phi, ewin, zoom, confine);
+}
+
+static void
+PagerZoomChange(Pager * p, int delta)
+{
+ Dprintf("PagerZoomChange delta=%d\n", delta);
+
+ if (delta == 0)
+ return;
+
+ if (delta > 0)
+ {
+ if (!ECompMgrIsActive() && Mode_pagers.zoom >= 2)
+ return;
+ if (Mode_pagers.zoom >= 8)
+ return;
+ Mode_pagers.zoom++;
+ }
+ else
+ {
+ if (Mode_pagers.zoom <= 2)
+ return;
+ Mode_pagers.zoom--;
+ }
+ PagerHiwinShow(p, NULL, Mode_pagers.zoom, 0);
+}
+
+static void
+PagerHandleMotion(Pager * p, int x, int y)
+{
+ EWin *ewin;
+ int on_screen;
+
+ if (!Conf_pagers.enable)
+ return;
+
+ on_screen = EQueryPointer(p->win, &x, &y, NULL, NULL);
+
+ if (on_screen && x >= 0 && x < p->w && y >= 0 && y < p->h)
+ ewin = EwinInPagerAt(p, x, y);
+ else
+ ewin = NULL;
+
+ if (!Conf_pagers.zoom)
+ {
+ PagerShowTt(ewin);
+ return;
+ }
+
+ if (!ewin || EoGetLayer(ewin) <= 0)
+ {
+ PagerHiwinHide();
+ }
+ else if (!hiwin || ewin != HiwinGetEwin(hiwin, 0))
+ {
+ if (Mode_pagers.zoom < 2)
+ Mode_pagers.zoom = 2;
+ PagerHiwinShow(p, ewin, Mode_pagers.zoom, 0);
+ }
+ if (Mode_pagers.zoom <= 2)
+ PagerShowTt(ewin);
+}
+
+static void
+NewPagerForDesktop(Desk * dsk)
+{
+ Pager *p;
+
+ p = PagerCreate();
+ if (!p)
+ return;
+
+ p->dsk = dsk;
+ PagerShow(p);
+}
+
+static void
+_PagerUpdateBackground(Pager * p, void *prm __UNUSED__)
+{
+ p->do_newbg = 1;
+}
+
+static void
+PagersUpdateBackground(Desk * dsk)
+{
+ PagersForeach(dsk, _PagerUpdateBackground, NULL);
+
+ Mode_pagers.update_pending = 1;
+}
+
+static void
+PagerSetHiQ(char onoff)
+{
+ EWin *const *lst;
+ int i, num;
+
+ Conf_pagers.hiq = onoff;
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ lst[i]->mini_w = 0;
+ lst[i]->mini_h = 0;
+ }
+
+ PagersUpdateBackground(NULL);
+
+ autosave();
+}
+
+static void
+_PagerSetSnap(Pager * p, void *prm __UNUSED__)
+{
+ PagerScanTrig(p);
+}
+
+static void
+PagersSetMode(int mode)
+{
+ EWin *const *lst;
+ int i, num;
+
+ if (mode == Conf_pagers.mode)
+ return;
+ Conf_pagers.mode = mode;
+
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ lst[i]->mini_w = 0;
+ lst[i]->mini_h = 0;
+ }
+
+ PagersUpdateBackground(NULL);
+
+ if (Conf_pagers.mode == PAGER_MODE_SNAP && Conf_pagers.scanspeed > 0)
+ PagersForeach(DesksGetCurrent(), _PagerSetSnap, NULL);
+
+ autosave();
+}
+
+/*
+ * Pager event handlers
+ */
+
+static int *gwin_px, *gwin_py;
+
+static void
+PagerEwinGroupSet(void)
+{
+ int i, num;
+ EWin *ewin, **gwins;
+
+ ewin = HiwinGetEwin(hiwin, 0);
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE,
+ Mode.nogroup, &num);
+ if (!gwins)
+ return;
+
+ gwin_px = EMALLOC(int, num);
+ gwin_py = EMALLOC(int, num);
+
+ for (i = 0; i < num; i++)
+ {
+ gwin_px[i] = EoGetX(gwins[i]);
+ gwin_py[i] = EoGetY(gwins[i]);
+ }
+
+ Efree(gwins);
+}
+
+static void
+PagerEwinGroupUnset(void)
+{
+ _EFREE(gwin_px);
+ _EFREE(gwin_py);
+}
+
+static void
+PagerEventUnmap(Pager * p __UNUSED__)
+{
+ PagerHiwinHide();
+}
+
+static void
+EwinGroupMove(EWin * ewin, Desk * dsk, int x, int y)
+{
+ int i, num, dx, dy, newdesk;
+ EWin **gwins;
+
+ if (!ewin)
+ return;
+
+ /* Move all group members */
+ newdesk = dsk != EoGetDesk(ewin);
+ dx = x - EoGetX(ewin);
+ dy = y - EoGetY(ewin);
+ gwins =
+ ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE, Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (gwins[i]->type == EWIN_TYPE_PAGER)
+ continue;
+
+ if (newdesk)
+ EwinOpMoveToDesktopAt(gwins[i], OPSRC_USER, dsk,
+ EoGetX(gwins[i]) + dx, EoGetY(gwins[i]) + dy);
+ else
+ EwinOpMove(gwins[i], OPSRC_USER, EoGetX(gwins[i]) + dx,
+ EoGetY(gwins[i]) + dy);
+ }
+ Efree(gwins);
+}
+
+static void
+PagerEwinMove(Pager * p __UNUSED__, Pager * pd, EWin * ewin)
+{
+ int x, y, dx, dy, px, py;
+ int cx, cy;
+ Hiwin *phi = hiwin;
+
+ /* Delta in pager coords */
+ dx = Mode.events.mx - Mode.events.px;
+ dy = Mode.events.my - Mode.events.py;
+
+ if (dx == 0 && dy == 0 && p == pd)
+ return;
+
+ /* Move mini window */
+ HiwinGetXY(phi, &x, &y);
+ HiwinMove(phi, x + dx, y + dy);
+
+ /* Find real window position */
+ ETranslateCoordinates(VROOT, pd->win, x, y, &px, &py, NULL);
+ DeskGetArea(pd->dsk, &cx, &cy);
+ x = (px * WinGetW(VROOT)) / pd->dw - cx * WinGetW(VROOT);
+ y = (py * WinGetH(VROOT)) / pd->dh - cy * WinGetH(VROOT);
+
+ /* Move all group members */
+ EwinGroupMove(ewin, pd->dsk, x, y);
+}
+
+static void
+PagerHandleMouseDown(Pager * p, int px, int py, int button)
+{
+ int in_pager;
+ EWin *ewin;
+
+ in_pager = (px >= 0 && py >= 0 && px < p->w && py < p->h);
+ if (!in_pager)
+ return;
+
+ if (button == Conf_pagers.menu_button)
+ {
+ PagerHiwinHide();
+ PagerMenuShow(p, px, py);
+ }
+ else if (button == Conf_pagers.win_button)
+ {
+ ewin = EwinInPagerAt(p, px, py);
+ if (ewin && ewin->type != EWIN_TYPE_PAGER && !ewin->state.inhibit_move)
+ {
+ PagerHiwinShow(p, ewin, 1, !Mode.wm.window);
+ Mode.mode = MODE_PAGER_DRAG_PENDING;
+ PagerEwinGroupSet();
+ }
+ }
+}
+
+static void
+PagerHiwinHandleMouseDown(Pager * p, int px, int py, int button)
+{
+ PagerHandleMouseDown(p, px, py, button);
+}
+
+static void
+PagerHandleMouseUp(Pager * p, int px, int py, int button)
+{
+ int in_pager;
+ EWin *ewin;
+
+ in_pager = (px >= 0 && py >= 0 && px < p->w && py < p->h);
+ if (!in_pager)
+ return;
+
+ if (button == Conf_pagers.sel_button)
+ {
+ DeskGoto(p->dsk);
+ if (p->dsk != DesksGetCurrent())
+ SoundPlay(SOUND_DESKTOP_SHUT);
+ DeskCurrentGotoArea(px / p->dw, py / p->dh);
+ }
+ else if (button == Conf_pagers.win_button)
+ {
+ DeskGoto(p->dsk);
+ DeskCurrentGotoArea(px / p->dw, py / p->dh);
+ ewin = EwinInPagerAt(p, px, py);
+ if (ewin)
+ {
+ EwinRaise(ewin);
+ FocusToEWin(ewin, FOCUS_SET);
+ }
+ }
+}
+
+static void
+PagerHiwinHandleMouseUp(Pager * p, int px, int py, int button)
+{
+ int i, num, in_vroot;
+ EWin *ewin, *ewin2, **gwins;
+ int x, y;
+
+ Dprintf("PagerHiwinHandleMouseUp m=%d d=%d x,y=%d,%d\n", Mode.mode,
+ p->dsk->num, px, py);
+
+ if (Mode.mode != MODE_PAGER_DRAG)
+ {
+ if (Mode.mode == MODE_PAGER_DRAG_PENDING)
+ Mode.mode = MODE_NONE;
+ PagerHiwinHide();
+ PagerHandleMouseUp(p, px, py, button);
+ return;
+ }
+
+ Mode.mode = MODE_NONE;
+
+ ewin = HiwinGetEwin(hiwin, 1);
+ if (!ewin)
+ goto done;
+
+ in_vroot = (Mode.events.cx >= 0 && Mode.events.cx < WinGetW(VROOT) &&
+ Mode.events.cy >= 0 && Mode.events.cy < WinGetH(VROOT));
+
+ if (button == Conf_pagers.win_button)
+ {
+ /* Find which pager or iconbox we are in (if any) */
+ ewin2 = GetEwinPointerInClient();
+ if ((ewin2) && (ewin2->type == EWIN_TYPE_PAGER))
+ {
+ PagerEwinMove(p, (Pager *) ewin2->data, ewin);
+ }
+ else if ((ewin2) && (ewin2->type == EWIN_TYPE_ICONBOX))
+ {
+ /* Pointer is in iconbox */
+
+ /* Iconify after moving back to pre-drag position */
+ gwins = ListWinGroupMembersForEwin(ewin, GROUP_ACTION_MOVE,
+ Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (gwins[i]->type != EWIN_TYPE_PAGER)
+ {
+ EwinMove(gwins[i], gwin_px[i], gwin_py[i]);
+ EwinIconify(gwins[i]);
+ }
+ }
+ Efree(gwins);
+ }
+ else if (ewin2 && ewin2->props.vroot)
+ {
+ /* Dropping onto virtual root */
+ EwinReparent(ewin, EwinGetClientWin(ewin2));
+ }
+ else if (!in_vroot)
+ {
+ /* Move back to real root */
+ EwinReparent(ewin, RROOT);
+ }
+ else
+ {
+ /* Pointer is not in pager or iconbox */
+ /* Move window(s) to pointer location */
+ x = Mode.events.cx - EoGetW(ewin) / 2;
+ y = Mode.events.cy - EoGetH(ewin) / 2;
+ EwinGroupMove(ewin, DesksGetCurrent(), x, y);
+ }
+ }
+
+ PagerHiwinHide();
+
+ done:
+ /* unallocate the space that was holding the old positions of the */
+ /* windows */
+ PagerEwinGroupUnset();
+}
+
+static void
+PagerEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Pager *p = (Pager *) prm;
+
+ Dprintf("PagerEvent ev=%d\n", ev->type);
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ PagerHandleMouseDown(p, ev->xbutton.x, ev->xbutton.y,
+ (int)ev->xbutton.button);
+ break;
+ case ButtonRelease:
+ if (ev->xbutton.window != Mode.events.last_bpress)
+ break;
+ PagerHandleMouseUp(p, ev->xbutton.x, ev->xbutton.y,
+ (int)ev->xbutton.button);
+ break;
+
+ case MotionNotify:
+ PagerHandleMotion(p, ev->xmotion.x, ev->xmotion.y);
+ break;
+
+ case EnterNotify:
+ break;
+ case LeaveNotify:
+ PagerShowTt(NULL);
+ break;
+
+ case UnmapNotify:
+ PagerEventUnmap(p);
+ break;
+
+ case VisibilityNotify:
+ if (ev->xvisibility.state != VisibilityFullyObscured)
+ PagerScanTrig(p);
+ break;
+ }
+}
+
+static void
+PagerHiwinEvent(Win win, XEvent * ev, void *prm)
+{
+ Pager *p = (Pager *) prm;
+ int px, py;
+ EWin *ewin;
+
+ if (!p)
+ return;
+
+ Dprintf("PagerHiwinEvent ev=%d\n", ev->type);
+
+ switch (ev->type)
+ {
+ case ButtonPress:
+ switch (ev->xbutton.button)
+ {
+ case 4:
+ if (Mode.mode != MODE_NONE)
+ break;
+ PagerZoomChange(p, 1);
+ break;
+ case 5:
+ if (Mode.mode != MODE_NONE)
+ break;
+ PagerZoomChange(p, -1);
+ break;
+ default:
+ /* Translate x,y to pager window coordinates */
+ ETranslateCoordinates(win, p->win,
+ ev->xbutton.x, ev->xbutton.y, &px, &py,
+ NULL);
+ PagerHiwinHandleMouseDown(p, px, py, (int)ev->xbutton.button);
+ break;
+ }
+ break;
+
+ case ButtonRelease:
+ switch (ev->xbutton.button)
+ {
+ case 4:
+ case 5:
+ break;
+ default:
+ /* Translate x,y to pager window coordinates */
+ ETranslateCoordinates(win, p->win,
+ ev->xbutton.x, ev->xbutton.y, &px, &py,
+ NULL);
+ PagerHiwinHandleMouseUp(p, px, py, (int)ev->xbutton.button);
+ break;
+ }
+ break;
+
+ case MotionNotify:
+ switch (Mode.mode)
+ {
+ case MODE_NONE:
+ PagerHandleMotion(p, ev->xmotion.x, ev->xmotion.y);
+ break;
+
+ case MODE_PAGER_DRAG_PENDING:
+ case MODE_PAGER_DRAG:
+ ewin = HiwinGetEwin(hiwin, 1);
+ if (!ewin || ewin->type == EWIN_TYPE_PAGER)
+ {
+ Mode.mode = MODE_NONE;
+ break;
+ }
+
+ Mode.mode = MODE_PAGER_DRAG;
+ PagerEwinMove(p, p, ewin);
+ break;
+ }
+ break;
+
+ case LeaveNotify:
+ PagerShowTt(NULL);
+ break;
+ }
+}
+
+/*
+ * Pagers handling
+ */
+
+static int
+PagersForDesktopCount(Desk * dsk)
+{
+ Pager *p;
+ int num = 0;
+
+ ECORE_LIST_FOR_EACH(pager_list, p)
+ {
+ if (p->dsk == dsk)
+ num++;
+ }
+
+ return num;
+}
+
+static void
+_PagerClose(Pager * p, void *prm __UNUSED__)
+{
+ PagerClose(p);
+}
+
+static void
+PagersForDesktopEnable(Desk * dsk)
+{
+ if (PagersForDesktopCount(dsk) <= 0)
+ NewPagerForDesktop(dsk);
+}
+
+static void
+PagersForDesktopDisable(Desk * dsk)
+{
+ PagersForeach(dsk, _PagerClose, NULL);
+}
+
+static void
+PagersShow(int enable)
+{
+ unsigned int i;
+
+ if (enable && !Conf_pagers.enable)
+ {
+ Conf_pagers.enable = 1;
+ for (i = 0; i < DesksGetNumber(); i++)
+ PagersForDesktopEnable(DeskGet(i));
+ UpdatePagerSel();
+ Mode_pagers.idler = IdlerAdd(_PagersIdler, NULL);
+ }
+ else if (!enable && Conf_pagers.enable)
+ {
+ for (i = 0; i < DesksGetNumber(); i++)
+ PagersForDesktopDisable(DeskGet(i));
+ Conf_pagers.enable = 0;
+ IdlerDel(Mode_pagers.idler);
+ Mode_pagers.idler = NULL;
+ }
+}
+
+static void
+_PagerReconfigure(Pager * p, void *prm __UNUSED__)
+{
+ PagerReconfigure(p, 1);
+}
+
+static int
+_PagersReconfigureTimeout(void *data __UNUSED__)
+{
+ PagersForeach(NULL, _PagerReconfigure, NULL);
+
+ return 0;
+}
+
+static void
+PagersReconfigure(void)
+{
+ Timer *pg_timer_cfg;
+
+ if (!Conf_pagers.enable)
+ return;
+
+ TIMER_ADD(pg_timer_cfg, .5, _PagersReconfigureTimeout, NULL);
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+static char tmp_show_pagers;
+static char tmp_pager_hiq;
+static int tmp_pager_mode;
+static char tmp_pager_zoom;
+static char tmp_pager_title;
+static char tmp_pager_do_scan;
+static int tmp_pager_scan_speed;
+static int tmp_pager_sel_button;
+static int tmp_pager_win_button;
+static int tmp_pager_menu_button;
+static DItem *pager_scan_speed_label = NULL;
+
+static void
+CB_ConfigurePager(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ PagersShow(tmp_show_pagers);
+ if (Conf_pagers.hiq != tmp_pager_hiq)
+ PagerSetHiQ(tmp_pager_hiq);
+ Conf_pagers.zoom = tmp_pager_zoom;
+ Conf_pagers.title = tmp_pager_title;
+ Conf_pagers.sel_button = tmp_pager_sel_button;
+ Conf_pagers.win_button = tmp_pager_win_button;
+ Conf_pagers.menu_button = tmp_pager_menu_button;
+ if ((Conf_pagers.scanspeed != tmp_pager_scan_speed)
+ || ((!tmp_pager_do_scan) && (Conf_pagers.scanspeed > 0))
+ || ((tmp_pager_do_scan) && (Conf_pagers.scanspeed == 0)))
+ {
+ if (tmp_pager_do_scan)
+ Conf_pagers.scanspeed = tmp_pager_scan_speed;
+ else
+ Conf_pagers.scanspeed = 0;
+ }
+ PagersSetMode(tmp_pager_mode);
+ }
+ autosave();
+}
+
+static void
+CB_PagerScanSlide(Dialog * d, int val __UNUSED__, void *data __UNUSED__)
+{
+ char s[256];
+
+ Esnprintf(s, sizeof(s), "%s %03i %s", _("Pager scanning speed:"),
+ tmp_pager_scan_speed, _("lines per second"));
+ DialogItemSetText(pager_scan_speed_label, s);
+ DialogDrawItems(d, pager_scan_speed_label, 0, 0, 99999, 99999);
+}
+
+static void
+_DlgFillPagers(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *radio;
+ char s[256];
+
+ tmp_show_pagers = Conf_pagers.enable;
+ tmp_pager_hiq = Conf_pagers.hiq;
+ tmp_pager_mode = Conf_pagers.mode;
+ tmp_pager_zoom = Conf_pagers.zoom;
+ tmp_pager_title = Conf_pagers.title;
+ tmp_pager_sel_button = Conf_pagers.sel_button;
+ tmp_pager_win_button = Conf_pagers.win_button;
+ tmp_pager_menu_button = Conf_pagers.menu_button;
+ if (Conf_pagers.scanspeed == 0)
+ tmp_pager_do_scan = 0;
+ else
+ tmp_pager_do_scan = 1;
+ tmp_pager_scan_speed = Conf_pagers.scanspeed;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable pager display"));
+ DialogItemCheckButtonSetPtr(di, &tmp_show_pagers);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Pager Mode:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Simple"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Make miniature snapshots of the screen"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+#if USE_COMPOSITE
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Live Update"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+#endif
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_pager_mode);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Smooth high quality snapshots in snapshot mode"));
+ DialogItemCheckButtonSetPtr(di, &tmp_pager_hiq);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Zoom in on pager windows when mouse is over them"));
+ DialogItemCheckButtonSetPtr(di, &tmp_pager_zoom);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di,
+ _("Pop up window title when mouse is over the window"));
+ DialogItemCheckButtonSetPtr(di, &tmp_pager_title);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Continuously scan screen to update pager"));
+ DialogItemCheckButtonSetPtr(di, &tmp_pager_do_scan);
+
+ di = pager_scan_speed_label = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ Esnprintf(s, sizeof(s), "%s %03i %s", _("Pager scanning speed:"),
+ tmp_pager_scan_speed, _("lines per second"));
+ DialogItemSetText(di, s);
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 1, 256);
+ DialogItemSliderSetUnits(di, 1);
+ DialogItemSliderSetJump(di, 1);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSliderSetValPtr(di, &tmp_pager_scan_speed);
+ DialogItemSetCallback(di, CB_PagerScanSlide, 0, NULL);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Mouse button to select and drag windows:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Left"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Middle"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Right"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_pager_win_button);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Mouse button to select desktops:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Left"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Middle"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Right"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_pager_sel_button);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Mouse button to display pager menu:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Left"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Middle"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Right"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_pager_menu_button);
+}
+
+const DialogDef DlgPagers = {
+ "CONFIGURE_PAGER",
+ N_("Pagers"),
+ N_("Pager Settings"),
+ SOUND_SETTINGS_PAGER,
+ "pix/pager.png",
+ N_("Enlightenment Desktop & Area\n" "Pager Settings Dialog\n"),
+ _DlgFillPagers,
+ DLG_OAC, CB_ConfigurePager,
+};
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * Pagers Module
+ */
+
+static void
+PagersSighan(int sig, void *prm)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ memset(&Mode_pagers, 0, sizeof(Mode_pagers));
+ EDirMake(EDirUserCache(), "cached/pager");
+ break;
+ case ESIGNAL_CONFIGURE:
+ break;
+ case ESIGNAL_START:
+ if (!Conf_pagers.enable)
+ break;
+ Conf_pagers.enable = 0;
+ PagersShow(1);
+ break;
+
+ case ESIGNAL_AREA_CONFIGURED:
+ PagersReconfigure();
+ break;
+ case ESIGNAL_AREA_SWITCH_START:
+ PagerHiwinHide();
+ break;
+ case ESIGNAL_AREA_SWITCH_DONE:
+ PagersUpdate(DesksGetCurrent(), PAGER_UPD_EWIN_GEOM,
+ 0, 0, 99999, 99999);
+ UpdatePagerSel();
+ break;
+
+ case ESIGNAL_DESK_ADDED:
+ if (Mode.wm.startup)
+ break;
+ NewPagerForDesktop((Desk *) prm);
+ break;
+ case ESIGNAL_DESK_REMOVED:
+ PagersForDesktopDisable((Desk *) prm);
+ break;
+ case ESIGNAL_DESK_SWITCH_START:
+ PagerHiwinHide();
+ break;
+ case ESIGNAL_DESK_SWITCH_DONE:
+ UpdatePagerSel();
+ break;
+ case ESIGNAL_DESK_RESIZE:
+ PagersReconfigure();
+ break;
+
+ case ESIGNAL_BACKGROUND_CHANGE:
+ PagersUpdateBackground((Desk *) prm);
+ break;
+
+ case ESIGNAL_EWIN_UNMAP:
+ PagersUpdateEwin((EWin *) prm, PAGER_UPD_EWIN_GONE);
+ break;
+ case ESIGNAL_EWIN_CHANGE:
+ PagersUpdateEwin((EWin *) prm, PAGER_UPD_EWIN_GEOM);
+ break;
+ case ESIGNAL_EWIN_DAMAGE:
+ PagersUpdateEwin((EWin *) prm, PAGER_UPD_EWIN_DAMAGE);
+ break;
+ }
+}
+
+static void
+IPC_Pager(const char *params)
+{
+ const char *p = params;
+ char prm1[128];
+ int len, desk;
+ Desk *dsk;
+
+ if (!p)
+ return;
+
+ prm1[0] = '\0';
+ len = 0;
+ sscanf(p, "%100s %n", prm1, &len);
+ p += len;
+
+ if (!strcmp(prm1, "on"))
+ {
+ PagersShow(1);
+ }
+ else if (!strcmp(prm1, "off"))
+ {
+ PagersShow(0);
+ }
+ else if (!strcmp(prm1, "desk"))
+ {
+ desk = -1;
+ prm1[0] = '\0';
+ sscanf(p, "%d %100s", &desk, prm1);
+ dsk = DeskGet(desk);
+
+ if (!dsk)
+ {
+ ;
+ }
+ else if (!strcmp(prm1, "on"))
+ {
+ PagersForDesktopEnable(dsk);
+ }
+ else if (!strcmp(prm1, "new"))
+ {
+ NewPagerForDesktop(dsk);
+ }
+ else if (!strcmp(prm1, "off"))
+ {
+ PagersForDesktopDisable(dsk);
+ }
+ }
+ else if (!strcmp(prm1, "hiq"))
+ {
+ if (!strcmp(p, "on"))
+ PagerSetHiQ(1);
+ else if (!strcmp(p, "off"))
+ PagerSetHiQ(0);
+ }
+ else if (!strcmp(prm1, "mode"))
+ {
+ if (!strncmp(p, "si", 2))
+ PagersSetMode(PAGER_MODE_SIMPLE);
+ else if (!strncmp(p, "sn", 2))
+ PagersSetMode(PAGER_MODE_SNAP);
+ else if (!strncmp(p, "li", 2))
+ PagersSetMode(PAGER_MODE_LIVE);
+ }
+ else if (!strcmp(prm1, "zoom"))
+ {
+ if (!strcmp(p, "on"))
+ Conf_pagers.zoom = 1;
+ else if (!strcmp(p, "off"))
+ Conf_pagers.zoom = 0;
+ }
+}
+
+static const IpcItem PagersIpcArray[] = {
+ {
+ IPC_Pager,
+ "pager", "pg",
+ "Toggle the status of the Pager and various pager settings",
+ "use \"pager <on/off>\" to set the current mode\nuse \"pager ?\" "
+ "to get the current mode\n"
+ " pager <#> <on/off/?> Toggle or test any desktop's pager\n"
+ " pager hiq <on/off> Toggle high quality pager\n"
+ " pager scanrate <#> Toggle number of line updates per second\n"
+ " pager mode <mode> Set pager mode (simple/snapshot/live)\n"
+ " pager title <on/off> Toggle title display in the pager\n"
+ " pager zoom <on/off> Toggle zooming in the pager\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(PagersIpcArray)/sizeof(IpcItem))
+
+/*
+ * Configuration items
+ */
+static const CfgItem PagersCfgItems[] = {
+ CFG_ITEM_BOOL(Conf_pagers, enable, 1),
+ CFG_ITEM_BOOL(Conf_pagers, zoom, 1),
+ CFG_ITEM_BOOL(Conf_pagers, title, 1),
+ CFG_ITEM_BOOL(Conf_pagers, hiq, 1),
+ CFG_ITEM_INT(Conf_pagers, mode, PAGER_MODE_LIVE),
+ CFG_ITEM_INT(Conf_pagers, scanspeed, 10),
+ CFG_ITEM_INT(Conf_pagers, sel_button, 2),
+ CFG_ITEM_INT(Conf_pagers, win_button, 1),
+ CFG_ITEM_INT(Conf_pagers, menu_button, 3),
+};
+#define N_CFG_ITEMS (sizeof(PagersCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModPagers;
+const EModule ModPagers = {
+ "pagers", "pg",
+ PagersSighan,
+ {N_IPC_FUNCS, PagersIpcArray},
+ {N_CFG_ITEMS, PagersCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include <ctype.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <string.h>
+#include "parse.h"
+
+int
+parse(char *buf, const char *fmt, ...)
+{
+ int nitems;
+ char chi, chf, chq;
+ char *p, **ps;
+ va_list args;
+
+ va_start(args, fmt);
+
+ for (nitems = 0;;)
+ {
+ chf = *fmt++;
+ if (chf != '%')
+ break;
+ chf = *fmt++;
+ if (chf == '\0')
+ break;
+ /* Strip leading whitespace */
+ while (isspace(*buf))
+ buf++;
+ if (!*buf)
+ break;
+ switch (chf)
+ {
+ case 'S': /* Return pointer to string */
+ case 'T': /* As S, convert "NULL" to NULL pointer */
+ chi = *buf;
+ chq = (chi == '\'' || chi == '"') ? chi : '\0';
+ if (chq)
+ {
+ /* Token is quoted */
+ buf++;
+ for (p = buf;; p++)
+ {
+ p = strchr(p, chq);
+ if (p)
+ {
+ if (p[1] && !isspace(p[1]))
+ continue;
+ *p++ = '\0'; /* Terminate at quote */
+ }
+ else
+ {
+ p = buf + strlen(buf); /* Missing end quote */
+ }
+ break;
+ }
+ }
+ else
+ {
+ /* Token is unquoted */
+ p = buf + 1;
+ while (*p && !isspace(*p))
+ p++;
+ if (*p)
+ *p++ = '\0';
+ }
+ ps = va_arg(args, char **);
+
+ if (chf == 'T' && (!buf[0] || !strcmp(buf, "NULL")))
+ *ps = NULL;
+ else
+ *ps = buf;
+ nitems++;
+ buf = p;
+ }
+ }
+
+ va_end(args);
+
+ return nitems;
+}
--- /dev/null
+/*
+ * Copyright (C) 2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _PARSE_H_
+#define _PARSE_H_
+
+int parse(char *buf, const char *fmt, ...);
+
+#endif /* _PARSE_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "piximg.h"
+#include "xwin.h"
+#include <sys/ipc.h>
+#include <sys/shm.h>
+#include <X11/Xutil.h>
+#include <X11/extensions/XShm.h>
+
+void
+EFillPixmap(Window win, Pixmap pmap, int x, int y, int w, int h)
+{
+ XGCValues gcv;
+ GC gc;
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(win, GCSubwindowMode, &gcv);
+ XCopyArea(disp, win, pmap, gc, x, y, w, h, x, y);
+ EXFreeGC(gc);
+}
+
+void
+EPastePixmap(Window win, Pixmap pmap, int x, int y, int w, int h)
+{
+ XGCValues gcv;
+ GC gc;
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(win, GCSubwindowMode, &gcv);
+ XCopyArea(disp, pmap, win, gc, x, y, w, h, x, y);
+ EXFreeGC(gc);
+}
+
+PixImg *
+ECreatePixImg(Window win, int w, int h)
+{
+ XGCValues gcv;
+ PixImg *pi;
+
+ pi = EMALLOC(PixImg, 1);
+ if (!pi)
+ return NULL;
+
+ pi->shminfo = EMALLOC(XShmSegmentInfo, 1);
+ if (pi->shminfo)
+ {
+ pi->xim = XShmCreateImage(disp, WinGetVisual(VROOT),
+ WinGetDepth(VROOT), ZPixmap, NULL,
+ pi->shminfo, w, h);
+ if (pi->xim)
+ {
+ pi->shminfo->shmid =
+ shmget(IPC_PRIVATE, pi->xim->bytes_per_line * pi->xim->height,
+ IPC_CREAT | 0666);
+ if (pi->shminfo->shmid >= 0)
+ {
+ pi->shminfo->shmaddr = pi->xim->data =
+ (char *)shmat(pi->shminfo->shmid, 0, 0);
+ if (pi->shminfo->shmaddr != (void *)-1)
+ {
+ pi->shminfo->readOnly = False;
+ Dpy.last_error_code = 0;
+ XShmAttach(disp, pi->shminfo);
+ ESync(0);
+ if (Dpy.last_error_code == 0)
+ {
+ pi->pmap =
+ XShmCreatePixmap(disp, win, pi->shminfo->shmaddr,
+ pi->shminfo, w, h,
+ WinGetDepth(VROOT));
+ if (pi->pmap)
+ {
+ gcv.subwindow_mode = IncludeInferiors;
+ pi->gc =
+ EXCreateGC(win, GCSubwindowMode, &gcv);
+ if (pi->gc)
+ return pi;
+
+ EFreePixmap(pi->pmap);
+ }
+ XShmDetach(disp, pi->shminfo);
+ }
+ shmdt(pi->shminfo->shmaddr);
+ }
+ shmctl(pi->shminfo->shmid, IPC_RMID, 0);
+ }
+ XDestroyImage(pi->xim);
+ }
+ Efree(pi->shminfo);
+ }
+ Efree(pi);
+ return NULL;
+}
+
+void
+EDestroyPixImg(PixImg * pi)
+{
+ if (!pi)
+ return;
+ ESync(0);
+ XShmDetach(disp, pi->shminfo);
+ shmdt(pi->shminfo->shmaddr);
+ shmctl(pi->shminfo->shmid, IPC_RMID, 0);
+ XDestroyImage(pi->xim);
+ Efree(pi->shminfo);
+ EFreePixmap(pi->pmap);
+ EXFreeGC(pi->gc);
+ Efree(pi);
+}
+
+void
+EBlendRemoveShape(Win win, Pixmap pmap, int x, int y)
+{
+ static GC gc = 0;
+ Window root = WinGetXwin(VROOT);
+ int w, h;
+
+ if (!win)
+ {
+ if (gc)
+ EXFreeGC(gc);
+ gc = 0;
+ return;
+ }
+
+ if (win->num_rect <= 0)
+ return;
+
+ w = WinGetW(win);
+ h = WinGetH(win);
+
+ if (!gc)
+ {
+ XGCValues gcv;
+ GC gcm;
+ Pixmap mask;
+ XRectangle *rl;
+ int i;
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(root, GCSubwindowMode, &gcv);
+
+ mask = XCreatePixmap(disp, root, w, h, 1);
+ gcm = EXCreateGC(mask, 0, NULL);
+ XSetForeground(disp, gcm, 1);
+ XFillRectangle(disp, mask, gcm, 0, 0, w, h);
+ XSetForeground(disp, gcm, 0);
+ rl = win->rects;
+ for (i = 0; i < win->num_rect; i++)
+ XFillRectangle(disp, mask, gcm, rl[i].x, rl[i].y, rl[i].width,
+ rl[i].height);
+ XSetClipMask(disp, gc, mask);
+ EXFreeGC(gcm);
+ XFreePixmap(disp, mask);
+ }
+
+ XSetClipOrigin(disp, gc, x, y);
+ XCopyArea(disp, pmap, root, gc, x, y, w, h, x, y);
+}
+
+void
+EBlendPixImg(Win win, PixImg * s1, PixImg * s2, PixImg * dst, int x, int y,
+ int w, int h)
+{
+ static GC gc = 0;
+ Window root = WinGetXwin(VROOT);
+ int i, j, ox, oy;
+
+ if (!win)
+ {
+ if (gc)
+ EXFreeGC(gc);
+ gc = 0;
+ return;
+ }
+
+ if (!gc)
+ {
+ XGCValues gcv;
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = EXCreateGC(root, GCSubwindowMode, &gcv);
+ if (win->rects)
+ XSetClipRectangles(disp, gc, x, y, win->rects, win->num_rect,
+ win->ord);
+ }
+ else
+ XSetClipOrigin(disp, gc, x, y);
+
+ ox = 0;
+ oy = 0;
+ if ((x >= WinGetW(VROOT)) || (y >= WinGetH(VROOT)))
+ return;
+ if (x + w > WinGetW(VROOT))
+ w -= ((x + w) - WinGetW(VROOT));
+ if (x < 0)
+ {
+ ox = -x;
+ w -= ox;
+ x = 0;
+ }
+ if (y + h > WinGetH(VROOT))
+ h -= ((y + h) - WinGetH(VROOT));
+ if (y < 0)
+ {
+ oy = -y;
+ h -= oy;
+ y = 0;
+ }
+ if ((w <= 0) || (h <= 0))
+ return;
+
+ ESync(0);
+
+ switch (dst->xim->bits_per_pixel)
+ {
+ case 32:
+ for (j = 0; j < h; j++)
+ {
+ unsigned int *ptr1, *ptr2, *ptr3;
+
+ ptr1 =
+ (unsigned int *)(s1->xim->data +
+ (x * ((s1->xim->bits_per_pixel) >> 3)) +
+ ((j + y) * s1->xim->bytes_per_line));
+ ptr2 =
+ (unsigned int *)(s2->xim->data +
+ (ox * ((s2->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * s2->xim->bytes_per_line));
+ ptr3 =
+ (unsigned int *)(dst->xim->data +
+ (ox * ((dst->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * dst->xim->bytes_per_line));
+ for (i = 0; i < w; i++)
+ {
+ unsigned int p1, p2;
+
+ p1 = *ptr1++;
+ p2 = *ptr2++;
+ *ptr3++ = ((p1 >> 1) & 0x7f7f7f7f) +
+ ((p2 >> 1) & 0x7f7f7f7f) + (p1 & p2 & 0x01010101);
+ }
+ }
+ break;
+ case 24:
+ for (j = 0; j < h; j++)
+ {
+ for (i = 0; i < w; i++)
+ {
+ unsigned int p1, p2;
+
+ p1 = XGetPixel(s1->xim, (i + x), (j + y));
+ p2 = XGetPixel(s2->xim, (i + ox), (j + oy));
+ XPutPixel(dst->xim, (i + ox), (j + oy),
+ (((p1 >> 1) & 0x7f7f7f7f) +
+ ((p2 >> 1) & 0x7f7f7f7f) +
+ (p1 & p2 & 0x01010101)));
+ }
+ }
+ break;
+ case 16:
+ if (WinGetDepth(VROOT) != 15)
+ {
+ for (j = 0; j < h; j++)
+ {
+ unsigned int *ptr1, *ptr2, *ptr3;
+
+ ptr1 =
+ (unsigned int *)(s1->xim->data +
+ (x * ((s1->xim->bits_per_pixel) >> 3)) +
+ ((j + y) * s1->xim->bytes_per_line));
+ ptr2 =
+ (unsigned int *)(s2->xim->data +
+ (ox * ((s2->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * s2->xim->bytes_per_line));
+ ptr3 =
+ (unsigned int *)(dst->xim->data +
+ (ox * ((dst->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * dst->xim->bytes_per_line));
+ if (!(w & 0x1))
+ {
+ for (i = 0; i < w; i += 2)
+ {
+ unsigned int p1, p2;
+
+ p1 = *ptr1++;
+ p2 = *ptr2++;
+ *ptr3++ =
+ ((p1 >> 1) &
+ ((0x78 << 8) | (0x7c << 3) | (0x78 >> 3) |
+ (0x78 << 24) | (0x7c << 19) | (0x78 << 13)))
+ +
+ ((p2 >> 1) &
+ ((0x78 << 8) | (0x7c << 3) | (0x78 >> 3) |
+ (0x78 << 24) | (0x7c << 19) | (0x78 << 13)))
+ +
+ (p1 & p2 &
+ ((0x1 << 11) | (0x1 << 5) | (0x1) |
+ (0x1 << 27) | (0x1 << 21) | (0x1 << 16)));
+ }
+ }
+ else
+ {
+ for (i = 0; i < (w - 1); i += 2)
+ {
+ unsigned int p1, p2;
+
+ p1 = *ptr1++;
+ p2 = *ptr2++;
+ *ptr3++ =
+ ((p1 >> 1) &
+ ((0x78 << 8) | (0x7c << 3) | (0x78 >> 3) |
+ (0x78 << 24) | (0x7c << 19) | (0x78 << 13)))
+ +
+ ((p2 >> 1) &
+ ((0x78 << 8) | (0x7c << 3) | (0x78 >> 3) |
+ (0x78 << 24) | (0x7c << 19) | (0x78 << 13)))
+ +
+ (p1 & p2 &
+ ((0x1 << 11) | (0x1 << 5) | (0x1) |
+ (0x1 << 27) | (0x1 << 21) | (0x1 << 16)));
+ }
+ {
+ unsigned short *pptr1, *pptr2, *pptr3;
+ unsigned short pp1, pp2;
+
+ pptr1 = (unsigned short *)ptr1;
+ pptr2 = (unsigned short *)ptr2;
+ pptr3 = (unsigned short *)ptr3;
+ pp1 = *pptr1;
+ pp2 = *pptr2;
+ *pptr3 =
+ ((pp1 >> 1) &
+ ((0x78 << 8) | (0x7c << 3) | (0x78 >> 3)))
+ +
+ ((pp2 >> 1) &
+ ((0x78 << 8) | (0x7c << 3) | (0x78 >> 3)))
+ + (pp1 & pp2 & ((0x1 << 11) | (0x1 << 5) | (0x1)));
+ }
+ }
+ }
+ }
+ else
+ {
+ for (j = 0; j < h; j++)
+ {
+ unsigned int *ptr1, *ptr2, *ptr3;
+
+ ptr1 =
+ (unsigned int *)(s1->xim->data +
+ (x * (s1->xim->bits_per_pixel >> 3)) +
+ ((j + y) * s1->xim->bytes_per_line));
+ ptr2 =
+ (unsigned int *)(s2->xim->data +
+ (ox * ((s2->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * s2->xim->bytes_per_line));
+ ptr3 =
+ (unsigned int *)(dst->xim->data +
+ (ox * ((dst->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * dst->xim->bytes_per_line));
+ if (!(w & 0x1))
+ {
+ for (i = 0; i < w; i += 2)
+ {
+ unsigned int p1, p2;
+
+ p1 = *ptr1++;
+ p2 = *ptr2++;
+ *ptr3++ =
+ ((p1 >> 1) &
+ ((0x78 << 7) | (0x78 << 2) | (0x78 >> 3) |
+ (0x78 << 23) | (0x78 << 18) | (0x78 << 13)))
+ +
+ ((p2 >> 1) &
+ ((0x78 << 7) | (0x78 << 2) | (0x78 >> 3) |
+ (0x78 << 23) | (0x78 << 18) | (0x78 << 13)))
+ +
+ (p1 & p2 &
+ ((0x1 << 10) | (0x1 << 5) | (0x1) |
+ (0x1 << 26) | (0x1 << 20) | (0x1 << 16)));
+ }
+ }
+ else
+ {
+ for (i = 0; i < (w - 1); i += 2)
+ {
+ unsigned int p1, p2;
+
+ p1 = *ptr1++;
+ p2 = *ptr2++;
+ *ptr3++ =
+ ((p1 >> 1) &
+ ((0x78 << 7) | (0x78 << 2) | (0x78 >> 3) |
+ (0x78 << 23) | (0x78 << 18) | (0x78 << 13)))
+ +
+ ((p2 >> 1) &
+ ((0x78 << 7) | (0x78 << 2) | (0x78 >> 3) |
+ (0x78 << 23) | (0x78 << 18) | (0x78 << 13)))
+ +
+ (p1 & p2 &
+ ((0x1 << 10) | (0x1 << 5) | (0x1) |
+ (0x1 << 26) | (0x1 << 20) | (0x1 << 16)));
+ }
+ {
+ unsigned short *pptr1, *pptr2, *pptr3;
+ unsigned short pp1, pp2;
+
+ pptr1 = (unsigned short *)ptr1;
+ pptr2 = (unsigned short *)ptr2;
+ pptr3 = (unsigned short *)ptr3;
+ pp1 = *pptr1;
+ pp2 = *pptr2;
+ *pptr3++ =
+ ((pp1 >> 1) &
+ ((0x78 << 7) | (0x78 << 2) | (0x78 >> 3)))
+ +
+ ((pp2 >> 1) &
+ ((0x78 << 7) | (0x78 << 2) | (0x78 >> 3)))
+ + (pp1 & pp2 & ((0x1 << 10) | (0x1 << 5) | (0x1)));
+ }
+ }
+ }
+ }
+ break;
+ default:
+ for (j = 0; j < h; j++)
+ {
+ unsigned char *ptr1, *ptr2, *ptr3;
+
+ ptr1 =
+ (unsigned char *)(s1->xim->data +
+ ((x) *
+ ((s1->xim->bits_per_pixel) >> 3)) +
+ ((j + y) * s1->xim->bytes_per_line));
+ ptr2 =
+ (unsigned char *)(s2->xim->data +
+ ((ox) *
+ ((s2->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * s2->xim->bytes_per_line));
+ ptr3 =
+ (unsigned char *)(dst->xim->data +
+ ((ox) *
+ ((dst->xim->bits_per_pixel) >> 3)) +
+ ((j + oy) * dst->xim->bytes_per_line));
+ if (!(w & 0x1))
+ {
+ if (j & 0x1)
+ {
+ ptr2++;
+ for (i = 0; i < w; i += 2)
+ {
+ unsigned char p1;
+
+ p1 = *ptr1;
+ ptr1 += 2;
+ *ptr3++ = p1;
+ p1 = *ptr2;
+ ptr2 += 2;
+ *ptr3++ = p1;
+ }
+ }
+ else
+ {
+ ptr1++;
+ for (i = 0; i < w; i += 2)
+ {
+ unsigned char p1;
+
+ p1 = *ptr2;
+ ptr2 += 2;
+ *ptr3++ = p1;
+ p1 = *ptr1;
+ ptr1 += 2;
+ *ptr3++ = p1;
+ }
+ }
+ }
+ else
+ {
+ if (j & 0x1)
+ {
+ ptr2++;
+ for (i = 0; i < (w - 1); i += 2)
+ {
+ unsigned char p1;
+
+ p1 = *ptr1;
+ ptr1 += 2;
+ *ptr3++ = p1;
+ p1 = *ptr2;
+ ptr2 += 2;
+ *ptr3++ = p1;
+ }
+ *ptr3 = *ptr1;
+ }
+ else
+ {
+ ptr1++;
+ for (i = 0; i < (w - 1); i += 2)
+ {
+ unsigned char p1;
+
+ p1 = *ptr2;
+ ptr2 += 2;
+ *ptr3++ = p1;
+ p1 = *ptr1;
+ ptr1 += 2;
+ *ptr3++ = p1;
+ }
+ *ptr3 = *ptr2;
+ }
+ }
+ }
+ break;
+ }
+/* workaround since XCopyArea doesnt always work with shared pixmaps */
+ XShmPutImage(disp, root, gc, dst->xim, ox, oy, x, y, w, h, False);
+/* XCopyArea(disp, dst->pmap, root, gc, ox, oy, w, h, x, y); */
+/* I dont believe it - you cannot do this to a shared pixmaps to the screen */
+/* XCopyArea(disp, dst->pmap, root, dst->gc, x, y, w, h, x, y); */
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _PIXIMG_H_
+#define _PIXIMG_H_
+
+#include <X11/Xlib.h>
+#include <X11/extensions/XShm.h>
+
+typedef struct _PixImg {
+ XImage *xim;
+ XShmSegmentInfo *shminfo;
+ Pixmap pmap;
+ GC gc;
+} PixImg;
+
+void EFillPixmap(Window win, Pixmap pmap, int x, int y, int w,
+ int h);
+void EPastePixmap(Window win, Pixmap pmap, int x, int y, int w,
+ int h);
+
+PixImg *ECreatePixImg(Window win, int w, int h);
+void EDestroyPixImg(PixImg * pi);
+void EBlendRemoveShape(Win win, Pixmap pmap, int x, int y);
+void EBlendPixImg(Win win, PixImg * s1, PixImg * s2,
+ PixImg * dst, int x, int y, int w, int h);
+
+#endif /* _PIXIMG_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "eobj.h"
+#include "iclass.h"
+#include "progress.h"
+#include "tclass.h"
+#include "xwin.h"
+
+struct _progressbar {
+ EObj *win;
+ EObj *n_win;
+ EObj *p_win;
+ int w, h;
+ int value;
+ ImageClass *ic;
+ TextClass *tc, *tnc;
+};
+
+static int pnum = 0;
+static Progressbar **plist = NULL;
+
+Progressbar *
+ProgressbarCreate(const char *name, int w, int h)
+{
+ Progressbar *p;
+ int x, y, tw, th;
+ EImageBorder *pad;
+
+ p = ECALLOC(Progressbar, 1);
+ pnum++;
+ plist = EREALLOC(Progressbar *, plist, pnum);
+ plist[pnum - 1] = p;
+
+ p->ic = ImageclassAlloc("PROGRESS_BAR", 1);
+ p->tc = TextclassAlloc("PROGRESS_TEXT", 1);
+ p->tnc = TextclassAlloc("PROGRESS_TEXT_NUMBER", 1);
+
+ pad = ImageclassGetPadding(p->ic);
+ TextSize(p->tc, 0, 0, 0, name, &tw, &th, 0);
+ if (h < th + pad->top + pad->bottom)
+ h = th + pad->top + pad->bottom;
+
+ p->w = w;
+ p->h = h;
+ p->value = 0;
+
+ x = (WinGetW(VROOT) - w) / 2;
+ y = 32 + (pnum * h * 2);
+
+ p->win = EobjWindowCreate(EOBJ_TYPE_MISC, x, y, w - (h * 5), h, 1, name);
+ p->n_win =
+ EobjWindowCreate(EOBJ_TYPE_MISC, x + w - (h * 5), y, (h * 5), h, 1, "pn");
+ p->p_win = EobjWindowCreate(EOBJ_TYPE_MISC, x, y + h, 1, h, 1, "pp");
+ if (!p->win || !p->n_win || !p->p_win)
+ {
+ ProgressbarDestroy(p);
+ return NULL;
+ }
+ p->win->shadow = 1;
+ p->n_win->shadow = 1;
+ p->p_win->shadow = 1;
+
+ return p;
+}
+
+void
+ProgressbarDestroy(Progressbar * p)
+{
+ int i, j, dy;
+
+ ProgressbarHide(p);
+
+ dy = 2 * p->h;
+ EobjWindowDestroy(p->win);
+ EobjWindowDestroy(p->n_win);
+ EobjWindowDestroy(p->p_win);
+
+ for (i = 0; i < pnum; i++)
+ {
+ if (plist[i] != p)
+ continue;
+
+ for (j = i; j < pnum - 1; j++)
+ {
+ Progressbar *pp;
+
+ pp = plist[j + 1];
+ plist[j] = pp;
+ EobjMove(pp->win, EobjGetX(pp->win), EobjGetY(pp->win) - dy);
+ EobjMove(pp->n_win, EobjGetX(pp->n_win), EobjGetY(pp->n_win) - dy);
+ EobjMove(pp->p_win, EobjGetX(pp->p_win), EobjGetY(pp->p_win) - dy);
+ }
+ break;
+ }
+
+ ImageclassFree(p->ic);
+ TextclassFree(p->tc);
+ TextclassFree(p->tnc);
+
+ Efree(p);
+
+ pnum--;
+ if (pnum <= 0)
+ {
+ pnum = 0;
+ _EFREE(plist);
+ }
+ else
+ {
+ plist = EREALLOC(Progressbar *, plist, pnum);
+ }
+}
+
+void
+ProgressbarSet(Progressbar * p, int progress)
+{
+ int w;
+ char s[64];
+ EImageBorder *pad;
+
+ if (progress == p->value)
+ return;
+
+ p->value = progress;
+ w = (p->value * p->w) / 100;
+ if (w < 1)
+ w = 1;
+ if (w > p->w)
+ w = p->w;
+ Esnprintf(s, sizeof(s), "%i%%", p->value);
+
+ EobjResize(p->p_win, w, p->h);
+ ImageclassApply(p->ic, EobjGetWin(p->p_win), 1, 0, STATE_NORMAL, ST_SOLID);
+ EobjShapeUpdate(p->p_win, 0);
+
+ pad = ImageclassGetPadding(p->ic);
+ EClearWindow(EobjGetWin(p->n_win));
+ TextDraw(p->tnc, EobjGetWin(p->n_win), None, 0, 0, STATE_CLICKED, s,
+ pad->left, pad->top, p->h * 5 - (pad->left + pad->right),
+ p->h - (pad->top + pad->bottom), p->h - (pad->top + pad->bottom),
+ TextclassGetJustification(p->tnc));
+ /* Hack - We may not be running in the event loop here */
+ EobjDamage(p->n_win);
+
+ EobjsRepaint();
+}
+
+void
+ProgressbarShow(Progressbar * p)
+{
+ EImageBorder *pad;
+
+ ImageclassApply(p->ic, EobjGetWin(p->win), 0, 0, STATE_NORMAL, ST_SOLID);
+ ImageclassApply(p->ic, EobjGetWin(p->n_win), 0, 0, STATE_CLICKED, ST_SOLID);
+ ImageclassApply(p->ic, EobjGetWin(p->p_win), 1, 0, STATE_NORMAL, ST_SOLID);
+
+ EobjMap(p->win, 0);
+ EobjMap(p->n_win, 0);
+ EobjMap(p->p_win, 0);
+
+ pad = ImageclassGetPadding(p->ic);
+ TextDraw(p->tc, EobjGetWin(p->win), None, 0, 0, STATE_NORMAL,
+ EobjGetName(p->win), pad->left, pad->top,
+ p->w - (p->h * 5) - (pad->left + pad->right),
+ p->h - (pad->top + pad->bottom), p->h - (pad->top + pad->bottom),
+ TextclassGetJustification(p->tnc));
+
+ EobjsRepaint();
+}
+
+void
+ProgressbarHide(Progressbar * p)
+{
+ EobjUnmap(p->win);
+ EobjUnmap(p->n_win);
+ EobjUnmap(p->p_win);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2006-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _PROGRESS_H_
+#define _PROGRESS_H_
+
+typedef struct _progressbar Progressbar;
+
+Progressbar *ProgressbarCreate(const char *name, int width, int height);
+void ProgressbarDestroy(Progressbar * p);
+void ProgressbarSet(Progressbar * p, int progress);
+void ProgressbarShow(Progressbar * p);
+void ProgressbarHide(Progressbar * p);
+
+#endif /* _PROGRESS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+
+static int
+isafter(int p, const char *s1, const char *s2)
+{
+ int i, j;
+ int len, len2;
+ int match;
+
+ len = strlen(s1);
+ len2 = strlen(s2);
+
+ match = 0;
+ for (i = p; i < len; i++)
+ {
+ if (s1[i] == s2[0])
+ {
+ match = 1;
+ for (j = 0; j < len2; j++)
+ {
+ if ((i + j) >= len)
+ return -1;
+ if (s1[i + j] != s2[j])
+ match = 0;
+ }
+ }
+ if (match)
+ return i + len2;
+ }
+ return -1;
+}
+
+int
+matchregexp(const char *rx, const char *s)
+{
+ int i, l, m;
+ int len, lenr;
+ int match;
+ char rx2[1024];
+
+ if (!s)
+ return 0;
+ if (!rx)
+ return 0;
+
+ len = strlen(s);
+ l = 0;
+ lenr = 0;
+ match = 1;
+ if ((strcmp(rx, "*") || rx[0] == 0) && s[0] == 0)
+ return 0;
+
+ if (rx[0] != '*')
+ {
+ m = 0;
+ while ((rx[l] != '*') && (rx[l]) && (m < 1023))
+ rx2[m++] = rx[l++];
+ rx2[m] = 0;
+ lenr = strlen(rx2);
+ if (lenr > len)
+ return 0;
+ for (i = 0; i < lenr; i++)
+ {
+ if (s[i] != rx[i])
+ return 0;
+ }
+ }
+ if ((!rx[l]) && (s[lenr]))
+ return 0;
+ for (i = lenr; i < len; i++)
+ {
+ if (rx[l])
+ l++;
+ if (rx[l])
+ {
+ m = 0;
+ while ((rx[l] != '*') && (rx[l]) && (m < 1023))
+ rx2[m++] = rx[l++];
+ rx2[m] = 0;
+ i = isafter(i, s, rx2);
+ if (i < 0)
+ return 0;
+ }
+ else
+ return match;
+ }
+ return match;
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2003-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "ewins.h"
+#include "ipc.h"
+#include "screen.h"
+#include "xwin.h"
+#ifdef USE_XINERAMA
+#include <X11/extensions/Xinerama.h>
+#endif
+
+typedef struct {
+ int type;
+ int head;
+ int x, y;
+ int w, h;
+} EScreen;
+
+static EScreen *p_screens = NULL;
+static int n_screens = 0;
+
+#ifdef USE_XINERAMA
+static XineramaScreenInfo *
+EXineramaQueryScreens(int *number)
+{
+ int event_base, error_base;
+
+ *number = 0;
+
+ if (!XineramaQueryExtension(disp, &event_base, &error_base))
+ return NULL;
+
+ return XineramaQueryScreens(disp, number);
+}
+#endif
+
+void
+ScreenAdd(int type, int head, int x, int y, unsigned int w, unsigned int h)
+{
+ EScreen *es;
+
+ n_screens++;
+ p_screens = EREALLOC(EScreen, p_screens, n_screens);
+
+ es = p_screens + n_screens - 1;
+ es->type = type;
+ es->head = head;
+ es->x = x;
+ es->y = y;
+ es->w = w;
+ es->h = h;
+}
+
+void
+ScreenInit(void)
+{
+#ifdef USE_XINERAMA
+ XineramaScreenInfo *screens;
+ int i, num_screens;
+#endif
+
+ n_screens = 0; /* Causes reconfiguration */
+
+#ifdef USE_XINERAMA
+ if (Mode.wm.window)
+ return;
+
+ screens = EXineramaQueryScreens(&num_screens);
+
+ Mode.display.xinerama_active = (XineramaIsActive(disp)) ? 1 : 0;
+ if (!Mode.display.xinerama_active && num_screens > 1)
+ Mode.display.xinerama_active = 2;
+
+ if (num_screens > 1)
+ {
+ for (i = 0; i < num_screens; i++)
+ ScreenAdd(0, screens[i].screen_number, screens[i].x_org,
+ screens[i].y_org, screens[i].width, screens[i].height);
+ }
+
+ if (screens)
+ XFree(screens);
+#endif
+}
+
+void
+ScreenSplit(unsigned int nx, unsigned int ny)
+{
+ unsigned int i, j;
+
+ if (nx > 8 || ny > 8) /* At least some limit */
+ return;
+
+ if (nx == 0 || ny == 0)
+ {
+ ScreenInit();
+ return;
+ }
+
+ n_screens = 0; /* Causes reconfiguration */
+
+ for (i = 0; i < nx; i++)
+ for (j = 0; j < ny; j++)
+ ScreenAdd(1, Dpy.screen,
+ i * WinGetW(VROOT) / nx, j * WinGetH(VROOT) / ny,
+ WinGetW(VROOT) / nx, WinGetH(VROOT) / ny);
+}
+
+void
+ScreenShowInfo(const char *prm __UNUSED__)
+{
+ int i;
+
+#ifdef USE_XINERAMA
+ static const char *const mt[] = { "Off", "On", "TV", "???" };
+ XineramaScreenInfo *scrns;
+ int num, mode;
+#endif
+
+ IpcPrintf("Head Screen X-Origin Y-Origin Width Height\n");
+ IpcPrintf("Screen:\n");
+ IpcPrintf(" %2d %2d %5d %5d %5d %5d\n",
+ 0, Dpy.screen, 0, 0, WinGetW(VROOT), WinGetH(VROOT));
+
+#ifdef USE_XINERAMA
+ scrns = EXineramaQueryScreens(&num);
+
+ mode = (XineramaIsActive(disp)) ? 1 : 0;
+ if (!mode && num > 1)
+ mode = 2;
+
+ IpcPrintf("Xinerama mode: %s\n", mt[mode]);
+
+ if (scrns)
+ {
+ IpcPrintf("Xinerama screens:\n");
+ for (i = 0; i < num; i++)
+ IpcPrintf(" %2d %2d %5d %5d %5d %5d\n",
+ i, scrns[i].screen_number,
+ scrns[i].x_org, scrns[i].y_org, scrns[i].width,
+ scrns[i].height);
+ XFree(scrns);
+ }
+#endif
+
+ if (n_screens)
+ {
+ IpcPrintf("E-screens:\n");
+ for (i = 0; i < n_screens; i++)
+ {
+ EScreen *ps = p_screens + i;
+
+ IpcPrintf(" %2d %2d %5d %5d %5d %5d\n",
+ i, ps->head, ps->x, ps->y, ps->w, ps->h);
+ }
+ }
+}
+
+void
+ScreenGetGeometryByHead(int head, int *px, int *py, int *pw, int *ph)
+{
+ EScreen *ps;
+ int x, y, w, h;
+
+ if (head >= 0 && head < n_screens)
+ {
+ ps = p_screens + head;
+ x = ps->x;
+ y = ps->y;
+ w = ps->w;
+ h = ps->h;
+ }
+ else
+ {
+ x = 0;
+ y = 0;
+ w = WinGetW(VROOT);
+ h = WinGetH(VROOT);
+ }
+
+ *px = x;
+ *py = y;
+ *pw = w;
+ *ph = h;
+}
+
+int
+ScreenGetGeometry(int xi, int yi, int *px, int *py, int *pw, int *ph)
+{
+ int i, dx, dy, dist, head;
+ EScreen *ps;
+
+ head = 0;
+ dist = 2147483647;
+
+ if (n_screens > 1)
+ {
+ for (i = 0; i < n_screens; i++)
+ {
+ ps = p_screens + i;
+
+ if (xi >= ps->x && xi < ps->x + ps->w &&
+ yi >= ps->y && yi < ps->y + ps->h)
+ {
+ /* Inside - done */
+ head = i;
+ break;
+ }
+ dx = xi - (ps->x + ps->w / 2);
+ dy = yi - (ps->y + ps->h / 2);
+ dx = dx * dx + dy * dy;
+ if (dx >= dist)
+ continue;
+ dist = dx;
+ head = i;
+ }
+ }
+
+ ScreenGetGeometryByHead(head, px, py, pw, ph);
+
+ return head;
+}
+
+static void
+VRootGetAvailableArea(int *px, int *py, int *pw, int *ph)
+{
+ EWin *const *lst, *ewin;
+ int i, num, l, r, t, b;
+
+ l = r = t = b = 0;
+ lst = EwinListGetAll(&num);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+
+ if (l < ewin->strut.left)
+ l = ewin->strut.left;
+ if (r < ewin->strut.right)
+ r = ewin->strut.right;
+ if (t < ewin->strut.top)
+ t = ewin->strut.top;
+ if (b < ewin->strut.bottom)
+ b = ewin->strut.bottom;
+ }
+
+ *px = l;
+ *py = t;
+ *pw = WinGetW(VROOT) - (l + r);
+ *ph = WinGetH(VROOT) - (t + b);
+}
+
+int
+ScreenGetAvailableArea(int xi, int yi, int *px, int *py, int *pw, int *ph)
+{
+ int x1, y1, w1, h1, x2, y2, w2, h2, head;
+
+ head = ScreenGetGeometry(xi, yi, &x1, &y1, &w1, &h1);
+
+ if (!Conf.place.ignore_struts)
+ {
+ VRootGetAvailableArea(&x2, &y2, &w2, &h2);
+ if (x1 < x2)
+ x1 = x2;
+ if (y1 < y2)
+ y1 = y2;
+ if (w1 > w2)
+ w1 = w2;
+ if (h1 > h2)
+ h1 = h2;
+ }
+
+ *px = x1;
+ *py = y1;
+ *pw = w1;
+ *ph = h1;
+
+ return head;
+}
+
+int
+ScreenGetGeometryByPointer(int *px, int *py, int *pw, int *ph)
+{
+ int pointer_x, pointer_y;
+
+ EQueryPointer(NULL, &pointer_x, &pointer_y, NULL, NULL);
+
+ return ScreenGetGeometry(pointer_x, pointer_y, px, py, pw, ph);
+}
+
+int
+ScreenGetAvailableAreaByPointer(int *px, int *py, int *pw, int *ph)
+{
+ int pointer_x, pointer_y;
+
+ EQueryPointer(NULL, &pointer_x, &pointer_y, NULL, NULL);
+
+ return ScreenGetAvailableArea(pointer_x, pointer_y, px, py, pw, ph);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _SCREEN_H_
+#define _SCREEN_H_
+
+/* screen.c */
+void ScreenInit(void);
+void ScreenAdd(int type, int head, int x, int y, unsigned int w,
+ unsigned int h);
+void ScreenSplit(unsigned int nx, unsigned int ny);
+void ScreenShowInfo(const char *prm);
+int ScreenGetGeometry(int x, int y, int *px, int *py,
+ int *pw, int *ph);
+void ScreenGetGeometryByHead(int head, int *px, int *py,
+ int *pw, int *ph);
+int ScreenGetAvailableArea(int x, int y, int *px, int *py,
+ int *pw, int *ph);
+int ScreenGetGeometryByPointer(int *px, int *py,
+ int *pw, int *ph);
+int ScreenGetAvailableAreaByPointer(int *px, int *py,
+ int *pw, int *ph);
+
+#endif /* _SCREEN_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "dialog.h"
+#include "e16-ecore_hints.h"
+#include "emodule.h"
+#include "events.h"
+#include "ewins.h"
+#include "hints.h"
+#include "session.h"
+#include "settings.h"
+#include "snaps.h"
+#include "user.h"
+#include "xwin.h"
+#include <fcntl.h>
+#include <signal.h>
+#include <sys/time.h>
+
+#ifdef USE_EXT_INIT_WIN
+static Window new_init_win_ext = None;
+#endif
+
+#ifndef DEFAULT_SH_PATH
+#ifdef __sgi
+/*
+ * It appears that SGI (at least IRIX 6.4) uses ksh as their sh, and it
+ * seems to run in restricted mode, so things like restart fail miserably.
+ * Let's use csh instead
+ * -KDT 07/31/98
+ */
+#define DEFAULT_SH_PATH "/sbin/csh"
+#else
+#define DEFAULT_SH_PATH "/bin/sh"
+#endif
+#endif
+
+/* True if we are saving state for a doExit("restart") */
+static int restarting = False;
+
+#if USE_SM
+
+#include <X11/SM/SMlib.h>
+
+/*
+ * NB! If the discard property is revived, the dual use of buf must be fixed.
+ */
+#define USE_DISCARD_PROPERTY 0
+
+static char *sm_client_id = NULL;
+static SmcConn sm_conn = NULL;
+
+static EventFdDesc *sm_efd = NULL;
+
+static void
+set_save_props(SmcConn smc_conn, int master_flag)
+{
+ const char *s;
+ char *user;
+ const char *program;
+ char priority = 10;
+ char style;
+ int i, n;
+ SmPropValue programVal;
+ SmPropValue userIDVal;
+
+#if USE_DISCARD_PROPERTY
+ const char *sh = "sh";
+ const char *c = "-c";
+ const char *sm_file;
+ SmPropValue discardVal[3];
+ SmProp discardProp;
+#endif
+#ifdef USE_EXT_INIT_WIN
+ char bufx[32];
+#endif
+ SmPropValue restartVal[32];
+ SmPropValue styleVal;
+ SmPropValue priorityVal;
+ SmProp programProp;
+ SmProp userIDProp;
+ SmProp restartProp;
+ SmProp cloneProp;
+ SmProp styleProp;
+ SmProp priorityProp;
+ SmProp *props[7];
+ char bufs[32], bufm[32];
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("set_save_props\n");
+
+ programProp.name = (char *)SmProgram;
+ programProp.type = (char *)SmARRAY8;
+ programProp.num_vals = 1;
+ programProp.vals = &programVal;
+
+ userIDProp.name = (char *)SmUserID;
+ userIDProp.type = (char *)SmARRAY8;
+ userIDProp.num_vals = 1;
+ userIDProp.vals = &userIDVal;
+
+#if USE_DISCARD_PROPERTY
+ discardProp.name = (char *)SmDiscardCommand;
+ discardProp.type = (char *)SmLISTofARRAY8;
+ discardProp.num_vals = 3;
+ discardProp.vals = discardVal;
+#endif
+
+ restartProp.name = (char *)SmRestartCommand;
+ restartProp.type = (char *)SmLISTofARRAY8;
+ restartProp.vals = restartVal;
+
+ cloneProp.name = (char *)SmCloneCommand;
+ cloneProp.type = (char *)SmLISTofARRAY8;
+ cloneProp.vals = restartVal;
+
+ styleProp.name = (char *)SmRestartStyleHint;
+ styleProp.type = (char *)SmCARD8;
+ styleProp.num_vals = 1;
+ styleProp.vals = &styleVal;
+
+ priorityProp.name = (char *)"_GSM_Priority";
+ priorityProp.type = (char *)SmCARD8;
+ priorityProp.num_vals = 1;
+ priorityProp.vals = &priorityVal;
+
+ if (master_flag)
+ /* Master WM restarts immediately for a doExit("restart") */
+ style = restarting ? SmRestartImmediately : SmRestartIfRunning;
+ else
+ /* Slave WMs never restart */
+ style = SmRestartNever;
+
+ user = username(getuid());
+ /* The SM specs state that the SmProgram should be the argument passed
+ * to execve. Passing argv[0] is close enough. */
+ program = Mode.wm.exec_name;
+
+ userIDVal.length = (user) ? strlen(user) : 0;
+ userIDVal.value = user;
+ programVal.length = strlen(program);
+ programVal.value = (char *)program;
+ styleVal.length = 1;
+ styleVal.value = &style;
+ priorityVal.length = 1;
+ priorityVal.value = &priority;
+
+#if USE_DISCARD_PROPERTY
+ /* Tell session manager how to clean up our old data */
+ sm_file = EGetSavePrefix();
+ Esnprintf(buf, sizeof(buf), "rm %s*.clients.*", sm_file);
+
+ discardVal[0].length = strlen(sh);
+ discardVal[0].value = sh;
+ discardVal[1].length = strlen(c);
+ discardVal[1].value = c;
+ discardVal[2].length = strlen(buf);
+ discardVal[2].value = buf; /* ??? Also used in restartVal ??? */
+#endif
+
+ n = 0;
+ restartVal[n++].value = (char *)program;
+ if (Mode.wm.single)
+ {
+ Esnprintf(bufs, sizeof(bufs), "%i", Mode.wm.master_screen);
+ restartVal[n++].value = (char *)"-s";
+ restartVal[n++].value = (char *)bufs;
+ }
+ else if (restarting && !Mode.wm.master)
+ {
+ Esnprintf(bufm, sizeof(bufm), "%i", Mode.wm.master_screen);
+ restartVal[n++].value = (char *)"-m";
+ restartVal[n++].value = bufm;
+ }
+#ifdef USE_EXT_INIT_WIN
+ if (restarting)
+ {
+ Esnprintf(bufx, sizeof(bufx), "%#lx", new_init_win_ext);
+ restartVal[n++].value = (char *)"-X";
+ restartVal[n++].value = bufx;
+ }
+#endif
+#if 0
+ restartVal[n++].value = (char *)smfile;
+ restartVal[n++].value = (char *)sm_file;
+#endif
+ s = Mode.conf.name;
+ if (s)
+ {
+ restartVal[n++].value = (char *)"-p";
+ restartVal[n++].value = (char *)s;
+ }
+ s = Mode.conf.dir;
+ if (s)
+ {
+ restartVal[n++].value = (char *)"-P";
+ restartVal[n++].value = (char *)s;
+ }
+ s = Mode.conf.cache_dir;
+ if (s)
+ {
+ restartVal[n++].value = (char *)"-Q";
+ restartVal[n++].value = (char *)s;
+ }
+ s = sm_client_id;
+ restartVal[n++].value = (char *)"-S";
+ restartVal[n++].value = (char *)s;
+
+ for (i = 0; i < n; i++)
+ restartVal[i].length = strlen((const char *)restartVal[i].value);
+
+ restartProp.num_vals = n;
+
+ /* SM specs require SmCloneCommand excludes "--sm-client-id" option */
+ cloneProp.num_vals = restartProp.num_vals - 2;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ for (i = 0; i < restartProp.num_vals; i++)
+ Eprintf("restartVal[i]: %2d: %s\n", restartVal[i].length,
+ (char *)restartVal[i].value);
+
+ n = 0;
+ props[n++] = &programProp;
+ props[n++] = &userIDProp;
+#if USE_DISCARD_PROPERTY
+ props[n++] = &discardProp;
+#endif
+ props[n++] = &restartProp;
+ props[n++] = &cloneProp;
+ props[n++] = &styleProp;
+ props[n++] = &priorityProp;
+
+ SmcSetProperties(smc_conn, n, props);
+ Efree(user);
+}
+
+/* This function is usually exclusively devoted to saving data.
+ * However, E sometimes wants to save state and exit immediately afterwards
+ * so that the SM will restart it in a different theme. Therefore, we include
+ * a suicide clause at the end.
+ */
+static void
+callback_save_yourself2(SmcConn smc_conn, SmPointer client_data __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("callback_save_yourself2\n");
+
+ set_save_props(smc_conn, Mode.wm.master);
+ SmcSaveYourselfDone(smc_conn, True);
+ if (restarting)
+ EExit(0);
+}
+
+static void
+callback_save_yourself(SmcConn smc_conn, SmPointer client_data __UNUSED__,
+ int save_style __UNUSED__, Bool shutdown __UNUSED__,
+ int interact_style __UNUSED__, Bool fast __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("callback_save_yourself\n");
+
+ SmcRequestSaveYourselfPhase2(smc_conn, callback_save_yourself2, NULL);
+}
+
+static void
+callback_die(SmcConn smc_conn __UNUSED__, SmPointer client_data __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("callback_die\n");
+
+ SessionExit(EEXIT_EXIT, NULL);
+}
+
+static void
+callback_save_complete(SmcConn smc_conn __UNUSED__,
+ SmPointer client_data __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("callback_save_complete\n");
+}
+
+static void
+callback_shutdown_cancelled(SmcConn smc_conn, SmPointer client_data __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("callback_shutdown_cancelled\n");
+
+ SmcSaveYourselfDone(smc_conn, False);
+}
+
+#if 0 /* Unused */
+static Atom atom_sm_client_id;
+#endif
+
+static IceConn ice_conn;
+
+static void
+ice_io_error_handler(IceConn connection __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("ice_io_error_handler\n");
+
+ /* The less we do here the better - the default handler does an
+ * exit(1) instead of closing the losing connection. */
+}
+
+static void
+ice_exit(void)
+{
+ SmcCloseConnection(sm_conn, 0, NULL);
+ sm_conn = NULL;
+ EventFdUnregister(sm_efd);
+}
+
+static void
+ice_msgs_process(void)
+{
+ IceProcessMessagesStatus status;
+
+ status = IceProcessMessages(ice_conn, NULL, NULL);
+ if (status == IceProcessMessagesIOError)
+ {
+ /* Less of the hope.... E survives */
+ Alert(_("ERROR!\n" "\n"
+ "Lost the Session Manager that was there?\n"
+ "Here here session manager... come here... want a bone?\n"
+ "Oh come now! Stop sulking! Bugger. Oh well. "
+ "Will continue without\n" "a session manager.\n" "\n"
+ "I'll survive somehow.\n" "\n" "\n" "... I hope.\n"));
+ ice_exit();
+ }
+}
+
+static void
+ice_init(void)
+{
+ static SmPointer context;
+ SmcCallbacks callbacks;
+ char error_string_ret[4096];
+ char *client_id;
+ char style[2];
+ SmPropValue styleVal;
+ SmProp styleProp;
+ SmProp *props[1];
+ int sm_fd;
+
+ if (!getenv("SESSION_MANAGER"))
+ return;
+
+ IceSetIOErrorHandler(ice_io_error_handler);
+
+ callbacks.save_yourself.callback = callback_save_yourself;
+ callbacks.die.callback = callback_die;
+ callbacks.save_complete.callback = callback_save_complete;
+ callbacks.shutdown_cancelled.callback = callback_shutdown_cancelled;
+
+ callbacks.save_yourself.client_data = callbacks.die.client_data =
+ callbacks.save_complete.client_data =
+ callbacks.shutdown_cancelled.client_data = (SmPointer) NULL;
+
+ client_id = Estrdup(sm_client_id);
+
+ error_string_ret[0] = '\0';
+
+ sm_conn =
+ SmcOpenConnection(NULL, &context, SmProtoMajor, SmProtoMinor,
+ SmcSaveYourselfProcMask | SmcDieProcMask |
+ SmcSaveCompleteProcMask |
+ SmcShutdownCancelledProcMask, &callbacks,
+ client_id, &sm_client_id, 4096, error_string_ret);
+ Efree(client_id);
+
+ if (error_string_ret[0])
+ Eprintf("While connecting to session manager: %s.", error_string_ret);
+
+ if (!sm_conn)
+ return;
+
+ style[0] = SmRestartIfRunning;
+ style[1] = 0;
+
+ styleVal.length = 1;
+ styleVal.value = style;
+
+ styleProp.name = (char *)SmRestartStyleHint;
+ styleProp.type = (char *)SmCARD8;
+ styleProp.num_vals = 1;
+ styleProp.vals = &styleVal;
+
+ props[0] = &styleProp;
+
+ ice_conn = SmcGetIceConnection(sm_conn);
+ sm_fd = IceConnectionNumber(ice_conn);
+ /* Just in case we are a copy of E created by a doExit("restart") */
+ SmcSetProperties(sm_conn, 1, props);
+ fcntl(sm_fd, F_SETFD, fcntl(sm_fd, F_GETFD, 0) | FD_CLOEXEC);
+
+ sm_efd = EventFdRegister(sm_fd, ice_msgs_process);
+}
+
+#endif /* USE_SM */
+
+void
+SessionInit(void)
+{
+ if (Mode.wm.window)
+ return;
+
+#if 0 /* Unused */
+ atom_sm_client_id = EInternAtom("SM_CLIENT_ID");
+#endif
+
+#if USE_SM
+ ice_init();
+#endif
+
+ if (!Conf.session.script)
+ Conf.session.script = Estrdup("$EROOT/scripts/session.sh");
+ if (!Conf.session.cmd_reboot)
+ Conf.session.cmd_reboot = Estrdup("reboot");
+ if (!Conf.session.cmd_halt)
+ Conf.session.cmd_halt = Estrdup("poweroff");
+}
+
+void
+SessionGetInfo(EWin * ewin __UNUSED__)
+{
+#if 0 /* Unused */
+#if USE_SM
+ if (atom_sm_client_id == None)
+ return;
+ _EFREE(ewin->session_id);
+ if (ewin->icccm.client_leader != None)
+ ewin->session_id =
+ ecore_x_window_prop_string_get(ewin->icccm.client_leader,
+ atom_sm_client_id);
+#else
+ ewin = NULL;
+#endif /* USE_SM */
+#endif
+}
+
+void
+SetSMID(const char *smid)
+{
+#if USE_SM
+ sm_client_id = Estrdup(smid);
+#else
+ smid = NULL;
+#endif /* USE_SM */
+}
+
+static void
+SessionSave(int shutdown)
+{
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("SessionSave(%d)\n", shutdown);
+
+ SnapshotsSaveReal(NULL);
+
+#if USE_SM
+ if (shutdown && sm_conn)
+ ice_exit();
+#endif /* USE_SM */
+}
+
+/*
+ * Normally, the SM will throw away all the session data for a client
+ * that breaks its connection unexpectedly. In order to avoid this we
+ * have to let the SM handle the restart (by setting a SmRestartStyleHint
+ * of SmRestartImmediately). Rather than forcing all SM clients to do a
+ * checkpoint (which would be a bit cleaner) we just save our own state
+ * and then restore it on restart. We grab X input via the ext_init_win
+ * so the our clients remain frozen while we are down.
+ */
+__NORETURN__ static void
+doSMExit(int mode, const char *params)
+{
+ int l;
+ char s[1024];
+ const char *ss;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("doSMExit: mode=%d prm=%p\n", mode, params);
+
+ restarting = True;
+
+ SessionSave(1);
+
+ if (mode != EEXIT_THEME && mode != EEXIT_RESTART)
+ SessionHelper(ESESSION_STOP);
+
+ LangExit();
+
+ if (disp)
+ {
+ /* We may get here from HandleXIOError */
+ EwinsSetFree();
+ ESelectInput(VROOT, 0);
+ ExtInitWinKill();
+ ESync(0);
+
+ /* Forget about cleaning up if no disp */
+ ModulesSignal(ESIGNAL_EXIT, NULL);
+ }
+
+ ss = NULL;
+ switch (mode)
+ {
+ case EEXIT_EXEC:
+ SoundPlay(SOUND_EXIT);
+ EDisplayClose();
+
+ Esnprintf(s, sizeof(s), "exec %s", params);
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("doSMExit: %s\n", s);
+ execl(DEFAULT_SH_PATH, DEFAULT_SH_PATH, "-c", s, NULL);
+ break;
+
+ case EEXIT_THEME:
+ ss = params;
+ case EEXIT_RESTART:
+ SoundPlay(SOUND_WAIT);
+#ifdef USE_EXT_INIT_WIN
+ if (disp && !Mode.wm.window)
+ new_init_win_ext = ExtInitWinCreate();
+#endif
+ EDisplayClose();
+
+ l = 0;
+ l += Esnprintf(s + l, sizeof(s) - l, "exec %s -f", Mode.wm.exec_name);
+ if (Mode.wm.single)
+ l += Esnprintf(s + l, sizeof(s) - l, " -s %d", Dpy.screen);
+ else if (!Mode.wm.master)
+ l +=
+ Esnprintf(s + l, sizeof(s) - l, " -m %d", Mode.wm.master_screen);
+ if (Mode.wm.window)
+ l += Esnprintf(s + l, sizeof(s) - l, " -w %dx%d",
+ WinGetW(VROOT), WinGetH(VROOT));
+#if USE_SM
+ if (sm_client_id)
+ l += Esnprintf(s + l, sizeof(s) - l, " -S %s", sm_client_id);
+#endif
+#ifdef USE_EXT_INIT_WIN
+ if (new_init_win_ext != None)
+ l += Esnprintf(s + l, sizeof(s) - l, " -X %#lx", new_init_win_ext);
+#endif
+ if (ss)
+ l += Esnprintf(s + l, sizeof(s) - l, " -t %s", ss);
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("doSMExit: %s\n", s);
+
+ execl(DEFAULT_SH_PATH, DEFAULT_SH_PATH, "-c", s, NULL);
+ break;
+ }
+
+ restarting = False;
+ SoundPlay(SOUND_EXIT);
+ EExit(0);
+}
+
+static void
+SessionLogout(void)
+{
+#if USE_SM
+ if (sm_conn)
+ {
+ SmcRequestSaveYourself(sm_conn, SmSaveBoth, True, SmInteractStyleAny,
+ False, True);
+ }
+ else
+#endif /* USE_SM */
+ {
+ SessionExit(EEXIT_EXIT, NULL);
+ }
+}
+
+#if ENABLE_DIALOGS
+static void
+LogoutCB(Dialog * d, int val, void *data __UNUSED__)
+{
+#if USE_SM
+ if (sm_conn)
+ {
+ SessionLogout();
+ }
+ else
+#endif /* USE_SM */
+ {
+ /* 0:LogOut -: No -or- */
+ /* 0:Halt 1:Reboot 2:LogOut -:No */
+ switch (val)
+ {
+ default:
+ break;
+ case 1:
+ SessionExit(EEXIT_EXIT, NULL);
+ break;
+ case 2:
+ SessionExit(EEXIT_EXEC, Conf.session.cmd_reboot);
+ break;
+ case 3:
+ SessionExit(EEXIT_EXEC, Conf.session.cmd_halt);
+ break;
+ }
+ }
+
+ DialogClose(d);
+}
+
+static void
+SessionLogoutConfirm(void)
+{
+ Dialog *d;
+ DItem *table, *di;
+
+ d = DialogFind("LOGOUT_DIALOG");
+ if (!d)
+ {
+ SoundPlay(SOUND_LOGOUT);
+ d = DialogCreate("LOGOUT_DIALOG");
+ table = DialogInitItem(d);
+ DialogSetTitle(d, _("Are you sure?"));
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, _("\n\n"
+ " Are you sure you wish to log out ? \n"
+ "\n\n"));
+ table = DialogAddItem(table, DITEM_TABLE);
+ DialogItemSetAlign(table, 512, 0);
+ DialogItemSetFill(table, 0, 0);
+ DialogItemTableSetOptions(table, 2, 0, 1, 0);
+ if (Conf.session.enable_reboot_halt)
+ {
+ DialogItemTableSetOptions(table, 4, 0, 1, 0);
+ DialogItemAddButton(table, _(" Yes, Shut Down "), LogoutCB, 3,
+ 1, DLG_BUTTON_OK);
+ DialogItemAddButton(table, _(" Yes, Reboot "), LogoutCB, 2,
+ 1, DLG_BUTTON_OK);
+ }
+ DialogItemAddButton(table, _(" Yes, Log Out "), LogoutCB, 1,
+ 1, DLG_BUTTON_OK);
+ DialogItemAddButton(table, _(" No "), NULL, 0, 1, DLG_BUTTON_CANCEL);
+ DialogBindKey(d, "Escape", DialogCallbackClose, 0, NULL);
+ DialogBindKey(d, "Return", LogoutCB, 1, NULL);
+ }
+
+ DialogShowCentered(d);
+}
+#endif /* ENABLE_DIALOGS */
+
+void
+SessionExit(int mode, const char *param)
+{
+ /* We do not want to be exited by children. */
+ if (getpid() != Mode.wm.pid)
+ return;
+
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("SessionExit: mode=%d(%d) prm=%s\n", mode, Mode.wm.exit_mode,
+ param);
+
+ if (Mode.wm.exiting)
+ return;
+
+ if (Mode.wm.startup || Mode.wm.exit_now)
+ goto done;
+
+ switch (mode)
+ {
+ default:
+ /* In event loop - Set exit mode */
+ Mode.wm.exit_mode = mode;
+ Mode.wm.exit_param = Estrdup(param);
+ return;
+
+ case EEXIT_QUIT:
+ mode = Mode.wm.exit_mode;
+ param = Mode.wm.exit_param;
+ break;
+
+ case EEXIT_ERROR:
+ if (!Mode.wm.exiting)
+ break;
+ /* This may be possible during nested signal handling */
+ Eprintf("SessionExit already in progress ... now exiting\n");
+ exit(1);
+ break;
+
+ case EEXIT_LOGOUT:
+#if ENABLE_DIALOGS
+ if (Conf.session.enable_logout_dialog)
+ SessionLogoutConfirm();
+ else
+#endif
+ SessionLogout();
+ return;
+ }
+
+ done:
+ Mode.wm.exiting++;
+ doSMExit(mode, param);
+}
+
+static void
+SessionRunProg(const char *prog, const char *params)
+{
+ char buf[4096];
+ const char *s;
+
+ if (params)
+ {
+ Esnprintf(buf, sizeof(buf), "%s %s", prog, params);
+ s = buf;
+ }
+ else
+ {
+ s = prog;
+ }
+ if (EDebug(EDBUG_TYPE_SESSION))
+ Eprintf("SessionRunProg: %s\n", s);
+ system(s);
+}
+
+void
+SessionHelper(int when)
+{
+ switch (when)
+ {
+ case ESESSION_INIT:
+ if (Conf.session.enable_script && Conf.session.script)
+ SessionRunProg(Conf.session.script, "init");
+ break;
+ case ESESSION_START:
+ if (Conf.session.enable_script && Conf.session.script)
+ SessionRunProg(Conf.session.script, "start");
+ break;
+ case ESESSION_STOP:
+ if (Conf.session.enable_script && Conf.session.script)
+ SessionRunProg(Conf.session.script, "stop");
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Session dialog
+ */
+static char tmp_session_script;
+static char tmp_logout_dialog;
+static char tmp_reboot_halt;
+
+static void
+CB_ConfigureSession(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.session.enable_script = tmp_session_script;
+ Conf.session.enable_logout_dialog = tmp_logout_dialog;
+ Conf.session.enable_reboot_halt = tmp_reboot_halt;
+ }
+ autosave();
+}
+
+static void
+_DlgFillSession(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_session_script = Conf.session.enable_script;
+ tmp_logout_dialog = Conf.session.enable_logout_dialog;
+ tmp_reboot_halt = Conf.session.enable_reboot_halt;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Session Script"));
+ DialogItemCheckButtonSetPtr(di, &tmp_session_script);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Logout Dialog"));
+ DialogItemCheckButtonSetPtr(di, &tmp_logout_dialog);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Reboot/Halt on Logout"));
+ DialogItemCheckButtonSetPtr(di, &tmp_reboot_halt);
+}
+
+const DialogDef DlgSession = {
+ "CONFIGURE_SESSION",
+ N_("Session"),
+ N_("Session Settings"),
+ SOUND_SETTINGS_SESSION,
+ "pix/miscellaneous.png",
+ N_("Enlightenment Session\n" "Settings Dialog\n"),
+ _DlgFillSession,
+ DLG_OAC, CB_ConfigureSession,
+};
+#endif /* ENABLE_DIALOGS */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _SESSION_H_
+#define _SESSION_H_
+
+/* session.c */
+#define EEXIT_QUIT 0
+#define EEXIT_EXIT 1
+#define EEXIT_ERROR 2
+#define EEXIT_LOGOUT 3
+#define EEXIT_RESTART 4
+#define EEXIT_THEME 5
+#define EEXIT_EXEC 6
+
+#define ESESSION_INIT 0
+#define ESESSION_START 1
+#define ESESSION_STOP 2
+
+void SessionInit(void);
+void SessionExit(int mode, const char *params);
+void SessionHelper(int when);
+void SetSMID(const char *smid);
+
+#endif /* _SESSION_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#if ENABLE_DIALOGS
+#include "dialog.h"
+#include "settings.h"
+
+static int tmp_move;
+static int tmp_resize;
+static int tmp_geominfo;
+static int tmp_maximize;
+static char tmp_dragbar_nocover;
+static char tmp_avoid_server_grab;
+static char tmp_update_while_moving;
+static char tmp_sync_request;
+
+static void
+CB_ConfigureMoveResize(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.movres.mode_move = tmp_move;
+ Conf.movres.mode_resize = tmp_resize;
+ Conf.movres.mode_info = tmp_geominfo;
+ Conf.movres.mode_maximize_default = tmp_maximize;
+ Conf.movres.avoid_server_grab = tmp_avoid_server_grab;
+ Conf.movres.update_while_moving = tmp_update_while_moving;
+ Conf.movres.enable_sync_request = tmp_sync_request;
+ Conf.movres.dragbar_nocover = tmp_dragbar_nocover;
+ }
+ autosave();
+}
+
+static void
+_DlgFillMoveResize(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *radio1, *radio2, *radio3, *radio4;
+
+ tmp_move = Conf.movres.mode_move;
+ tmp_resize = Conf.movres.mode_resize;
+ tmp_geominfo = Conf.movres.mode_info;
+ tmp_maximize = Conf.movres.mode_maximize_default;
+ tmp_avoid_server_grab = Conf.movres.avoid_server_grab;
+ tmp_update_while_moving = Conf.movres.update_while_moving;
+ tmp_sync_request = Conf.movres.enable_sync_request;
+ tmp_dragbar_nocover = Conf.movres.dragbar_nocover;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Move Methods:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Resize Methods:"));
+
+ radio1 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Opaque"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ radio2 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Opaque"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Technical"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Technical"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Box"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Box"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Shaded"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Shaded"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Semi-Solid"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 4);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Semi-Solid"));
+ DialogItemRadioButtonSetFirst(di, radio2);
+ DialogItemRadioButtonGroupSetVal(di, 4);
+ DialogItemRadioButtonGroupSetValPtr(radio2, &tmp_resize);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Translucent"));
+ DialogItemRadioButtonSetFirst(di, radio1);
+ DialogItemRadioButtonGroupSetVal(di, 5);
+ DialogItemRadioButtonGroupSetValPtr(radio1, &tmp_move);
+
+ di = DialogAddItem(table, DITEM_NONE);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Avoid server grab"));
+ DialogItemCheckButtonSetPtr(di, &tmp_avoid_server_grab);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Move/Resize Geometry Info Postion:"));
+
+ radio3 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Window Center (O/T/B Methods)"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Always Screen corner"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Don't show"));
+ DialogItemRadioButtonSetFirst(di, radio3);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+ DialogItemRadioButtonGroupSetValPtr(radio3, &tmp_geominfo);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Default Resize Policy:"));
+
+ radio4 = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Conservative"));
+ DialogItemRadioButtonSetFirst(di, radio4);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Available"));
+ DialogItemRadioButtonSetFirst(di, radio4);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Absolute"));
+ DialogItemRadioButtonSetFirst(di, radio4);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+ DialogItemRadioButtonGroupSetValPtr(radio4, &tmp_maximize);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Update window while moving"));
+ DialogItemCheckButtonSetPtr(di, &tmp_update_while_moving);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Synchronize move/resize with application"));
+ DialogItemCheckButtonSetPtr(di, &tmp_sync_request);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Do not cover dragbar"));
+ DialogItemCheckButtonSetPtr(di, &tmp_dragbar_nocover);
+}
+
+const DialogDef DlgMoveResize = {
+ "CONFIGURE_MOVERESIZE",
+ N_("Move/Resize"),
+ N_("Move & Resize Settings"),
+ SOUND_SETTINGS_MOVERESIZE,
+ "pix/moveres.png",
+ N_("Enlightenment Move & Resize\n" "Method Settings Dialog\n"),
+ _DlgFillMoveResize,
+ DLG_OAC, CB_ConfigureMoveResize,
+};
+
+static char tmp_with_leader;
+static char tmp_switch_popup;
+static char tmp_manual_placement;
+static char tmp_manual_placement_mouse_pointer;
+static char tmp_center_if_desk_full;
+static char tmp_map_slide;
+static char tmp_cleanup_slide;
+static int tmp_slide_mode;
+static int tmp_map_slide_speed;
+static int tmp_cleanup_slide_speed;
+static char tmp_animate_shading;
+static int tmp_shade_speed;
+static char tmp_place_ignore_struts;
+static char tmp_raise_fullscreen;
+
+#ifdef USE_XINERAMA_no /* Not implemented */
+static char tmp_extra_head;
+#endif
+
+static void
+CB_ConfigurePlacement(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.focus.transientsfollowleader = tmp_with_leader;
+ Conf.focus.switchfortransientmap = tmp_switch_popup;
+
+ Conf.place.manual = tmp_manual_placement;
+ Conf.place.manual_mouse_pointer = tmp_manual_placement_mouse_pointer;
+ Conf.place.center_if_desk_full = tmp_center_if_desk_full;
+
+ Conf.place.slidein = tmp_map_slide;
+ Conf.place.cleanupslide = tmp_cleanup_slide;
+ Conf.place.slidemode = tmp_slide_mode;
+ Conf.place.slidespeedmap = tmp_map_slide_speed;
+ Conf.place.slidespeedcleanup = tmp_cleanup_slide_speed;
+
+ Conf.shading.animate = tmp_animate_shading;
+ Conf.shading.speed = tmp_shade_speed;
+
+ Conf.place.ignore_struts = tmp_place_ignore_struts;
+ Conf.place.raise_fullscreen = tmp_raise_fullscreen;
+#ifdef USE_XINERAMA_no /* Not implemented */
+ if (Mode.display.xinerama_active)
+ Conf.place.extra_head = tmp_extra_head;
+#endif
+ }
+ autosave();
+}
+
+static void
+_DlgFillPlacement(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *radio;
+
+ tmp_with_leader = Conf.focus.transientsfollowleader;
+ tmp_switch_popup = Conf.focus.switchfortransientmap;
+
+ tmp_manual_placement = Conf.place.manual;
+ tmp_manual_placement_mouse_pointer = Conf.place.manual_mouse_pointer;
+ tmp_center_if_desk_full = Conf.place.center_if_desk_full;
+
+ tmp_map_slide = Conf.place.slidein;
+ tmp_cleanup_slide = Conf.place.cleanupslide;
+ tmp_slide_mode = Conf.place.slidemode;
+ tmp_map_slide_speed = Conf.place.slidespeedmap;
+ tmp_cleanup_slide_speed = Conf.place.slidespeedcleanup;
+
+ tmp_animate_shading = Conf.shading.animate;
+ tmp_shade_speed = Conf.shading.speed;
+
+ tmp_place_ignore_struts = Conf.place.ignore_struts;
+ tmp_raise_fullscreen = Conf.place.raise_fullscreen;
+
+#ifdef USE_XINERAMA_no /* Not implemented */
+ tmp_extra_head = Conf.place.extra_head;
+#endif
+
+ DialogItemTableSetOptions(table, 2, 0, 1, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Dialog windows appear together with their owner"));
+ DialogItemCheckButtonSetPtr(di, &tmp_with_leader);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Switch to desktop where dialog appears"));
+ DialogItemCheckButtonSetPtr(di, &tmp_switch_popup);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Place windows manually"));
+ DialogItemCheckButtonSetPtr(di, &tmp_manual_placement);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Place windows under mouse"));
+ DialogItemCheckButtonSetPtr(di, &tmp_manual_placement_mouse_pointer);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Center windows when desk is full"));
+ DialogItemCheckButtonSetPtr(di, &tmp_center_if_desk_full);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Slide windows in when they appear"));
+ DialogItemCheckButtonSetPtr(di, &tmp_map_slide);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Slide windows around when cleaning up"));
+ DialogItemCheckButtonSetPtr(di, &tmp_cleanup_slide);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Slide Method:"));
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Opaque"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Technical"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Box"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Shaded"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetText(di, _("Semi-Solid"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 4);
+ DialogItemRadioButtonGroupSetValPtr(radio, &tmp_slide_mode);
+
+ di = DialogAddItem(table, DITEM_NONE);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Appear Slide speed:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 20000);
+ DialogItemSliderSetUnits(di, 500);
+ DialogItemSliderSetJump(di, 1000);
+ DialogItemSliderSetValPtr(di, &tmp_map_slide_speed);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Cleanup Slide speed:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 20000);
+ DialogItemSliderSetUnits(di, 500);
+ DialogItemSliderSetJump(di, 1000);
+ DialogItemSliderSetValPtr(di, &tmp_cleanup_slide_speed);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Animate shading and unshading of windows"));
+ DialogItemCheckButtonSetPtr(di, &tmp_animate_shading);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, _("Window Shading speed:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 20000);
+ DialogItemSliderSetUnits(di, 500);
+ DialogItemSliderSetJump(di, 1000);
+ DialogItemSliderSetValPtr(di, &tmp_shade_speed);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Ignore struts"));
+ DialogItemCheckButtonSetPtr(di, &tmp_place_ignore_struts);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Raise fullscreen windows"));
+ DialogItemCheckButtonSetPtr(di, &tmp_raise_fullscreen);
+
+#ifdef USE_XINERAMA_no /* Not implemented */
+ if (Mode.display.xinerama_active)
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Place windows on another head when full"));
+ DialogItemCheckButtonSetPtr(di, &tmp_extra_head);
+ }
+#endif
+}
+
+const DialogDef DlgPlacement = {
+ "CONFIGURE_PLACEMENT",
+ N_("Placement"),
+ N_("Window Placement Settings"),
+ SOUND_SETTINGS_PLACEMENT,
+ "pix/place.png",
+ N_("Enlightenment Window Placement\n" "Settings Dialog\n"),
+ _DlgFillPlacement,
+ DLG_OAC, CB_ConfigurePlacement,
+};
+
+static char tmp_autoraise;
+static int tmp_autoraisetime;
+
+static void
+CB_ConfigureAutoraise(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.autoraise.enable = tmp_autoraise;
+ Conf.autoraise.delay = 10 * tmp_autoraisetime;
+ }
+ autosave();
+}
+
+static void
+_DlgFillAutoraise(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_autoraise = Conf.autoraise.enable;
+ tmp_autoraisetime = Conf.autoraise.delay / 10;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Raise Windows Automatically"));
+ DialogItemCheckButtonSetPtr(di, &tmp_autoraise);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Autoraise delay:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 300);
+ DialogItemSliderSetUnits(di, 10);
+ DialogItemSliderSetJump(di, 25);
+ DialogItemSliderSetValPtr(di, &tmp_autoraisetime);
+}
+
+const DialogDef DlgAutoraise = {
+ "CONFIGURE_AUTORAISE",
+ N_("Autoraise"),
+ N_("Autoraise Settings"),
+ SOUND_SETTINGS_AUTORAISE,
+ "pix/raise.png",
+ N_("Enlightenment Automatic Raising\n" "of Windows Settings Dialog\n"),
+ _DlgFillAutoraise,
+ DLG_OAC, CB_ConfigureAutoraise,
+};
+
+static char tmp_dialog_headers;
+static char tmp_button_image;
+static char tmp_animate_startup;
+static char tmp_saveunders;
+
+static void
+CB_ConfigureMiscellaneous(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf.dialogs.headers = tmp_dialog_headers;
+ Conf.dialogs.button_image = tmp_button_image;
+ Conf.startup.animate = tmp_animate_startup;
+ Conf.save_under = tmp_saveunders;
+ }
+ autosave();
+}
+
+static void
+_DlgFillMisc(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_dialog_headers = Conf.dialogs.headers;
+ tmp_button_image = Conf.dialogs.button_image;
+ tmp_animate_startup = Conf.startup.animate;
+ tmp_saveunders = Conf.save_under;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Dialog Headers"));
+ DialogItemCheckButtonSetPtr(di, &tmp_dialog_headers);
+
+#if 0 /* Not functional */
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Button Images"));
+ DialogItemCheckButtonSetPtr(di, &tmp_button_image);
+#endif
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable sliding startup windows"));
+ DialogItemCheckButtonSetPtr(di, &tmp_animate_startup);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Use saveunders to reduce window exposures"));
+ DialogItemCheckButtonSetPtr(di, &tmp_saveunders);
+}
+
+const DialogDef DlgMisc = {
+ "CONFIGURE_MISCELLANEOUS",
+ N_("Miscellaneous"),
+ N_("Miscellaneous Settings"),
+ SOUND_SETTINGS_MISCELLANEOUS,
+ "pix/miscellaneous.png",
+ N_("Enlightenment Miscellaneous\n" "Settings Dialog\n"),
+ _DlgFillMisc,
+ DLG_OAC, CB_ConfigureMiscellaneous,
+};
+
+#if USE_COMPOSITE
+#include "ecompmgr.h"
+
+/*
+ * Composite dialog
+ */
+
+static void
+CB_ConfigureComposite(Dialog * d, int val, void *data __UNUSED__)
+{
+ cfg_composite *cfg;
+
+ if (val >= 2)
+ return;
+
+ /* Configure and read back */
+ cfg = (cfg_composite *) DialogGetData(d);
+ ECompMgrConfigSet(cfg);
+ ECompMgrConfigGet(cfg);
+}
+
+static void
+_DlgFillComposite(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ static cfg_composite Cfg_composite;
+ DItem *di, *radio;
+
+ /* Get current settings */
+ ECompMgrConfigGet(&Cfg_composite);
+ DialogSetData(d, &Cfg_composite);
+
+ /* Layout */
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Composite"));
+ DialogItemCheckButtonSetPtr(di, &Cfg_composite.enable);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable Fading"));
+ DialogItemCheckButtonSetPtr(di, &Cfg_composite.fading);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Fading Speed:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 100);
+ DialogItemSliderSetUnits(di, 5);
+ DialogItemSliderSetJump(di, 5);
+ DialogItemSliderSetValPtr(di, &Cfg_composite.fade_speed);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ radio = di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shadows Off"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 0);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shadows Sharp"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 1);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shadows Sharp2"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 3);
+
+ di = DialogAddItem(table, DITEM_RADIOBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shadows Blurred"));
+ DialogItemRadioButtonSetFirst(di, radio);
+ DialogItemRadioButtonGroupSetVal(di, 2);
+ DialogItemRadioButtonGroupSetValPtr(radio, &Cfg_composite.shadow);
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 2);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Default focused window opacity:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 100);
+ DialogItemSliderSetUnits(di, 5);
+ DialogItemSliderSetJump(di, 5);
+ DialogItemSliderSetValPtr(di, &Cfg_composite.opacity_focused);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Default unfocused window opacity:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 100);
+ DialogItemSliderSetUnits(di, 5);
+ DialogItemSliderSetJump(di, 5);
+ DialogItemSliderSetValPtr(di, &Cfg_composite.opacity_unfocused);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Default pop-up window opacity:"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 100);
+ DialogItemSliderSetUnits(di, 5);
+ DialogItemSliderSetJump(di, 5);
+ DialogItemSliderSetValPtr(di, &Cfg_composite.opacity_override);
+}
+
+const DialogDef DlgComposite = {
+ "CONFIGURE_COMPOSITE",
+ N_("Composite"),
+ N_("Composite Settings"),
+ SOUND_SETTINGS_COMPOSITE,
+ "pix/pager.png",
+ N_("Enlightenment Composite\n" "Settings Dialog\n"),
+ _DlgFillComposite,
+ DLG_OAC, CB_ConfigureComposite,
+};
+#endif
+
+/*
+ * Combined configuration dialog
+ */
+
+static const DialogDef *dialogs[] = {
+ &DlgFocus,
+ &DlgMoveResize,
+ &DlgPlacement,
+ &DlgDesks,
+ &DlgAreas,
+ &DlgPagers,
+ &DlgMenus,
+ &DlgAutoraise,
+ &DlgTooltips,
+#if HAVE_SOUND
+ &DlgSound,
+#endif
+ &DlgGroupDefaults,
+ &DlgRemember,
+ &DlgFx,
+ &DlgBackground,
+ &DlgTheme,
+#ifdef ENABLE_THEME_TRANSPARENCY
+ &DlgThemeTrans,
+#endif
+#if USE_COMPOSITE
+ &DlgComposite,
+#endif
+ &DlgSession,
+ &DlgMisc,
+};
+#define N_CFG_DLGS (sizeof(dialogs)/sizeof(DialogDef*))
+
+static void
+CB_DlgSelect(Dialog * d, int val, void *data)
+{
+ const DialogDef *dd = dialogs[val];
+ DItem *table = (DItem *) data;
+
+ if (!table)
+ return;
+ if (!dd->fill)
+ return;
+
+ DialogCallExitFunction(d);
+
+ DialogItemTableEmpty(table);
+ DialogKeybindingsDestroy(d);
+
+ DialogSetTitle(d, _(dd->title));
+ DialogFill(d, table, dd, NULL);
+
+ DialogArrange(d, 1);
+}
+
+static void
+_DlgFillConfiguration(Dialog * d, DItem * table, void *data __UNUSED__)
+{
+ DItem *di, *buttons, *content;
+ unsigned int i;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ buttons = DialogAddItem(table, DITEM_TABLE);
+ content = DialogAddItem(table, DITEM_TABLE);
+
+ for (i = 0; i < N_CFG_DLGS; i++)
+ {
+ di = DialogAddItem(buttons, DITEM_BUTTON);
+ DialogItemSetPadding(di, 2, 2, 0, 0);
+ DialogItemSetText(di, _(dialogs[i]->label));
+ DialogItemSetCallback(di, CB_DlgSelect, i, content);
+ }
+
+ DialogFill(d, content, dialogs[0], NULL);
+}
+
+static const DialogDef DlgConfiguration = {
+ "CONFIGURE_ALL",
+ NULL,
+ N_("Enlightenment Settings"),
+ SOUND_SETTINGS_ALL,
+ NULL,
+ NULL,
+ _DlgFillConfiguration,
+ 0, NULL,
+};
+
+void
+IPC_Cfg(const char *params)
+{
+ unsigned int i;
+ const char *name;
+
+ if (!params || !params[0])
+ {
+ DialogShowSimple(&DlgConfiguration, NULL);
+ return;
+ }
+
+ for (i = 0; i < N_CFG_DLGS; i++)
+ {
+ name = dialogs[i]->label;
+ if (strcasecmp(params, name))
+ continue;
+ DialogShowSimple(dialogs[i], NULL);
+ }
+}
+#endif /* ENABLE_DIALOGS */
--- /dev/null
+/*
+ * Copyright (C) 2006-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _SETTINGS_H_
+#define _SETTINGS_H_
+
+#if ENABLE_DIALOGS
+
+/* settings.c */
+void IPC_Cfg(const char *params);
+
+#ifdef _DIALOG_H_
+extern const DialogDef DlgAreas;
+extern const DialogDef DlgAutoraise;
+extern const DialogDef DlgBackground;
+extern const DialogDef DlgComposite;
+extern const DialogDef DlgDesks;
+extern const DialogDef DlgFocus;
+extern const DialogDef DlgFx;
+extern const DialogDef DlgGroupDefaults;
+extern const DialogDef DlgMenus;
+extern const DialogDef DlgMisc;
+extern const DialogDef DlgMoveResize;
+extern const DialogDef DlgPagers;
+extern const DialogDef DlgPlacement;
+extern const DialogDef DlgRemember;
+extern const DialogDef DlgSession;
+extern const DialogDef DlgSound;
+extern const DialogDef DlgTheme;
+extern const DialogDef DlgThemeTrans;
+extern const DialogDef DlgTooltips;
+#endif
+
+#endif /* ENABLE_DIALOGS */
+
+#endif /* _SETTINGS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "events.h"
+#include "ewins.h"
+#include "screen.h"
+#include "session.h"
+#include "xwin.h"
+#include <signal.h>
+#include <X11/keysym.h>
+
+static void
+HandleXIOError(void)
+{
+ SessionExit(EEXIT_ERROR, NULL);
+}
+
+/*
+ * This function sets up all of our connections to X
+ */
+void
+SetupX(const char *dstr)
+{
+ int err;
+ char buf[128];
+ long mask;
+
+ if (!dstr)
+ dstr = getenv("DISPLAY");
+ if (!dstr)
+ dstr = ":0";
+
+ /* Open a connection to the diplay nominated by the DISPLAY variable */
+ err = EDisplayOpen(dstr, Dpy.screen);
+ if (err)
+ {
+ Alert(_("Enlightenment cannot connect to the display nominated by\n"
+ "your shell's DISPLAY environment variable. You may set this\n"
+ "variable to indicate which display name Enlightenment is to\n"
+ "connect to. It may be that you do not have an Xserver already\n"
+ "running to serve that Display connection, or that you do not\n"
+ "have permission to connect to that display. Please make sure\n"
+ "all is correct before trying again. Run an Xserver by running\n"
+ "xdm or startx first, or contact your local system\n"
+ "administrator, or Xserver vendor, or read the X, xdm and\n"
+ "startx manual pages before proceeding.\n"));
+ EExit(1);
+ }
+
+ if (getenv("ESYNCHRONIZE"))
+ XSynchronize(disp, True);
+
+ Dpy.screens = ScreenCount(disp);
+ Dpy.screen = DefaultScreen(disp);
+
+ if (Mode.wm.master ||
+ Mode.wm.master_screen < 0 || Mode.wm.master_screen >= Dpy.screens)
+ Mode.wm.master_screen = Dpy.screen;
+
+ /* Start up on multiple heads, if appropriate */
+ if (Dpy.screens > 1 && !Mode.wm.single && !Mode.wm.restart)
+ {
+ int i;
+
+ for (i = 0; i < Dpy.screens; i++)
+ {
+ pid_t pid;
+
+ if (i == Dpy.screen)
+ continue;
+
+ pid = fork();
+ if (pid)
+ {
+ /* We are the master */
+ Mode.wm.child_count++;
+ Mode.wm.children =
+ EREALLOC(pid_t, Mode.wm.children, Mode.wm.child_count);
+ Mode.wm.children[Mode.wm.child_count - 1] = pid;
+ }
+ else
+ {
+ /* We are a slave */
+ EDisplayDisconnect();
+ Mode.wm.master = 0;
+ Mode.wm.pid = getpid();
+ Dpy.screen = i;
+ ExtInitWinSet(None);
+#ifdef SIGSTOP
+ kill(getpid(), SIGSTOP);
+#endif
+ EDisplayOpen(dstr, i);
+ /* Terminate the loop as I am the child process... */
+ break;
+ }
+ }
+ }
+
+ Dpy.name = Estrdup(DisplayString(disp));
+ Esetenv("DISPLAY", Dpy.name);
+
+ Dpy.pixel_black = BlackPixel(disp, Dpy.screen);
+ Dpy.pixel_white = WhitePixel(disp, Dpy.screen);
+
+ EDisplaySetErrorHandlers(HandleXIOError);
+
+ /* Root defaults */
+ RROOT = ERegisterWindow(DefaultRootWindow(disp), NULL);
+
+ if (Mode.wm.window)
+ {
+ VROOT = ECreateWindow(RROOT, 0, 0, Mode.wm.win_w, Mode.wm.win_h, 0);
+
+ /* Enable eesh and edox to pick up the virtual root */
+ Esnprintf(buf, sizeof(buf), "%#lx", WinGetXwin(VROOT));
+ Esetenv("ENL_WM_ROOT", buf);
+ }
+ else
+ {
+ /* Running E normally on the root window */
+ VROOT = RROOT;
+ }
+
+ /* Initialise event handling */
+ EventsInit();
+
+ /* select all the root window events to start managing */
+ Dpy.last_error_code = 0;
+ mask =
+ StructureNotifyMask | SubstructureNotifyMask | SubstructureRedirectMask;
+ ESelectInput(VROOT, mask);
+ ESync(0);
+ if (Dpy.last_error_code)
+ {
+ AlertX(_("Another Window Manager is already running"),
+ _("OK"), NULL, NULL,
+ _("Another Window Manager is already running.\n" "\n"
+ "You will have to quit your current Window Manager first before\n"
+ "you can successfully run Enlightenment.\n"));
+ EExit(1);
+ }
+
+ /* warn, if necessary about X version problems */
+ if (ProtocolVersion(disp) != 11)
+ {
+ AlertX(_("X server version error"), _("Ignore this error"), "",
+ _("Quit Enlightenment"),
+ _("WARNING:\n"
+ "This is not an X11 Xserver. It in fact talks the X%i protocol.\n"
+ "This may mean Enlightenment will either not function, or\n"
+ "function incorrectly. If it is later than X11, then your\n"
+ "server is one the author of Enlightenment neither have\n"
+ "access to, nor have heard of.\n"), ProtocolVersion(disp));
+ }
+
+ /* damn that bloody numlock stuff - ok I'd rather XFree got fixed to not */
+ /* have it as a modifier and everyone have to write specific code to mask */
+ /* it out - but well.... */
+ /* ok under Xfree Numlock and Scollock are lock modifiers and we need */
+ /* to hunt them down to mask them out - EVIL EVIL EVIL hack but needed */
+ {
+ XModifierKeymap *mod;
+ KeyCode nl, sl;
+ unsigned int numlock, scrollock;
+ int i;
+ int masks[8] = {
+ ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask,
+ Mod4Mask, Mod5Mask
+ };
+
+ numlock = scrollock = 0;
+ mod = XGetModifierMapping(disp);
+ nl = EKeysymToKeycode(XK_Num_Lock);
+ sl = EKeysymToKeycode(XK_Scroll_Lock);
+ if ((mod) && (mod->max_keypermod > 0))
+ {
+ for (i = 0; i < (8 * mod->max_keypermod); i++)
+ {
+ if ((nl) && (mod->modifiermap[i] == nl))
+ numlock = masks[i / mod->max_keypermod];
+ else if ((sl) && (mod->modifiermap[i] == sl))
+ scrollock = masks[i / mod->max_keypermod];
+ }
+ }
+ Mode.masks.mod_combos[0] = 0;
+ Mode.masks.mod_combos[1] = LockMask;
+ if (numlock)
+ {
+ Mode.masks.mod_combos[2] = numlock;
+ Mode.masks.mod_combos[5] = LockMask | numlock;
+ }
+ if (scrollock)
+ {
+ Mode.masks.mod_combos[3] = scrollock;
+ Mode.masks.mod_combos[6] = LockMask | scrollock;
+ }
+ if (numlock && scrollock)
+ {
+ Mode.masks.mod_combos[4] = numlock | scrollock;
+ Mode.masks.mod_combos[7] = LockMask | numlock | scrollock;
+ }
+
+ Mode.masks.mod_key_mask =
+ (ShiftMask | ControlMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask |
+ Mod5Mask) & (~(numlock | scrollock | LockMask));
+
+ if (mod)
+ XFreeModifiermap(mod);
+ }
+
+ ScreenInit();
+ ZoomInit();
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2003-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "ewins.h"
+#include "hints.h"
+#include "screen.h"
+
+#define MAX_ABSOLUTE 0 /* Fill screen */
+#define MAX_AVAILABLE 1 /* Expand until don't cover */
+#define MAX_CONSERVATIVE 2 /* Expand until something */
+#define MAX_XINERAMA 3 /* Fill Xinerama screen */
+
+void
+MaxSizeHV(EWin * ewin, const char *resize_type, int hor, int ver)
+{
+ int x, y, w, h, x1, x2, y1, y2, type, bl, br, bt, bb;
+ EWin *const *lst, *pe;
+ int i, num;
+
+ if (!ewin)
+ return;
+
+ if (ewin->state.inhibit_max_hor && hor)
+ return;
+ if (ewin->state.inhibit_max_ver && ver)
+ return;
+
+ if (ewin->state.maximized_horz || ewin->state.maximized_vert)
+ {
+ EwinMoveResize(ewin, ewin->save_max.x, ewin->save_max.y,
+ ewin->save_max.w, ewin->save_max.h);
+ ewin->save_max.x = EoGetX(ewin);
+ ewin->save_max.y = EoGetY(ewin);
+ ewin->save_max.w = ewin->client.w;
+ ewin->save_max.h = ewin->client.h;
+ ewin->state.maximized_horz = 0;
+ ewin->state.maximized_vert = 0;
+ goto done;
+ }
+
+ type = MAX_ABSOLUTE; /* Select default */
+ if (!resize_type || !resize_type[0])
+ type = Conf.movres.mode_maximize_default;
+ else if (!strcmp(resize_type, "absolute"))
+ type = MAX_ABSOLUTE;
+ else if (!strcmp(resize_type, "available"))
+ type = MAX_AVAILABLE;
+ else if (!strcmp(resize_type, "conservative"))
+ type = MAX_CONSERVATIVE;
+ else if (!strcmp(resize_type, "xinerama"))
+ type = MAX_XINERAMA;
+
+ /* Default is no change */
+ x = EoGetX(ewin);
+ y = EoGetY(ewin);
+ h = EoGetH(ewin);
+ w = EoGetW(ewin);
+
+ switch (type)
+ {
+ case MAX_XINERAMA:
+ if (hor)
+ {
+ x = 0;
+ w = WinGetW(VROOT);
+ ewin->state.maximized_horz = 1;
+ }
+ if (ver)
+ {
+ y = 0;
+ h = WinGetH(VROOT);
+ ewin->state.maximized_vert = 1;
+ }
+ break;
+
+ default:
+ case MAX_ABSOLUTE:
+ case MAX_AVAILABLE:
+ case MAX_CONSERVATIVE:
+ ScreenGetAvailableArea(x + w / 2, y + h / 2, &x1, &y1, &x2, &y2);
+ x2 += x1;
+ y2 += y1;
+
+ if (Conf.movres.dragbar_nocover && type != MAX_ABSOLUTE)
+ {
+ /* Leave room for the dragbar */
+ switch (Conf.desks.dragdir)
+ {
+ case 0: /* left */
+ if (x1 < Conf.desks.dragbar_width)
+ x1 = Conf.desks.dragbar_width;
+ break;
+
+ case 1: /* right */
+ if (x2 > WinGetW(VROOT) - Conf.desks.dragbar_width)
+ x2 = WinGetW(VROOT) - Conf.desks.dragbar_width;
+ break;
+
+ case 2: /* top */
+ if (y1 < Conf.desks.dragbar_width)
+ y1 = Conf.desks.dragbar_width;
+ break;
+
+ case 3: /* bottom */
+ if (y2 > WinGetH(VROOT) - Conf.desks.dragbar_width)
+ y2 = WinGetH(VROOT) - Conf.desks.dragbar_width;
+ break;
+
+ default:
+ break;
+ }
+ }
+
+ if (type == MAX_ABSOLUTE)
+ {
+ /* Simply ignore all windows */
+ lst = NULL;
+ num = 0;
+ }
+ else
+ {
+ lst = EwinListGetAll(&num);
+ }
+
+ if (ver)
+ {
+ for (i = 0; i < num; i++)
+ {
+ pe = lst[i];
+ if (pe == ewin ||
+ pe->state.iconified || EoIsFloating(pe) ||
+ pe->props.ignorearrange ||
+ (EoGetDesk(ewin) != EoGetDesk(pe) && !EoIsSticky(pe)) ||
+ (pe->type & (EWIN_TYPE_DIALOG | EWIN_TYPE_MENU)) ||
+ (type == MAX_AVAILABLE && !pe->props.never_use_area) ||
+ !SPANS_COMMON(x, w, EoGetX(pe), EoGetW(pe)))
+ continue;
+
+ if (((EoGetY(pe) + EoGetH(pe)) <= y)
+ && ((EoGetY(pe) + EoGetH(pe)) >= y1))
+ y1 = EoGetY(pe) + EoGetH(pe);
+ else if (((y + h) <= EoGetY(pe)) && (y2 >= EoGetY(pe)))
+ y2 = EoGetY(pe);
+ }
+ y = y1;
+ h = y2 - y1;
+
+ ewin->state.maximized_vert = 1;
+ }
+
+ if (hor)
+ {
+ for (i = 0; i < num; i++)
+ {
+ pe = lst[i];
+ if (pe == ewin ||
+ pe->state.iconified || EoIsFloating(pe) ||
+ pe->props.ignorearrange ||
+ (EoGetDesk(ewin) != EoGetDesk(pe) && !EoIsSticky(pe)) ||
+ (pe->type & (EWIN_TYPE_DIALOG | EWIN_TYPE_MENU)) ||
+ (type == MAX_AVAILABLE && !pe->props.never_use_area) ||
+ !SPANS_COMMON(y, h, EoGetY(pe), EoGetH(pe)))
+ continue;
+
+ if (((EoGetX(pe) + EoGetW(pe)) <= x)
+ && ((EoGetX(pe) + EoGetW(pe)) >= x1))
+ x1 = EoGetX(pe) + EoGetW(pe);
+ else if (((x + w) <= EoGetX(pe)) && (x2 >= EoGetX(pe)))
+ x2 = EoGetX(pe);
+ }
+ x = x1;
+ w = x2 - x1;
+
+ ewin->state.maximized_horz = 1;
+ }
+
+ break;
+ }
+
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+ w -= (bl + br);
+ if (w < 10)
+ w = 10;
+ h -= (bt + bb);
+ if (h < 10)
+ h = 10;
+
+ ewin->save_max.x = EoGetX(ewin);
+ ewin->save_max.y = EoGetY(ewin);
+ ewin->save_max.w = ewin->client.w;
+ ewin->save_max.h = ewin->client.h;
+
+ ewin->state.maximizing = 1;
+ EwinMoveResize(ewin, x, y, w, h);
+ ewin->state.maximizing = 0;
+ done:
+ HintsSetWindowState(ewin);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "borders.h"
+#include "buttons.h"
+#include "cursors.h"
+#include "desktops.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "ewins.h"
+#include "grabs.h"
+#include "xwin.h"
+
+#define SLIDEOUT_EVENT_MASK \
+ (KeyPressMask | KeyReleaseMask | \
+ ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | \
+ PointerMotionMask)
+
+typedef struct {
+ EObj o;
+ char *name;
+ char direction;
+ int num_objs;
+ EObj **objs;
+ unsigned int ref_count;
+ EWin *context_ewin;
+} Slideout;
+
+static void SlideoutCalcSize(Slideout * s);
+
+static Ecore_List *slideout_list = NULL;
+
+static struct {
+ Slideout *active;
+} Mode_slideouts =
+{
+NULL};
+
+static void SlideoutHandleEvent(Win win, XEvent * ev, void *prm);
+
+static Slideout *
+SlideoutCreate(const char *name, char dir)
+{
+ Slideout *s;
+
+ s = ECALLOC(Slideout, 1);
+ if (!s)
+ return NULL;
+
+ s->name = Estrdup(name);
+ s->direction = dir;
+
+ EoInit(s, EOBJ_TYPE_MISC, None, -10, -10, 1, 1, 1, name);
+ EoSetShadow(s, 1);
+ ESelectInput(EoGetWin(s), SLIDEOUT_EVENT_MASK);
+ EventCallbackRegister(EoGetWin(s), 0, SlideoutHandleEvent, s);
+
+ return s;
+}
+
+static void
+SlideoutShow(Slideout * s, EWin * ewin, Win win)
+{
+ int x, y, i, xx, yy, sw, sh;
+ char pdir;
+ XSetWindowAttributes att;
+ int w, h;
+ Desk *dsk;
+
+ /* Don't ever show more than one slideout */
+ if (Mode_slideouts.active)
+ return;
+
+ SlideoutCalcSize(s);
+ EGetGeometry(win, NULL, NULL, NULL, &w, &h, NULL, NULL);
+ ETranslateCoordinates(win, VROOT, 0, 0, &x, &y, NULL);
+
+ sw = EoGetW(s);
+ sh = EoGetH(s);
+ xx = 0;
+ yy = 0;
+ switch (s->direction)
+ {
+ case 2:
+ xx = x + ((w - sw) >> 1);
+ yy = y - sh;
+ if ((yy < 0) && (sh < WinGetH(VROOT)))
+ {
+ pdir = s->direction;
+ s->direction = 1;
+ SlideoutShow(s, ewin, win);
+ s->direction = pdir;
+ return;
+ }
+ break;
+ case 3:
+ xx = x + ((w - sw) >> 1);
+ yy = y + h;
+ if (((yy + sh) > WinGetH(VROOT)) && (sh < WinGetH(VROOT)))
+ {
+ pdir = s->direction;
+ s->direction = 0;
+ SlideoutShow(s, ewin, win);
+ s->direction = pdir;
+ return;
+ }
+ break;
+ case 0:
+ xx = x - sw;
+ yy = y + ((h - sh) >> 1);
+ if ((xx < 0) && (sw < WinGetW(VROOT)))
+ {
+ pdir = s->direction;
+ s->direction = 1;
+ SlideoutShow(s, ewin, win);
+ s->direction = pdir;
+ return;
+ }
+ break;
+ case 1:
+ xx = x + w;
+ yy = y + ((h - sh) >> 1);
+ if (((xx + sw) > WinGetW(VROOT)) && (sw < WinGetW(VROOT)))
+ {
+ pdir = s->direction;
+ s->direction = 0;
+ SlideoutShow(s, ewin, win);
+ s->direction = pdir;
+ return;
+ }
+ break;
+ default:
+ break;
+ }
+
+ if (ewin)
+ {
+ /* If the slideout is associated with an ewin,
+ * put it on the same virtual desktop. */
+ dsk = EoGetDesk(ewin);
+ if (BorderWinpartIndex(ewin, win) >= 0 &&
+ !EoIsFloating(ewin) /* && !ewin->sticky */ )
+ {
+ xx -= EoGetX(dsk);
+ yy -= EoGetY(dsk);
+ }
+ EoSetLayer(s, EoGetLayer(ewin));
+ }
+ else
+ {
+ dsk = DeskGet(0);
+ EoSetLayer(s, 10);
+ EoSetFloating(s, 1);
+ }
+ EoReparent(s, EoObj(dsk), xx, yy);
+
+ switch (s->direction)
+ {
+ case 0:
+ att.win_gravity = SouthEastGravity;
+ EChangeWindowAttributes(EoGetWin(s), CWWinGravity, &att);
+ att.win_gravity = NorthWestGravity;
+ for (i = 0; i < s->num_objs; i++)
+ EChangeWindowAttributes(EobjGetWin(s->objs[i]), CWWinGravity, &att);
+ EoMoveResize(s, xx, yy, 1, 1);
+ ESync(ESYNC_SLIDEOUT);
+ EoMap(s, 2);
+ EobjSlideSizeTo(EoObj(s), xx + sw, yy, xx, yy, 1, sh, sw, sh,
+ Conf.place.slidespeedmap);
+ break;
+ case 1:
+ att.win_gravity = NorthWestGravity;
+ EChangeWindowAttributes(EoGetWin(s), CWWinGravity, &att);
+ att.win_gravity = SouthEastGravity;
+ for (i = 0; i < s->num_objs; i++)
+ EChangeWindowAttributes(EobjGetWin(s->objs[i]), CWWinGravity, &att);
+ EoMoveResize(s, xx, yy, 1, 1);
+ ESync(ESYNC_SLIDEOUT);
+ EoMap(s, 2);
+ EobjSlideSizeTo(EoObj(s), xx, yy, xx, yy, 1, sh, sw, sh,
+ Conf.place.slidespeedmap);
+ break;
+ case 2:
+ att.win_gravity = SouthEastGravity;
+ EChangeWindowAttributes(EoGetWin(s), CWWinGravity, &att);
+ att.win_gravity = NorthWestGravity;
+ for (i = 0; i < s->num_objs; i++)
+ EChangeWindowAttributes(EobjGetWin(s->objs[i]), CWWinGravity, &att);
+ EoMoveResize(s, xx, yy, 1, 1);
+ ESync(ESYNC_SLIDEOUT);
+ EoMap(s, 2);
+ EobjSlideSizeTo(EoObj(s), xx, yy + sh, xx, yy, sw, 1, sw, sh,
+ Conf.place.slidespeedmap);
+ break;
+ case 3:
+ att.win_gravity = NorthWestGravity;
+ EChangeWindowAttributes(EoGetWin(s), CWWinGravity, &att);
+ att.win_gravity = SouthEastGravity;
+ for (i = 0; i < s->num_objs; i++)
+ EChangeWindowAttributes(EobjGetWin(s->objs[i]), CWWinGravity, &att);
+ EoMoveResize(s, xx, yy, 1, 1);
+ ESync(ESYNC_SLIDEOUT);
+ EoMap(s, 2);
+ EobjSlideSizeTo(EoObj(s), xx, yy, xx, yy, sw, 1, sw, sh,
+ Conf.place.slidespeedmap);
+ break;
+ default:
+ break;
+ }
+ s->ref_count++;
+ s->context_ewin = ewin;
+
+ GrabPointerSet(EoGetWin(s), ECSR_ROOT, 0);
+
+ Mode_slideouts.active = s;
+}
+
+static void
+SlideoutHide(Slideout * s)
+{
+ if (!s)
+ return;
+
+ GrabPointerRelease();
+ EoUnmap(s);
+ s->context_ewin = NULL;
+ s->ref_count--;
+ Mode_slideouts.active = NULL;
+}
+
+static void
+SlideoutCalcSize(Slideout * s)
+{
+ int i, x, y;
+ int sw, sh, bw, bh;
+
+ if (!s)
+ return;
+
+ sw = 0;
+ sh = 0;
+ x = 0;
+ y = 0;
+ for (i = 0; i < s->num_objs; i++)
+ {
+ bw = EobjGetW(s->objs[i]);
+ bh = EobjGetH(s->objs[i]);
+
+ switch (s->direction)
+ {
+ case 2:
+ case 3:
+ if (bw > sw)
+ sw = bw;
+ sh += bh;
+ break;
+ case 0:
+ case 1:
+ if (bh > sh)
+ sh = bh;
+ sw += bw;
+ break;
+ default:
+ break;
+ }
+ }
+
+ EoResize(s, sw, sh);
+
+ for (i = 0; i < s->num_objs; i++)
+ {
+ bw = EobjGetW(s->objs[i]);
+ bh = EobjGetH(s->objs[i]);
+
+ switch (s->direction)
+ {
+ case 2:
+ y += bh;
+ EMoveWindow(EobjGetWin(s->objs[i]), (sw - bw) >> 1, sh - y);
+ break;
+ case 3:
+ EMoveWindow(EobjGetWin(s->objs[i]), (sw - bw) >> 1, y);
+ y += bh;
+ break;
+ case 0:
+ x += bw;
+ EMoveWindow(EobjGetWin(s->objs[i]), sw - x, (sh - bh) >> 1);
+ break;
+ case 1:
+ EMoveWindow(EobjGetWin(s->objs[i]), x, (sh - bh) >> 1);
+ x += bw;
+ default:
+ break;
+ }
+ }
+ EShapePropagate(EoGetWin(s));
+}
+
+static void
+SlideoutButtonCallback(EObj * seo, XEvent * ev, ActionClass * ac)
+{
+ Slideout *s = (Slideout *) seo;
+ EWin *ewin = s->context_ewin;
+
+ if (ev->type == ButtonRelease)
+ SlideoutHide(s);
+
+ if (ac)
+ ActionclassEvent(ac, ev, ewin);
+}
+
+static void
+SlideoutAddButton(Slideout * s, Button * b)
+{
+ EObj *eob = (EObj *) b;
+
+ if (!s || !b)
+ return;
+
+ s->num_objs++;
+ s->objs = EREALLOC(EObj *, s->objs, s->num_objs);
+ s->objs[s->num_objs - 1] = eob;
+ ButtonSwallowInto(b, EoObj(s));
+ ButtonSetCallback(b, SlideoutButtonCallback, EoObj(s));
+ SlideoutCalcSize(s);
+}
+
+#if 0
+static void
+SlideoutRemoveButton(Slideout * s, Button * b)
+{
+ s = NULL;
+ b = NULL;
+}
+#endif
+
+static void
+SlideoutHandleEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ Slideout *s = (Slideout *) prm;
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ case KeyRelease:
+ SlideoutHide(s);
+ break;
+ case ButtonPress:
+ break;
+ case ButtonRelease:
+ SlideoutHide(s);
+ break;
+ case EnterNotify:
+ if (ev->xcrossing.mode != NotifyGrab)
+ GrabPointerRelease();
+ break;
+ case LeaveNotify:
+ if (ev->xcrossing.mode != NotifyUngrab)
+ GrabPointerSet(EoGetWin(s), ECSR_ROOT, 0);
+ break;
+ }
+}
+
+static void
+SlideoutsHide(void)
+{
+ if (Mode_slideouts.active)
+ SlideoutHide(Mode_slideouts.active);
+}
+
+/*
+ * Configuration load/save
+ */
+#include "conf.h"
+
+int
+SlideoutsConfigLoad(FILE * fs)
+{
+ int err = 0;
+ Slideout *slideout = 0;
+ int i1;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char name[FILEPATH_LEN_MAX];
+
+ if (!slideout_list)
+ slideout_list = ecore_list_new();
+
+ name[0] = '\0';
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ if (slideout)
+ ecore_list_prepend(slideout_list, slideout);
+ goto done;
+ case CONFIG_CLASSNAME:
+ strcpy(name, s2);
+ break;
+ case SLIDEOUT_DIRECTION:
+ slideout = SlideoutCreate(name, (char)atoi(s2));
+ break;
+ case CONFIG_BUTTON:
+ SlideoutAddButton(slideout, ButtonFind(s2));
+ break;
+ default:
+ ConfigParseError("Slideout", s);
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ return err;
+}
+
+/*
+ * Slideouts Module
+ */
+
+static void
+SlideoutsSighan(int sig, void *prm)
+{
+ switch (sig)
+ {
+ case ESIGNAL_AREA_SWITCH_START:
+ case ESIGNAL_DESK_SWITCH_START:
+ SlideoutsHide();
+ break;
+
+ case ESIGNAL_EWIN_UNMAP:
+ if (Mode_slideouts.active
+ && Mode_slideouts.active->context_ewin == (EWin *) prm)
+ SlideoutsHide();
+ break;
+ }
+}
+
+static int
+_SlideoutMatchName(const void *data, const void *match)
+{
+ return strcmp(((const Slideout *)data)->name, (const char *)match);
+}
+
+static Slideout *
+SlideoutFind(const char *name)
+{
+ return (Slideout *) ecore_list_find(slideout_list, _SlideoutMatchName, name);
+}
+
+static void
+IPC_Slideout(const char *params)
+{
+ Slideout *s;
+
+ if (!params)
+ return;
+
+ s = SlideoutFind(params);
+ if (!s)
+ return;
+
+ SoundPlay(SOUND_SLIDEOUT_SHOW);
+ SlideoutShow(s, GetContextEwin(), Mode.context_win);
+}
+
+static const IpcItem SlideoutsIpcArray[] = {
+ {
+ IPC_Slideout, "slideout", NULL, "Show slideout", NULL},
+};
+#define N_IPC_FUNCS (sizeof(SlideoutsIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModSlideouts;
+const EModule ModSlideouts = {
+ "slideouts", "slideout",
+ SlideoutsSighan,
+ {N_IPC_FUNCS, SlideoutsIpcArray},
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "borders.h"
+#include "desktops.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "ewins.h"
+#include "file.h"
+#include "groups.h"
+#include "ipc.h"
+#include "settings.h"
+#include "snaps.h"
+#include "timers.h"
+#include "xwin.h"
+
+struct _snapshot {
+ char *name;
+ char *win_title;
+ char *win_name;
+ char *win_class;
+ char *win_role;
+ Window win;
+ EWin *used;
+ unsigned int startup_id;
+ char track_changes;
+ unsigned int match_flags;
+ unsigned int use_flags;
+
+ char *border_name;
+ int desktop;
+ int area_x, area_y;
+ int x, y;
+ int w, h;
+ int layer;
+ char sticky;
+ char shaded;
+ unsigned int flags[2];
+ char *cmd;
+ int *groups;
+ int num_groups;
+ char skiptask;
+ char skipfocus;
+ char skipwinlist;
+#if USE_COMPOSITE
+ int opacity;
+ int focused_opacity;
+ char shadow;
+#endif
+};
+
+static Ecore_List *ss_list = NULL;
+static Timer *ss_timer = NULL;
+
+static Snapshot *
+_SnapCreate(const char *name)
+{
+ Snapshot *sn;
+
+ sn = ECALLOC(Snapshot, 1);
+ if (!sn)
+ return NULL;
+
+ if (!ss_list)
+ ss_list = ecore_list_new();
+ ecore_list_append(ss_list, sn);
+
+ sn->name = Estrdup(name);
+
+ return sn;
+}
+
+static void
+_SnapDestroy(Snapshot * sn)
+{
+ /* Just making sure */
+ sn = (Snapshot *) ecore_list_node_remove(ss_list, sn);
+ if (!sn)
+ return;
+
+ if (sn->used)
+ sn->used->snap = NULL;
+
+ Efree(sn->name);
+ Efree(sn->win_title);
+ Efree(sn->win_name);
+ Efree(sn->win_class);
+ Efree(sn->win_role);
+ Efree(sn->border_name);
+ Efree(sn->cmd);
+ Efree(sn->groups);
+
+ Efree(sn);
+}
+
+/*
+ * Stupid hack to fix apps that set WM_WINDOW_ROLE to
+ * a <name>-<pid>-<something>-<time> like thing.
+ * Is this even ICCCM compliant?
+ */
+static char *
+_ParseRole(const char *role, char *buf, int len)
+{
+ int l1, l2;
+
+ if (!role)
+ return NULL;
+
+ l1 = strlen(role);
+ if (l1 >= len)
+ l1 = len - 1;
+
+ for (l2 = l1; l2 > 0; l2--)
+ {
+ if (role[l2 - 1] != '-' &&
+ !(role[l2 - 1] >= '0' && role[l2 - 1] <= '9'))
+ break;
+ }
+ if (l1 - l2 > 8)
+ l1 = l2;
+ memcpy(buf, role, l1);
+ buf[l1] = '\0';
+
+ return buf;
+}
+
+#define SEQ(s1, s2) ((s1) && (s2) && !strcmp(s1, s2))
+
+static int
+_SnapEwinMatch(const Snapshot * sn, const EWin * ewin)
+{
+ char buf[256], *s;
+
+ /* Don't allow matching anything */
+ if (!sn->match_flags)
+ return 0;
+
+ if (ewin->state.identified)
+ return sn->win == EwinGetClientXwin(ewin);
+
+ if (sn->startup_id && !sn->cmd)
+ return 0;
+
+ if (sn->match_flags & SNAP_MATCH_TITLE
+ && !SEQ(sn->win_title, EwinGetIcccmName(ewin)))
+ return 0;
+
+ if (sn->match_flags & SNAP_MATCH_NAME
+ && !SEQ(sn->win_name, EwinGetIcccmCName(ewin)))
+ return 0;
+
+ if (sn->match_flags & SNAP_MATCH_CLASS
+ && !SEQ(sn->win_class, EwinGetIcccmClass(ewin)))
+ return 0;
+
+ if (sn->match_flags & SNAP_MATCH_ROLE)
+ {
+ s = _ParseRole(ewin->icccm.wm_role, buf, sizeof(buf));
+ if (!SEQ(sn->win_role, s))
+ return 0;
+ }
+
+ /* Match! */
+ return 1;
+}
+
+static int
+_SnapEwinFindMatchCmd(const void *data, const void *match)
+{
+ const Snapshot *sn = (Snapshot *) data;
+ const EWin *ewin = (EWin *) match;
+
+ return sn->used ||
+ !(sn->startup_id && SEQ(sn->cmd, ewin->icccm.wm_command) &&
+ _SnapEwinMatch(sn, ewin));
+}
+
+static int
+_SnapEwinFindMatch(const void *data, const void *match)
+{
+ const Snapshot *sn = (Snapshot *) data;
+ const EWin *ewin = (EWin *) match;
+
+ return sn->used || !_SnapEwinMatch(sn, ewin);
+}
+
+/* find a snapshot state that applies to this ewin */
+static Snapshot *
+_SnapEwinFind(EWin * ewin)
+{
+ Snapshot *sn;
+
+ if (ewin->snap)
+ return ewin->snap;
+
+ if (ecore_list_count(ss_list) <= 0)
+ return NULL;
+
+ /* If exec'ed by snap try matching command exactly */
+ sn = (Snapshot *) ecore_list_find(ss_list, _SnapEwinFindMatchCmd, ewin);
+
+ if (!sn)
+ sn = (Snapshot *) ecore_list_find(ss_list, _SnapEwinFindMatch, ewin);
+
+ if (sn && !(sn->match_flags & SNAP_MATCH_MULTIPLE))
+ {
+ sn->used = ewin;
+ ewin->snap = sn;
+ }
+
+ return sn;
+}
+
+#define ST(s) ((s) ? (s) : "")
+
+/* find a snapshot state that applies to this ewin Or if that doesnt exist */
+/* create a new one */
+static Snapshot *
+_SnapEwinGet(EWin * ewin, unsigned int match_flags)
+{
+ Snapshot *sn;
+ char buf[1024], *s;
+
+ sn = _SnapEwinFind(ewin);
+ if (sn)
+ return sn;
+
+ if ((match_flags & SNAP_MATCH_TITLE) && !EwinGetIcccmName(ewin))
+ match_flags ^= SNAP_MATCH_TITLE;
+ if ((match_flags & SNAP_MATCH_NAME) && !EwinGetIcccmCName(ewin))
+ match_flags ^= SNAP_MATCH_NAME;
+ if ((match_flags & SNAP_MATCH_CLASS) && !EwinGetIcccmClass(ewin))
+ match_flags ^= SNAP_MATCH_CLASS;
+ if ((match_flags & SNAP_MATCH_ROLE) && !ewin->icccm.wm_role)
+ match_flags ^= SNAP_MATCH_ROLE;
+ if (match_flags == 0)
+ {
+ if (!EwinGetIcccmName(ewin))
+ return NULL;
+ match_flags = SNAP_MATCH_TITLE;
+ }
+
+ sn = _SnapCreate(NULL);
+ if (!sn)
+ return NULL;
+
+ sn->match_flags = match_flags;
+ if (match_flags & SNAP_MATCH_TITLE)
+ sn->win_title = Estrdup(EwinGetIcccmName(ewin));
+ if (match_flags & SNAP_MATCH_NAME)
+ sn->win_name = Estrdup(EwinGetIcccmCName(ewin));
+ if (match_flags & SNAP_MATCH_CLASS)
+ sn->win_class = Estrdup(EwinGetIcccmClass(ewin));
+ if (match_flags & SNAP_MATCH_ROLE)
+ {
+ s = _ParseRole(ewin->icccm.wm_role, buf, sizeof(buf));
+ sn->win_role = Estrdup(s);
+ }
+
+ /* Set the snap name. Has no particular significance. */
+ if ((sn->win_name || sn->win_class) && sn->win_role)
+ Esnprintf(buf, sizeof(buf), "%s.%s:%s", ST(sn->win_name),
+ ST(sn->win_class), sn->win_role);
+ else if (sn->win_name || sn->win_class)
+ Esnprintf(buf, sizeof(buf), "%s.%s", ST(sn->win_name), ST(sn->win_class));
+ else if (sn->win_title)
+ Esnprintf(buf, sizeof(buf), "TITLE.%s", sn->win_title);
+ else /* We should not go here */
+ Esnprintf(buf, sizeof(buf), "TITLE.%s", EwinGetIcccmName(ewin));
+ sn->name = Estrdup(buf);
+
+ if (!(sn->match_flags & SNAP_MATCH_MULTIPLE))
+ {
+ sn->used = ewin;
+ ewin->snap = sn;
+ }
+
+ return sn;
+}
+
+/* record info about this Ewin's attributes */
+
+static void
+_SnapUpdateEwinBorder(Snapshot * sn, const EWin * ewin)
+{
+ Efree(sn->border_name);
+ sn->border_name = Estrdup(BorderGetName(ewin->normal_border));
+}
+
+static void
+_SnapUpdateEwinDesktop(Snapshot * sn, const EWin * ewin)
+{
+ sn->desktop = EoGetDeskNum(ewin);
+}
+
+static void
+_SnapUpdateEwinSize(Snapshot * sn, const EWin * ewin)
+{
+ sn->w = ewin->client.w;
+ sn->h = ewin->client.h;
+}
+
+static void
+_SnapUpdateEwinLocation(Snapshot * sn, const EWin * ewin)
+{
+ int ax, ay;
+
+ sn->x = EoGetX(ewin);
+ sn->y = EoGetY(ewin);
+ sn->area_x = ewin->area_x;
+ sn->area_y = ewin->area_y;
+ if (!EoIsSticky(ewin))
+ {
+ DeskGetArea(EoGetDesk(ewin), &ax, &ay);
+ sn->x += ((ax - sn->area_x) * WinGetW(VROOT));
+ sn->y += ((ay - sn->area_y) * WinGetH(VROOT));
+ }
+}
+
+static void
+_SnapUpdateEwinLayer(Snapshot * sn, const EWin * ewin)
+{
+ sn->layer = EoGetLayer(ewin);
+}
+
+static void
+_SnapUpdateEwinSticky(Snapshot * sn, const EWin * ewin)
+{
+ sn->sticky = EoIsSticky(ewin);
+}
+
+static void
+_SnapUpdateEwinShade(Snapshot * sn, const EWin * ewin)
+{
+ sn->shaded = ewin->state.shaded;
+}
+
+static void
+_SnapUpdateEwinSkipLists(Snapshot * sn, const EWin * ewin)
+{
+ sn->skiptask = ewin->props.skip_ext_task;
+ sn->skipwinlist = ewin->props.skip_winlist;
+ sn->skipfocus = ewin->props.skip_focuslist;
+}
+
+static void
+_SnapUpdateEwinFlags(Snapshot * sn, const EWin * ewin)
+{
+ EwinFlagsEncode(ewin, sn->flags);
+}
+
+static void
+_SnapUpdateEwinCmd(Snapshot * sn, const EWin * ewin)
+{
+ if (ewin->icccm.wm_machine &&
+ strcmp(ewin->icccm.wm_machine, Mode.wm.machine_name))
+ return;
+
+ Efree(sn->cmd);
+ sn->cmd = Estrdup(ewin->icccm.wm_command);
+}
+
+static void
+_SnapUpdateEwinGroups(Snapshot * sn, const EWin * ewin, char onoff)
+{
+ EWin **gwins = NULL;
+ Group *const *groups;
+ int i, j, num, num_groups;
+
+ if (!ewin)
+ return;
+
+ if (!ewin->groups)
+ {
+ Efree(sn->groups);
+ sn->groups = NULL;
+ sn->num_groups = 0;
+ return;
+ }
+
+ gwins =
+ ListWinGroupMembersForEwin(ewin, GROUP_ACTION_ANY, Mode.nogroup, &num);
+ for (i = 0; i < num; i++)
+ {
+ if (onoff)
+ {
+ groups = EwinGetGroups(gwins[i], &num_groups);
+ if (!groups)
+ continue;
+
+ sn = gwins[i]->snap;
+ if (!sn)
+ sn = _SnapEwinGet(gwins[i], SNAP_MATCH_DEFAULT);
+ if (!sn)
+ continue;
+
+ sn->num_groups = num_groups;
+ Efree(sn->groups);
+ sn->groups = EMALLOC(int, num_groups);
+
+ for (j = 0; j < num_groups; j++)
+ {
+ sn->groups[j] = groups[j]->index;
+ groups[j]->save = 1;
+ }
+ }
+ else
+ {
+ if (ewin->snap)
+ {
+ sn = gwins[i]->snap;
+ if (sn)
+ {
+ Efree(sn->groups);
+ sn->groups = NULL;
+ sn->num_groups = 0;
+ }
+ }
+ }
+ }
+ Efree(gwins);
+}
+
+#if USE_COMPOSITE
+
+static void
+_SnapUpdateEwinOpacity(Snapshot * sn, const EWin * ewin)
+{
+ sn->opacity = OpacityToPercent(ewin->ewmh.opacity);
+ sn->focused_opacity = OpacityToPercent(ewin->props.focused_opacity);
+}
+
+static void
+_SnapUpdateEwinShadow(Snapshot * sn, const EWin * ewin)
+{
+ sn->shadow = EoGetShadow(ewin);
+}
+
+#endif
+
+static void
+_SnapUpdateEwin(Snapshot * sn, const EWin * ewin, unsigned int flags)
+{
+ /* FIXME - We should check if anything is actually changed */
+
+ if (flags & SNAP_USE_BORDER)
+ _SnapUpdateEwinBorder(sn, ewin);
+ if (flags & SNAP_USE_COMMAND)
+ _SnapUpdateEwinCmd(sn, ewin);
+ if (flags & SNAP_USE_DESK)
+ _SnapUpdateEwinDesktop(sn, ewin);
+ if (flags & SNAP_USE_POS)
+ _SnapUpdateEwinLocation(sn, ewin);
+ if (flags & SNAP_USE_SIZE)
+ _SnapUpdateEwinSize(sn, ewin);
+ if (flags & SNAP_USE_LAYER)
+ _SnapUpdateEwinLayer(sn, ewin);
+ if (flags & SNAP_USE_STICKY)
+ _SnapUpdateEwinSticky(sn, ewin);
+ if (flags & SNAP_USE_SHADED)
+ _SnapUpdateEwinShade(sn, ewin);
+ if (flags & SNAP_USE_SKIP_LISTS)
+ _SnapUpdateEwinSkipLists(sn, ewin);
+ if (flags & SNAP_USE_FLAGS)
+ _SnapUpdateEwinFlags(sn, ewin);
+#if USE_COMPOSITE
+ if (flags & SNAP_USE_OPACITY)
+ _SnapUpdateEwinOpacity(sn, ewin);
+ if (flags & SNAP_USE_SHADOW)
+ _SnapUpdateEwinShadow(sn, ewin);
+#endif
+ if (flags & SNAP_USE_GROUPS)
+ _SnapUpdateEwinGroups(sn, ewin, ewin->num_groups);
+
+ SnapshotsSave();
+}
+
+static void
+_EwinSnapSet(EWin * ewin, unsigned int match_flags, unsigned int use_flags)
+{
+ Snapshot *sn;
+
+ /* Quit if nothing to be saved */
+ if (!match_flags || !(use_flags & SNAP_USE_ALL))
+ return;
+
+ sn = _SnapEwinGet(ewin, match_flags);
+ if (!sn)
+ return;
+
+ if (use_flags & SNAP_AUTO)
+ sn->track_changes = 1;
+
+ sn->use_flags = use_flags & SNAP_USE_ALL;
+
+ _SnapUpdateEwin(sn, ewin, use_flags);
+}
+
+void
+SnapshotEwinUpdate(const EWin * ewin, unsigned int flags)
+{
+ Snapshot *sn;
+
+ sn = ewin->snap;
+ if (!sn || !sn->track_changes)
+ return;
+
+#if 0
+ Eprintf("SnapshotEwinUpdate %s: %#x\n", EwinGetTitle(ewin), flags);
+#endif
+
+ if (flags & sn->use_flags)
+ _SnapUpdateEwin(sn, ewin, flags);
+}
+
+/* unsnapshot any saved info about this ewin */
+static void
+_EwinSnapRemove(EWin * ewin)
+{
+ if (ewin->snap)
+ _SnapDestroy(ewin->snap);
+ ewin->snap = NULL;
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Snapshot dialogs
+ */
+typedef struct {
+ Window client;
+
+ struct {
+ char title;
+ char name;
+ char clss;
+ char role;
+ } match;
+
+ char track_changes;
+ char snap_border;
+ char snap_desktop;
+ char snap_size;
+ char snap_location;
+ char snap_layer;
+ char snap_sticky;
+ char snap_icon;
+ char snap_shaded;
+ char snap_cmd;
+ char snap_group;
+ char snap_skiplists;
+ char snap_flags;
+
+#if USE_COMPOSITE
+ char snap_opacity;
+ char snap_shadow;
+#endif
+} SnapDlgData;
+
+static void
+CB_ApplySnap(Dialog * d, int val, void *data __UNUSED__)
+{
+ EWin *ewin;
+ SnapDlgData *sd = (SnapDlgData *) DialogGetData(d);
+ unsigned int match_flags, use_flags;
+
+ if (val >= 2 || !sd)
+ goto done;
+
+ ewin = EwinFindByClient(sd->client);
+ if (!ewin)
+ goto done;
+
+ _EwinSnapRemove(ewin);
+
+ match_flags = 0;
+ if (sd->match.title)
+ match_flags |= SNAP_MATCH_TITLE;
+ if (sd->match.name)
+ match_flags |= SNAP_MATCH_NAME;
+ if (sd->match.clss)
+ match_flags |= SNAP_MATCH_CLASS;
+ if (sd->match.role)
+ match_flags |= SNAP_MATCH_ROLE;
+
+ if (!match_flags)
+ goto done;
+
+ use_flags = 0;
+ if (sd->track_changes)
+ use_flags |= SNAP_AUTO;
+ if (sd->snap_border)
+ use_flags |= SNAP_USE_BORDER;
+ if (sd->snap_cmd)
+ use_flags |= SNAP_USE_COMMAND;
+ if (sd->snap_desktop)
+ use_flags |= SNAP_USE_DESK;
+ if (sd->snap_location)
+ use_flags |= SNAP_USE_POS;
+ if (sd->snap_size)
+ use_flags |= SNAP_USE_SIZE;
+ if (sd->snap_layer)
+ use_flags |= SNAP_USE_LAYER;
+ if (sd->snap_sticky)
+ use_flags |= SNAP_USE_STICKY;
+ if (sd->snap_shaded)
+ use_flags |= SNAP_USE_SHADED;
+ if (sd->snap_skiplists)
+ use_flags |= SNAP_USE_SKIP_LISTS;
+ if (sd->snap_flags)
+ use_flags |= SNAP_USE_FLAGS;
+#if USE_COMPOSITE
+ if (sd->snap_opacity)
+ use_flags |= SNAP_USE_OPACITY;
+ if (sd->snap_shadow)
+ use_flags |= SNAP_USE_SHADOW;
+#endif
+ if (sd->snap_group)
+ use_flags |= SNAP_USE_GROUPS;
+
+ if (!use_flags)
+ goto done;
+
+ _EwinSnapSet(ewin, match_flags, use_flags);
+
+ done:
+ if (sd && val == 2)
+ {
+ Efree(sd);
+ DialogSetData(d, NULL);
+ }
+
+ SnapshotsSave();
+}
+
+static void
+_DlgFillSnap(Dialog * d, DItem * table, void *data)
+{
+ DItem *di;
+ Snapshot *sn;
+ SnapDlgData *sd;
+ char s[1024];
+ const EWin *ewin = (EWin *) data;
+
+ sd = ECALLOC(SnapDlgData, 1);
+ DialogSetData(d, sd);
+ sd->client = EwinGetClientXwin(ewin);
+
+ sn = ewin->snap;
+ if (sn)
+ {
+ sd->match.title = (sn->match_flags & SNAP_MATCH_TITLE) != 0;
+ sd->match.name = (sn->match_flags & SNAP_MATCH_NAME) != 0;
+ sd->match.clss = (sn->match_flags & SNAP_MATCH_CLASS) != 0;
+ sd->match.role = (sn->match_flags & SNAP_MATCH_ROLE) != 0;
+
+ if (sn->track_changes)
+ sd->track_changes = 1;
+ if (sn->use_flags & SNAP_USE_BORDER)
+ sd->snap_border = 1;
+ if (sn->use_flags & SNAP_USE_COMMAND)
+ sd->snap_cmd = 1;
+ if (sn->use_flags & SNAP_USE_DESK)
+ sd->snap_desktop = 1;
+ if (sn->use_flags & SNAP_USE_POS)
+ sd->snap_location = 1;
+ if (sn->use_flags & SNAP_USE_SIZE)
+ sd->snap_size = 1;
+ if (sn->use_flags & SNAP_USE_LAYER)
+ sd->snap_layer = 1;
+ if (sn->use_flags & SNAP_USE_STICKY)
+ sd->snap_sticky = 1;
+ if (sn->use_flags & SNAP_USE_SHADED)
+ sd->snap_shaded = 1;
+ if (sn->use_flags & SNAP_USE_SKIP_LISTS)
+ sd->snap_skiplists = 1;
+ if (sn->use_flags & SNAP_USE_FLAGS)
+ sd->snap_flags = 1;
+#if USE_COMPOSITE
+ if (sn->use_flags & SNAP_USE_OPACITY)
+ sd->snap_opacity = 1;
+ if (sn->use_flags & SNAP_USE_SHADOW)
+ sd->snap_shadow = 1;
+#endif
+ if (sn->use_flags & SNAP_USE_GROUPS)
+ sd->snap_group = 1;
+ }
+ else
+ {
+ if (EwinGetIcccmCName(ewin))
+ {
+ sd->match.name = 1;
+ sd->match.clss = 1;
+ sd->match.role = ewin->icccm.wm_role != NULL;
+ }
+ else
+ {
+ sd->match.title = EwinGetIcccmName(ewin) != NULL;
+ }
+ }
+
+ table = DialogAddItem(table, DITEM_TABLE);
+ DialogItemTableSetOptions(table, 4, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Title:"));
+ DialogItemCheckButtonSetPtr(di, &sd->match.title);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, EwinGetIcccmName(ewin));
+
+ if (EwinGetIcccmCName(ewin))
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Name:"));
+ DialogItemCheckButtonSetPtr(di, &sd->match.name);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, EwinGetIcccmCName(ewin));
+ }
+
+ if (EwinGetIcccmClass(ewin))
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Class:"));
+ DialogItemCheckButtonSetPtr(di, &sd->match.clss);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, EwinGetIcccmClass(ewin));
+ }
+
+ if (ewin->icccm.wm_role)
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Role:"));
+ DialogItemCheckButtonSetPtr(di, &sd->match.role);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetAlign(di, 1024, 512);
+ DialogItemSetText(di, ewin->icccm.wm_role);
+ }
+
+ if (ewin->icccm.wm_command)
+ {
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Command:"));
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetAlign(di, 1024, 512);
+
+ /* if the command is long, cut in into slices of about 80 characters */
+ if (strlen(ewin->icccm.wm_command) > 80)
+ {
+ int i = 0, slice, last;
+
+ s[0] = 0;
+ slice = 64;
+ while ((i <= (int)strlen(ewin->icccm.wm_command))
+ && (i < (int)(sizeof(s) / 4)))
+ {
+ last = i;
+ i += 64;
+ slice = 64;
+ /* and make sure that we don't cut in the middle of a word. */
+ while ((ewin->icccm.wm_command[i++] != ' ')
+ && (i < (int)(sizeof(s) / 4)))
+ slice++;
+ strncat(s, ewin->icccm.wm_command + last, slice);
+ if (i < (int)(sizeof(s) / 4))
+ strcat(s, "\n");
+ else
+ strcat(s, "...\n");
+ }
+ DialogItemSetText(di, s);
+ }
+ else
+ DialogItemSetText(di, ewin->icccm.wm_command);
+ }
+
+ di = DialogAddItem(table, DITEM_SEPARATOR);
+ DialogItemSetColSpan(di, 4);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 4);
+ DialogItemSetText(di, _("Track Changes"));
+ DialogItemCheckButtonSetPtr(di, &sd->track_changes);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Location"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_location);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Border style"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_border);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Size"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_size);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Desktop"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_desktop);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shaded state"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_shaded);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Sticky state"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_sticky);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Stacking layer"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_layer);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Window List Skip"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_skiplists);
+
+#if USE_COMPOSITE
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Opacity"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_opacity);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Shadowing"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_shadow);
+#endif
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Flags"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_flags);
+
+ di = DialogAddItem(table, DITEM_NONE);
+ DialogItemSetColSpan(di, 2);
+
+ if (ewin->icccm.wm_command)
+ {
+ char ok = 1;
+
+ if (ewin->icccm.wm_machine)
+ {
+ if (strcmp(ewin->icccm.wm_machine, Mode.wm.machine_name))
+ ok = 0;
+ }
+ if (ok)
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 4);
+ DialogItemSetText(di, _("Restart application on login"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_cmd);
+ }
+ else
+ {
+ di = DialogAddItem(table, DITEM_NONE);
+ DialogItemSetColSpan(di, 4);
+ }
+ }
+ else
+ {
+ di = DialogAddItem(table, DITEM_NONE);
+ DialogItemSetColSpan(di, 4);
+ }
+
+ if (ewin->groups)
+ {
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 4);
+ DialogItemSetText(di, _("Remember this window's group(s)"));
+ DialogItemCheckButtonSetPtr(di, &sd->snap_group);
+ }
+}
+
+static const DialogDef DlgSnap = {
+ NULL,
+ NULL,
+ N_("Remembered Application Attributes"),
+ SOUND_NONE,
+ "pix/snapshots.png",
+ N_("Select the attributes of this\n"
+ "window you wish to Remember\n" "from now on\n"),
+ _DlgFillSnap,
+ DLG_OAC, CB_ApplySnap,
+};
+
+static void
+_EwinSnapDialog(const EWin * ewin)
+{
+ char s[1024];
+
+ Esnprintf(s, sizeof(s), "SNAPSHOT_WINDOW-%#lx", EwinGetClientXwin(ewin));
+
+ DialogShowSimpleWithName(&DlgSnap, s, (void *)ewin);
+}
+
+/* list of remembered items for the remember dialog -- it's either
+ * _another_ global var, or a wrapper struct to pass data to the
+ * callback funcs besides the dialog itself -- this is much easier */
+
+typedef struct _remwinlist {
+ Snapshot *snap;
+ char remove;
+} RememberWinList;
+
+static RememberWinList *rd_ewin_list;
+
+static void
+CB_ApplyRemember(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ int i;
+
+ if (val < 2 && rd_ewin_list)
+ {
+ for (i = 0; rd_ewin_list[i].snap; i++)
+ {
+ if (!rd_ewin_list[i].remove)
+ continue;
+
+ _SnapDestroy(rd_ewin_list[i].snap);
+ }
+ /* save snapshot info to disk */
+ SnapshotsSave();
+ }
+
+ if (((val == 0) || (val == 2)) && rd_ewin_list)
+ {
+ Efree(rd_ewin_list);
+ rd_ewin_list = NULL;
+ }
+}
+
+static void
+CB_RememberWindowSettings(Dialog * d __UNUSED__, int val __UNUSED__, void *data)
+{
+ RememberWinList *rd;
+ Snapshot *sn;
+
+ if (!data)
+ return;
+ rd = (RememberWinList *) data;
+
+ /* Make sure its still there */
+ sn = (Snapshot *) ecore_list_goto(ss_list, rd->snap);
+
+ if (!sn || !sn->used)
+ return;
+ _EwinSnapDialog(sn->used);
+}
+
+static void
+_DlgFillRemember(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+ Snapshot *sn;
+ int i, num;
+ char buf[128];
+ const char *s;
+
+ DialogItemTableSetOptions(table, 3, 0, 0, 0);
+
+ num = ecore_list_count(ss_list);
+ rd_ewin_list = EMALLOC(RememberWinList, num + 1);
+
+ if (num > 0)
+ {
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetFill(di, 0, 0);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Delete"));
+ }
+
+ i = 0;
+ ECORE_LIST_FOR_EACH(ss_list, sn)
+ {
+ rd_ewin_list[i].snap = sn;
+ rd_ewin_list[i].remove = 0;
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetAlign(di, 0, 512);
+ if (sn->used)
+ s = EwinGetTitle(sn->used);
+ else if (sn->win_title)
+ s = sn->win_title;
+ else
+ {
+ Esnprintf(buf, sizeof(buf), "%s.%s", sn->win_name, sn->win_class);
+ s = buf;
+ }
+ DialogItemSetText(di, s);
+ DialogItemCheckButtonSetPtr(di, &(rd_ewin_list[i].remove));
+
+ if (sn->used)
+ {
+ di = DialogAddItem(table, DITEM_BUTTON);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Remembered Settings..."));
+ DialogItemSetCallback(di, CB_RememberWindowSettings, 0,
+ (char *)(&rd_ewin_list[i]));
+ }
+ else
+ {
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetText(di, _("Unused"));
+ }
+ i++;
+ }
+ rd_ewin_list[num].snap = NULL;
+
+ /* finish remember window */
+ if (!num)
+ {
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetColSpan(di, 3);
+ DialogItemSetText(di,
+ _
+ ("There are no active windows with remembered attributes."));
+ }
+}
+
+const DialogDef DlgRemember = {
+ "CONFIGURE_PAGER",
+ N_("Remember"),
+ N_("Remembered Windows Settings"),
+ SOUND_SETTINGS_PAGER,
+ "pix/snapshots.png",
+ N_("Enlightenment Remembered\n" "Windows Settings Dialog\n"),
+ _DlgFillRemember,
+ DLG_OC, CB_ApplyRemember,
+};
+#endif /* ENABLE_DIALOGS */
+
+/* ... combine writes, only save after a timeout */
+void
+SnapshotsSave(void)
+{
+ TIMER_DEL(ss_timer);
+ TIMER_ADD(ss_timer, 5.0, SnapshotsSaveReal, NULL);
+}
+
+/* save out all snapped info to disk */
+int
+SnapshotsSaveReal(void *data __UNUSED__)
+{
+ Snapshot *sn;
+ int j;
+ char buf[4096], s[4096];
+ FILE *f;
+
+ if (!Mode.wm.save_ok)
+ goto done;
+
+ Etmp(s);
+ f = fopen(s, "w");
+ if (!f)
+ goto done;
+
+ ECORE_LIST_FOR_EACH(ss_list, sn)
+ {
+ fprintf(f, "NEW: %s\n", sn->name);
+ if (sn->used)
+ fprintf(f, "WIN: %#lx\n", EwinGetClientXwin(sn->used));
+ if ((sn->match_flags & SNAP_MATCH_TITLE) && sn->win_title)
+ fprintf(f, "TITLE: %s\n", sn->win_title);
+ if ((sn->match_flags & SNAP_MATCH_NAME) && sn->win_name)
+ fprintf(f, "NAME: %s\n", sn->win_name);
+ if ((sn->match_flags & SNAP_MATCH_CLASS) && sn->win_class)
+ fprintf(f, "CLASS: %s\n", sn->win_class);
+ if ((sn->match_flags & SNAP_MATCH_ROLE) && sn->win_role)
+ fprintf(f, "ROLE: %s\n", sn->win_role);
+ if (sn->track_changes)
+ fprintf(f, "AUTO: yes\n");
+ if ((sn->use_flags & SNAP_USE_BORDER) && sn->border_name)
+ fprintf(f, "BORDER: %s\n", sn->border_name);
+ if ((sn->use_flags & SNAP_USE_COMMAND) && sn->cmd)
+ fprintf(f, "CMD: %s\n", sn->cmd);
+ if (sn->use_flags & SNAP_USE_DESK)
+ fprintf(f, "DESKTOP: %i\n", sn->desktop);
+ if (sn->use_flags & SNAP_USE_POS)
+ fprintf(f, "RES: %i %i\n", WinGetW(VROOT), WinGetH(VROOT));
+ if (sn->use_flags & SNAP_USE_SIZE)
+ fprintf(f, "WH: %i %i\n", sn->w, sn->h);
+ if (sn->use_flags & SNAP_USE_POS)
+ fprintf(f, "XY: %i %i %i %i\n", sn->x, sn->y, sn->area_x, sn->area_y);
+ if (sn->use_flags & SNAP_USE_LAYER)
+ fprintf(f, "LAYER: %i\n", sn->layer);
+ if (sn->use_flags & SNAP_USE_STICKY)
+ fprintf(f, "STICKY: %i\n", sn->sticky);
+ if (sn->use_flags & SNAP_USE_SHADED)
+ fprintf(f, "SHADE: %i\n", sn->shaded);
+ if (sn->use_flags & SNAP_USE_SKIP_LISTS)
+ {
+ fprintf(f, "SKIPTASK: %i\n", sn->skiptask);
+ fprintf(f, "SKIPWINLIST: %i\n", sn->skipwinlist);
+ fprintf(f, "SKIPFOCUS: %i\n", sn->skipfocus);
+ }
+ if (sn->use_flags & SNAP_USE_FLAGS)
+ fprintf(f, "FLAGS: %#x %#x\n", sn->flags[0], sn->flags[1]);
+#if USE_COMPOSITE
+ if (sn->use_flags & SNAP_USE_OPACITY)
+ fprintf(f, "OPACITY: %i %i\n", sn->opacity, sn->focused_opacity);
+ if (sn->use_flags & SNAP_USE_SHADOW)
+ fprintf(f, "SHADOW: %i\n", sn->shadow);
+#endif
+ if (sn->groups)
+ {
+ for (j = 0; j < sn->num_groups; j++)
+ fprintf(f, "GROUP: %i\n", sn->groups[j]);
+ }
+ fprintf(f, "\n");
+ }
+
+ fclose(f);
+
+ Esnprintf(buf, sizeof(buf), "%s.snapshots", EGetSavePrefix());
+
+ if (EDebug(EDBUG_TYPE_SNAPS))
+ Eprintf("SnapshotsSaveReal: %s\n", buf);
+ E_mv(s, buf);
+ if (!isfile(buf))
+ Alert(_("Error saving snaps file\n"));
+
+ GroupsSave();
+
+ done:
+ TIMER_DEL(ss_timer);
+ return 0;
+}
+
+void
+SnapshotsSpawn(void)
+{
+ Snapshot *sn;
+
+ ECORE_LIST_FOR_EACH(ss_list, sn)
+ {
+ if ((sn->use_flags & SNAP_USE_COMMAND) && (sn->cmd) &&
+ !sn->used && !(sn->match_flags & SNAP_MATCH_MULTIPLE))
+ {
+ sn->startup_id = ++Mode.apps.startup_id;
+ EspawnCmd(sn->cmd);
+ }
+ }
+}
+
+/* load all snapped info */
+void
+SnapshotsLoad(void)
+{
+ Snapshot *sn = NULL;
+ char buf[4096], *s;
+ FILE *f;
+ int res_w, res_h, a, b, c, d;
+
+ GroupsLoad();
+
+ Esnprintf(buf, sizeof(buf), "%s.snapshots", EGetSavePrefix());
+ f = fopen(buf, "r");
+ if (!f)
+ return;
+
+ res_w = WinGetW(VROOT);
+ res_h = WinGetH(VROOT);
+ while (fgets(buf, sizeof(buf), f))
+ {
+ s = strchr(buf, ':');
+ if (!s)
+ continue;
+ *s++ = '\0';
+ s = Estrtrim(s);
+ if (!buf[0] || !s[0])
+ continue;
+ if (!strcmp(buf, "NEW"))
+ {
+ res_w = WinGetW(VROOT);
+ res_h = WinGetH(VROOT);
+ sn = _SnapCreate(s);
+ }
+ else if (sn)
+ {
+ if (!strcmp(buf, "WIN"))
+ {
+ sn->win = strtoul(s, NULL, 0);
+ }
+ else if (!strcmp(buf, "TITLE"))
+ {
+ sn->win_title = Estrdup(s);
+ sn->match_flags |= SNAP_MATCH_TITLE;
+ }
+ else if (!strcmp(buf, "NAME"))
+ {
+ sn->win_name = Estrdup(s);
+ sn->match_flags |= SNAP_MATCH_NAME;
+ }
+ else if (!strcmp(buf, "CLASS"))
+ {
+ sn->win_class = Estrdup(s);
+ sn->match_flags |= SNAP_MATCH_CLASS;
+ }
+ else if (!strcmp(buf, "ROLE"))
+ {
+ sn->win_role = Estrdup(s);
+ sn->match_flags |= SNAP_MATCH_ROLE;
+ }
+ else if (!strcmp(buf, "AUTO"))
+ {
+ sn->track_changes = 1;
+ }
+ else if (!strcmp(buf, "BORDER"))
+ {
+ sn->use_flags |= SNAP_USE_BORDER;
+ sn->border_name = Estrdup(s);
+ }
+ else if (!strcmp(buf, "CMD"))
+ {
+ sn->use_flags |= SNAP_USE_COMMAND;
+ sn->cmd = Estrdup(s);
+ }
+ else if (!strcmp(buf, "DESKTOP"))
+ {
+ sn->use_flags |= SNAP_USE_DESK;
+ sn->desktop = atoi(s);
+ }
+ else if (!strcmp(buf, "RES"))
+ {
+ if (sscanf(s, "%u %u", &a, &b) < 2)
+ continue;
+ if (a <= 0 || b <= 0)
+ continue;
+ res_w = a;
+ res_h = b;
+ }
+ else if (!strcmp(buf, "WH"))
+ {
+ if (sscanf(s, "%u %u", &a, &b) < 2)
+ continue;
+ if (a <= 0 || b <= 0)
+ continue;
+ sn->use_flags |= SNAP_USE_SIZE;
+ sn->w = a;
+ sn->h = b;
+ }
+ else if (!strcmp(buf, "XY"))
+ {
+ if (sscanf(s, "%d %d %u %u", &a, &b, &c, &d) < 4)
+ continue;
+ sn->use_flags |= SNAP_USE_POS;
+ sn->x = a;
+ sn->y = b;
+ /* we changed reses since we last used this snapshot file */
+ if (res_w != WinGetW(VROOT))
+ {
+ if (sn->use_flags & SNAP_USE_SIZE)
+ {
+ if ((res_w - sn->w) <= 0)
+ sn->x = 0;
+ else
+ sn->x =
+ (sn->x * (WinGetW(VROOT) - sn->w)) /
+ (res_w - sn->w);
+ }
+ else
+ {
+ if (sn->x >= WinGetW(VROOT))
+ sn->x = WinGetW(VROOT) - 32;
+ }
+ }
+ if (res_h != WinGetH(VROOT))
+ {
+ if (sn->use_flags & SNAP_USE_SIZE)
+ {
+ if ((res_h - sn->h) <= 0)
+ sn->y = 0;
+ else
+ sn->y =
+ (sn->y * (WinGetH(VROOT) - sn->h)) /
+ (res_h - sn->h);
+ }
+ else
+ {
+ if (sn->y >= WinGetH(VROOT))
+ sn->y = WinGetH(VROOT) - 32;
+ }
+ }
+ sn->area_x = c;
+ sn->area_y = d;
+ }
+ else if (!strcmp(buf, "LAYER"))
+ {
+ sn->use_flags |= SNAP_USE_LAYER;
+ sn->layer = atoi(s);
+ }
+ else if (!strcmp(buf, "STICKY"))
+ {
+ sn->use_flags |= SNAP_USE_STICKY;
+ sn->sticky = atoi(s);
+ }
+ else if (!strcmp(buf, "SHADE"))
+ {
+ sn->use_flags |= SNAP_USE_SHADED;
+ sn->shaded = atoi(s);
+ }
+ else if (!strcmp(buf, "SKIPFOCUS"))
+ {
+ sn->use_flags |= SNAP_USE_SKIP_LISTS;
+ sn->skipfocus = atoi(s);
+ }
+ else if (!strcmp(buf, "SKIPTASK"))
+ {
+ sn->use_flags |= SNAP_USE_SKIP_LISTS;
+ sn->skiptask = atoi(s);
+ }
+ else if (!strcmp(buf, "SKIPWINLIST"))
+ {
+ sn->use_flags |= SNAP_USE_SKIP_LISTS;
+ sn->skipwinlist = atoi(s);
+ }
+ else if (!strcmp(buf, "FLAGS"))
+ {
+ sn->use_flags |= SNAP_USE_FLAGS;
+ sn->flags[0] = sn->flags[1] = 0;
+ sscanf(s, "%i %i", sn->flags, sn->flags + 1);
+ }
+ else if (!strcmp(buf, "GROUP"))
+ {
+ sn->use_flags |= SNAP_USE_GROUPS;
+ sn->num_groups++;
+ sn->groups = EREALLOC(int, sn->groups, sn->num_groups);
+
+ sn->groups[sn->num_groups - 1] = atoi(s);
+ GroupRemember(sn->groups[sn->num_groups - 1]);
+ }
+#if USE_COMPOSITE
+ else if (!strcmp(buf, "OPACITY"))
+ {
+ sn->use_flags |= SNAP_USE_OPACITY;
+ a = 100;
+ b = 100;
+ sscanf(s, "%i %i", &a, &b);
+ if (b == 1)
+ b = 100; /* BW compat - focused is opaque */
+ sn->opacity = a;
+ sn->focused_opacity = b;
+ }
+ else if (!strcmp(buf, "SHADOW"))
+ {
+ sn->use_flags |= SNAP_USE_SHADOW;
+ sn->shadow = atoi(s);
+ }
+#endif
+ }
+ }
+ fclose(f);
+}
+
+/* make a client window conform to snapshot info */
+void
+SnapshotEwinApply(EWin * ewin)
+{
+ Snapshot *sn;
+ int ax, ay;
+ unsigned int use_flags;
+
+ _SnapEwinFind(ewin); /* Find a saved settings match */
+
+ sn = ewin->snap;
+ if (!sn)
+ {
+ if (ewin->props.autosave)
+ _EwinSnapSet(ewin, SNAP_MATCH_DEFAULT, SNAP_USE_ALL | SNAP_AUTO);
+ return;
+ }
+
+ if (ewin->props.autosave)
+ sn->track_changes = 1;
+
+ use_flags = sn->use_flags;
+ /* If restarting don't override stuff set in attributes/properties */
+ if (ewin->state.identified)
+ use_flags &= SNAP_USE_LAYER | SNAP_USE_SHADOW | SNAP_USE_GROUPS |
+ SNAP_USE_OPACITY;
+
+ if (use_flags & SNAP_USE_STICKY)
+ EoSetSticky(ewin, sn->sticky);
+
+ if (use_flags & SNAP_USE_DESK)
+ EoSetDesk(ewin, DeskGet(sn->desktop));
+
+ if (use_flags & SNAP_USE_SIZE)
+ {
+ ewin->client.w = sn->w;
+ ewin->client.h = sn->h;
+ ewin->state.maximized_horz = ewin->state.maximized_vert = 0;
+ }
+
+ if (use_flags & SNAP_USE_POS)
+ {
+ ewin->state.placed = 1;
+ ewin->client.x = sn->x;
+ ewin->client.y = sn->y;
+#if 0 /* No, do later in EwinDetermineArea() */
+ ewin->area_x = sn->area_x;
+ ewin->area_y = sn->area_y;
+#endif
+ if (!EoIsSticky(ewin))
+ {
+ DeskGetArea(EoGetDesk(ewin), &ax, &ay);
+ ewin->client.x += ((sn->area_x - ax) * WinGetW(VROOT));
+ ewin->client.y += ((sn->area_y - ay) * WinGetH(VROOT));
+ }
+ }
+
+ if (use_flags & SNAP_USE_LAYER)
+ EoSetLayer(ewin, sn->layer);
+
+ if (use_flags & SNAP_USE_SKIP_LISTS)
+ {
+ ewin->props.skip_focuslist = sn->skipfocus;
+ ewin->props.skip_ext_task = sn->skiptask;
+ ewin->props.skip_winlist = sn->skipwinlist;
+ }
+
+ if (use_flags & SNAP_USE_FLAGS)
+ EwinFlagsDecode(ewin, sn->flags);
+
+ if (use_flags & SNAP_USE_SHADED)
+ ewin->state.shaded = sn->shaded;
+
+ if (use_flags & SNAP_USE_BORDER)
+ EwinBorderSetInitially(ewin, sn->border_name);
+
+ if (use_flags & SNAP_USE_GROUPS)
+ GroupsEwinAdd(ewin, sn->groups, sn->num_groups);
+
+#if USE_COMPOSITE
+ if (use_flags & SNAP_USE_OPACITY)
+ {
+ sn->opacity = OpacityFix(sn->opacity, 0);
+ sn->focused_opacity = OpacityFix(sn->focused_opacity, 0);
+ ewin->ewmh.opacity = OpacityFromPercent(sn->opacity);
+ ewin->props.focused_opacity = OpacityFromPercent(sn->focused_opacity);
+ }
+
+ if (use_flags & SNAP_USE_SHADOW)
+ EoSetShadow(ewin, sn->shadow);
+#endif
+
+ if (EDebug(EDBUG_TYPE_SNAPS))
+ Eprintf("Snap get snap %#lx: %4d+%4d %4dx%4d: %s\n",
+ EwinGetClientXwin(ewin), ewin->client.x, ewin->client.y,
+ ewin->client.w, ewin->client.h, EwinGetTitle(ewin));
+}
+
+/* Detach snapshot from ewin */
+void
+SnapshotEwinUnmatch(EWin * ewin)
+{
+ Snapshot *sn;
+
+ sn = ewin->snap;
+ if (sn == NULL)
+ return;
+
+ ewin->snap = NULL;
+ sn->used = NULL;
+}
+
+void
+SnapshotEwinParse(EWin * ewin, const char *params)
+{
+ char param[1024];
+ const char *p;
+ int len;
+ unsigned int match_flags, use_flags;
+
+ p = params;
+ if (!p)
+ return;
+
+ match_flags = SNAP_MATCH_DEFAULT;
+ use_flags = 0;
+
+ for (;;)
+ {
+ param[0] = '\0';
+ len = 0;
+ sscanf(p, "%s %n", param, &len);
+ if (len <= 0)
+ break;
+ p += len;
+
+ if (!strcmp(param, "all"))
+ {
+ use_flags = SNAP_USE_ALL;
+ }
+#if ENABLE_DIALOGS
+ else if (!strcmp(param, "dialog"))
+ {
+ _EwinSnapDialog(ewin);
+ break;
+ }
+#endif
+ else if (!strcmp(param, "none"))
+ _EwinSnapRemove(ewin);
+ else if (!strcmp(param, "auto"))
+ use_flags |= SNAP_AUTO;
+ else if (!strcmp(param, "border"))
+ use_flags |= SNAP_USE_BORDER;
+ else if (!strcmp(param, "command"))
+ use_flags |= SNAP_USE_COMMAND;
+ else if (!strcmp(param, "desktop"))
+ use_flags |= SNAP_USE_DESK;
+ else if (!strcmp(param, "location"))
+ use_flags |= SNAP_USE_POS;
+ else if (!strcmp(param, "size"))
+ use_flags |= SNAP_USE_SIZE;
+ else if (!strcmp(param, "layer"))
+ use_flags |= SNAP_USE_LAYER;
+ else if (!strcmp(param, "shade"))
+ use_flags |= SNAP_USE_SHADED;
+ else if (!strcmp(param, "sticky"))
+ use_flags |= SNAP_USE_STICKY;
+#if USE_COMPOSITE
+ else if (!strcmp(param, "opacity"))
+ use_flags |= SNAP_USE_OPACITY;
+ else if (!strcmp(param, "shadow"))
+ use_flags |= SNAP_USE_SHADOW;
+#endif
+ else if (!strcmp(param, "group"))
+ use_flags |= SNAP_USE_GROUPS;
+ }
+
+ if (ewin->snap)
+ {
+ match_flags = ewin->snap->match_flags;
+ use_flags |= ewin->snap->use_flags;
+ }
+
+ _EwinSnapSet(ewin, match_flags, use_flags);
+
+ SnapshotsSave();
+}
+
+/*
+ * IPC functions
+ * A bit ugly...
+ */
+const char SnapshotsIpcText[] =
+ "usage:\n" " list_remember [full]\n"
+ " Retrieve a list of remembered windows. with full, the list\n"
+ " includes the window's remembered attributes\n";
+
+#define SS(s) ((s) ? (s) : NoText)
+static const char NoText[] = "-NONE-";
+
+static void
+_SnapShow(void *data, void *prm)
+{
+ Snapshot *sn = (Snapshot *) data;
+ int full = prm != NULL;
+ char buf[FILEPATH_LEN_MAX];
+ const char *name;
+
+ name = (sn->name) ? sn->name : "???";
+
+ if (!full)
+ {
+ if (sn->used)
+ IpcPrintf("%s\n", name);
+ else
+ IpcPrintf("%s (unused)\n", name);
+ return;
+ }
+
+#define SU(sn, item) ((sn->match_flags & item) ? '>' : ':')
+
+ if (sn->used)
+ Esnprintf(buf, sizeof(buf), "In use - %#lx", EwinGetClientXwin(sn->used));
+ else
+ Esnprintf(buf, sizeof(buf), "*** Unused ***");
+ IpcPrintf(" Snapshot Name: %s %s\n", name, buf);
+ if (sn->win_title)
+ IpcPrintf(" Window Title%c %s\n", SU(sn, SNAP_MATCH_TITLE),
+ sn->win_title);
+ if (sn->win_name)
+ IpcPrintf(" Window Name%c %s\n", SU(sn, SNAP_MATCH_NAME),
+ sn->win_name);
+ if (sn->win_class)
+ IpcPrintf(" Window Class%c %s\n", SU(sn, SNAP_MATCH_CLASS),
+ sn->win_class);
+ if (sn->win_role)
+ IpcPrintf(" Window Role%c %s\n", SU(sn, SNAP_MATCH_ROLE),
+ sn->win_role);
+
+ if (sn->track_changes)
+ IpcPrintf(" Tracking changes\n");
+ if (sn->use_flags & SNAP_USE_BORDER)
+ IpcPrintf(" Border Name: %s\n", SS(sn->border_name));
+ if (sn->use_flags & SNAP_USE_DESK)
+ IpcPrintf(" desktop: %d\n", sn->desktop);
+ if (sn->use_flags & SNAP_USE_POS)
+ IpcPrintf(" (x, y): %d, %d area (x, y): %d, %d\n",
+ sn->x, sn->y, sn->area_x, sn->area_y);
+ if (sn->use_flags & SNAP_USE_SIZE)
+ IpcPrintf(" (w, h): %d, %d\n", sn->w, sn->h);
+ if (sn->use_flags & SNAP_USE_LAYER)
+ IpcPrintf(" layer: %d\n", sn->layer);
+ if (sn->use_flags & SNAP_USE_STICKY)
+ IpcPrintf(" sticky: %d\n", sn->sticky);
+ if (sn->use_flags & SNAP_USE_SHADED)
+ IpcPrintf(" shade: %d\n", sn->shaded);
+ if (sn->use_flags & SNAP_USE_COMMAND)
+ IpcPrintf(" command: %s\n", SS(sn->cmd));
+ if (sn->use_flags & SNAP_USE_SKIP_LISTS)
+ IpcPrintf
+ (" skiptask: %d skipfocus: %d skipwinlist: %d\n",
+ sn->skiptask, sn->skipfocus, sn->skipwinlist);
+ if (sn->use_flags & SNAP_USE_FLAGS)
+ IpcPrintf(" flags: %#x %#x\n", sn->flags[0], sn->flags[1]);
+ IpcPrintf("\n");
+}
+
+void
+SnapshotsIpcFunc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (ecore_list_count(ss_list) <= 0)
+ {
+ IpcPrintf("No remembered windows\n");
+ return;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ ecore_list_for_each(ss_list, _SnapShow, NULL);
+ }
+ else
+ {
+ ecore_list_for_each(ss_list, _SnapShow, (void *)1L);
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2005-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _SNAPS_H_
+#define _SNAPS_H_
+
+#include "etypes.h"
+
+#define SNAP_MATCH_TITLE (1 << 0)
+#define SNAP_MATCH_NAME (1 << 1)
+#define SNAP_MATCH_CLASS (1 << 2)
+#define SNAP_MATCH_ROLE (1 << 3)
+#define SNAP_MATCH_ROLE (1 << 3)
+#define SNAP_MATCH_MULTIPLE (1 << 8)
+
+#define SNAP_MATCH_DEFAULT (SNAP_MATCH_NAME | SNAP_MATCH_CLASS | SNAP_MATCH_ROLE)
+
+#define SNAP_AUTO (1 << 0)
+#define SNAP_USE_BORDER (1 << 1)
+#define SNAP_USE_COMMAND (1 << 2)
+#define SNAP_USE_DESK (1 << 3)
+#define SNAP_USE_POS (1 << 4)
+#define SNAP_USE_SIZE (1 << 5)
+#define SNAP_USE_LAYER (1 << 6)
+#define SNAP_USE_STICKY (1 << 7)
+#define SNAP_USE_SHADED (1 << 8)
+#define SNAP_USE_FLAGS (1 << 9)
+#define SNAP_USE_SKIP_LISTS (1 << 10)
+#define SNAP_USE_OPACITY (1 << 11)
+#define SNAP_USE_SHADOW (1 << 12)
+#define SNAP_USE_GROUPS (1 << 13)
+
+#define SNAP_USE_ALL (~1)
+
+int SnapshotsSaveReal(void *data);
+void SnapshotsLoad(void);
+void SnapshotsSave(void);
+void SnapshotsSpawn(void);
+
+void SnapshotEwinApply(EWin * ewin);
+void SnapshotEwinUnmatch(EWin * ewin);
+void SnapshotEwinUpdate(const EWin * ewin, unsigned int flags);
+void SnapshotEwinParse(EWin * ewin, const char *params);
+
+extern const char SnapshotsIpcText[];
+void SnapshotsIpcFunc(const char *params);
+
+#endif /* _SNAPS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/* sgi's stdio.h has:
+ *
+ * #if _SGIAPI && _NO_ANSIMODE
+ * extern int vsnprintf(char *, ssize_t, const char *, char *);
+ * #endif
+ *
+ * so workaround...
+ */
+#ifdef __sgi
+#ifdef _NO_ANSIMODE
+#undef _NO_ANSIMODE
+#endif
+#endif
+
+#include "E.h"
+#include <errno.h>
+#include <ctype.h>
+
+/*
+ * Shamelessly snarfed from sane...
+ * which shamelessly snarfed from LPR
+ * which probably shamelessly snarfed from....
+ *
+ * Moved comments to end so I can actually read the code.. cleaned out useless
+ * junk....
+ */
+
+#define VA_LOCAL_DECL va_list ap
+#define VA_START(f) va_start(ap, f)
+#define VA_SHIFT(v,t) ; /* no-op for ANSI */
+#define VA_END va_end(ap)
+
+/*
+ * dopr(): poor man's version of doprintf
+ */
+
+static void dopr(char *buffer, const char *format, va_list args);
+static void fmtstr(char *value, int ljust, int len, int zpad,
+ int precision);
+static void fmtnum(long value, int base, int dosign, int ljust, int len,
+ int zpad, int precision);
+static void fmtdouble(int fmt, double value, int ljust, int len,
+ int zpad, int precision);
+static void dostr(char *);
+static char *output;
+static void dopr_outch(int c);
+static char *end;
+int visible_control = 1;
+
+int
+Evsnprintf(char *str, size_t count, const char *fmt, va_list args)
+{
+ str[0] = 0;
+ end = str + count - 1;
+ dopr(str, fmt, args);
+ if (count > 0)
+ {
+ end[0] = 0;
+ }
+ return (strlen(str));
+}
+
+#ifdef HAVE_STDARG_H
+int
+Esnprintf(char *str, size_t count, const char *fmt, ...)
+#else
+int
+Esnprintf(va_alist)
+ va_dcl
+#endif
+{
+#ifndef HAVE_STDARG_H
+ char *str;
+ size_t count;
+ char *fmt;
+
+#endif
+ VA_LOCAL_DECL;
+
+ VA_START(fmt);
+ VA_SHIFT(str, char *);
+
+ VA_SHIFT(count, size_t);
+ VA_SHIFT(fmt, char *);
+
+ (void)Evsnprintf(str, count, fmt, ap);
+ VA_END;
+ return (strlen(str));
+}
+
+static void
+dopr(char *buffer, const char *format, va_list args)
+{
+ int ch;
+ long value;
+ int longflag = 0;
+ char *strvalue;
+ int ljust;
+ int len;
+ int zpad;
+ int precision;
+ int set_precision;
+ double dval;
+
+ output = buffer;
+ while ((ch = *format++))
+ {
+ switch (ch)
+ {
+ case '%':
+ ljust = len = zpad = 0;
+ precision = -1;
+ set_precision = 0;
+ nextch:
+ ch = *format++;
+ switch (ch)
+ {
+ case 0:
+ dostr("**end of format**");
+ return;
+ case '-':
+ ljust = 1;
+ goto nextch;
+ case '.':
+ set_precision = 1;
+ precision = 0;
+ goto nextch;
+ case '*':
+ len = va_arg(args, int);
+
+ goto nextch;
+ case '0': /* set zero padding if len not set */
+ if (len == 0 && set_precision == 0)
+ zpad = '0';
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ if (set_precision)
+ {
+ precision = precision * 10 + ch - '0';
+ }
+ else
+ {
+ len = len * 10 + ch - '0';
+ }
+ goto nextch;
+ case 'l':
+ longflag = 1;
+ goto nextch;
+ case 'u':
+ case 'U':
+ /*fmtnum(value,base,dosign,ljust,len, zpad, precision) */
+ if (longflag)
+ {
+ value = va_arg(args, long);
+ }
+ else
+ {
+ value = va_arg(args, int);
+ }
+ fmtnum(value, 10, 0, ljust, len, zpad, precision);
+ break;
+ case 'o':
+ case 'O':
+ /*fmtnum(value,base,dosign,ljust,len, zpad, precision) */
+ if (longflag)
+ {
+ value = va_arg(args, long);
+ }
+ else
+ {
+ value = va_arg(args, int);
+ }
+ fmtnum(value, 8, 0, ljust, len, zpad, precision);
+ break;
+ case 'd':
+ case 'i':
+ case 'D':
+ if (longflag)
+ {
+ value = va_arg(args, long);
+ }
+ else
+ {
+ value = va_arg(args, int);
+ }
+ fmtnum(value, 10, 1, ljust, len, zpad, precision);
+ break;
+ case 'x':
+ if (longflag)
+ {
+ value = va_arg(args, long);
+ }
+ else
+ {
+ value = va_arg(args, int);
+ }
+ fmtnum(value, 16, 0, ljust, len, zpad, precision);
+ break;
+ case 'X':
+ if (longflag)
+ {
+ value = va_arg(args, long);
+ }
+ else
+ {
+ value = va_arg(args, int);
+ }
+ fmtnum(value, -16, 0, ljust, len, zpad, precision);
+ break;
+ case 's':
+ strvalue = va_arg(args, char *);
+
+ fmtstr(strvalue, ljust, len, zpad, precision);
+ break;
+ case 'c':
+ ch = va_arg(args, int);
+
+ {
+ char b[2];
+ int vsb = visible_control;
+
+ b[0] = ch;
+ b[1] = 0;
+ visible_control = 0;
+ fmtstr(b, ljust, len, zpad, precision);
+ visible_control = vsb;
+ }
+ break;
+ case 'f':
+ case 'g':
+ dval = va_arg(args, double);
+
+ fmtdouble(ch, dval, ljust, len, zpad, precision);
+ break;
+ case '%':
+ dopr_outch(ch);
+ continue;
+ default:
+ dostr("???????");
+ }
+ longflag = 0;
+ break;
+ default:
+ dopr_outch(ch);
+ break;
+ }
+ }
+ *output = 0;
+}
+
+/*
+ * Format '%[-]len[.precision]s'
+ * - = left justify (ljust)
+ * len = minimum length
+ * precision = numbers of chars in string to use
+ */
+static void
+fmtstr(char *value, int ljust, int len, int zpad, int precision)
+{
+ int padlen, strlen, i, c; /* amount to pad */
+
+ zpad = 0;
+ if (value == 0)
+ {
+ value = "<NULL>";
+ }
+ if (precision > 0)
+ {
+ strlen = precision;
+ }
+ else
+ {
+ /* cheap strlen so you do not have library call */
+ for (strlen = 0; (c = value[strlen]); ++strlen)
+ {
+ if (visible_control && iscntrl(c) && !isspace(c))
+ {
+ ++strlen;
+ }
+ }
+ }
+ padlen = len - strlen;
+ if (padlen < 0)
+ padlen = 0;
+ if (ljust)
+ padlen = -padlen;
+ while (padlen > 0)
+ {
+ dopr_outch(' ');
+ --padlen;
+ }
+ /* output characters */
+ for (i = 0; (c = value[i]); ++i)
+ {
+ if (visible_control && iscntrl(c) && !isspace(c))
+ {
+ dopr_outch('^');
+ c = ('@' | (c & 0x1F));
+ }
+ dopr_outch(c);
+ }
+ while (padlen < 0)
+ {
+ dopr_outch(' ');
+ ++padlen;
+ }
+}
+
+static void
+fmtnum(long value, int base, int dosign, int ljust, int len, int zpad,
+ int precision)
+{
+ int signvalue = 0;
+ unsigned long uvalue;
+ char convert[20];
+ int place = 0;
+ int padlen = 0; /* amount to pad */
+ int caps = 0;
+
+ precision = 0;
+ /* DEBUGP(("value 0x%x, base %d, dosign %d, ljust %d, len %d, zpad %d\n",
+ * value, base, dosign, ljust, len, zpad )); */
+ uvalue = value;
+ if (dosign)
+ {
+ if (value < 0)
+ {
+ signvalue = '-';
+ uvalue = -value;
+ }
+ }
+ if (base < 0)
+ {
+ caps = 1;
+ base = -base;
+ }
+ do
+ {
+ convert[place++] =
+ (caps ? "0123456789ABCDEF" : "0123456789abcdef")[uvalue %
+ (unsigned)base];
+ uvalue = (uvalue / (unsigned)base);
+ }
+ while (uvalue);
+ convert[place] = 0;
+ padlen = len - place;
+ if (padlen < 0)
+ padlen = 0;
+ if (ljust)
+ padlen = -padlen;
+ /* DEBUGP(( "str '%s', place %d, sign %c, padlen %d\n",
+ * convert,place,signvalue,padlen)); */
+ if (zpad && padlen > 0)
+ {
+ if (signvalue)
+ {
+ dopr_outch(signvalue);
+ --padlen;
+ signvalue = 0;
+ }
+ while (padlen > 0)
+ {
+ dopr_outch(zpad);
+ --padlen;
+ }
+ }
+ while (padlen > 0)
+ {
+ dopr_outch(' ');
+ --padlen;
+ }
+ if (signvalue)
+ dopr_outch(signvalue);
+ while (place > 0)
+ dopr_outch(convert[--place]);
+ while (padlen < 0)
+ {
+ dopr_outch(' ');
+ ++padlen;
+ }
+}
+
+static void
+fmtdouble(int fmt, double value, int ljust, int len, int zpad, int precision)
+{
+ char convert[128];
+ char fmtstr[128];
+ int l;
+
+ zpad = 0;
+ if (len == 0)
+ len = 10;
+ if (len > (int)sizeof(convert) - 10)
+ {
+ len = (int)sizeof(convert) - 10;
+ }
+ if (precision > (int)sizeof(convert) - 10)
+ {
+ precision = (int)sizeof(convert) - 10;
+ }
+ if (precision > len)
+ precision = len;
+ strcpy(fmtstr, "%");
+ if (ljust)
+ strcat(fmtstr, "-");
+ if (len)
+ {
+ sprintf(fmtstr + strlen(fmtstr), "%d", len);
+ }
+ if (precision > 0)
+ {
+ sprintf(fmtstr + strlen(fmtstr), ".%d", precision);
+ }
+ l = strlen(fmtstr);
+ fmtstr[l] = fmt;
+ fmtstr[l + 1] = 0;
+ sprintf(convert, fmtstr, value);
+ dostr(convert);
+}
+
+static void
+dostr(char *str)
+{
+ while (*str)
+ dopr_outch(*str++);
+}
+
+static void
+dopr_outch(int c)
+{
+ if (end == 0 || output < end)
+ {
+ *output++ = c;
+ }
+}
+
+/**************************************************************
+ * Original:
+ * Patrick Powell Tue Apr 11 09:48:21 PDT 1995
+ * A bombproof version of doprnt (dopr) included.
+ * Sigh. This sort of thing is always nasty do deal with. Note that
+ * the version here does not include floating point...
+ *
+ * plp_snprintf() is used instead of sprintf() as it does limit checks
+ * for string length. This covers a nasty loophole.
+ *
+ * The other functions are there to prevent NULL pointers from
+ * causing nast effects.
+ **************************************************************/
+
+/***************************************************************************
+ * LPRng - An Extended Print Spooler System
+ *
+ * Copyright 1988-1997, Patrick Powell, San Diego, CA
+ * papowell@sdsu.edu
+ * See below for conditions of use.
+ *
+ ***************************************************************************
+ * MODULE: snprintf.c
+ * PURPOSE: LPRng version of printf - absolutely bombproof (hopefully!)
+ **************************************************************************/
+
+/*
+ * The "Artistic License"
+ *
+ * Preamble
+ *
+ * The intent of this document is to state the conditions under which a
+ * Package may be copied, such that the Copyright Holder maintains some
+ * semblance of artistic control over the development of the package,
+ * while giving the users of the package the right to use and distribute
+ * the Package in a more-or-less customary fashion, plus the right to make
+ * reasonable modifications.
+ *
+ * Definitions:
+ *
+ * "Package" refers to the collection of files distributed by the
+ * Copyright Holder, and derivatives of that collection of files
+ * created through textual modification.
+ *
+ * "Standard Version" refers to such a Package if it has not been
+ * modified, or has been modified in accordance with the wishes
+ * of the Copyright Holder as specified below.
+ *
+ * "Copyright Holder" is whoever is named in the copyright or
+ * copyrights for the package.
+ *
+ * "You" is you, if you are thinking about copying or distributing
+ * this Package.
+ *
+ * "Reasonable copying fee" is whatever you can justify on the
+ * basis of media cost, duplication charges, time of people involved,
+ * and so on. (You will not be required to justify it to the
+ * Copyright Holder, but only to the computing community at large
+ * as a market that must bear the fee.)
+ *
+ * "Freely Available" means that no fee is charged for the item
+ * itself, though there may be fees involved in handling the item.
+ * It also means that recipients of the item may redistribute it
+ * under the same conditions they received it.
+ *
+ * 1. You may make and give away verbatim copies of the source form of the
+ * Standard Version of this Package without restriction, provided that you
+ * duplicate all of the original copyright notices and associated disclaimers.
+ *
+ * 2. You may apply bug fixes, portability fixes and other modifications
+ * derived from the Public Domain or from the Copyright Holder. A Package
+ * modified in such a way shall still be considered the Standard Version.
+ *
+ * 3. You may otherwise modify your copy of this Package in any way, provided
+ * that you insert a prominent notice in each changed file stating how and
+ * when you changed that file, and provided that you do at least ONE of the
+ * following:
+ *
+ * a) place your modifications in the Public Domain or otherwise make them
+ * Freely Available, such as by posting said modifications to Usenet or
+ * an equivalent medium, or placing the modifications on a major archive
+ * site such as uunet.uu.net, or by allowing the Copyright Holder to include
+ * your modifications in the Standard Version of the Package.
+ *
+ * b) use the modified Package only within your corporation or organization.
+ *
+ * c) rename any non-standard executables so the names do not conflict
+ * with standard executables, which must also be provided, and provide
+ * a separate manual page for each non-standard executable that clearly
+ * documents how it differs from the Standard Version.
+ *
+ * d) make other distribution arrangements with the Copyright Holder.
+ *
+ * 4. You may distribute the programs of this Package in object code or
+ * executable form, provided that you do at least ONE of the following:
+ *
+ * a) distribute a Standard Version of the executables and library files,
+ * together with instructions (in the manual page or equivalent) on where
+ * to get the Standard Version.
+ *
+ * b) accompany the distribution with the machine-readable source of
+ * the Package with your modifications.
+ *
+ * c) give non-standard executables non-standard names, and clearly
+ * document the differences in manual pages (or equivalent), together
+ * with instructions on where to get the Standard Version.
+ *
+ * d) make other distribution arrangements with the Copyright Holder.
+ *
+ * 5. You may charge a reasonable copying fee for any distribution of this
+ * Package. You may charge any fee you choose for support of this
+ * Package. You may not charge a fee for this Package itself. However,
+ * you may distribute this Package in aggregate with other (possibly
+ * commercial) programs as part of a larger (possibly commercial) software
+ * distribution provided that you do not advertise this Package as a
+ * product of your own.
+ *
+ * 6. The name of the Copyright Holder may not be used to endorse or promote
+ * products derived from this software without specific prior written permission.
+ *
+ * 7. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * The End
+ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#if HAVE_SOUND
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "settings.h"
+#include "sound.h"
+#include "sounds.h"
+
+#if HAVE_SOUND_ESD
+#define SOUND_SERVER_NAME "esd"
+#elif HAVE_SOUND_PA
+#define SOUND_SERVER_NAME "pulseaudio"
+#else
+#error Invalid sound configuration
+#endif
+
+#define N_SOUNDS (SOUND_NOT_USED - 1)
+
+typedef struct {
+ char *name;
+ char *file;
+ Sample *sample;
+} SoundClass;
+
+#define SC_NAME(sc) ((sc) ? (sc)->name : "(none)")
+
+static struct {
+ char enable;
+ char *theme;
+ unsigned int mask1, mask2;
+} Conf_sound;
+
+static struct {
+ char cfg_loaded;
+ char *theme_path;
+} Mode_sound;
+
+#define SOUND_THEME_PATH ((Mode_sound.theme_path) ? Mode_sound.theme_path : Mode.theme.path)
+
+static Ecore_List *sound_list = NULL;
+
+#if USE_MODULES
+static const SoundOps *ops = NULL;
+#else
+#if HAVE_SOUND_ESD
+extern const SoundOps SoundOps_esd;
+static const SoundOps *ops = &SoundOps_esd;
+#elif HAVE_SOUND_PA
+extern const SoundOps SoundOps_pa;
+static const SoundOps *ops = &SoundOps_pa;
+#endif
+#endif
+
+static void _SoundConfigLoad(void);
+
+static const char *const sound_names[N_SOUNDS] = {
+ "SOUND_ALERT", /* 0 0x00000001 */
+ "SOUND_BUTTON_CLICK",
+ "SOUND_BUTTON_RAISE",
+ "SOUND_DEICONIFY",
+ "SOUND_DESKTOP_LOWER", /* 4 0x00000010 */
+ "SOUND_DESKTOP_RAISE",
+ "SOUND_DESKTOP_SHUT",
+ "SOUND_ERROR_IPC",
+ "SOUND_EXIT", /* 8 0x00000100 */
+ "SOUND_FOCUS_SET",
+ "SOUND_ICONIFY",
+ "SOUND_INSERT_KEYS",
+ "SOUND_LOGOUT", /* 12 0x00001000 */
+ "SOUND_LOWER",
+ "SOUND_MENU_SHOW",
+ "SOUND_MOVE_AREA_DOWN",
+ "SOUND_MOVE_AREA_LEFT", /* 16 0x00010000 */
+ "SOUND_MOVE_AREA_RIGHT",
+ "SOUND_MOVE_AREA_UP",
+ "SOUND_MOVE_RESIST",
+ "SOUND_MOVE_START", /* 20 0x00100000 */
+ "SOUND_MOVE_STOP",
+ "SOUND_RAISE",
+ "SOUND_RESIZE_START",
+ "SOUND_RESIZE_STOP", /* 24 0x01000000 */
+ "SOUND_SCANNING",
+ "SOUND_SETTINGS_ACTIVE",
+ "SOUND_SETTINGS_ALL",
+ "SOUND_SETTINGS_AREA", /* 28 0x10000000 */
+ "SOUND_SETTINGS_AUDIO",
+ "SOUND_SETTINGS_AUTORAISE",
+ "SOUND_SETTINGS_BG",
+ "SOUND_SETTINGS_COMPOSITE", /* 0 0x00000001 */
+ "SOUND_SETTINGS_DESKTOPS",
+ "SOUND_SETTINGS_FOCUS",
+ "SOUND_SETTINGS_FX",
+ "SOUND_SETTINGS_GROUP", /* 4 0x00000010 */
+ "SOUND_SETTINGS_ICONBOX",
+ "SOUND_SETTINGS_MENUS",
+ "SOUND_SETTINGS_MISCELLANEOUS",
+ "SOUND_SETTINGS_MOVERESIZE", /* 8 0x00000100 */
+ "SOUND_SETTINGS_PAGER",
+ "SOUND_SETTINGS_PLACEMENT",
+ "SOUND_SETTINGS_SESSION",
+ "SOUND_SETTINGS_TOOLTIPS", /* 12 0x00001000 */
+ "SOUND_SETTINGS_TRANS",
+ "SOUND_SHADE",
+ "SOUND_SLIDEOUT_SHOW",
+ "SOUND_STARTUP", /* 16 0x00010000 */
+ "SOUND_UNSHADE",
+ "SOUND_WAIT",
+ "SOUND_WINDOW_BORDER_CHANGE",
+ "SOUND_WINDOW_CHANGE_LAYER_DOWN", /* 20 0x00100000 */
+ "SOUND_WINDOW_CHANGE_LAYER_UP",
+ "SOUND_WINDOW_CLOSE",
+ "SOUND_WINDOW_SLIDE",
+ "SOUND_WINDOW_SLIDE_END", /* 24 0x01000000 */
+ "SOUND_WINDOW_STICK",
+ "SOUND_WINDOW_UNSTICK",
+};
+
+static void
+_SclassSampleDestroy(void *data, void *user_data __UNUSED__)
+{
+ SoundClass *sclass = (SoundClass *) data;
+
+ if (!sclass || !sclass->sample)
+ return;
+
+ if (ops)
+ ops->SampleDestroy(sclass->sample);
+ sclass->sample = NULL;
+}
+
+static SoundClass *
+SclassCreate(const char *name, const char *file)
+{
+ SoundClass *sclass;
+
+ sclass = EMALLOC(SoundClass, 1);
+ if (!sclass)
+ return NULL;
+
+ if (!sound_list)
+ sound_list = ecore_list_new();
+ ecore_list_prepend(sound_list, sclass);
+
+ sclass->name = Estrdup(name);
+ sclass->file = Estrdup(file);
+ sclass->sample = NULL;
+
+ return sclass;
+}
+
+static void
+SclassDestroy(SoundClass * sclass)
+{
+ if (!sclass)
+ return;
+
+ ecore_list_node_remove(sound_list, sclass);
+ _SclassSampleDestroy(sclass, NULL);
+ Efree(sclass->name);
+ Efree(sclass->file);
+
+ Efree(sclass);
+}
+
+static void
+_SclassDestroy(void *data, void *user_data __UNUSED__)
+{
+ SclassDestroy((SoundClass *) data);
+}
+
+static void
+SclassApply(SoundClass * sclass)
+{
+ if (!sclass || !Conf_sound.enable)
+ return;
+
+ if (!sclass->sample)
+ {
+ char *file;
+
+ file = FindFile(sclass->file, SOUND_THEME_PATH);
+ if (file)
+ {
+ sclass->sample = ops->SampleLoad(file);
+ Efree(file);
+ }
+ if (!sclass->sample)
+ {
+ DialogOK(_("Error finding sound file"),
+ _("Warning! Enlightenment was unable to load the\n"
+ "following sound file:\n%s\n"
+ "Enlightenment will continue to operate, but you\n"
+ "may wish to check your configuration settings.\n"),
+ sclass->file);
+ SclassDestroy(sclass);
+ return;
+ }
+ }
+
+ ops->SamplePlay(sclass->sample);
+}
+
+static int
+_SclassMatchName(const void *data, const void *match)
+{
+ return strcmp(((const SoundClass *)data)->name, (const char *)match);
+}
+
+static SoundClass *
+SclassFind(const char *name)
+{
+ return (SoundClass *) ecore_list_find(sound_list, _SclassMatchName, name);
+}
+
+static void
+_SoundPlayByName(const char *name)
+{
+ SoundClass *sclass;
+
+ if (!Conf_sound.enable)
+ return;
+
+ if (!name || !*name)
+ return;
+
+ sclass = SclassFind(name);
+
+ if (EDebug(EDBUG_TYPE_SOUND))
+ Eprintf("%s: %s file=%s\n", "SclassApply", name, SC_NAME(sclass));
+
+ SclassApply(sclass);
+}
+
+#define _SoundMasked(i) \
+ (((i) <= 32) ? Conf_sound.mask1 & (1 << ((i) - 1)) : \
+ Conf_sound.mask2 & (1 << ((i) - 1)))
+void
+SoundPlay(int sound)
+{
+ if (!Conf_sound.enable)
+ return;
+
+ if (sound <= 0 || sound > N_SOUNDS)
+ return;
+
+ if (_SoundMasked(sound))
+ return;
+
+ _SoundPlayByName(sound_names[sound - 1]);
+}
+
+static int
+SoundFree(const char *name)
+{
+ SoundClass *sclass;
+
+ sclass = SclassFind(name);
+ SclassDestroy(sclass);
+
+ return sclass != NULL;
+}
+
+static void
+SoundInit(void)
+{
+ int err;
+
+ if (!Conf_sound.enable)
+ return;
+
+ err = -1;
+#if USE_MODULES
+ if (!ops)
+#if HAVE_SOUND_ESD
+ ops = ModLoadSym("sound", "SoundOps", "esd");
+#elif HAVE_SOUND_PA
+ ops = ModLoadSym("sound", "SoundOps", "pa");
+#endif
+#endif
+ if (ops && ops->Init)
+ err = ops->Init();
+
+ if (err)
+ {
+ Conf_sound.enable = 0;
+ AlertX(_("Error initialising sound"), _("OK"), NULL, NULL,
+ _("Audio was enabled for Enlightenment but there was an error\n"
+ "communicating with the audio server (%s).\n"
+ "Audio will now be disabled.\n"), SOUND_SERVER_NAME);
+ }
+
+ _SoundConfigLoad();
+}
+
+static void
+SoundExit(void)
+{
+ ecore_list_for_each(sound_list, _SclassSampleDestroy, NULL);
+
+ if (ops)
+ ops->Exit();
+
+ Conf_sound.enable = 0;
+}
+
+/*
+ * Configuration load/save
+ */
+
+static int
+_SoundConfigParse(FILE * fs)
+{
+ int err = 0;
+ SoundClass *sc;
+ char s[FILEPATH_LEN_MAX];
+ char s1[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1, fields;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = -1;
+ fields = sscanf(s, "%d", &i1);
+ if (fields == 1) /* Just skip the numeric config stuff */
+ continue;
+
+ s1[0] = s2[0] = '\0';
+ fields = sscanf(s, "%4000s %4000s", s1, s2);
+ if (fields != 2)
+ {
+ Eprintf("*** Ignoring line: %s\n", s);
+ continue;
+ }
+ sc = SclassCreate(s1, s2);
+ }
+#if 0 /* Errors here are just ignored */
+ if (err)
+ ConfigAlertLoad("Sound");
+#endif
+
+ return err;
+}
+
+static void
+_SoundConfigLoad(void)
+{
+ if (Mode_sound.cfg_loaded)
+ return;
+ Mode_sound.cfg_loaded = 1;
+
+ Efree(Mode_sound.theme_path);
+ if (Conf_sound.theme)
+ Mode_sound.theme_path = ThemeFind(Conf_sound.theme);
+ else
+ Mode_sound.theme_path = NULL;
+
+ ConfigFileLoad("sound.cfg", SOUND_THEME_PATH, _SoundConfigParse, 1);
+}
+
+static void
+_SoundConfigUnload(void)
+{
+ ecore_list_for_each(sound_list, _SclassDestroy, NULL);
+ Mode_sound.cfg_loaded = 0;
+}
+
+static void
+_SoundThemeChange(void *item __UNUSED__, const char *theme)
+{
+ if (*theme == '\0')
+ theme = NULL;
+ _SoundConfigUnload();
+ _EFDUP(Conf_sound.theme, theme);
+ _SoundConfigLoad();
+}
+
+/*
+ * Sound module
+ */
+
+static void
+SoundSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ memset(&Mode_sound, 0, sizeof(Mode_sound));
+ break;
+ case ESIGNAL_CONFIGURE:
+ SoundInit();
+ break;
+ case ESIGNAL_START:
+ if (!Conf_sound.enable)
+ break;
+ SoundPlay(SOUND_STARTUP);
+ SoundFree("SOUND_STARTUP");
+ break;
+ case ESIGNAL_EXIT:
+/* if (Mode.wm.master) */
+ SoundExit();
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+static char tmp_audio;
+
+static void
+CB_ConfigureAudio(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf_sound.enable = tmp_audio;
+ if (Conf_sound.enable)
+ SoundInit();
+ else
+ SoundExit();
+ }
+ autosave();
+}
+
+static void
+_DlgFillSound(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_audio = Conf_sound.enable;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Enable sounds"));
+ DialogItemCheckButtonSetPtr(di, &tmp_audio);
+}
+
+const DialogDef DlgSound = {
+ "CONFIGURE_AUDIO",
+ N_("Sound"),
+ N_("Audio Settings"),
+ SOUND_SETTINGS_AUDIO,
+ "pix/sound.png",
+ N_("Enlightenment Audio\n" "Settings Dialog\n"),
+ _DlgFillSound,
+ DLG_OAC, CB_ConfigureAudio,
+};
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * IPC functions
+ */
+
+static void
+SoundIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096];
+ int len;
+ SoundClass *sc;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!strncmp(cmd, "del", 3))
+ {
+ SoundFree(prm);
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ ECORE_LIST_FOR_EACH(sound_list, sc) IpcPrintf("%s\n", sc->name);
+ }
+ else if (!strncmp(cmd, "new", 3))
+ {
+ SclassCreate(prm, p);
+ }
+ else if (!strncmp(cmd, "off", 2))
+ {
+ SoundExit();
+ autosave();
+ }
+ else if (!strncmp(cmd, "on", 2))
+ {
+ Conf_sound.enable = 1;
+ SoundInit();
+ autosave();
+ }
+ else if (!strncmp(cmd, "play", 2))
+ {
+ _SoundPlayByName(prm);
+ }
+}
+
+static const IpcItem SoundIpcArray[] = {
+ {
+ SoundIpc,
+ "sound", "snd",
+ "Sound functions",
+ " sound add <classname> <filename> Create soundclass\n"
+ " sound del <classname> Delete soundclass\n"
+ " sound list Show all sounds\n"
+ " sound off Disable sounds\n"
+ " sound on Enable sounds\n"
+ " sound play <classname> Play sounds\n"}
+};
+#define N_IPC_FUNCS (sizeof(SoundIpcArray)/sizeof(IpcItem))
+
+static const CfgItem SoundCfgItems[] = {
+ CFG_ITEM_BOOL(Conf_sound, enable, 0),
+ CFG_FUNC_STR(Conf_sound, theme, _SoundThemeChange),
+ CFG_ITEM_HEX(Conf_sound, mask1, 0),
+ CFG_ITEM_HEX(Conf_sound, mask2, 0),
+};
+#define N_CFG_ITEMS (sizeof(SoundCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModSound;
+const EModule ModSound = {
+ "sound", "audio",
+ SoundSighan,
+ {N_IPC_FUNCS, SoundIpcArray},
+ {N_CFG_ITEMS, SoundCfgItems}
+};
+
+#endif /* HAVE_SOUND */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _SOUND_H_
+#define _SOUND_H_
+
+typedef struct {
+ unsigned int channels;
+ unsigned int bit_per_sample;
+ unsigned int rate;
+ void *data;
+ unsigned int size; /* N. bytes in data */
+} SoundSampleData;
+
+typedef struct _sample Sample;
+
+typedef struct {
+ int (*Init) (void);
+ void (*Exit) (void);
+ Sample *(*SampleLoad) (const char *file);
+ void (*SampleDestroy) (Sample * s);
+ void (*SamplePlay) (Sample * s);
+} SoundOps;
+
+int SoundSampleGetData(const char *file, SoundSampleData * ssd);
+
+#endif /* _SOUND_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#if defined(HAVE_SOUND) && defined(HAVE_SOUND_ESD)
+#include "sound.h"
+#include <esd.h>
+
+#ifdef USE_MODULES
+#define Estrdup strdup
+#endif
+
+struct _sample {
+ SoundSampleData ssd;
+ int id;
+};
+
+static int sound_fd = -1;
+
+static Sample *
+_sound_esd_Load(const char *file)
+{
+ Sample *s;
+ int err, format;
+
+ if (sound_fd < 0)
+ return NULL;
+
+ s = ECALLOC(Sample, 1);
+ if (!s)
+ return NULL;
+
+ err = SoundSampleGetData(file, &s->ssd);
+ if (err)
+ {
+ Efree(s);
+ return NULL;
+ }
+
+ format = ESD_STREAM | ESD_PLAY;
+ if (s->ssd.bit_per_sample == 8)
+ format |= ESD_BITS8;
+ else if (s->ssd.bit_per_sample == 16)
+ format |= ESD_BITS16;
+ if (s->ssd.channels == 1)
+ format |= ESD_MONO;
+ else if (s->ssd.channels == 2)
+ format |= ESD_STEREO;
+
+ s->id = esd_sample_getid(sound_fd, file);
+ if (s->id < 0)
+ {
+ int confirm;
+
+ s->id = esd_sample_cache(sound_fd, format, s->ssd.rate, s->ssd.size,
+ file);
+ write(sound_fd, s->ssd.data, s->ssd.size);
+ confirm = esd_confirm_sample_cache(sound_fd);
+ if (confirm != s->id)
+ s->id = 0;
+ }
+
+ _EFREE(s->ssd.data);
+ if (s->id <= 0)
+ _EFREE(s);
+
+ return s;
+}
+
+static void
+_sound_esd_Destroy(Sample * s)
+{
+ if (!s)
+ return;
+
+ if (s->id && sound_fd >= 0)
+ {
+/* Why the hell is this symbol not in esd? */
+/* it's in esd.h - evil evil evil */
+/* esd_sample_kill(sound_fd,s->id); */
+ esd_sample_free(sound_fd, s->id);
+ }
+ _EFREE(s->ssd.data);
+ Efree(s);
+}
+
+static void
+_sound_esd_Play(Sample * s)
+{
+ if (sound_fd < 0 || !s)
+ return;
+
+ if (s->id > 0)
+ esd_sample_play(sound_fd, s->id);
+}
+
+static int
+_sound_esd_Init(void)
+{
+ if (sound_fd >= 0)
+ return 0;
+
+ sound_fd = esd_open_sound(NULL);
+
+ return sound_fd < 0;
+}
+
+static void
+_sound_esd_Exit(void)
+{
+ if (sound_fd < 0)
+ return;
+
+ close(sound_fd);
+ sound_fd = -1;
+}
+
+__EXPORT__ extern const SoundOps SoundOps_esd;
+const SoundOps SoundOps_esd = {
+ _sound_esd_Init, _sound_esd_Exit, _sound_esd_Load, _sound_esd_Destroy,
+ _sound_esd_Play,
+};
+
+#endif /* HAVE_SOUND && HAVE_SOUND_ESD */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#if HAVE_SOUND
+#if USE_SOUND_LOADER_AUDIOFILE
+#include "sound.h"
+#include <audiofile.h>
+
+int
+SoundSampleGetData(const char *file, SoundSampleData * ssd)
+{
+ AFfilehandle in_file;
+ int in_format, in_width, bytes_per_frame, frame_count;
+ int frames_read;
+
+ in_file = afOpenFile(file, "r", NULL);
+ if (!in_file)
+ return -1;
+
+ frame_count = afGetFrameCount(in_file, AF_DEFAULT_TRACK);
+ ssd->channels = afGetChannels(in_file, AF_DEFAULT_TRACK);
+ ssd->rate = (unsigned int)(afGetRate(in_file, AF_DEFAULT_TRACK) + .5);
+ afGetSampleFormat(in_file, AF_DEFAULT_TRACK, &in_format, &in_width);
+ ssd->bit_per_sample = in_width;
+#ifdef WORDS_BIGENDIAN
+ afSetVirtualByteOrder(in_file, AF_DEFAULT_TRACK, AF_BYTEORDER_BIGENDIAN);
+#else
+ afSetVirtualByteOrder(in_file, AF_DEFAULT_TRACK, AF_BYTEORDER_LITTLEENDIAN);
+#endif
+ if (EDebug(EDBUG_TYPE_SOUND))
+ Eprintf("SoundSampleGetData chan=%d width=%d rate=%d\n", ssd->channels,
+ ssd->bit_per_sample, ssd->rate);
+
+ bytes_per_frame = (ssd->bit_per_sample * ssd->channels) / 8;
+ ssd->size = frame_count * bytes_per_frame;
+ ssd->data = EMALLOC(unsigned char, ssd->size);
+
+ frames_read =
+ afReadFrames(in_file, AF_DEFAULT_TRACK, ssd->data, frame_count);
+
+ afCloseFile(in_file);
+
+ if (frames_read <= 0)
+ {
+ ssd->size = 0;
+ _EFREE(ssd->data);
+ return -1;
+ }
+
+ return 0;
+}
+
+#endif /* USE_SOUND_LOADER_AUDIOFILE */
+
+#endif /* HAVE_SOUND */
--- /dev/null
+/*
+ * Copyright (C) 2008-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#if defined(HAVE_SOUND) && defined(HAVE_SOUND_PA)
+#include "sound.h"
+#include <fcntl.h>
+#include <pulse/pulseaudio.h>
+#include <sys/stat.h>
+
+#ifdef USE_MODULES
+#define Estrdup strdup
+#endif
+
+#define DEBUG_PA 0
+#if DEBUG_PA
+#define D2printf(fmt...) if(EDebug(EDBUG_TYPE_SOUND)>1)Eprintf(fmt)
+#define D3printf(fmt...) if(EDebug(EDBUG_TYPE_SOUND)>2)Eprintf(fmt)
+#define D4printf(fmt...) if(EDebug(EDBUG_TYPE_SOUND)>3)Eprintf(fmt)
+#else
+#define D2printf(fmt...)
+#define D3printf(fmt...)
+#define D4printf(fmt...)
+#endif
+
+struct _sample {
+ SoundSampleData ssd;
+ char *name;
+ unsigned int written;
+};
+
+static pa_mainloop *pa_mloop = NULL;
+static pa_mainloop_api *mainloop_api = NULL;
+static pa_context *pa_ctx = NULL;
+
+static pa_stream *sample_stream = NULL;
+static size_t sample_length = 0;
+static int pa_block = 0;
+
+static void _sound_pa_Exit(void);
+
+static int
+dispatch(int block)
+{
+ int err, rc;
+
+ D3printf("%s: beg\n", __func__);
+ rc = 1234;
+ pa_block = block;
+ for (;;)
+ {
+ err = pa_mainloop_iterate(pa_mloop, pa_block, &rc);
+ D4printf("%s: run err=%d rc=%d\n", __func__, err, rc);
+ if (err <= 0)
+ break;
+ }
+
+ if (err < 0)
+ _sound_pa_Exit();
+
+ D3printf("%s: end\n", __func__);
+ return err;
+}
+
+static void
+context_op_callback(pa_context * pac __UNUSED__, int success __UNUSED__,
+ void *userdata __UNUSED__)
+{
+ D2printf("%s: succ=%d %s\n", __func__, success,
+ (success) ? "" : pa_strerror(pa_context_errno(pac)));
+ pa_block = 0;
+}
+
+static void
+context_drain_complete(pa_context * pac __UNUSED__, void *userdata __UNUSED__)
+{
+ D2printf("%s\n", __func__);
+}
+
+static void
+context_drain(pa_context * pac)
+{
+ pa_operation *op;
+
+ D2printf("%s\n", __func__);
+ op = pa_context_drain(pac, context_drain_complete, NULL);
+ if (op)
+ pa_operation_unref(op);
+ pa_block = 0;
+}
+
+static void
+stream_state_callback(pa_stream * pas, void *userdata __UNUSED__)
+{
+ D2printf("%s: state=%d\n", __func__, pa_stream_get_state(pas));
+ switch (pa_stream_get_state(pas))
+ {
+ case PA_STREAM_CREATING: /* 1 */
+ case PA_STREAM_READY: /* 2 */
+ break;
+
+ case PA_STREAM_TERMINATED: /* 4 */
+ context_drain(pa_stream_get_context(pas));
+ break;
+
+ case PA_STREAM_FAILED: /* 3 */
+ default:
+ Eprintf("PA failure: %s\n",
+ pa_strerror(pa_context_errno(pa_stream_get_context(pas))));
+ pa_block = 0;
+ break;
+ }
+}
+
+static void
+stream_write_callback(pa_stream * pas, size_t length, void *userdata)
+{
+ D2printf("%s: state=%d length=%d\n", __func__, pa_stream_get_state(pas),
+ length);
+ Sample *s = userdata;
+ unsigned int left;
+
+ left = s->ssd.size - s->written;
+ length = (left > length) ? length : left;
+ pa_stream_write(pas, s->ssd.data, length, NULL, 0, PA_SEEK_RELATIVE);
+ s->written += length;
+
+ D2printf("%s: size=%d written=%d\n", __func__, s->ssd.size, s->written);
+ if (s->written >= s->ssd.size)
+ {
+ pa_stream_set_write_callback(pas, NULL, NULL);
+ pa_stream_finish_upload(pas);
+ }
+}
+
+static void
+context_state_callback(pa_context * pac, void *userdata __UNUSED__)
+{
+ D2printf("%s: state=%d\n", __func__, pa_context_get_state(pac));
+ switch (pa_context_get_state(pac))
+ {
+ case PA_CONTEXT_CONNECTING: /* 1 */
+ case PA_CONTEXT_AUTHORIZING: /* 2 */
+ case PA_CONTEXT_SETTING_NAME: /* 3 */
+ break;
+
+ case PA_CONTEXT_READY: /* 4 */
+ pa_block = 0;
+ break;
+
+ case PA_CONTEXT_TERMINATED: /* 6 */
+ break;
+
+ case PA_CONTEXT_FAILED: /* 5 */
+ default:
+ Eprintf("PA failure: %s\n", pa_strerror(pa_context_errno(pac)));
+ pa_mainloop_quit(pa_mloop, 1);
+ break;
+ }
+}
+
+static void
+_sound_pa_Destroy(Sample * s)
+{
+ pa_operation *op;
+
+ D2printf("%s beg: %s\n", __func__, s ? s->name : "?");
+ if (!s)
+ return;
+
+ if (pa_ctx && s->name)
+ {
+ op =
+ pa_context_remove_sample(pa_ctx, s->name, context_op_callback, NULL);
+ if (op)
+ pa_operation_unref(op);
+ dispatch(-1);
+ }
+ D2printf("%s end\n", __func__);
+
+ _EFREE(s->name);
+ _EFREE(s->ssd.data);
+ Efree(s);
+}
+
+static Sample *
+_sound_pa_Load(const char *file)
+{
+ Sample *s;
+ pa_sample_spec sample_spec;
+ int err;
+ char *p;
+
+ if (!pa_ctx)
+ return NULL;
+
+ s = ECALLOC(Sample, 1);
+ if (!s)
+ return NULL;
+
+ err = SoundSampleGetData(file, &s->ssd);
+ if (err)
+ {
+ Efree(s);
+ return NULL;
+ }
+ s->name = Estrdup(file);
+ if (!s->name)
+ goto bail_out;
+ for (p = s->name; *p != '\0'; p++)
+ if (*p == '/')
+ *p = '_';
+
+ switch (s->ssd.bit_per_sample)
+ {
+ case 8:
+ sample_spec.format = PA_SAMPLE_U8;
+ break;
+ default:
+ sample_spec.format = PA_SAMPLE_S16NE;
+ break;
+ }
+ sample_spec.rate = s->ssd.rate;
+ sample_spec.channels = s->ssd.channels;
+ sample_length = s->ssd.size;
+
+ sample_stream = pa_stream_new(pa_ctx, s->name, &sample_spec, NULL);
+ if (!sample_stream)
+ goto bail_out;
+ pa_stream_set_state_callback(sample_stream, stream_state_callback, NULL);
+ pa_stream_set_write_callback(sample_stream, stream_write_callback, s);
+ pa_stream_connect_upload(sample_stream, sample_length);
+
+ err = dispatch(-1);
+ if (err)
+ goto bail_out;
+
+ _EFREE(s->ssd.data);
+
+ return s;
+
+ bail_out:
+ _sound_pa_Destroy(s);
+ return NULL;
+}
+
+static void
+_sound_pa_Play(Sample * s)
+{
+ pa_operation *op;
+
+ D2printf("%s beg: %s\n", __func__, s ? s->name : "?");
+ if (!pa_ctx || !s)
+ return;
+
+ op = pa_context_play_sample(pa_ctx, s->name, NULL, PA_VOLUME_NORM,
+ context_op_callback, NULL);
+ if (op)
+ pa_operation_unref(op);
+ dispatch(-1);
+ D2printf("%s end\n", __func__);
+}
+
+static void
+_sound_pa_Exit(void)
+{
+ D2printf("%s\n", __func__);
+#if 0
+ if (stream)
+ pa_stream_unref(stream);
+#endif
+
+ if (pa_ctx)
+ {
+ pa_context_disconnect(pa_ctx);
+ pa_context_unref(pa_ctx);
+ pa_ctx = NULL;
+ }
+
+ if (pa_mloop)
+ {
+ pa_mainloop_quit(pa_mloop, 0);
+ pa_mainloop_free(pa_mloop);
+ pa_mloop = NULL;
+ }
+}
+
+static int
+_sound_pa_Init(void)
+{
+ int err;
+
+ /* Set up a new main loop */
+ pa_mloop = pa_mainloop_new();
+ if (!pa_mloop)
+ {
+ Eprintf("pa_mainloop_new() failed.\n");
+ goto quit;
+ }
+
+ mainloop_api = pa_mainloop_get_api(pa_mloop);
+
+ /* Create a new connection context */
+ pa_ctx = pa_context_new(mainloop_api, "e16");
+ if (!pa_ctx)
+ {
+ Eprintf("pa_context_new() failed.\n");
+ goto quit;
+ }
+
+ pa_context_set_state_callback(pa_ctx, context_state_callback, NULL);
+
+ /* Connect the context */
+ err = pa_context_connect(pa_ctx, NULL, 0, NULL);
+ if (err)
+ Eprintf("pa_context_connect(): %s\n", pa_strerror(err));
+
+ err = dispatch(-1);
+ if (err)
+ goto quit;
+
+ done:
+ return pa_ctx == NULL;
+ quit:
+ _sound_pa_Exit();
+ goto done;
+}
+
+__EXPORT__ extern const SoundOps SoundOps_pa;
+const SoundOps SoundOps_pa = {
+ _sound_pa_Init, _sound_pa_Exit, _sound_pa_Load, _sound_pa_Destroy,
+ _sound_pa_Play,
+};
+
+#endif /* HAVE_SOUND && HAVE_SOUND_PA */
--- /dev/null
+/*
+ * Copyright (C) 2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _SOUNDS_H_
+#define _SOUNDS_H_
+
+#include "config.h"
+
+typedef enum {
+ SOUND_NONE = 0,
+ SOUND_ALERT,
+ SOUND_BUTTON_CLICK,
+ SOUND_BUTTON_RAISE,
+ SOUND_DEICONIFY,
+ SOUND_DESKTOP_LOWER,
+ SOUND_DESKTOP_RAISE,
+ SOUND_DESKTOP_SHUT,
+ SOUND_ERROR_IPC,
+ SOUND_EXIT,
+ SOUND_FOCUS_SET,
+ SOUND_ICONIFY,
+ SOUND_INSERT_KEYS,
+ SOUND_LOGOUT,
+ SOUND_LOWER,
+ SOUND_MENU_SHOW,
+ SOUND_MOVE_AREA_DOWN,
+ SOUND_MOVE_AREA_LEFT,
+ SOUND_MOVE_AREA_RIGHT,
+ SOUND_MOVE_AREA_UP,
+ SOUND_MOVE_RESIST,
+ SOUND_MOVE_START,
+ SOUND_MOVE_STOP,
+ SOUND_RAISE,
+ SOUND_RESIZE_START,
+ SOUND_RESIZE_STOP,
+ SOUND_SCANNING,
+ SOUND_SETTINGS_ACTIVE,
+ SOUND_SETTINGS_ALL,
+ SOUND_SETTINGS_AREA,
+ SOUND_SETTINGS_AUDIO,
+ SOUND_SETTINGS_AUTORAISE,
+ SOUND_SETTINGS_BG,
+ SOUND_SETTINGS_COMPOSITE,
+ SOUND_SETTINGS_DESKTOPS,
+ SOUND_SETTINGS_FOCUS,
+ SOUND_SETTINGS_FX,
+ SOUND_SETTINGS_GROUP,
+ SOUND_SETTINGS_ICONBOX,
+ SOUND_SETTINGS_MENUS,
+ SOUND_SETTINGS_MISCELLANEOUS,
+ SOUND_SETTINGS_MOVERESIZE,
+ SOUND_SETTINGS_PAGER,
+ SOUND_SETTINGS_PLACEMENT,
+ SOUND_SETTINGS_SESSION,
+ SOUND_SETTINGS_TOOLTIPS,
+ SOUND_SETTINGS_TRANS,
+ SOUND_SHADE,
+ SOUND_SLIDEOUT_SHOW,
+ SOUND_STARTUP,
+ SOUND_UNSHADE,
+ SOUND_WAIT,
+ SOUND_WINDOW_BORDER_CHANGE,
+ SOUND_WINDOW_CHANGE_LAYER_DOWN,
+ SOUND_WINDOW_CHANGE_LAYER_UP,
+ SOUND_WINDOW_CLOSE,
+ SOUND_WINDOW_SLIDE,
+ SOUND_WINDOW_SLIDE_END,
+ SOUND_WINDOW_STICK,
+ SOUND_WINDOW_UNSTICK,
+ SOUND_NOT_USED
+} sound_e;
+
+#if HAVE_SOUND
+
+void SoundPlay(int sound);
+
+#else
+
+#define SoundPlay(sound) do{}while(0)
+
+#endif
+
+#endif /* _SOUNDS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "eobj.h"
+#include "ewins.h"
+
+#define ENABLE_DEBUG_STACKING 1
+
+#define EobjGetCwin(p) \
+ ((p->type == EOBJ_TYPE_EWIN) ? EwinGetClientXwin(((EWin*)(p))) : None)
+
+typedef struct _eobjlist EobjList;
+
+struct _eobjlist {
+ const char *name;
+ int nalloc;
+ int nwins;
+ EObj **list;
+ char layered;
+ char type;
+};
+
+static int EobjListRaise(EobjList * ewl, EObj * eo, int test);
+static int EobjListLower(EobjList * ewl, EObj * eo, int test);
+
+#if ENABLE_DEBUG_STACKING
+static void
+EobjListShow(const char *txt, EobjList * ewl)
+{
+ int i;
+ EObj *eo;
+
+ if (!EDebug(EDBUG_TYPE_STACKING))
+ return;
+
+ Eprintf("%s-%s:\n", ewl->name, txt);
+ for (i = 0; i < ewl->nwins; i++)
+ {
+ eo = ewl->list[i];
+ Eprintf(" %2d: %#10lx %#10lx %d %d %s\n", i, EobjGetXwin(eo),
+ EobjGetCwin(eo), eo->desk->num, eo->ilayer, EobjGetName(eo));
+ }
+}
+#else
+#define EobjListShow(txt, ewl)
+#endif
+
+static int
+EobjListGetIndex(EobjList * ewl, EObj * eo)
+{
+ int i;
+
+ for (i = 0; i < ewl->nwins; i++)
+ if (ewl->list[i] == eo)
+ return i;
+
+ return -1;
+}
+
+static void
+EobjListAdd(EobjList * ewl, EObj * eo, int ontop)
+{
+ int i;
+
+ /* Quit if already in list */
+ i = EobjListGetIndex(ewl, eo);
+ if (i >= 0)
+ return;
+
+ if (ewl->nwins >= ewl->nalloc)
+ {
+ ewl->nalloc += 16;
+ ewl->list = EREALLOC(EObj *, ewl->list, ewl->nalloc);
+ }
+
+ if (ewl->layered)
+ {
+ /* The simple way for now (add, raise/lower) */
+ if (ontop)
+ {
+ ewl->list[ewl->nwins] = eo;
+ ewl->nwins++;
+ EobjListRaise(ewl, eo, 0);
+ }
+ else
+ {
+ memmove(ewl->list + 1, ewl->list, ewl->nwins * sizeof(EObj *));
+ ewl->list[0] = eo;
+ ewl->nwins++;
+ EobjListLower(ewl, eo, 0);
+ }
+ if (eo->stacked == 0)
+ DeskSetDirtyStack(eo->desk, eo);
+ }
+ else
+ {
+ if (ontop)
+ {
+ memmove(ewl->list + 1, ewl->list, ewl->nwins * sizeof(EObj *));
+ ewl->list[0] = eo;
+ }
+ else
+ {
+ ewl->list[ewl->nwins] = eo;
+ }
+ ewl->nwins++;
+ }
+
+ EobjListShow("EobjListAdd", ewl);
+}
+
+static void
+EobjListDel(EobjList * ewl, EObj * eo)
+{
+ int i, n;
+
+ /* Quit if not in list */
+ i = EobjListGetIndex(ewl, eo);
+ if (i < 0)
+ return;
+
+ ewl->nwins--;
+ n = ewl->nwins - i;
+ if (n > 0)
+ {
+ memmove(ewl->list + i, ewl->list + i + 1, n * sizeof(EObj *));
+ }
+ else if (ewl->nwins <= 0)
+ {
+ /* Enables autocleanup at shutdown, if ever implemented */
+ Efree(ewl->list);
+ ewl->list = NULL;
+ ewl->nalloc = 0;
+ }
+
+ EobjListShow("EobjListDel", ewl);
+}
+
+static int
+EobjListLower(EobjList * ewl, EObj * eo, int test)
+{
+ int i, j, n;
+
+ /* Quit if not in list */
+ i = EobjListGetIndex(ewl, eo);
+ if (i < 0)
+ return 0;
+
+ j = ewl->nwins - 1;
+ if (ewl->layered)
+ {
+ /* Take the layer into account */
+ for (; j >= 0; j--)
+ if (i != j && eo->ilayer <= ewl->list[j]->ilayer)
+ break;
+ if (j < i)
+ j++;
+ }
+
+ n = j - i;
+ if (test)
+ return n;
+
+ if (n > 0)
+ {
+ memmove(ewl->list + i, ewl->list + i + 1, n * sizeof(EObj *));
+ ewl->list[j] = eo;
+ if (ewl->layered && eo->stacked > 0)
+ DeskSetDirtyStack(eo->desk, eo);
+ }
+ else if (n < 0)
+ {
+ memmove(ewl->list + j + 1, ewl->list + j, -n * sizeof(EObj *));
+ ewl->list[j] = eo;
+ if (ewl->layered && eo->stacked > 0)
+ DeskSetDirtyStack(eo->desk, eo);
+ }
+
+ EobjListShow("EobjListLower", ewl);
+ return n;
+}
+
+static int
+EobjListRaise(EobjList * ewl, EObj * eo, int test)
+{
+ int i, j, n;
+
+ /* Quit if not in list */
+ i = EobjListGetIndex(ewl, eo);
+ if (i < 0)
+ return 0;
+
+ j = 0;
+ if (ewl->layered)
+ {
+ /* Take the layer into account */
+ for (; j < ewl->nwins; j++)
+ if (j != i && eo->ilayer >= ewl->list[j]->ilayer)
+ break;
+ if (j > i)
+ j--;
+ }
+
+ n = j - i;
+ if (test)
+ return n;
+
+ if (n > 0)
+ {
+ memmove(ewl->list + i, ewl->list + i + 1, n * sizeof(EObj *));
+ ewl->list[j] = eo;
+ if (ewl->layered && eo->stacked > 0)
+ DeskSetDirtyStack(eo->desk, eo);
+ }
+ else if (n < 0)
+ {
+ memmove(ewl->list + j + 1, ewl->list + j, -n * sizeof(EObj *));
+ ewl->list[j] = eo;
+ if (ewl->layered && eo->stacked > 0)
+ DeskSetDirtyStack(eo->desk, eo);
+ }
+
+ EobjListShow("EobjListRaise", ewl);
+ return n;
+}
+
+static EObj *
+EobjListFind(const EobjList * ewl, Window win)
+{
+ int i;
+
+ for (i = 0; i < ewl->nwins; i++)
+ if (EobjGetXwin(ewl->list[i]) == win)
+ return ewl->list[i];
+
+ return NULL;
+}
+
+static int
+EobjListTypeCount(const EobjList * ewl, int type)
+{
+ int i, n;
+
+ for (i = n = 0; i < ewl->nwins; i++)
+ if (ewl->list[i]->type == type)
+ n++;
+
+ return n;
+}
+
+/*
+ * The global object/client lists
+ */
+static EobjList EwinListStack = { "Stack", 0, 0, NULL, 1, 0 };
+static EobjList EwinListFocus = { "Focus", 0, 0, NULL, 0, 1 };
+static EobjList EwinListOrder = { "Order", 0, 0, NULL, 0, 2 };
+
+static EObj *const *
+EobjListGet(EobjList * ewl, int *num)
+{
+ *num = ewl->nwins;
+ return ewl->list;
+}
+
+int
+EobjListStackCheck(EObj * eo)
+{
+ return EobjListGetIndex(&EwinListStack, eo);
+}
+
+EObj *
+EobjListStackFind(Window win)
+{
+ return EobjListFind(&EwinListStack, win);
+}
+
+EObj *const *
+EobjListStackGet(int *num)
+{
+ return EobjListGet(&EwinListStack, num);
+}
+
+void
+EobjListStackAdd(EObj * eo, int ontop)
+{
+ EobjListAdd(&EwinListStack, eo, ontop);
+}
+
+void
+EobjListStackDel(EObj * eo)
+{
+ EobjListDel(&EwinListStack, eo);
+}
+
+int
+EobjListStackRaise(EObj * eo, int test)
+{
+ return EobjListRaise(&EwinListStack, eo, test);
+}
+
+int
+EobjListStackLower(EObj * eo, int test)
+{
+ return EobjListLower(&EwinListStack, eo, test);
+}
+
+void
+EobjListFocusAdd(EObj * eo, int ontop)
+{
+ EobjListAdd(&EwinListFocus, eo, ontop);
+}
+
+void
+EobjListFocusDel(EObj * eo)
+{
+ EobjListDel(&EwinListFocus, eo);
+}
+
+int
+EobjListFocusRaise(EObj * eo)
+{
+ return EobjListRaise(&EwinListFocus, eo, 0);
+}
+
+EWin *const *
+EwinListStackGet(int *num)
+{
+ static EWin **lst = NULL;
+ static int nalloc = 0;
+ const EobjList *ewl;
+ int i, j, newins;
+ EObj *eo;
+
+ ewl = &EwinListStack;
+ newins = EobjListTypeCount(ewl, EOBJ_TYPE_EWIN);
+ if (nalloc < newins)
+ {
+ nalloc = (newins + 16) & ~0xf; /* 16 at the time */
+ lst = EREALLOC(EWin *, lst, nalloc);
+ }
+
+ for (i = j = 0; i < ewl->nwins; i++)
+ {
+ eo = ewl->list[i];
+ if (eo->type != EOBJ_TYPE_EWIN)
+ continue;
+
+ lst[j++] = (EWin *) eo;
+ }
+
+ *num = j;
+ return lst;
+}
+
+EWin *const *
+EwinListFocusGet(int *num)
+{
+ return (EWin * const *)EobjListGet(&EwinListFocus, num);
+}
+
+EWin *const *
+EwinListGetForDesk(int *num, Desk * dsk)
+{
+ static EWin **lst = NULL;
+ static int nalloc = 0;
+ const EobjList *ewl;
+ int i, j, newins;
+ EObj *eo;
+
+ ewl = &EwinListStack;
+ newins = EobjListTypeCount(ewl, EOBJ_TYPE_EWIN);
+ /* Too many - who cares. */
+ if (nalloc < newins)
+ {
+ nalloc = (newins + 16) & ~0xf; /* 16 at the time */
+ lst = EREALLOC(EWin *, lst, nalloc);
+ }
+
+ for (i = j = 0; i < ewl->nwins; i++)
+ {
+ eo = ewl->list[i];
+ if (eo->type != EOBJ_TYPE_EWIN || eo->desk != dsk)
+ continue;
+
+ lst[j++] = (EWin *) eo;
+ }
+
+ *num = j;
+ return lst;
+}
+
+EObj *const *
+EobjListStackGetForDesk(int *num, Desk * dsk)
+{
+ static EObj **lst = NULL;
+ static int nalloc = 0;
+ const EobjList *ewl;
+ int i, j;
+ EObj *eo;
+
+ ewl = &EwinListStack;
+
+ /* Too many - who cares. */
+ if (nalloc < ewl->nwins)
+ {
+ nalloc = (ewl->nwins + 16) & ~0xf; /* 16 at the time */
+ lst = EREALLOC(EObj *, lst, nalloc);
+ }
+
+ for (i = j = 0; i < ewl->nwins; i++)
+ {
+ eo = ewl->list[i];
+ if (eo->desk != dsk)
+ continue;
+
+ lst[j++] = eo;
+ }
+
+ *num = j;
+ return lst;
+}
+
+#if 0 /* Unused */
+EWin *
+EwinListStackGetTop(void)
+{
+ const EobjList *ewl;
+ int i;
+ EObj *eo;
+
+ ewl = &EwinListStack;
+
+ for (i = 0; i < ewl->nwins; i++)
+ {
+ eo = ewl->list[i];
+ if (eo->type == EOBJ_TYPE_EWIN)
+ return (EWin *) eo;
+ }
+
+ return NULL;
+}
+#endif
+
+int
+EwinListStackIsRaised(const EWin * ewin)
+{
+ const EobjList *ewl;
+ int i;
+ const EObj *eo, *eox;
+
+ ewl = &EwinListStack;
+ eox = EoObj(ewin);
+
+ for (i = 0; i < ewl->nwins; i++)
+ {
+ eo = ewl->list[i];
+ if (eo->type != EOBJ_TYPE_EWIN)
+ continue;
+ if (eo->desk != eox->desk)
+ continue;
+ if (eo->ilayer > eox->ilayer)
+ continue;
+ if (EwinGetTransientFor((EWin *) eo) == EwinGetClientXwin(ewin))
+ continue;
+ return eo == eox;
+ }
+
+ return 1; /* It should be impossible to get here */
+}
+
+void
+EobjListOrderAdd(EObj * eo)
+{
+ EobjListAdd(&EwinListOrder, eo, 0);
+}
+
+void
+EobjListOrderDel(EObj * eo)
+{
+ EobjListDel(&EwinListOrder, eo);
+}
+
+EWin *const *
+EwinListOrderGet(int *num)
+{
+ return (EWin * const *)EobjListGet(&EwinListOrder, num);
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "backgrounds.h"
+#include "eobj.h"
+#include "iclass.h"
+#include "timers.h"
+#include "xwin.h"
+
+static EObj *init_win1 = NULL;
+static EObj *init_win2 = NULL;
+static char bg_sideways = 0;
+
+void
+StartupWindowsCreate(void)
+{
+ Win w1, w2, win1, win2, b1, b2;
+ Background *bg;
+ ImageClass *ic;
+ int x, y, bx, by, bw, bh;
+ EObj *eo;
+
+ /* Acting only as boolean? */
+ if (BackgroundFind("STARTUP_BACKGROUND_SIDEWAYS"))
+ bg_sideways = 1;
+
+ ic = ImageclassFind("STARTUP_BAR", 0);
+ if (!ic)
+ ic = ImageclassFind("DESKTOP_DRAGBUTTON_HORIZ", 0);
+ bg = BackgroundFind("STARTUP_BACKGROUND");
+ if (!ic || !bg)
+ return;
+
+ if (bg_sideways)
+ {
+ x = WinGetW(VROOT) / 2;
+ y = 0;
+ bx = WinGetW(VROOT) - Conf.desks.dragbar_width;
+ by = 0;
+ bw = Conf.desks.dragbar_width;
+ bh = WinGetH(VROOT);
+ }
+ else
+ {
+ x = 0;
+ y = WinGetH(VROOT) / 2;
+ bx = 0;
+ by = WinGetH(VROOT) - Conf.desks.dragbar_width;
+ bw = WinGetW(VROOT);
+ bh = Conf.desks.dragbar_width;
+ }
+
+ eo = EobjWindowCreate(EOBJ_TYPE_MISC,
+ -x, -y, WinGetW(VROOT), WinGetH(VROOT), 1, "Init-1");
+ if (!eo)
+ return;
+ init_win1 = eo;
+ w1 = EobjGetWin(eo);
+ win1 = ECreateWindow(w1, x, y, WinGetW(VROOT), WinGetH(VROOT), 0);
+
+ eo = EobjWindowCreate(EOBJ_TYPE_MISC,
+ x, y, WinGetW(VROOT), WinGetH(VROOT), 1, "Init-2");
+ if (!eo)
+ return;
+ init_win2 = eo;
+ w2 = EobjGetWin(eo);
+ win2 = ECreateWindow(w2, -x, -y, WinGetW(VROOT), WinGetH(VROOT), 0);
+
+ EMapWindow(win1);
+ EMapWindow(win2);
+
+ if (bw > 0 && bh > 0)
+ {
+ b1 = ECreateWindow(w1, bx, by, bw, bh, 0);
+ b2 = ECreateWindow(w2, 0, 0, bw, bh, 0);
+ EMapRaised(b1);
+ EMapRaised(b2);
+
+ ImageclassApply(ic, b1, 0, 0, 0, ST_SOLID);
+ ImageclassApply(ic, b2, 0, 0, 0, ST_SOLID);
+ }
+
+ BackgroundSet(bg, win1, WinGetW(VROOT), WinGetH(VROOT));
+ BackgroundSet(bg, win2, WinGetW(VROOT), WinGetH(VROOT));
+ StartupBackgroundsDestroy();
+
+ EobjMap(init_win1, 0);
+ EobjMap(init_win2, 0);
+
+ EobjsRepaint();
+}
+
+void
+StartupBackgroundsDestroy(void)
+{
+ BackgroundDestroyByName("STARTUP_BACKGROUND");
+ BackgroundDestroyByName("STARTUP_BACKGROUND_SIDEWAYS");
+}
+
+static int
+doStartupWindowsOpen(void *data __UNUSED__)
+{
+ static int kk = 0;
+ int k, x, y, xOffset, yOffset, ty;
+
+ k = kk;
+
+ if (bg_sideways)
+ { /* so we can have two different slide methods */
+ ty = (WinGetW(VROOT) / 2);
+ xOffset = (ty * k) >> 10;
+ x = ty;
+ yOffset = 0;
+ y = 0;
+ }
+ else
+ {
+ ty = (WinGetH(VROOT) / 2);
+ xOffset = 0;
+ x = 0;
+ yOffset = (ty * k) >> 10;
+ y = ty;
+ }
+
+ EobjMove(init_win1, -x - xOffset, -y - yOffset);
+ EobjMove(init_win2, x + xOffset, y + yOffset);
+
+ k = (int)(1e-3 * Conf.animation.step * Conf.desks.slidespeed / 2);
+ if (k <= 0)
+ k = 1;
+ kk += k;
+ if (kk < 1024)
+ return 1;
+
+ Mode.place.enable_features++;
+ EobjWindowDestroy(init_win1);
+ EobjWindowDestroy(init_win2);
+ init_win1 = NULL;
+ init_win2 = NULL;
+
+ return 0;
+}
+
+void
+StartupWindowsOpen(void)
+{
+ if (init_win1 == NULL || init_win2 == NULL)
+ return;
+
+ Mode.place.enable_features--;
+ ESync(ESYNC_STARTUP);
+ AnimatorAdd(doStartupWindowsOpen, NULL);
+}
--- /dev/null
+/*
+ * Copyright (C) 2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "util.h"
+#include <ctype.h>
+
+#ifndef HAVE_STRCASECMP
+int
+Estrcasecmp(const char *s1, const char *s2)
+{
+ char ch1, ch2;
+
+ for (;;)
+ {
+ ch1 = toupper(*s1++);
+ ch2 = toupper(*s2++);
+ if (ch1 == '\0' || ch1 != ch2)
+ break;
+ }
+
+ return ch1 - ch2;
+}
+#endif
+
+#ifndef HAVE_STRCASESTR
+const char *
+Estrcasestr(const char *haystack, const char *needle)
+{
+ const char *s1, *s2;
+ char ch1, ch2;
+
+ for (;; haystack++)
+ {
+ s1 = haystack;
+ s2 = needle;
+ if (*s1 == '\0')
+ break;
+ for (;;)
+ {
+ ch1 = toupper(*s1++);
+ ch2 = toupper(*s2++);
+ if (ch2 == '\0')
+ return haystack;
+ if (ch1 == '\0' || ch1 != ch2)
+ break;
+ }
+ }
+ return NULL;
+}
+#endif
--- /dev/null
+/*
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "container.h"
+#include "e16-ecore_hints.h"
+#include "events.h"
+#include "ewins.h"
+#include "hints.h"
+#include "xwin.h"
+
+#define DEBUG_SYSTRAY 0
+
+/* Systray object info */
+typedef struct {
+ Win win;
+ char mapped;
+} SWin;
+
+#define StObjGetWin(o) (((SWin*)(o))->win)
+#define StObjIsMapped(o) (((SWin*)(o))->mapped)
+
+/* XEmbed atoms */
+static Atom E_XA__XEMBED = 0;
+static Atom E_XA__XEMBED_INFO = 0;
+
+/* Systray atoms */
+static Atom _NET_SYSTEM_TRAY_OPCODE = 0;
+static Atom _NET_SYSTEM_TRAY_MESSAGE_DATA = 0;
+
+/* Systray selection */
+static ESelection *systray_sel = NULL;
+
+static void SystrayItemEvent(Win win, XEvent * ev, void *prm);
+
+#define SYSTEM_TRAY_REQUEST_DOCK 0
+#define SYSTEM_TRAY_BEGIN_MESSAGE 1
+#define SYSTEM_TRAY_CANCEL_MESSAGE 2
+
+/* _XEMBED client message */
+#define XEMBED_EMBEDDED_NOTIFY 0
+
+/* _XEMBED_INFO property */
+#define XEMBED_MAPPED (1 << 0)
+
+static int
+SystrayGetXembedInfo(Window win, int *info)
+{
+ unsigned char *prop_ret;
+ Atom type_ret;
+ unsigned long bytes_after, num_ret;
+ int format_ret;
+
+ prop_ret = NULL;
+ if (XGetWindowProperty(disp, win, E_XA__XEMBED_INFO, 0, 0x7fffffff,
+ False, E_XA__XEMBED_INFO, &type_ret, &format_ret,
+ &num_ret, &bytes_after, &prop_ret) != Success)
+ return -1;
+
+ if (prop_ret && type_ret == E_XA__XEMBED_INFO && format_ret == 32
+ && num_ret >= 2)
+ {
+ info[0] = ((unsigned long *)prop_ret)[0];
+ info[1] = ((unsigned long *)prop_ret)[1];
+ }
+ else
+ {
+ /* Property invalid or not there. I doubt we ever get here */
+ info[0] = 0; /* Set protocol version 0 */
+ info[1] = 1; /* Set mapped */
+ num_ret = 0;
+ }
+ if (prop_ret)
+ XFree(prop_ret);
+
+ return num_ret;
+}
+
+/*
+ * Return index, -1 if not found.
+ */
+static int
+SystrayObjFind(Container * ct, Window win)
+{
+ int i;
+
+ for (i = 0; i < ct->num_objs; i++)
+ if (win == WinGetXwin(StObjGetWin(ct->objs[i].obj)))
+ return i;
+
+ return -1;
+}
+
+static Win
+SystrayObjManage(Container * ct, Window xwin)
+{
+ Win win;
+
+#if DEBUG_SYSTRAY
+ Eprintf("SystrayObjManage %#lx\n", xwin);
+#endif
+ win = ERegisterWindow(xwin, NULL);
+ if (win == NULL)
+ return win;
+
+ ESelectInput(win, StructureNotifyMask | PropertyChangeMask);
+ EventCallbackRegister(win, 0, SystrayItemEvent, ct);
+ EReparentWindow(win, ct->icon_win, 0, 0);
+ XAddToSaveSet(disp, xwin);
+
+ return win;
+}
+
+static void
+SystrayObjUnmanage(Container * ct __UNUSED__, Win win, int gone)
+{
+#if DEBUG_SYSTRAY
+ Eprintf("SystrayObjUnmanage %#lx gone=%d\n", WinGetXwin(win), gone);
+#endif
+
+ if (!gone)
+ {
+ ESelectInput(win, NoEventMask);
+ EUnmapWindow(win);
+ EReparentWindow(win, VROOT, 0, 0);
+ XRemoveFromSaveSet(disp, WinGetXwin(win));
+ }
+ EventCallbackUnregister(win, 0, SystrayItemEvent, ct);
+ EUnregisterWindow(win);
+}
+
+static void
+SystrayObjAdd(Container * ct, Window xwin)
+{
+ SWin *swin = NULL;
+ Win win;
+ int xembed_info[2];
+
+ /* Not if already there */
+ if (SystrayObjFind(ct, xwin) >= 0)
+ return;
+
+ EGrabServer();
+
+ switch (SystrayGetXembedInfo(xwin, xembed_info))
+ {
+ case -1: /* Error - assume invalid window */
+ Eprintf("SystrayObjAdd: Hmm.. Invalid window? Ignoring %#lx\n", xwin);
+ goto bail_out;
+ case 0: /* Assume broken - proceed anyway */
+ Eprintf("SystrayObjAdd: Hmm.. No _XEMBED_INFO?\n");
+ break;
+ default:
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayObjAdd: _XEMBED_INFO: %#lx: %d %d\n", xwin,
+ xembed_info[0], xembed_info[1]);
+ break;
+ }
+
+ swin = EMALLOC(SWin, 1);
+ if (!swin)
+ goto bail_out;
+
+ if (ContainerObjectAdd(ct, swin) < 0)
+ goto bail_out;
+
+ win = SystrayObjManage(ct, xwin);
+ if (win == NULL)
+ goto bail_out;
+
+ swin->win = win;
+ swin->mapped = (xembed_info[1] & XEMBED_MAPPED) != 0;
+ if (swin->mapped)
+ EMapWindow(win);
+
+ /* TBD - Always set protocol version as reported by client */
+ ecore_x_client_message32_send(xwin, E_XA__XEMBED, NoEventMask,
+ CurrentTime, XEMBED_EMBEDDED_NOTIFY, 0,
+ xwin, xembed_info[0]);
+
+ EUngrabServer();
+
+ return; /* Success */
+
+ bail_out:
+ EUngrabServer();
+ if (!swin)
+ return;
+ ContainerObjectDel(ct, swin);
+ Efree(swin);
+}
+
+static void
+SystrayObjDel(Container * ct, Win win, int gone)
+{
+ int i;
+ SWin *swin;
+
+ i = SystrayObjFind(ct, WinGetXwin(win));
+ if (i < 0)
+ return;
+
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayObjDel %#lx\n", WinGetXwin(win));
+
+ swin = (SWin *) ct->objs[i].obj;
+
+ ContainerObjectDel(ct, swin);
+
+ if (disp)
+ SystrayObjUnmanage(ct, swin->win, gone);
+
+ Efree(swin);
+}
+
+static void
+SystrayObjMapUnmap(Container * ct, Window win)
+{
+ int i, map;
+ SWin *swin;
+ int xembed_info[2];
+
+ i = SystrayObjFind(ct, win);
+ if (i < 0)
+ return;
+
+ swin = (SWin *) ct->objs[i].obj;
+
+ if (SystrayGetXembedInfo(win, xembed_info) >= 0)
+ {
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayObjMapUnmap: _XEMBED_INFO: %#lx: %d %d\n", win,
+ xembed_info[0], xembed_info[1]);
+
+ map = (xembed_info[1] & XEMBED_MAPPED) != 0;
+ if (map == swin->mapped)
+ return;
+
+ if (map)
+ EMapWindow(swin->win);
+ else
+ EUnmapWindow(swin->win);
+ }
+ else
+ {
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayObjMapUnmap: _XEMBED_INFO: %#lx: gone?\n", win);
+
+ map = 0;
+ if (map == swin->mapped)
+ return;
+ }
+
+ swin->mapped = map;
+ ContainerRedraw(ct);
+}
+
+static void
+SystrayEventClientMessage(Container * ct, XClientMessageEvent * ev)
+{
+ Window win;
+
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf
+ ("SystrayEventClientMessage: ev->type=%ld ev->data.l: %#lx %#lx %#lx %#lx\n",
+ ev->message_type, ev->data.l[0], ev->data.l[1], ev->data.l[2],
+ ev->data.l[3]);
+
+ if (ev->message_type == _NET_SYSTEM_TRAY_OPCODE)
+ {
+ win = ev->data.l[2];
+ if (win == None)
+ goto done;
+
+ SystrayObjAdd(ct, win);
+ }
+ else if (ev->message_type == _NET_SYSTEM_TRAY_MESSAGE_DATA)
+ {
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayEventClientMessage: Got data message\n");
+ }
+ done:
+ ;
+}
+
+static void
+SystrayEventClientProperty(Container * ct, XPropertyEvent * ev)
+{
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayEventClientProperty %#lx %ld\n", ev->window, ev->atom);
+
+ if (ev->atom == E_XA__XEMBED_INFO)
+ {
+ SystrayObjMapUnmap(ct, ev->window);
+ }
+}
+
+static void
+SystraySelectionEvent(Win win __UNUSED__, XEvent * ev, void *prm)
+{
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystraySelectionEvent %2d %#lx\n", ev->type, ev->xany.window);
+
+ switch (ev->type)
+ {
+ default:
+ Eprintf(" ??? SystraySelectionEvent %2d %#lx\n", ev->type,
+ ev->xany.window);
+ break;
+
+ case SelectionClear:
+ DialogOK(_("Systray Error!"), _("Systray went elsewhere?!?"));
+ SelectionRelease(systray_sel);
+ systray_sel = None;
+ EwinHide(((Container *) prm)->ewin);
+ break;
+
+ case ClientMessage:
+ SystrayEventClientMessage((Container *) prm, &(ev->xclient));
+ break;
+ }
+}
+
+static void
+SystrayEvent(Win _win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
+{
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayEvent %2d %#lx\n", ev->type, ev->xany.window);
+
+#if 0 /* FIXME - Need this one at all? ConfigureRequest? */
+ Window win;
+
+ switch (ev->type)
+ {
+ case MapNotify:
+ EWindowSync(ELookupXwin(ev->xmap.window));
+ ContainerRedraw(prm);
+ break;
+
+ case DestroyNotify:
+ win = ev->xdestroywindow.window;
+ goto do_terminate;
+
+ case ReparentNotify:
+ case EX_EVENT_REPARENT_GONE:
+ /* Terminate if reparenting away from systray */
+ if (ev->xreparent.parent == ev->xreparent.event)
+ break;
+ win = ev->xreparent.window;
+ goto do_terminate;
+
+ do_terminate:
+ SystrayObjDel(prm, win);
+ break;
+ }
+#endif
+}
+
+static void
+SystrayItemEvent(Win win, XEvent * ev, void *prm)
+{
+ Container *ct = (Container *) prm;
+
+ if (EDebug(EDBUG_TYPE_ICONBOX))
+ Eprintf("SystrayItemEvent %2d %#lx\n", ev->type, ev->xany.window);
+
+ switch (ev->type)
+ {
+ case MapNotify:
+ EWindowSync(win);
+ ContainerRedraw(ct);
+ break;
+
+ case DestroyNotify:
+ goto do_terminate;
+
+ case ReparentNotify:
+ case EX_EVENT_REPARENT_GONE:
+ /* Terminate if reparenting away from systray */
+ if (ev->xreparent.parent == WinGetXwin(ct->icon_win))
+ break;
+ goto do_terminate;
+
+ case ClientMessage:
+ SystrayEventClientMessage(ct, &(ev->xclient));
+ break;
+
+ case PropertyNotify:
+ SystrayEventClientProperty(ct, &(ev->xproperty));
+ break;
+
+ do_terminate:
+ SystrayObjDel(ct, win, ev->type != ReparentNotify);
+ ContainerRedraw(ct);
+ break;
+ }
+}
+
+static void
+SystrayInit(Container * ct)
+{
+ Win win;
+
+ E_XA__XEMBED = EInternAtom("_XEMBED");
+ E_XA__XEMBED_INFO = EInternAtom("_XEMBED_INFO");
+ _NET_SYSTEM_TRAY_OPCODE = EInternAtom("_NET_SYSTEM_TRAY_OPCODE");
+ _NET_SYSTEM_TRAY_MESSAGE_DATA = EInternAtom("_NET_SYSTEM_TRAY_MESSAGE_DATA");
+
+ /* Acquire selection */
+ if (systray_sel)
+ {
+ DialogOK(_("Systray Error!"), _("Only one systray is allowed"));
+ return;
+ }
+
+ systray_sel =
+ SelectionAcquire("_NET_SYSTEM_TRAY_S", SystraySelectionEvent, ct);
+ if (!systray_sel)
+ {
+ DialogOK(_("Systray Error!"), _("Could not activate systray"));
+ return;
+ }
+
+ win = ct->icon_win;
+ ESelectInputChange(win, SubstructureRedirectMask, 0);
+ EventCallbackRegister(win, 0, SystrayEvent, ct);
+
+ /* Container parameter setup */
+ ct->wm_name = "Systray";
+ ct->menu_title = _("Systray Options");
+ ct->dlg_title = _("Systray Settings");
+ ct->iconsize = 24;
+}
+
+static void
+SystrayExit(Container * ct, int wm_exit __UNUSED__)
+{
+ SelectionRelease(systray_sel);
+ systray_sel = None;
+
+ EventCallbackUnregister(ct->win, 0, SystrayEvent, ct);
+
+ while (ct->num_objs)
+ {
+ SystrayObjDel(ct, StObjGetWin(ct->objs[0].obj), 0);
+ }
+}
+
+static void
+SystrayObjSizeCalc(Container * ct, ContainerObject * cto)
+{
+ /* Inner size */
+ if (StObjIsMapped(cto->obj))
+ cto->wi = cto->hi = ct->iconsize;
+ else
+ cto->wi = cto->hi = 0;
+}
+
+static void
+SystrayObjPlace(Container * ct __UNUSED__, ContainerObject * cto,
+ EImage * im __UNUSED__)
+{
+ if (StObjIsMapped(cto->obj))
+ {
+ EMoveResizeWindow(StObjGetWin(cto->obj), cto->xi, cto->yi, cto->wi,
+ cto->hi);
+ /* This seems to fix rendering for ceratin apps which seem to expect
+ * expose events after resize (e.g. opera) */
+ ESync(0);
+ XClearArea(disp, WinGetXwin(StObjGetWin(cto->obj)), 0, 0, 0, 0, True);
+ }
+}
+
+extern const ContainerOps SystrayOps;
+const ContainerOps SystrayOps = {
+ SystrayInit,
+ SystrayExit,
+ NULL,
+ NULL,
+ SystrayObjSizeCalc,
+ SystrayObjPlace,
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "conf.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "iclass.h"
+#include "tclass.h"
+#include "xwin.h"
+
+#define ENABLE_DESTROY 0 /* Broken */
+
+static Ecore_List *tclass_list = NULL;
+
+static TextClass *TextclassGetFallback(void);
+
+static char *
+TextstateFontLookup(const char *name)
+{
+ const char *font;
+
+ if (*name == '*')
+ {
+ font = FontLookup(name + 1);
+ if (font)
+ name = font;
+ }
+ return Estrdup(name);
+}
+
+static TextState *
+TextstateCreate(const char *font)
+{
+ TextState *ts;
+
+ ts = ECALLOC(TextState, 1);
+ if (!ts)
+ return NULL;
+
+ ts->style.mode = MODE_WRAP_CHAR;
+ ts->style.orientation = FONT_TO_RIGHT;
+
+ if (font)
+ {
+ ts->fontname = TextstateFontLookup(font);
+ ts->style.mode = MODE_VERBATIM;
+ }
+
+ return ts;
+}
+
+#if ENABLE_DESTROY
+static void
+TextStateDestroy(TextState * ts)
+{
+ if (!ts)
+ return;
+
+ Efree(ts->fontname);
+ if (ts->ops)
+ ts->ops->Destroy(ts);
+
+ Efree(ts);
+}
+#endif
+
+static TextClass *
+TextclassCreate(const char *name)
+{
+ TextClass *tc;
+
+ tc = ECALLOC(TextClass, 1);
+ if (!tc)
+ return NULL;
+
+ if (!tclass_list)
+ tclass_list = ecore_list_new();
+ ecore_list_prepend(tclass_list, tc);
+
+ tc->name = Estrdup(name);
+ tc->justification = 512;
+
+ return tc;
+}
+
+#if ENABLE_DESTROY
+static void
+TextclassDestroy(TextClass * tc)
+{
+ if (tc->ref_count > 0)
+ {
+ DialogOK("TextClass Error!", _("%u references remain\n"),
+ tc->ref_count);
+ return;
+ }
+ Efree(tc->name);
+ TextStateDestroy(tc->norm.normal);
+ TextStateDestroy(tc->norm.hilited);
+ TextStateDestroy(tc->norm.clicked);
+ TextStateDestroy(tc->norm.disabled);
+ TextStateDestroy(tc->active.normal);
+ TextStateDestroy(tc->active.hilited);
+ TextStateDestroy(tc->active.clicked);
+ TextStateDestroy(tc->active.disabled);
+ TextStateDestroy(tc->sticky.normal);
+ TextStateDestroy(tc->sticky.hilited);
+ TextStateDestroy(tc->sticky.clicked);
+ TextStateDestroy(tc->sticky.disabled);
+ TextStateDestroy(tc->sticky_active.normal);
+ TextStateDestroy(tc->sticky_active.hilited);
+ TextStateDestroy(tc->sticky_active.clicked);
+ TextStateDestroy(tc->sticky_active.disabled);
+
+ Efree(tc);
+}
+#endif /* ENABLE_DESTROY */
+
+TextClass *
+TextclassAlloc(const char *name, int fallback)
+{
+ TextClass *tc;
+
+ if (!name || !name[0])
+ return NULL;
+
+ tc = TextclassFind(name, fallback);
+ if (tc)
+ tc->ref_count++;
+
+ return tc;
+}
+
+void
+TextclassFree(TextClass * tc)
+{
+ if (tc)
+ tc->ref_count--;
+}
+
+int
+TextclassGetJustification(TextClass * tc)
+{
+ return tc->justification;
+}
+
+void
+TextclassSetJustification(TextClass * tc, int just)
+{
+ tc->justification = just;
+}
+
+static void
+TextclassPopulate(TextClass * tclass)
+{
+ if (!tclass)
+ return;
+
+ if (!tclass->norm.normal)
+ return;
+
+ if (!tclass->norm.hilited)
+ tclass->norm.hilited = tclass->norm.normal;
+ if (!tclass->norm.clicked)
+ tclass->norm.clicked = tclass->norm.normal;
+ if (!tclass->norm.disabled)
+ tclass->norm.disabled = tclass->norm.normal;
+
+ if (!tclass->active.normal)
+ tclass->active.normal = tclass->norm.normal;
+ if (!tclass->active.hilited)
+ tclass->active.hilited = tclass->active.normal;
+ if (!tclass->active.clicked)
+ tclass->active.clicked = tclass->active.normal;
+ if (!tclass->active.disabled)
+ tclass->active.disabled = tclass->active.normal;
+
+ if (!tclass->sticky.normal)
+ tclass->sticky.normal = tclass->norm.normal;
+ if (!tclass->sticky.hilited)
+ tclass->sticky.hilited = tclass->sticky.normal;
+ if (!tclass->sticky.clicked)
+ tclass->sticky.clicked = tclass->sticky.normal;
+ if (!tclass->sticky.disabled)
+ tclass->sticky.disabled = tclass->sticky.normal;
+
+ if (!tclass->sticky_active.normal)
+ tclass->sticky_active.normal = tclass->norm.normal;
+ if (!tclass->sticky_active.hilited)
+ tclass->sticky_active.hilited = tclass->sticky_active.normal;
+ if (!tclass->sticky_active.clicked)
+ tclass->sticky_active.clicked = tclass->sticky_active.normal;
+ if (!tclass->sticky_active.disabled)
+ tclass->sticky_active.disabled = tclass->sticky_active.normal;
+}
+
+static int
+_TextclassMatchName(const void *data, const void *match)
+{
+ return strcmp(((const TextClass *)data)->name, (const char *)match);
+}
+
+TextClass *
+TextclassFind(const char *name, int fallback)
+{
+ TextClass *tc = NULL;
+
+ if (name)
+ tc = (TextClass *) ecore_list_find(tclass_list, _TextclassMatchName,
+ name);
+ if (tc || !fallback)
+ return tc;
+
+#if 0
+ Eprintf("%s: Get fallback (%s)\n", __func__, name);
+#endif
+ return TextclassGetFallback();
+}
+
+int
+TextclassConfigLoad(FILE * fs)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1, r, g, b;
+ TextClass *tc = NULL;
+ TextState *ts = NULL;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ TextclassPopulate(tc);
+ goto done;
+ case CONFIG_CLASSNAME:
+ if (TextclassFind(s2, 0))
+ {
+ SkipTillEnd(fs);
+ goto done;
+ }
+ tc = TextclassCreate(s2);
+ break;
+ case TEXT_ORIENTATION:
+ if (ts)
+ ts->style.orientation = atoi(s2);
+ break;
+ case TEXT_JUSTIFICATION:
+ if (tc)
+ tc->justification = atoi(s2);
+ break;
+ case CONFIG_DESKTOP:
+ case ICLASS_NORMAL:
+ if (tc)
+ tc->norm.normal = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_CLICKED:
+ if (tc)
+ tc->norm.clicked = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_HILITED:
+ if (tc)
+ tc->norm.hilited = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_DISABLED:
+ if (tc)
+ tc->norm.disabled = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_NORMAL:
+ if (tc)
+ tc->sticky.normal = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_CLICKED:
+ if (tc)
+ tc->sticky.clicked = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_HILITED:
+ if (tc)
+ tc->sticky.hilited = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_DISABLED:
+ if (tc)
+ tc->sticky.disabled = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_ACTIVE_NORMAL:
+ if (tc)
+ tc->active.normal = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_ACTIVE_CLICKED:
+ if (tc)
+ tc->active.clicked = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_ACTIVE_HILITED:
+ if (tc)
+ tc->active.hilited = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_ACTIVE_DISABLED:
+ if (tc)
+ tc->active.disabled = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_ACTIVE_NORMAL:
+ if (tc)
+ tc->sticky_active.normal = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_ACTIVE_CLICKED:
+ if (tc)
+ tc->sticky_active.clicked = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_ACTIVE_HILITED:
+ if (tc)
+ tc->sticky_active.hilited = ts = TextstateCreate(s2);
+ break;
+ case ICLASS_STICKY_ACTIVE_DISABLED:
+ if (tc)
+ tc->sticky_active.disabled = ts = TextstateCreate(s2);
+ break;
+ case TEXT_MODE:
+ if (ts)
+ ts->style.mode = atoi(s2);
+ break;
+ case TEXT_EFFECT:
+ if (ts)
+ ts->style.effect = atoi(s2);
+ break;
+ case TEXT_FG_COL:
+ if (ts)
+ {
+ r = g = b = 0;
+ sscanf(s, "%*s %i %i %i", &r, &g, &b);
+ SET_COLOR(&ts->fg_col, r, g, b);
+ }
+ break;
+ case TEXT_BG_COL:
+ if (ts)
+ {
+ r = g = b = 0;
+ sscanf(s, "%*s %i %i %i", &r, &g, &b);
+ SET_COLOR(&ts->bg_col, r, g, b);
+ }
+ break;
+ default:
+ ConfigParseError("TextClass", s);
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ return err;
+}
+
+static TextClass *
+TextclassGetFallback(void)
+{
+ TextClass *tc;
+
+ tc = TextclassFind("__fb_tc", 0);
+ if (tc)
+ return tc;
+
+ /* Create fallback textclass */
+ tc = TextclassCreate("__fb_tc");
+ if (!tc)
+ return tc;
+
+ tc->norm.normal =
+ TextstateCreate("-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*");
+ SET_COLOR(&(tc->norm.normal->fg_col), 0, 0, 0);
+ TextclassPopulate(tc);
+
+ return tc;
+}
+
+/*
+ * Textclass Module
+ */
+
+static void
+TextclassIpc(const char *params)
+{
+ char param1[1024];
+ char param2[1024];
+ int l;
+ const char *p;
+ TextClass *tc;
+
+ if (!params)
+ {
+ IpcPrintf("Please specify...\n");
+ return;
+ }
+
+ p = params;
+ l = 0;
+ param1[0] = param2[0] = '\0';
+ sscanf(p, "%1000s %1000s %n", param1, param2, &l);
+ p += l;
+
+ if (!strncmp(param1, "list", 2))
+ {
+ ECORE_LIST_FOR_EACH(tclass_list, tc) IpcPrintf("%s\n", tc->name);
+ return;
+ }
+
+ if (!param1[0])
+ {
+ IpcPrintf("TextClass not specified\n");
+ return;
+ }
+
+ if (!strcmp(param2, "create"))
+ {
+ /* Not implemented */
+ return;
+ }
+
+ tc = TextclassFind(param1, 0);
+ if (!tc)
+ {
+ IpcPrintf("TextClass not found: %s\n", param1);
+ return;
+ }
+
+ if (!strcmp(param2, "delete"))
+ {
+#if ENABLE_DESTROY
+ TextclassDestroy(tc);
+#endif
+ }
+ else if (!strcmp(param2, "modify"))
+ {
+ /* Not implemented */
+ }
+ else if (!strcmp(param2, "apply"))
+ {
+ Window xwin;
+ Win win;
+ char state[20];
+ int x, y, st;
+
+ /* 3:xwin 4:x 5:y 6:state 7-:txt */
+ xwin = None;
+ x = y = 0;
+ state[0] = '\0';
+ l = 0;
+ sscanf(p, "%lx %d %d %16s %n", &xwin, &x, &y, state, &l);
+ p += l;
+
+ if (!strcmp(state, "normal"))
+ st = STATE_NORMAL;
+ else if (!strcmp(state, "hilited"))
+ st = STATE_HILITED;
+ else if (!strcmp(state, "clicked"))
+ st = STATE_CLICKED;
+ else if (!strcmp(state, "disabled"))
+ st = STATE_DISABLED;
+ else
+ st = STATE_NORMAL;
+
+ if (l == 0)
+ return;
+
+ win = ECreateWinFromXwin(xwin);
+ if (!win)
+ return;
+
+ TextDraw(tc, win, None, 0, 0, st, p, x, y, 99999, 99999, 17, 0);
+ EDestroyWin(win);
+ }
+ else if (!strcmp(param2, "query_size"))
+ {
+ int w, h;
+
+ /* 3-:txt */
+
+ if (l == 0)
+ return;
+
+ w = h = 0;
+ TextSize(tc, 0, 0, STATE_NORMAL, p, &w, &h, 17);
+ IpcPrintf("%i %i\n", w, h);
+ }
+ else if (!strcmp(param2, "query"))
+ {
+ IpcPrintf("TextClass %s found\n", tc->name);
+ }
+ else if (!strcmp(param2, "ref_count"))
+ {
+ IpcPrintf("%u references remain\n", tc->ref_count);
+ }
+ else
+ {
+ IpcPrintf("Error: unknown operation specified\n");
+ }
+}
+
+static const IpcItem TextclassIpcArray[] = {
+ {
+ TextclassIpc,
+ "textclass", "tc",
+ "List textclasses, apply a textclass",
+ NULL}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(TextclassIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModTextclass;
+const EModule ModTextclass = {
+ "textclass", "tc",
+ NULL,
+ {N_IPC_FUNCS, TextclassIpcArray}
+ ,
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _TCLASS_H
+#define _TCLASS_H
+
+#include "eimage.h"
+#include "etypes.h"
+#include "xwin.h"
+
+#define MODE_VERBATIM 0
+#define MODE_WRAP_CHAR 1
+#define MODE_WRAP_WORD 2
+
+#define FONT_TO_RIGHT 0
+#define FONT_TO_DOWN 1
+#define FONT_TO_UP 2
+#define FONT_TO_LEFT 3
+
+#define FONT_TYPE_UNKNOWN 0
+#define FONT_TYPE_XFONT 0 /* XFontStruct */
+#define FONT_TYPE_XFS 2 /* XFontSet */
+#define FONT_TYPE_IFT 3 /* Imlib2/FreeType */
+#if USE_XFT
+#define FONT_TYPE_XFT 4 /* Xft */
+#endif
+#if USE_PANGO
+#define FONT_TYPE_PANGO_XFT 5 /* Pango-Xft */
+#endif
+
+typedef struct {
+ int (*Load) (TextState * ts, const char *name);
+ void (*Destroy) (TextState * ts);
+ void (*TextSize) (TextState * ts, const char *text, int len,
+ int *width, int *height, int *ascent);
+ void (*TextFit) (TextState * ts, char **ptext,
+ int *pwidth, int textwidth_limit);
+ void (*TextDraw) (TextState * ts, int x, int y,
+ const char *text, int len);
+ int (*FdcInit) (TextState * ts, Win win, Drawable draw);
+ void (*FdcFini) (TextState * ts);
+ void (*FdcSetDrawable) (TextState * ts, unsigned long draw);
+ void (*FdcSetColor) (TextState * ts, EColor * xc);
+} FontOps;
+
+struct _textstate {
+ char *fontname;
+ char type;
+ char need_utf8;
+ struct {
+ char mode;
+ char orientation;
+ char effect;
+ } style;
+ EColor fg_col;
+ EColor bg_col;
+ void *fdc;
+ const FontOps *ops;
+};
+
+struct _textclass {
+ char *name;
+ struct {
+ TextState *normal;
+ TextState *hilited;
+ TextState *clicked;
+ TextState *disabled;
+ } norm , active, sticky, sticky_active;
+ int justification;
+ unsigned int ref_count;
+};
+
+/* tclass.c */
+int TextclassConfigLoad(FILE * fs);
+TextClass *TextclassFind(const char *name, int fallback);
+TextClass *TextclassAlloc(const char *name, int fallback);
+void TextclassFree(TextClass * tc);
+int TextclassGetJustification(TextClass * tc);
+void TextclassSetJustification(TextClass * tc, int just);
+
+/* text.c */
+TextState *TextclassGetTextState(TextClass * tclass, int state,
+ int active, int sticky);
+__EXPORT__ void TextstateTextFit(TextState * ts, char **ptext, int *pw,
+ int textwidth_limit);
+void TextstateTextDraw(TextState * ts, Win win, Drawable draw,
+ const char *text, int x, int y, int w,
+ int h, const EImageBorder * pad,
+ int fsize, int justh, int justv);
+void TextSize(TextClass * tclass, int active, int sticky,
+ int state, const char *text, int *width,
+ int *height, int fsize);
+void TextDraw(TextClass * tclass, Win win, Drawable draw,
+ int active, int sticky, int state,
+ const char *text, int x, int y, int w, int h,
+ int fsize, int justification);
+
+__EXPORT__ int _xft_FdcInit(TextState * ts, Win win, Drawable draw);
+__EXPORT__ void _xft_FdcFini(TextState * ts);
+__EXPORT__ void _xft_FdcSetDrawable(TextState * ts, unsigned long draw);
+__EXPORT__ void _xft_FdcSetColor(TextState * ts, EColor * xc);
+
+#endif /* _TCLASS_H */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "eimage.h"
+#include "tclass.h"
+#include "xwin.h"
+
+static GC
+_get_gc(Win win)
+{
+ static GC gc = None;
+ static Visual *last_vis = NULL;
+ Visual *vis;
+
+ vis = WinGetVisual(win);
+ if (vis != last_vis)
+ {
+ if (gc)
+ EXFreeGC(gc);
+ gc = None;
+ last_vis = vis;
+ }
+
+ if (!gc)
+ gc = EXCreateGC(WinGetXwin(win), 0, NULL);
+
+ return gc;
+}
+
+static void
+TextDrawRotTo(Win win, Drawable src, Drawable dst, int x, int y,
+ int w, int h, TextState * ts)
+{
+ EImage *im;
+ int win_w;
+
+ switch (ts->style.orientation)
+ {
+ case FONT_TO_UP:
+ im = EImageGrabDrawable(src, 0, y, x, h, w, 0);
+ EImageOrientate(im, 1);
+ EImageRenderOnDrawable(im, win, dst, 0, 0, 0, w, h);
+ EImageFree(im);
+ break;
+ case FONT_TO_DOWN:
+ EXGetGeometry(src, NULL, NULL, NULL, &win_w, NULL, NULL, NULL);
+ im = EImageGrabDrawable(src, None, win_w - y - h, x, h, w, 0);
+ EImageOrientate(im, 3);
+ EImageRenderOnDrawable(im, win, dst, 0, 0, 0, w, h);
+ EImageFree(im);
+ break;
+ case FONT_TO_LEFT: /* Holy carumba! That's for yoga addicts, maybe .... */
+ im = EImageGrabDrawable(src, None, x, y, w, h, 0);
+ EImageOrientate(im, 2);
+ EImageRenderOnDrawable(im, win, dst, 0, 0, 0, w, h);
+ EImageFree(im);
+ break;
+ default:
+ break;
+ }
+}
+
+static void
+TextDrawRotBack(Win win, Drawable dst, Drawable src, int x, int y,
+ int w, int h, TextState * ts)
+{
+ EImage *im;
+ int win_w;
+
+ switch (ts->style.orientation)
+ {
+ case FONT_TO_UP:
+ im = EImageGrabDrawable(src, None, 0, 0, w, h, 0);
+ EImageOrientate(im, 3);
+ EImageRenderOnDrawable(im, win, dst, 0, y, x, h, w);
+ EImageFree(im);
+ break;
+ case FONT_TO_DOWN:
+ EXGetGeometry(dst, NULL, NULL, NULL, &win_w, NULL, NULL, NULL);
+ im = EImageGrabDrawable(src, None, 0, 0, w, h, 0);
+ EImageOrientate(im, 1);
+ EImageRenderOnDrawable(im, win, dst, 0, win_w - y - h, x, h, w);
+ EImageFree(im);
+ break;
+ case FONT_TO_LEFT: /* Holy carumba! That's for yoga addicts, maybe .... */
+ im = EImageGrabDrawable(src, None, 0, 0, w, h, 0);
+ EImageOrientate(im, 2);
+ EImageRenderOnDrawable(im, win, dst, 0, x, y, w, h);
+ EImageFree(im);
+ break;
+ default:
+ break;
+ }
+}
+
+#if FONT_TYPE_IFT
+static EImage *
+TextImageGet(Win win __UNUSED__, Drawable src, int x, int y, int w, int h,
+ TextState * ts)
+{
+ EImage *im;
+ int win_w;
+
+ switch (ts->style.orientation)
+ {
+ default:
+ case FONT_TO_RIGHT:
+ im = EImageGrabDrawable(src, None, x, y, w, h, 0);
+ break;
+ case FONT_TO_LEFT:
+ im = EImageGrabDrawable(src, None, x, y, w, h, 0);
+ EImageOrientate(im, 2);
+ break;
+ case FONT_TO_UP:
+ im = EImageGrabDrawable(src, 0, y, x, h, w, 0);
+ EImageOrientate(im, 1);
+ break;
+ case FONT_TO_DOWN:
+ EXGetGeometry(src, NULL, NULL, NULL, &win_w, NULL, NULL, NULL);
+ im = EImageGrabDrawable(src, None, win_w - y - h, x, h, w, 0);
+ EImageOrientate(im, 3);
+ break;
+ }
+
+ return im;
+}
+
+static void
+TextImagePut(EImage * im, Win win, Drawable dst, int x, int y,
+ int w, int h, TextState * ts)
+{
+ int win_w;
+
+ switch (ts->style.orientation)
+ {
+ default:
+ case FONT_TO_RIGHT:
+ EImageRenderOnDrawable(im, win, dst, 0, x, y, w, h);
+ break;
+ case FONT_TO_LEFT:
+ EImageOrientate(im, 2);
+ EImageRenderOnDrawable(im, win, dst, 0, x, y, w, h);
+ break;
+ case FONT_TO_UP:
+ EImageOrientate(im, 3);
+ EImageRenderOnDrawable(im, win, dst, 0, y, x, h, w);
+ break;
+ case FONT_TO_DOWN:
+ EXGetGeometry(dst, NULL, NULL, NULL, &win_w, NULL, NULL, NULL);
+ EImageOrientate(im, 1);
+ EImageRenderOnDrawable(im, win, dst, 0, win_w - y - h, x, h, w);
+ break;
+ }
+ EImageFree(im);
+}
+#endif /* FONT_TYPE_IFT */
+
+TextState *
+TextclassGetTextState(TextClass * tclass, int state, int active, int sticky)
+{
+ if (!tclass)
+ return NULL;
+
+ if (active)
+ {
+ if (!sticky)
+ {
+ switch (state)
+ {
+ case STATE_NORMAL:
+ return tclass->active.normal;
+ case STATE_HILITED:
+ return tclass->active.hilited;
+ case STATE_CLICKED:
+ return tclass->active.clicked;
+ case STATE_DISABLED:
+ return tclass->active.disabled;
+ default:
+ break;
+ }
+ }
+ else
+ {
+ switch (state)
+ {
+ case STATE_NORMAL:
+ return tclass->sticky_active.normal;
+ case STATE_HILITED:
+ return tclass->sticky_active.hilited;
+ case STATE_CLICKED:
+ return tclass->sticky_active.clicked;
+ case STATE_DISABLED:
+ return tclass->sticky_active.disabled;
+ default:
+ break;
+ }
+
+ }
+ }
+ else if (sticky)
+ {
+ switch (state)
+ {
+ case STATE_NORMAL:
+ return tclass->sticky.normal;
+ case STATE_HILITED:
+ return tclass->sticky.hilited;
+ case STATE_CLICKED:
+ return tclass->sticky.clicked;
+ case STATE_DISABLED:
+ return tclass->sticky.disabled;
+ default:
+ break;
+ }
+ }
+ else
+ {
+ switch (state)
+ {
+ case STATE_NORMAL:
+ return tclass->norm.normal;
+ case STATE_HILITED:
+ return tclass->norm.hilited;
+ case STATE_CLICKED:
+ return tclass->norm.clicked;
+ case STATE_DISABLED:
+ return tclass->norm.disabled;
+ default:
+ break;
+ }
+ }
+ return NULL;
+}
+
+static void
+TextstateTextFit1(TextState * ts, char **ptext, int *pw, int textwidth_limit)
+{
+ char *text = *ptext;
+ int hh, ascent;
+ char *new_line;
+ int nuke_count = 0, nc2;
+ int len;
+
+ len = strlen(text);
+ if (len <= 1)
+ return;
+ new_line = EMALLOC(char, len + 10);
+ if (!new_line)
+ return;
+
+ while (*pw > textwidth_limit)
+ {
+ nuke_count++;
+
+ if (nuke_count >= len - 1)
+ {
+ new_line[0] = text[0];
+ memcpy(new_line + 1, "...", 4);
+ break;
+ }
+
+ nc2 = (len - nuke_count) / 2;
+ memcpy(new_line, text, nc2);
+ memcpy(new_line + nc2, "...", 3);
+ strcpy(new_line + nc2 + 3, text + nc2 + nuke_count);
+
+ ts->ops->TextSize(ts, new_line, 0, pw, &hh, &ascent);
+ }
+
+ Efree(text);
+ *ptext = new_line;
+}
+
+#if FONT_TYPE_XFONT
+static void
+TextstateTextFit2(TextState * ts, char **ptext, int *pw, int textwidth_limit)
+{
+ char *text = *ptext;
+ int hh, ascent;
+ char *new_line;
+ int nuke_count = 0;
+ int len;
+
+ len = strlen(text);
+ new_line = EMALLOC(char, len + 20);
+
+ if (!new_line)
+ return;
+
+ while (*pw > textwidth_limit)
+ {
+ nuke_count += 2;
+
+ if (nuke_count > len)
+ {
+ memcpy(new_line, text, 2);
+ memcpy(new_line + 2, ". . . ", 7);
+ break;
+ }
+
+ new_line[0] = 0;
+ strncat(new_line, text, (len - nuke_count) / 4);
+ strcat(new_line, ". . . ");
+ strcat(new_line, text + ((len - nuke_count) / 4) + nuke_count);
+
+ ts->ops->TextSize(ts, new_line, 0, pw, &hh, &ascent);
+ }
+
+ Efree(text);
+ *ptext = new_line;
+}
+#endif /* FONT_TYPE_XFONT */
+
+static void
+TextstateTextFitMB(TextState * ts, char **ptext, int *pw, int textwidth_limit)
+{
+ char *text = *ptext;
+ int hh, ascent;
+ char *new_line;
+ int nuke_count = 0, nc2;
+ int len;
+ wchar_t *wc_line = NULL;
+ int wc_len;
+
+ if (EwcOpen(ts->need_utf8 || Mode.locale.utf8_int))
+ return;
+
+ len = strlen(text);
+ wc_len = EwcStrToWcs(text, len, NULL, 0);
+ if (wc_len <= 1)
+ goto done;
+
+ wc_line = EMALLOC(wchar_t, wc_len + 1);
+ if (!wc_line)
+ goto done;
+
+ if (EwcStrToWcs(text, len, wc_line, wc_len) <= 0)
+ goto done;
+
+ new_line = EMALLOC(char, len + 10);
+
+ if (!new_line)
+ goto done;
+
+ while (*pw > textwidth_limit)
+ {
+ int len_mb;
+
+ nuke_count++;
+ if (nuke_count >= wc_len - 1)
+ {
+ int mlen;
+
+ mlen = EwcWcsToStr(wc_line, 1, new_line, MB_CUR_MAX);
+ if (mlen < 0)
+ mlen = 1;
+
+ strcpy(new_line + mlen, "...");
+ break;
+ }
+
+ nc2 = (wc_len - nuke_count) / 2;
+ len_mb = EwcWcsToStr(wc_line, nc2, new_line, len + 10);
+ memcpy(new_line + len_mb, "...", 3);
+ len_mb += 3;
+ len_mb += EwcWcsToStr(wc_line + nc2 + nuke_count,
+ wc_len - nc2 - nuke_count,
+ new_line + len_mb, len + 10 - len_mb);
+ new_line[len_mb] = '\0';
+
+ ts->ops->TextSize(ts, new_line, 0, pw, &hh, &ascent);
+ }
+ Efree(text);
+ *ptext = new_line;
+ done:
+ Efree(wc_line);
+ EwcClose();
+}
+
+#if FONT_TYPE_XFS
+/*
+ * XFontSet - XCreateFontSet
+ */
+extern const FontOps FontOpsXfs;
+
+typedef struct {
+ XFontSet font;
+ int ascent;
+ Win win;
+ Drawable draw;
+ GC gc;
+} FontCtxXfs;
+
+static int
+_xfs_Load(TextState * ts, const char *name)
+{
+ XFontSet font;
+ FontCtxXfs *fdc;
+ int i, missing_cnt, font_cnt;
+ char **missing_list, *def_str, **fnlr;
+ XFontStruct **fs;
+
+ font = XCreateFontSet(disp, name, &missing_list, &missing_cnt, &def_str);
+ if (missing_cnt)
+ XFreeStringList(missing_list);
+ if (!font)
+ return -1;
+
+ if (EDebug(EDBUG_TYPE_FONTS) >= 2)
+ {
+ Eprintf("- XBaseFontNameListOfFontSet %s\n",
+ XBaseFontNameListOfFontSet(font));
+ font_cnt = XFontsOfFontSet(font, &fs, &fnlr);
+ for (i = 0; i < font_cnt; i++)
+ Eprintf("- XFontsOfFontSet %d: %s\n", i, fnlr[i]);
+ }
+
+ fdc = EMALLOC(FontCtxXfs, 1);
+ if (!fdc)
+ return -1;
+ fdc->font = font;
+ ts->fdc = fdc;
+ fdc->ascent = 0;
+ font_cnt = XFontsOfFontSet(font, &fs, &fnlr);
+ for (i = 0; i < font_cnt; i++)
+ fdc->ascent = MAX(fs[i]->ascent, fdc->ascent);
+ ts->type = FONT_TYPE_XFS;
+ ts->ops = &FontOpsXfs;
+ return 0;
+}
+
+static void
+_xfs_Unload(TextState * ts)
+{
+ FontCtxXfs *fdc = (FontCtxXfs *) ts->fdc;
+
+ XFreeFontSet(disp, fdc->font);
+}
+
+static void
+_xfs_TextSize(TextState * ts, const char *text, int len,
+ int *width, int *height, int *ascent)
+{
+ FontCtxXfs *fdc = (FontCtxXfs *) ts->fdc;
+ XRectangle ret2;
+
+ if (len == 0)
+ len = strlen(text);
+ XmbTextExtents(fdc->font, text, len, NULL, &ret2);
+ *height = ret2.height;
+ *width = ret2.width;
+ *ascent = fdc->ascent;
+}
+
+static void
+_xfs_TextDraw(TextState * ts, int x, int y, const char *text, int len)
+{
+ FontCtxXfs *fdc = (FontCtxXfs *) ts->fdc;
+
+ XmbDrawString(disp, fdc->draw, fdc->font, fdc->gc, x, y, text, len);
+}
+
+static int
+_xfs_FdcInit(TextState * ts, Win win, Drawable draw)
+{
+ FontCtxXfs *fdc = (FontCtxXfs *) ts->fdc;
+
+ fdc->win = win;
+ fdc->draw = draw;
+ fdc->gc = _get_gc(win);
+ return 0;
+}
+
+static void
+_xfs_FdcSetDrawable(TextState * ts, unsigned long draw)
+{
+ FontCtxXfs *fdc = (FontCtxXfs *) ts->fdc;
+
+ fdc->draw = draw;
+}
+
+static void
+_xfs_FdcSetColor(TextState * ts, EColor * xc)
+{
+ FontCtxXfs *fdc = (FontCtxXfs *) ts->fdc;
+
+ EAllocColor(WinGetCmap(fdc->win), xc);
+ XSetForeground(disp, fdc->gc, xc->pixel);
+}
+
+const FontOps FontOpsXfs = {
+ _xfs_Load, _xfs_Unload, _xfs_TextSize, TextstateTextFit, _xfs_TextDraw,
+ _xfs_FdcInit, NULL, _xfs_FdcSetDrawable, _xfs_FdcSetColor
+};
+#endif /* FONT_TYPE_XFS */
+
+#if FONT_TYPE_XFONT
+/*
+ * XFontStruct - XLoadQueryFont
+ */
+extern const FontOps FontOpsXfont;
+
+typedef struct {
+ XFontStruct *font;
+ Win win;
+ Drawable draw;
+ GC gc;
+} FontCtxXfont;
+
+static int
+_xfont_Load(TextState * ts, const char *name)
+{
+ XFontStruct *font;
+ FontCtxXfont *fdc;
+
+ font = XLoadQueryFont(disp, name);
+ if (!font)
+ return -1;
+
+ fdc = EMALLOC(FontCtxXfont, 1);
+ if (!fdc)
+ return -1;
+ fdc->font = font;
+ ts->fdc = fdc;
+ ts->type = FONT_TYPE_XFONT;
+ ts->ops = &FontOpsXfont;
+ return 0;
+}
+
+static void
+_xfont_Unload(TextState * ts __UNUSED__)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ XFreeFont(disp, fdc->font);
+}
+
+static void
+_xfont_TextSize(TextState * ts, const char *text, int len,
+ int *width, int *height, int *ascent)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ if (len == 0)
+ len = strlen(text);
+ if (fdc->font->min_byte1 == 0 && fdc->font->max_byte1 == 0)
+ *width = XTextWidth(fdc->font, text, len);
+ else
+ *width = XTextWidth16(fdc->font, (XChar2b *) text, len / 2);
+ *height = fdc->font->ascent + fdc->font->descent;
+ *ascent = fdc->font->ascent;
+}
+
+static void
+_xfont_TextDraw(TextState * ts, int x, int y, const char *text, int len)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ if (fdc->font->min_byte1 == 0 && fdc->font->max_byte1 == 0)
+ XDrawString(disp, fdc->draw, fdc->gc, x, y, text, len);
+ else
+ XDrawString16(disp, fdc->draw, fdc->gc, x, y, (XChar2b *) text, len);
+}
+
+static int
+_xfont_FdcInit(TextState * ts, Win win, Drawable draw)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ fdc->win = win;
+ fdc->draw = draw;
+ fdc->gc = _get_gc(win);
+
+ XSetFont(disp, fdc->gc, fdc->font->fid);
+ return 0;
+}
+
+static void
+_xfont_FdcSetDrawable(TextState * ts, unsigned long draw)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ fdc->draw = draw;
+}
+
+static void
+_xfont_FdcSetColor(TextState * ts, EColor * xc)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ EAllocColor(WinGetCmap(fdc->win), xc);
+ XSetForeground(disp, fdc->gc, xc->pixel);
+}
+
+static void
+_xfont_TextFit(TextState * ts, char **ptext, int *pw, int textwidth_limit)
+{
+ FontCtxXfont *fdc = (FontCtxXfont *) ts->fdc;
+
+ if (fdc->font->min_byte1 == 0 && fdc->font->max_byte1 == 0)
+ TextstateTextFit1(ts, ptext, pw, textwidth_limit);
+ else
+ TextstateTextFit2(ts, ptext, pw, textwidth_limit);
+}
+
+const FontOps FontOpsXfont = {
+ _xfont_Load, _xfont_Unload, _xfont_TextSize, _xfont_TextFit, _xfont_TextDraw,
+ _xfont_FdcInit, NULL, _xfont_FdcSetDrawable, _xfont_FdcSetColor
+};
+#endif /* FONT_TYPE_XFONT */
+
+static void
+TsTextDraw(TextState * ts, int x, int y, const char *text, int len)
+{
+ if (ts->style.effect == 1)
+ {
+ ts->ops->FdcSetColor(ts, &(ts->bg_col));
+ ts->ops->TextDraw(ts, x + 1, y + 1, text, len);
+ }
+ else if (ts->style.effect == 2)
+ {
+ ts->ops->FdcSetColor(ts, &(ts->bg_col));
+ ts->ops->TextDraw(ts, x - 1, y, text, len);
+ ts->ops->TextDraw(ts, x + 1, y, text, len);
+ ts->ops->TextDraw(ts, x, y - 1, text, len);
+ ts->ops->TextDraw(ts, x, y + 1, text, len);
+ }
+ ts->ops->FdcSetColor(ts, &(ts->fg_col));
+ ts->ops->TextDraw(ts, x, y, text, len);
+}
+
+typedef struct {
+ const char *type;
+ const FontOps *ops;
+ char checked;
+} FontHandler;
+
+#if USE_MODULES
+
+#define FONT(type, ops, opsm) { type, opsm, 0 }
+
+#else
+
+#define FONT(type, ops, opsm) { type, ops, 0 }
+
+#if FONT_TYPE_IFT
+extern const FontOps FontOps_ift;
+#endif
+#if FONT_TYPE_XFT
+extern const FontOps FontOps_xft;
+#endif
+#if FONT_TYPE_PANGO_XFT
+extern const FontOps FontOps_pango;
+#endif
+
+#endif /* USE_MODULES */
+
+static FontHandler fhs[] = {
+#if FONT_TYPE_XFONT
+ FONT("xfont", &FontOpsXfont, &FontOpsXfont), /* XFontStruct - XLoadQueryFont */
+#endif
+#if FONT_TYPE_XFS
+ FONT("xfs", &FontOpsXfs, &FontOpsXfs), /* XFontSet - XCreateFontSet */
+#endif
+#if FONT_TYPE_IFT
+ FONT("ift", &FontOps_ift, NULL), /* Imlib2/FreeType */
+#endif
+#if FONT_TYPE_XFT
+ FONT("xft", &FontOps_xft, NULL), /* Xft */
+#endif
+#if FONT_TYPE_PANGO_XFT
+ FONT("pango", &FontOps_pango, NULL), /* Pango-Xft */
+#endif
+ {NULL, NULL, 0},
+};
+
+static void
+TextStateLoadFont(TextState * ts)
+{
+ const char *s, *type, *name;
+ char buf[1024];
+ FontHandler *fhp = fhs;
+
+ if (!ts->fontname)
+ return;
+
+ /* Quit if already done */
+ if (ts->type)
+ return;
+
+ ts->need_utf8 = Mode.locale.utf8_int;
+
+ type = NULL;
+ name = ts->fontname;
+#if FONT_TYPE_IFT
+ if (strchr(ts->fontname, '/'))
+ {
+ type = "ift";
+ goto check;
+ }
+#endif
+#if FONT_TYPE_XFS
+ if (ts->fontname[0] == '-')
+ {
+ type = "xfs";
+ goto check;
+ }
+#endif
+ s = strchr(ts->fontname, ':');
+ if (!s || s == ts->fontname)
+ goto fallback;
+ if (s - ts->fontname > 16)
+ goto fallback;
+ memcpy(buf, ts->fontname, s - ts->fontname);
+ buf[s - ts->fontname] = '\0';
+ type = buf;
+ name = s + 1;
+
+ check:
+ for (fhp = fhs; fhp->type; fhp++)
+ {
+ if (strcmp(fhp->type, type))
+ continue;
+#if USE_MODULES
+ if (!fhp->ops)
+ {
+ if (fhp->checked)
+ goto fallback;
+ fhp->checked = 1;
+ fhp->ops = ModLoadSym("font", "FontOps", type);
+ if (!fhp->ops)
+ goto fallback;
+ }
+#endif
+ if (fhp->ops->Load(ts, name) == 0)
+ goto done;
+ }
+ fallback:
+#if FONT_TYPE_XFS
+ if (!FontOpsXfs.Load(ts, "fixed")) /* XFontSet - XCreateFontSet */
+ goto done;
+#endif
+#if FONT_TYPE_XFONT
+ if (!FontOpsXfont.Load(ts, "fixed")) /* XFontStruct - XLoadQueryFont */
+ goto done;
+#endif
+
+ done:
+ if (!ts->ops)
+ Eprintf("*** Unable to load font \"%s\"\n", ts->fontname);
+ else if (EDebug(EDBUG_TYPE_FONTS))
+ Eprintf("TextStateLoadFont %s: type=%d\n", ts->fontname, ts->type);
+ return;
+}
+
+void
+TextSize(TextClass * tclass, int active, int sticky, int state,
+ const char *text, int *width, int *height, int fsize __UNUSED__)
+{
+ const char *str;
+ char **lines;
+ int i, num_lines, ww, hh, asc;
+ TextState *ts;
+
+ *width = 0;
+ *height = 0;
+
+ if (!text)
+ return;
+
+ ts = TextclassGetTextState(tclass, state, active, sticky);
+ if (!ts)
+ return;
+
+ TextStateLoadFont(ts);
+ if (!ts->ops)
+ return;
+
+ /* Do encoding conversion, if necessary */
+ str = EstrInt2Enc(text, ts->need_utf8);
+ lines = StrlistFromString(str, '\n', &num_lines);
+ EstrInt2EncFree(str, ts->need_utf8);
+ if (!lines)
+ return;
+
+ for (i = 0; i < num_lines; i++)
+ {
+ ts->ops->TextSize(ts, lines[i], strlen(lines[i]), &ww, &hh, &asc);
+ *height += hh;
+ if (ww > *width)
+ *width = ww;
+ }
+
+ StrlistFree(lines, num_lines);
+}
+
+void
+TextstateTextFit(TextState * ts, char **ptext, int *pw, int textwidth_limit)
+{
+ if (ts->need_utf8 || MB_CUR_MAX > 1)
+ TextstateTextFitMB(ts, ptext, pw, textwidth_limit);
+ else
+ TextstateTextFit1(ts, ptext, pw, textwidth_limit);
+}
+
+void
+TextstateTextDraw(TextState * ts, Win win, Drawable draw, const char *text,
+ int x, int y, int w, int h, const EImageBorder * pad,
+ int fsize __UNUSED__, int justh, int justv)
+{
+ const char *str;
+ char **lines;
+ int i, num_lines;
+ int textwidth_limit, textheight_limit, offset_x, offset_y;
+ int xx, yy, ww, hh, ascent;
+ Pixmap drawable;
+
+ if (w <= 0 || h <= 0)
+ return;
+
+ TextStateLoadFont(ts);
+ if (!ts->ops)
+ return;
+
+ /* Do encoding conversion, if necessary */
+ str = EstrInt2Enc(text, ts->need_utf8);
+ lines = StrlistFromString(str, '\n', &num_lines);
+ EstrInt2EncFree(str, ts->need_utf8);
+ if (!lines)
+ return;
+
+ if (draw == None)
+ draw = WinGetXwin(win);
+
+ if (ts->style.orientation == FONT_TO_RIGHT ||
+ ts->style.orientation == FONT_TO_LEFT)
+ {
+ if (pad)
+ {
+ x += pad->left;
+ w -= pad->left + pad->right;
+ y += pad->top;
+ h -= pad->top + pad->bottom;
+ }
+ textwidth_limit = w;
+ textheight_limit = h;
+ }
+ else
+ {
+ if (pad)
+ {
+ x += pad->left;
+ h -= pad->left + pad->right;
+ y += pad->top;
+ w -= pad->top + pad->bottom;
+ }
+ textwidth_limit = h;
+ textheight_limit = w;
+ }
+
+#if 0
+ Eprintf("TextstateTextDraw %d,%d %dx%d(%dx%d): %s\n", x, y, w, h,
+ textwidth_limit, textheight_limit, text);
+#endif
+
+ xx = x;
+ yy = y;
+
+ if (ts->ops->FdcInit(ts, win, draw))
+ return;
+
+#if FONT_TYPE_IFT
+ if (ts->type == FONT_TYPE_IFT)
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ EImage *im;
+
+ ts->ops->TextSize(ts, lines[i], 0, &ww, &hh, &ascent);
+ if (ww > textwidth_limit)
+ ts->ops->TextFit(ts, &lines[i], &ww, textwidth_limit);
+
+ if (justv && num_lines == 1 && textheight_limit > 0)
+ yy += (textheight_limit - hh) / 2;
+ if (i == 0)
+ yy += ascent;
+ xx = x + (((textwidth_limit - ww) * justh) >> 10);
+
+ im = TextImageGet(win, draw, xx - 1, yy - 1 - ascent,
+ ww + 2, hh + 2, ts);
+ if (!im)
+ break;
+
+ offset_x = 1;
+ offset_y = ascent + 1;
+
+ ts->ops->FdcSetDrawable(ts, (unsigned long)im);
+
+ TsTextDraw(ts, offset_x, offset_y, lines[i], strlen(lines[i]));
+
+ TextImagePut(im, win, draw, xx - 1, yy - 1 - ascent,
+ ww + 2, hh + 2, ts);
+
+ yy += hh;
+ }
+ }
+ else
+#endif /* FONT_TYPE_IFT */
+ {
+ for (i = 0; i < num_lines; i++)
+ {
+ ts->ops->TextSize(ts, lines[i], 0, &ww, &hh, &ascent);
+ if (ww > textwidth_limit)
+ ts->ops->TextFit(ts, &lines[i], &ww, textwidth_limit);
+
+ if (justv && num_lines == 1 && textheight_limit > 0)
+ yy += (textheight_limit - hh) / 2;
+ if (i == 0)
+ yy += ascent;
+ xx = x + (((textwidth_limit - ww) * justh) >> 10);
+
+ if (ts->style.orientation != FONT_TO_RIGHT)
+ drawable = ECreatePixmap(win, ww + 2, hh + 2, 0);
+ else
+ drawable = draw;
+ TextDrawRotTo(win, draw, drawable, xx - 1, yy - 1 - ascent,
+ ww + 2, hh + 2, ts);
+
+ if (ts->style.orientation == FONT_TO_RIGHT)
+ {
+ offset_x = xx;
+ offset_y = yy;
+ }
+ else
+ {
+ offset_x = 1;
+ offset_y = ascent + 1;
+ }
+
+ if (drawable != draw)
+ ts->ops->FdcSetDrawable(ts, drawable);
+
+ TsTextDraw(ts, offset_x, offset_y, lines[i], strlen(lines[i]));
+
+ TextDrawRotBack(win, draw, drawable, xx - 1, yy - 1 - ascent,
+ ww + 2, hh + 2, ts);
+ if (drawable != draw)
+ EFreePixmap(drawable);
+
+ yy += hh;
+ }
+ }
+
+ if (ts->ops->FdcFini)
+ ts->ops->FdcFini(ts);
+
+ StrlistFree(lines, num_lines);
+}
+
+void
+TextDraw(TextClass * tclass, Win win, Drawable draw, int active, int sticky,
+ int state, const char *text, int x, int y, int w, int h, int fsize,
+ int justh)
+{
+ TextState *ts;
+
+ if (!tclass || !text)
+ return;
+
+ ts = TextclassGetTextState(tclass, state, active, sticky);
+ if (!ts)
+ return;
+
+ TextstateTextDraw(ts, win, draw, text, x, y, w, h, NULL, fsize, justh, 0);
+}
--- /dev/null
+/*
+ * Copyright (C) 2007-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "tclass.h"
+
+#ifdef USE_PANGO
+#include "xwin.h"
+#include <X11/Xft/Xft.h>
+#include <pango/pangoxft.h>
+
+/*
+ * Pango-Xft
+ */
+__EXPORT__ extern const FontOps FontOps_pango;
+
+static PangoContext *_pango_ctx = NULL;
+
+/* Beware! The layout of FontCtxPangoXft must match FontCtxXft
+ * in order to reuse the _xft_Fdc... functions. */
+typedef struct {
+ PangoFontDescription *font;
+ Win win;
+ Drawable draw;
+ XftDraw *xftd;
+ XftColor xftc;
+} FontCtxPangoXft;
+
+static int
+_pango_xft_Load(TextState * ts, const char *name)
+{
+ FontCtxPangoXft *fdc;
+ PangoFontDescription *font;
+ PangoFontMask flags;
+
+ if (!_pango_ctx)
+ _pango_ctx = pango_xft_get_context(disp, Dpy.screen);
+ if (!_pango_ctx)
+ return -1;
+
+ font = pango_font_description_from_string(name);
+ if (!font)
+ return -1;
+
+ flags = pango_font_description_get_set_fields(font);
+ if ((flags & PANGO_FONT_MASK_FAMILY) == 0)
+ pango_font_description_set_family(font, "sans");
+ if ((flags & PANGO_FONT_MASK_SIZE) == 0)
+ pango_font_description_set_size(font, 10 * PANGO_SCALE);
+
+ fdc = EMALLOC(FontCtxPangoXft, 1);
+ if (!fdc)
+ return -1;
+ fdc->font = font;
+ ts->fdc = fdc;
+ ts->need_utf8 = 1;
+ ts->type = FONT_TYPE_PANGO_XFT;
+ ts->ops = &FontOps_pango;
+ return 0;
+}
+
+static void
+_pango_xft_Unload(TextState * ts)
+{
+ FontCtxPangoXft *fdc = (FontCtxPangoXft *) ts->fdc;
+
+ pango_font_description_free(fdc->font);
+}
+
+static void
+_pango_xft_TextSize(TextState * ts, const char *text, int len __UNUSED__,
+ int *width, int *height, int *ascent)
+{
+ FontCtxPangoXft *fdc = (FontCtxPangoXft *) ts->fdc;
+ PangoLayout *layout;
+ PangoRectangle logical_rect;
+
+ layout = pango_layout_new(_pango_ctx);
+ pango_layout_set_text(layout, text, -1);
+ pango_layout_set_font_description(layout, fdc->font);
+ pango_layout_get_extents(layout, NULL, &logical_rect);
+
+ *width = PANGO_PIXELS(logical_rect.x + logical_rect.width);
+ *height = PANGO_PIXELS(logical_rect.height);
+ *ascent = PANGO_PIXELS(-logical_rect.y);
+
+ g_object_unref(layout);
+}
+
+static void
+_pango_xft_TextDraw(TextState * ts, int x, int y, const char *text,
+ int len __UNUSED__)
+{
+ FontCtxPangoXft *fdc = (FontCtxPangoXft *) ts->fdc;
+ PangoLayout *layout;
+
+ layout = pango_layout_new(_pango_ctx);
+ pango_layout_set_text(layout, text, -1);
+ pango_layout_set_font_description(layout, fdc->font);
+
+ pango_xft_render_layout(fdc->xftd, &(fdc->xftc), layout,
+ x * PANGO_SCALE, y * PANGO_SCALE);
+
+ g_object_unref(layout);
+}
+
+const FontOps FontOps_pango = {
+ _pango_xft_Load, _pango_xft_Unload,
+ _pango_xft_TextSize, TextstateTextFit, _pango_xft_TextDraw,
+ _xft_FdcInit, _xft_FdcFini, _xft_FdcSetDrawable, _xft_FdcSetColor
+};
+
+#endif /* USE_PANGO */
--- /dev/null
+/*
+ * Copyright (C) 2006-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "tclass.h"
+
+#ifdef USE_XFT
+#include "xwin.h"
+#include <X11/extensions/Xrender.h>
+#include <X11/Xft/Xft.h>
+
+/*
+ * Xft
+ */
+__EXPORT__ extern const FontOps FontOps_xft;
+
+typedef struct {
+ XftFont *font;
+ Win win;
+ Drawable draw;
+ XftDraw *xftd;
+ XftColor xftc;
+} FontCtxXft;
+
+static int
+_xft_Load(TextState * ts, const char *name)
+{
+ XftFont *font;
+ FontCtxXft *fdc;
+
+ if (name[0] == '-')
+ font = XftFontOpenXlfd(disp, Dpy.screen, name);
+ else
+ font = XftFontOpenName(disp, Dpy.screen, name);
+
+ if (!font)
+ return -1;
+
+#if 0 /* Debug */
+ {
+ FT_Face ftf = XftLockFace(font);
+
+ if (ftf == NULL)
+ return -1;
+ Eprintf("Font %s family_name=%s style_name=%s\n", name,
+ ftf->family_name, ftf->style_name);
+ XftUnlockFace(font);
+ }
+#endif
+
+ fdc = EMALLOC(FontCtxXft, 1);
+ if (!fdc)
+ return -1;
+ fdc->font = font;
+ ts->fdc = fdc;
+ ts->need_utf8 = 1;
+ ts->type = FONT_TYPE_XFT;
+ ts->ops = &FontOps_xft;
+ return 0;
+}
+
+static void
+_xft_Unload(TextState * ts)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+
+ XftFontClose(disp, fdc->font);
+}
+
+static void
+_xft_TextSize(TextState * ts, const char *text, int len,
+ int *width, int *height, int *ascent)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+ XGlyphInfo gi;
+
+ if (len == 0)
+ len = strlen(text);
+ XftTextExtentsUtf8(disp, fdc->font, (const XftChar8 *)text, len, &gi);
+ *width = gi.xOff;
+ *height = fdc->font->height;
+ if (*height < fdc->font->ascent + fdc->font->descent)
+ *height = fdc->font->ascent + fdc->font->descent;
+ *ascent = fdc->font->ascent;
+#if 0
+ Eprintf("asc/dsc/h=%d/%d/%d x,y=%2d,%d wxh=%dx%d ox,y=%3d,%d: (%d)%s\n",
+ fdc->font->ascent, fdc->font->descent, fdc->font->height, gi.x, gi.y,
+ gi.width, gi.height, gi.xOff, gi.yOff, len, text);
+#endif
+}
+
+static void
+_xft_TextDraw(TextState * ts, int x, int y, const char *text, int len)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+
+ XftDrawStringUtf8(fdc->xftd, &(fdc->xftc), fdc->font, x, y,
+ (const XftChar8 *)text, len);
+}
+
+int
+_xft_FdcInit(TextState * ts, Win win, Drawable draw)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+
+ fdc->win = win;
+ fdc->draw = draw;
+
+ fdc->xftd = XftDrawCreate(disp, draw, WinGetVisual(win), WinGetCmap(win));
+ if (!fdc->xftd)
+ return -1;
+ return 0;
+}
+
+void
+_xft_FdcFini(TextState * ts)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+
+ XftDrawDestroy(fdc->xftd);
+}
+
+void
+_xft_FdcSetDrawable(TextState * ts, unsigned long draw)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+
+ if (fdc->draw == draw)
+ return;
+ fdc->draw = draw;
+ XftDrawChange(fdc->xftd, draw);
+}
+
+void
+_xft_FdcSetColor(TextState * ts, EColor * ec)
+{
+ FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
+ XRenderColor xrc;
+
+ xrc.red = ec->red << 8;
+ xrc.green = ec->green << 8;
+ xrc.blue = ec->blue << 8;
+ xrc.alpha = 65535;
+
+ XftColorAllocValue(disp, WinGetVisual(fdc->win), WinGetCmap(fdc->win),
+ &xrc, &(fdc->xftc));
+}
+
+const FontOps FontOps_xft = {
+ _xft_Load, _xft_Unload, _xft_TextSize, TextstateTextFit, _xft_TextDraw,
+ _xft_FdcInit, _xft_FdcFini, _xft_FdcSetDrawable, _xft_FdcSetColor
+};
+
+#endif /* FONT_TYPE_XFT */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "emodule.h"
+#include "file.h"
+#include "util.h"
+#include "session.h"
+
+/* Update Mode.theme.paths (theme path list) */
+static void
+ThemePathsUpdate(void)
+{
+ char paths[4096];
+
+ Esnprintf(paths, sizeof(paths), "%s/themes:%s/themes:%s", EDirUser(),
+ EDirRoot(), (Conf.theme.extra_path) ? Conf.theme.extra_path : "");
+ _EFDUP(Mode.theme.paths, paths);
+}
+
+/* Check if this is a theme dir */
+static const char *
+ThemeCheckPath(const char *path)
+{
+ static const char *const theme_files[] = {
+ "init.cfg",
+#if 0
+ "epplets/epplets.cfg",
+#endif
+ NULL
+ };
+ const char *tf;
+ int i;
+ char s[4096];
+
+ for (i = 0; (tf = theme_files[i]) != NULL; i++)
+ {
+ Esnprintf(s, sizeof(s), "%s/%s", path, tf);
+ if (!isfile(s))
+ return NULL;
+ }
+
+ return path;
+}
+
+char *
+ThemePathName(const char *path)
+{
+ const char *p;
+ char *s;
+
+ if (!path)
+ return NULL;
+ p = strrchr(path, '/');
+ if (!p)
+ return Estrdup(path); /* Name only */
+ if (strcmp(p + 1, "e16"))
+ return Estrdup(p + 1); /* Regular path */
+
+ /* <path>/<themename>/e16 */
+ s = strdup(path);
+ s[p - path] = '\0';
+ p = strrchr(s, '/');
+ if (!p)
+ return Estrdup(path); /* Should not happen */
+ p++;
+ memmove(s, p, strlen(p) + 1);
+ return s;
+}
+
+static void
+append_merge_dir(char *dir, char ***list, int *count)
+{
+ char ss[FILEPATH_LEN_MAX], s1[FILEPATH_LEN_MAX];
+ char **str = NULL, *s;
+ int i, num;
+
+ str = E_ls(dir, &num);
+ if (!str)
+ return;
+
+ for (i = 0; i < num; i++)
+ {
+ if (!strcmp(str[i], "DEFAULT"))
+ continue;
+
+ Esnprintf(ss, sizeof(ss), "%s/%s", dir, str[i]);
+
+ if (isdir(ss))
+ {
+ if (ThemeCheckPath(ss))
+ goto got_one;
+ Esnprintf(ss, sizeof(ss), "%s/%s/e16", dir, str[i]);
+ if (ThemeCheckPath(ss))
+ goto got_one;
+ continue;
+ }
+ else if (isfile(ss))
+ {
+ s = strstr(str[i], ".etheme");
+ if (!s)
+ continue;
+ Esnprintf(s1, sizeof(s1), "%s/themes/%s", EDirUser(), str[i]);
+ s = strstr(s1, ".etheme");
+ if (!s)
+ continue;
+ *s = '\0';
+ if (isdir(s1))
+ continue;
+ }
+ else
+ {
+ continue;
+ }
+
+ got_one:
+ (*count)++;
+ *list = EREALLOC(char *, *list, *count);
+
+ (*list)[(*count) - 1] = Estrdup(ss);
+ }
+ StrlistFree(str, num);
+}
+
+char **
+ThemesList(int *number)
+{
+ char **lst, **list;
+ int i, num, count;
+
+ ThemePathsUpdate();
+ lst = StrlistFromString(Mode.theme.paths, ':', &num);
+
+ count = 0;
+ list = NULL;
+ for (i = 0; i < num; i++)
+ append_merge_dir(lst[i], &list, &count);
+
+ StrlistFree(lst, num);
+
+ *number = count;
+ return list;
+}
+
+static const char *
+ThemeGetPath(const char *path, char *buf, unsigned int len)
+{
+ const char *s;
+ char s1[FILEPATH_LEN_MAX];
+ int l;
+
+ /* We only attempt to dereference a DEFAULT link */
+ s = strstr(path, "/DEFAULT");
+ if (s == NULL)
+ return path;
+
+ l = readlink(path, s1, sizeof(s1) - 1);
+ if (l < 0)
+ return path;
+ s1[l] = '\0';
+
+ if (isabspath(s1))
+ {
+ Esnprintf(buf, len, "%s", s1);
+ return buf;
+ }
+
+ Esnprintf(buf, len, "%s", path); /* Copy path */
+ l = s + 1 - path;
+ Esnprintf(buf + l, len - l, "%s", s1); /* Substitute link */
+
+ return buf;
+}
+
+static char *
+ThemeExtract(const char *path)
+{
+ char s[FILEPATH_LEN_MAX];
+ char th[FILEPATH_LEN_MAX];
+ FILE *f;
+ unsigned char buf[320];
+ char *name;
+
+ /* its a directory - just use it "as is" */
+ if (isdir(path))
+ {
+ path = ThemeGetPath(path, s, sizeof(s));
+ goto done;
+ }
+
+ if (!isfile(path))
+ return NULL;
+
+ /* its a file - check its type */
+ f = fopen(path, "r");
+ if (!f)
+ return NULL;
+ fread(buf, 1, 320, f);
+ fclose(f);
+
+ name = fileof(path);
+ Esnprintf(th, sizeof(th), "%s/themes/%s", EDirUser(), name);
+ Efree(name);
+
+ /* check magic numbers */
+ if ((buf[0] == 31) && (buf[1] == 139))
+ {
+ /* gzipped tarball */
+ Esnprintf(s, sizeof(s),
+ "gzip -d -c < %s | (cd %s ; tar -xf -)", path, th);
+ }
+ else if ((buf[257] == 'u') && (buf[258] == 's') &&
+ (buf[259] == 't') && (buf[260] == 'a') && (buf[261] == 'r'))
+ {
+ /* vanilla tarball */
+ Esnprintf(s, sizeof(s), "(cd %s ; tar -xf %s)", th, path);
+ }
+ else
+ return NULL;
+
+ E_md(th);
+ path = th;
+
+ /* exec the untar if tarred */
+ system(s);
+
+ done:
+ if (ThemeCheckPath(path))
+ return Estrdup(path);
+
+ /* failed */
+ return NULL;
+}
+
+char *
+ThemeFind(const char *theme)
+{
+ static const char *const default_themes[] = {
+ "DEFAULT", "winter", "BrushedMetal-Tigert", "ShinyMetal", NULL
+ };
+ char tdir[4096], *path;
+ char **lst;
+ int i, j, num;
+
+ ThemePathsUpdate();
+
+ path = NULL;
+
+ if (!theme || !theme[0])
+ {
+ theme = NULL;
+ }
+ else if (!strcmp(theme, "-")) /* Use fallbacks */
+ {
+ return NULL;
+ }
+ else if (isabspath(theme))
+ {
+ path = ThemeExtract(theme);
+ if (path)
+ return path;
+ theme = NULL;
+ }
+
+ lst = StrlistFromString(Mode.theme.paths, ':', &num);
+
+ i = 0;
+ do
+ {
+ if (!theme)
+ goto next;
+ for (j = 0; j < num; j++)
+ {
+ Esnprintf(tdir, sizeof(tdir), "%s/%s", lst[j], theme);
+ path = ThemeExtract(tdir);
+ if (path)
+ goto done;
+
+ Esnprintf(tdir, sizeof(tdir), "%s/%s/e16", lst[j], theme);
+ path = ThemeExtract(tdir);
+ if (path)
+ goto done;
+ }
+ next:
+ theme = default_themes[i++];
+ }
+ while (theme);
+
+ done:
+ StrlistFree(lst, num);
+
+ if (path)
+ return path;
+
+ /* No theme found yet, just find any theme */
+ lst = ThemesList(&num);
+ if (!lst)
+ return NULL;
+ path = Estrdup(lst[0]);
+ StrlistFree(lst, num);
+
+ return path;
+}
+
+void
+ThemePathFind(void)
+{
+ char *name, *path;
+
+ /*
+ * Conf.theme.name is read from the configuration.
+ * Mode.theme.path may be assigned on the command line.
+ */
+ name = (Mode.theme.path) ? Mode.theme.path : Conf.theme.name;
+ path = ThemeFind(name);
+
+ if (!path && (!name || strcmp(name, "-")))
+ {
+ Alert(_("No themes were found in the default directories:\n"
+ " %s\n"
+ "Proceeding from here is mostly pointless.\n"),
+ Mode.theme.paths);
+ }
+
+ Efree(Conf.theme.name);
+ Conf.theme.name = ThemePathName(path);
+
+ Efree(Mode.theme.path);
+ Mode.theme.path = (path) ? path : Estrdup("-");
+}
+
+#if ENABLE_DIALOGS
+#include "dialog.h"
+/*
+ * Configuration dialog
+ */
+static char tmp_use_theme_font;
+static char tmp_use_alt_font;
+
+static void
+_DlgThemeConfigure(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val >= 2)
+ return;
+ if (Conf.theme.use_theme_font_cfg == tmp_use_theme_font &&
+ Conf.theme.use_alt_font_cfg == tmp_use_alt_font)
+ return;
+
+ DialogOK(_("Message"), _("Changes will take effect after restart"));
+
+ Conf.theme.use_theme_font_cfg = tmp_use_theme_font;
+ Conf.theme.use_alt_font_cfg = tmp_use_alt_font;
+ autosave();
+}
+
+static void
+_DlgThemeFill(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+ char buf[1024];
+
+ tmp_use_theme_font = Conf.theme.use_theme_font_cfg;
+ tmp_use_alt_font = Conf.theme.use_alt_font_cfg;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Use theme font configuration"));
+ DialogItemCheckButtonSetPtr(di, &tmp_use_theme_font);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ Esnprintf(buf, sizeof(buf), _("Use alternate font configuration (%s)"),
+ Conf.theme.font_cfg ? Conf.theme.font_cfg : _("Not set"));
+ DialogItemSetText(di, buf);
+ DialogItemCheckButtonSetPtr(di, &tmp_use_alt_font);
+}
+
+const DialogDef DlgTheme = {
+ "CONFIGURE_AUDIO",
+ N_("Theme"),
+ N_("Theme Settings"),
+ SOUND_SETTINGS_MISCELLANEOUS,
+ "pix/miscellaneous.png",
+ N_("Enlightenment Theme\n" "Settings Dialog\n"),
+ _DlgThemeFill,
+ DLG_OAC, _DlgThemeConfigure,
+};
+#endif /* ENABLE_DIALOGS */
+
+/*
+ * Theme module
+ */
+
+static void
+ThemesIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[128];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %100s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ char *path;
+
+ IpcPrintf("Name: %s\n", (Conf.theme.name) ? Conf.theme.name : "-");
+ IpcPrintf("Full: %s\n", Mode.theme.path);
+ path = ThemeFind(NULL);
+ IpcPrintf("Default: %s\n", path);
+ Efree(path);
+ IpcPrintf("Path: %s\n", Mode.theme.paths);
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ char **lst;
+ int i, num;
+
+ lst = ThemesList(&num);
+ if (!lst)
+ return;
+ for (i = 0; i < num; i++)
+ IpcPrintf("%s\n", lst[i]);
+ StrlistFree(lst, num);
+ }
+ else if (!strcmp(cmd, "use"))
+ {
+ /* FIXME - ThemeCheckIfValid(s) */
+ SessionExit(EEXIT_THEME, prm);
+ }
+}
+
+static const IpcItem ThemeIpcArray[] = {
+ {
+ ThemesIpc,
+ "theme", "th",
+ "Theme commands",
+ " theme Show current theme\n"
+ " theme list Show all themes\n"
+ " theme use <name> Switch to theme <name>\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(ThemeIpcArray)/sizeof(IpcItem))
+
+static const CfgItem ThemeCfgItems[] = {
+ CFG_ITEM_STR(Conf.theme, name),
+ CFG_ITEM_STR(Conf.theme, extra_path),
+ CFG_ITEM_BOOL(Conf.theme, use_theme_font_cfg, 0),
+ CFG_ITEM_BOOL(Conf.theme, use_alt_font_cfg, 0),
+ CFG_ITEM_STR(Conf.theme, font_cfg),
+};
+#define N_CFG_ITEMS (sizeof(ThemeCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModTheme;
+const EModule ModTheme = {
+ "theme", "th",
+ NULL,
+ {N_IPC_FUNCS, ThemeIpcArray},
+ {N_CFG_ITEMS, ThemeCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2006-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "e16-ecore_list.h"
+#include "timers.h"
+#include <sys/time.h>
+
+#define DEBUG_TIMERS 0
+
+struct _timer {
+ double in_time;
+ double at_time;
+ struct _timer *next;
+ int (*func) (void *data);
+ void *data;
+ char again;
+};
+
+double
+GetTime(void)
+{
+ struct timeval timev;
+
+ gettimeofday(&timev, NULL);
+ return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
+}
+
+static Timer *q_first = NULL;
+
+static void
+_TimerSet(Timer * timer)
+{
+ Timer *ptr, *pptr;
+
+#if DEBUG_TIMERS
+ if (EDebug(EDBUG_TYPE_TIMERS))
+ Eprintf("_TimerSet %p: func=%p data=%p\n", timer, timer->func,
+ timer->data);
+#endif
+
+ /* if there is no queue it becomes the queue */
+ if (!q_first)
+ {
+ q_first = timer;
+ timer->next = NULL;
+ }
+ else
+ {
+ pptr = NULL;
+ for (ptr = q_first; ptr; pptr = ptr, ptr = ptr->next)
+ {
+ if (ptr->at_time > timer->at_time)
+ break;
+ }
+ if (pptr)
+ pptr->next = timer;
+ else
+ q_first = timer;
+ timer->next = ptr;
+ }
+}
+
+static void
+_TimerDel(Timer * timer)
+{
+#if DEBUG_TIMERS
+ if (EDebug(EDBUG_TYPE_TIMERS))
+ Eprintf("_TimerDel %p: func=%p data=%p\n", timer, timer->func,
+ timer->data);
+#endif
+ Efree(timer);
+}
+
+Timer *
+TimerAdd(double in_time, int (*func) (void *data), void *data)
+{
+ Timer *timer;
+
+ timer = EMALLOC(Timer, 1);
+ if (!timer)
+ return NULL;
+
+ if (in_time < 0.) /* No negative in-times */
+ in_time = 0.;
+
+ timer->func = func;
+ timer->in_time = in_time;
+ timer->at_time = GetTime() + in_time;
+ timer->data = data;
+
+ if (EDebug(EDBUG_TYPE_TIMERS))
+ Eprintf("TimerAdd %p: func=%p data=%p: %8.3f\n", timer,
+ timer->func, timer->data, in_time);
+
+ _TimerSet(timer); /* Add to timer queue */
+
+ return timer;
+}
+
+double
+TimersRun(double tt)
+{
+ Timer *timer, *q_old, *q_run;
+ double t;
+
+ timer = q_first;
+ if (!q_first)
+ return 0.; /* No timers pending */
+
+ t = tt;
+ if (t <= 0.)
+ t = timer->at_time;
+
+ q_run = q_old = q_first;
+ for (; timer; timer = q_first)
+ {
+ if (timer->at_time > t + 200e-6) /* Within 200 us is close enough */
+ break;
+
+ if (EDebug(EDBUG_TYPE_TIMERS))
+ Eprintf("TimersRun - run %p: func=%p data=%p: %8.3lf\n", timer,
+ timer->func, timer->data, timer->at_time - t);
+
+ q_first = timer->next;
+
+ /* Run this callback */
+ timer->again = timer->func(timer->data);
+ q_run = timer;
+ }
+
+ if (q_old != q_first)
+ {
+ /* At least one timer has run */
+ q_run->next = NULL; /* Terminate expired timer list */
+
+ /* Re-schedule/remove timers that have run */
+ for (timer = q_old; timer; timer = q_old)
+ {
+ q_old = timer->next;
+ if (timer->again)
+ {
+ timer->at_time += timer->in_time;
+ _TimerSet(timer); /* Add to timer queue */
+ }
+ else
+ {
+ _TimerDel(timer);
+ }
+ }
+ }
+
+ if (tt <= 0.) /* Avoid some redundant debug output */
+ return tt;
+
+ timer = q_first;
+
+ if (EDebug(EDBUG_TYPE_TIMERS) > 1)
+ {
+ Timer *qp;
+
+ for (qp = timer; qp; qp = qp->next)
+ Eprintf("TimersRun - pend %p: func=%p data=%p: %8.3lf\n", qp,
+ qp->func, qp->data, qp->at_time - t);
+ }
+
+ if (timer)
+ {
+ t = timer->at_time - t;
+ if (t <= 0.)
+ t = 1e-6;
+ }
+ else
+ {
+ t = 0.;
+ }
+
+ if (EDebug(EDBUG_TYPE_TIMERS))
+ Eprintf("TimersRun - next in %8.3lf\n", t);
+
+ return t;
+}
+
+int
+TimerDel(Timer * timer)
+{
+ Timer *qe, *ptr, *pptr;
+
+ pptr = NULL;
+ for (ptr = q_first; ptr; pptr = ptr, ptr = ptr->next)
+ {
+ qe = ptr;
+ if (qe != timer)
+ continue;
+
+ /* Match - remove it from the queue */
+ if (pptr)
+ pptr->next = qe->next;
+ else
+ q_first = qe->next;
+
+ /* free it */
+ _TimerDel(timer);
+
+ /* done */
+ return 1;
+ }
+
+ return 0;
+}
+
+void
+TimerSetInterval(Timer * timer, double dt)
+{
+ timer->in_time = dt;
+}
+
+/*
+ * Idlers
+ */
+static Ecore_List *idler_list = NULL;
+
+typedef void (IdlerFunc) (void *data);
+
+struct _idler {
+ IdlerFunc *func;
+ void *data;
+};
+
+Idler *
+IdlerAdd(IdlerFunc * func, void *data)
+{
+ Idler *id;
+
+ id = EMALLOC(Idler, 1);
+ if (!id)
+ return NULL;
+
+ id->func = func;
+ id->data = data;
+
+ if (!idler_list)
+ idler_list = ecore_list_new();
+
+ ecore_list_append(idler_list, id);
+
+ return id;
+}
+
+void
+IdlerDel(Idler * id)
+{
+ ecore_list_node_remove(idler_list, id);
+ Efree(id);
+}
+
+static void
+_IdlerRun(void *_id, void *prm __UNUSED__)
+{
+ Idler *id = (Idler *) _id;
+
+ id->func(id->data);
+}
+
+void
+IdlersRun(void)
+{
+ if (EDebug(EDBUG_TYPE_IDLERS))
+ Eprintf("IdlersRun\n");
+
+ ecore_list_for_each(idler_list, _IdlerRun, NULL);
+}
+
+/*
+ * Animators
+ */
+#define DEBUG_ANIMATORS 0
+static Ecore_List *animator_list = NULL;
+static Timer *animator_timer = NULL;
+
+typedef int (AnimatorFunc) (void *data);
+
+struct _animator {
+ AnimatorFunc *func;
+ void *data;
+};
+
+static void
+_AnimatorRun(void *_an, void *prm __UNUSED__)
+{
+ Animator *an = (Animator *) _an;
+ int again;
+
+#if DEBUG_ANIMATORS > 1
+ Eprintf("AnimatorRun %p\n", an);
+#endif
+ again = an->func(an->data);
+ if (!again)
+ AnimatorDel(an);
+}
+
+static int
+AnimatorsRun(void *data __UNUSED__)
+{
+ ecore_list_for_each(animator_list, _AnimatorRun, NULL);
+
+ if (ecore_list_count(animator_list))
+ {
+ TimerSetInterval(animator_timer, 1e-3 * Conf.animation.step);
+ return 1;
+ }
+ else
+ {
+ animator_timer = NULL;
+ return 0;
+ }
+}
+
+Animator *
+AnimatorAdd(AnimatorFunc * func, void *data)
+{
+ Animator *an;
+
+ an = EMALLOC(Animator, 1);
+ if (!an)
+ return NULL;
+
+#if DEBUG_ANIMATORS
+ Eprintf("AnimatorAdd %p func=%p data=%p\n", an, func, data);
+#endif
+ an->func = func;
+ an->data = data;
+
+ if (!animator_list)
+ animator_list = ecore_list_new();
+
+ ecore_list_append(animator_list, an);
+
+ if (ecore_list_count(animator_list) == 1)
+ {
+ if (Conf.animation.step <= 0)
+ Conf.animation.step = 1;
+ /* Animator list was empty - Add to timer qeueue */
+ TIMER_ADD(animator_timer, 1e-3 * Conf.animation.step,
+ AnimatorsRun, NULL);
+ }
+
+ return an;
+}
+
+void
+AnimatorDel(Animator * an)
+{
+#if DEBUG_ANIMATORS
+ Eprintf("AnimatorDel %p func=%p data=%p\n", an, an->func, an->data);
+#endif
+
+ ecore_list_node_remove(animator_list, an);
+ Efree(an);
+
+ if (ecore_list_count(animator_list) == 0)
+ {
+ /* Animator list is empty - Remove from timer qeueue */
+ TIMER_DEL(animator_timer);
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _TIMERS_H_
+#define _TIMERS_H_
+
+#include "etypes.h"
+
+/* timers.c */
+double GetTime(void);
+
+Timer *TimerAdd(double in_time,
+ int (*func) (void *data), void *data);
+int TimerDel(Timer * timer);
+void TimerSetInterval(Timer * timer, double dt);
+double TimersRun(double t);
+
+#define TIMER_ADD(timer, in, func, prm) \
+ timer = TimerAdd(in, func, prm)
+#define TIMER_DEL(timer) \
+ if (timer) { TimerDel(timer); timer = NULL; }
+
+Idler *IdlerAdd(void (*func) (void *data), void *data);
+void IdlerDel(Idler * id);
+void IdlersRun(void);
+
+Animator *AnimatorAdd(int (*func) (void *data), void *data);
+void AnimatorDel(Animator * an);
+
+#endif /* _TIMERS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "aclass.h"
+#include "conf.h"
+#include "dialog.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "eobj.h"
+#include "iclass.h"
+#include "settings.h"
+#include "tclass.h"
+#include "timers.h"
+#include "tooltips.h"
+#include "xwin.h"
+
+static Ecore_List *tt_list = NULL;
+static Timer *tt_timer = NULL;
+
+static struct {
+ char enable;
+ char showroottooltip;
+ int delay; /* milliseconds */
+} Conf_tooltips;
+
+static struct {
+ int inhibit;
+ char root_motion_mask_set;
+ CB_GetAclass *ac_func;
+ void *ac_data;
+} Mode_tooltips;
+
+struct _tooltip {
+ const char *name;
+ ImageClass *iclass[5];
+ TextClass *tclass;
+ int dist;
+ Win iwin;
+ EObj *win[5];
+ char visible;
+ ImageClass *tooltippic;
+ unsigned int ref_count;
+};
+
+#define TTWIN win[4]
+#define TTICL iclass[4]
+
+static void
+TooltipRealize(ToolTip * tt)
+{
+ int i, wh;
+ EObj *eo;
+
+ for (i = 0; i < 5; i++)
+ {
+ if (!tt->iclass[i])
+ continue;
+
+ wh = (i + 1) * 8;
+ eo = EobjWindowCreate(EOBJ_TYPE_MISC, -50, -100, wh, wh, 1, tt->name);
+ eo->fade = eo->shadow = 1;
+ EobjChangeOpacity(eo, OpacityFromPercent(Conf.opacity.tooltips));
+ tt->win[i] = eo;
+ }
+ tt->iwin = ECreateWindow(EobjGetWin(tt->TTWIN), 0, 0, 1, 1, 0);
+}
+
+static ToolTip *
+TooltipCreate(const char *name, const char *ic0, const char *ic1,
+ const char *ic2, const char *ic3, const char *ic4,
+ const char *tclass, int dist, const char *tooltippic)
+{
+ ToolTip *tt;
+ ImageClass *ic;
+
+ if (ic0 == NULL || tclass == NULL)
+ return NULL;
+
+ ic = ImageclassAlloc(ic0, 0);
+ if (!ic)
+ return NULL;
+
+ tt = ECALLOC(ToolTip, 1);
+ if (!tt)
+ return NULL;
+
+ tt->name = Estrdup(name);
+ tt->iclass[0] = ImageclassAlloc(ic1, 0);
+ tt->iclass[1] = ImageclassAlloc(ic2, 0);
+ tt->iclass[2] = ImageclassAlloc(ic3, 0);
+ tt->iclass[3] = ImageclassAlloc(ic4, 0);
+ tt->iclass[4] = ic;
+ tt->tclass = TextclassAlloc(tclass, 1);
+ tt->tooltippic = ImageclassAlloc(tooltippic, 0);
+
+ tt->dist = dist;
+
+ if (!tt_list)
+ tt_list = ecore_list_new();
+ ecore_list_prepend(tt_list, tt);
+
+ return tt;
+}
+
+#if 0 /* Not used */
+static void
+TooltipDestroy(ToolTip * tt)
+{
+ if (!tt)
+ return;
+
+ if (tt->ref_count > 0)
+ {
+ DialogOK("ToolTip Error!", _("%u references remain\n"), tt->ref_count);
+ }
+}
+#endif
+
+int
+TooltipConfigLoad(FILE * fs)
+{
+ int err = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ char name[64];
+ char iclass[64];
+ char bubble1[64], bubble2[64], bubble3[64], bubble4[64];
+ char tclass[64];
+ char tooltiphelppic[64];
+ int i1;
+ int distance = 0;
+
+ name[0] = iclass[0] = tclass[0] = '\0';
+ bubble1[0] = bubble2[0] = bubble3[0] = bubble4[0] = '\0';
+ tooltiphelppic[0] = '\0';
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ switch (i1)
+ {
+ case CONFIG_CLOSE:
+ if (iclass[0] && tclass[0] && name[0])
+ TooltipCreate(name, iclass, bubble1, bubble2,
+ bubble3, bubble4, tclass, distance,
+ tooltiphelppic);
+ goto done;
+
+ case CONFIG_CLASSNAME:
+ if (TooltipFind(s2))
+ {
+ SkipTillEnd(fs);
+ goto done;
+ }
+ STRCPY(name, s2);
+ break;
+ case TOOLTIP_DRAWICLASS:
+ case CONFIG_IMAGECLASS:
+ STRCPY(iclass, s2);
+ break;
+ case TOOLTIP_BUBBLE1:
+ STRCPY(bubble1, s2);
+ break;
+ case TOOLTIP_BUBBLE2:
+ STRCPY(bubble2, s2);
+ break;
+ case TOOLTIP_BUBBLE3:
+ STRCPY(bubble3, s2);
+ break;
+ case TOOLTIP_BUBBLE4:
+ STRCPY(bubble4, s2);
+ break;
+ case CONFIG_TEXT:
+ STRCPY(tclass, s2);
+ break;
+ case TOOLTIP_DISTANCE:
+ distance = atoi(s2);
+ break;
+ case TOOLTIP_HELP_PIC:
+ STRCPY(tooltiphelppic, s2);
+ break;
+ default:
+ ConfigParseError("ToolTip", s);
+ break;
+ }
+ }
+ err = -1;
+
+ done:
+ return err;
+}
+
+static ImageClass *
+TooltipCreateIclass(const char *name, const char *file, int *pw, int *ph)
+{
+ ImageClass *ic;
+ EImage *im;
+ int w, h;
+
+ ic = ImageclassFind(name, 0);
+ if (!ic)
+ ic = ImageclassCreateSimple(name, file);
+ im = ImageclassGetImage(ic, 0, 0, 0);
+
+ if (im)
+ {
+ EImageGetSize(im, &w, &h);
+ if (*pw < w)
+ *pw = w;
+ if (*ph < h)
+ *ph = h;
+ }
+
+ return ic;
+}
+
+static void
+TooltipIclassPaste(ToolTip * tt, const char *ic_name, int x, int y, int *px)
+{
+ ImageClass *ic;
+ EImage *im;
+ int w, h;
+
+ ic = ImageclassFind(ic_name, 0);
+ im = ImageclassGetImage(ic, 0, 0, 0);
+ if (!ic || !im)
+ return;
+
+ EImageGetSize(im, &w, &h);
+ EImageRenderOnDrawable(im, EobjGetWin(tt->TTWIN), None, EIMAGE_BLEND, x, y,
+ w, h);
+
+ *px = x + w;
+}
+
+void
+TooltipShow(ToolTip * tt, const char *text, ActionClass * ac, int x, int y)
+{
+ int i, w, h, ix, iy, iw, ih, dx, dy, xx, yy;
+ int ww, hh, adx, ady, dist;
+ int headline_h = 0, headline_w = 0, icons_width =
+ 0, labels_width = 0, double_w = 0;
+ EImage *im;
+ int *heights = NULL;
+ ImageClass *ic;
+ EImageBorder *pad;
+ int cols[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+ int num, modifiers;
+ Action *aa;
+ const char *tts;
+ EObj *eo;
+
+ if (!tt || Mode.mode != MODE_NONE)
+ return;
+
+ if (!tt->TTWIN)
+ {
+ TooltipRealize(tt);
+ if (!tt->TTWIN)
+ return;
+ }
+
+ /* if we get an actionclass, look for tooltip action texts */
+ h = 0;
+ if (ac)
+ {
+ num = ActionclassGetActionCount(ac);
+ heights = EMALLOC(int, num);
+
+ for (i = 0; i < num; i++)
+ {
+ int temp_w, temp_h;
+
+ temp_w = 0;
+ temp_h = 0;
+
+ aa = ActionclassGetAction(ac, i);
+ if (!aa)
+ continue;
+
+ tts = ActionGetTooltipString(aa);
+ if (!tts)
+ continue;
+ tts = _(tts);
+
+ TextSize(tt->tclass, 0, 0, STATE_NORMAL, tts, &temp_w, &temp_h,
+ 17);
+ if (temp_w > labels_width)
+ labels_width = temp_w;
+ temp_w = 0;
+
+ if (ActionGetEvent(aa) == EVENT_DOUBLE_DOWN)
+ {
+ TextSize(tt->tclass, 0, 0, STATE_NORMAL, "2x", &double_w,
+ &temp_h, 17);
+ if (cols[0] < double_w)
+ cols[0] = double_w;
+ }
+
+ if (ActionGetAnybutton(aa))
+ {
+ TooltipCreateIclass("TOOLTIP_MOUSEBUTTON_ANY",
+ "pix/mouse_any.png", &cols[1], &temp_h);
+ }
+ else
+ switch (ActionGetButton(aa))
+ {
+ case 1:
+ ic = TooltipCreateIclass("TOOLTIP_MOUSEBUTTON_1",
+ "pix/mouse_1.png", &cols[1],
+ &temp_h);
+ break;
+ case 2:
+ ic = TooltipCreateIclass("TOOLTIP_MOUSEBUTTON_2",
+ "pix/mouse_2.png", &cols[1],
+ &temp_h);
+ break;
+ case 3:
+ ic = TooltipCreateIclass("TOOLTIP_MOUSEBUTTON_3",
+ "pix/mouse_3.png", &cols[1],
+ &temp_h);
+ break;
+ case 4:
+ ic = TooltipCreateIclass("TOOLTIP_MOUSEBUTTON_4",
+ "pix/mouse_4.png", &cols[1],
+ &temp_h);
+ break;
+ case 5:
+ ic = TooltipCreateIclass("TOOLTIP_MOUSEBUTTON_5",
+ "pix/mouse_5.png", &cols[1],
+ &temp_h);
+ break;
+ case 0:
+ default:
+ break;
+ }
+
+ modifiers = ActionGetModifiers(aa);
+ if (modifiers)
+ {
+ if (modifiers & ShiftMask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_SHIFT",
+ "pix/key_shift.png",
+ &cols[2], &temp_h);
+ if (modifiers & LockMask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_LOCK",
+ "pix/key_lock.png",
+ &cols[3], &temp_h);
+ if (modifiers & ControlMask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_CTRL",
+ "pix/key_ctrl.png",
+ &cols[4], &temp_h);
+ if (modifiers & Mod1Mask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_MOD1",
+ "pix/key_mod1.png",
+ &cols[5], &temp_h);
+ if (modifiers & Mod2Mask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_MOD2",
+ "pix/key_mod2.png",
+ &cols[6], &temp_h);
+ if (modifiers & Mod3Mask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_MOD3",
+ "pix/key_mod3.png",
+ &cols[7], &temp_h);
+ if (modifiers & Mod4Mask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_MOD4",
+ "pix/key_mod4.png",
+ &cols[8], &temp_h);
+ if (modifiers & Mod5Mask)
+ ic = TooltipCreateIclass("TOOLTIP_KEY_MOD5",
+ "pix/key_mod5.png",
+ &cols[9], &temp_h);
+ }
+
+ temp_w = cols[0] + cols[1] + cols[2] + cols[3] + cols[4] +
+ cols[5] + cols[6] + cols[7] + cols[8] + cols[9];
+
+ if (temp_w > icons_width)
+ icons_width = temp_w;
+ heights[i] = temp_h;
+ h += temp_h;
+ }
+ }
+
+ TextSize(tt->tclass, 0, 0, STATE_NORMAL, text, &headline_w, &headline_h, 17);
+ if (headline_w < icons_width + labels_width)
+ w = icons_width + labels_width;
+ else
+ w = headline_w;
+ h += headline_h;
+
+ ic = tt->TTICL;
+ pad = ImageclassGetPadding(ic);
+ iw = 0;
+ ih = 0;
+ if (tt->tooltippic)
+ {
+ im = ImageclassGetImage(tt->tooltippic, 0, 0, 0);
+ ix = 0;
+ iy = 0;
+ if (im)
+ {
+ EImageGetSize(im, &iw, &ih);
+ EImageFree(im);
+ }
+ w += iw;
+ if (h < ih)
+ h = ih;
+ }
+ w += pad->left + pad->right;
+ h += pad->top + pad->bottom;
+
+ if ((tt->tooltippic) && (iw > 0) && (ih > 0))
+ {
+ ix = pad->left;
+ iy = (h - ih) / 2;
+ EMoveResizeWindow(tt->iwin, ix, iy, iw, ih);
+ EMapWindow(tt->iwin);
+ ImageclassApply(tt->tooltippic, tt->iwin, 0, 0, STATE_NORMAL, ST_SOLID);
+ }
+ else
+ EUnmapWindow(tt->iwin);
+
+ dx = x - WinGetW(VROOT) / 2;
+ dy = y - WinGetH(VROOT) / 2;
+
+ if ((dy == 0) && (dx == 0))
+ dy = -1;
+
+ adx = dx;
+ if (adx < 0)
+ adx = -adx;
+ ady = dy;
+ if (ady < 0)
+ ady = -ady;
+ if (adx < ady)
+ /* +-------+ */
+ /* |\#####/| */
+ /* | \###/ | */
+ /* | \#/ | */
+ /* | /#\ | */
+ /* | /###\ | */
+ /* |/#####\| */
+ /* +-------+ */
+ {
+ if (dy == 0)
+ {
+ dy = 1;
+ ady = 1;
+ }
+ dist = tt->dist;
+ ady = ady / dy;
+
+ if (tt->win[0])
+ {
+ yy = y - ((ady * 10 * dist) / 100);
+ xx = x - (dist * 10 * dx) / (100 * WinGetW(VROOT) / 2);
+ EobjMove(tt->win[0], xx - 4, yy - 4);
+ }
+
+ if (tt->win[1])
+ {
+ yy = y - ((ady * 30 * dist) / 100);
+ xx = x - (dist * 30 * dx) / (100 * WinGetW(VROOT) / 2);
+ EobjMove(tt->win[1], xx - 8, yy - 8);
+ }
+
+ if (tt->win[2])
+ {
+ yy = y - ((ady * 50 * dist) / 100);
+ xx = x - (dist * 50 * dx) / (100 * WinGetW(VROOT) / 2);
+ EobjMove(tt->win[2], xx - 12, yy - 12);
+ }
+
+ if (tt->win[3])
+ {
+ yy = y - ((ady * 80 * dist) / 100);
+ xx = x - (dist * 80 * dx) / (100 * WinGetW(VROOT) / 2);
+ EobjMove(tt->win[3], xx - 16, yy - 16);
+ }
+
+ yy = y - ((ady * 100 * dist) / 100);
+ xx = x - (dist * 100 * dx) / (100 * WinGetW(VROOT) / 2);
+ if (ady < 0)
+ hh = 0;
+ else
+ hh = h;
+ ww = (w / 2) + ((dx * w) / (WinGetW(VROOT) / 2));
+ }
+ else
+ /* +-------+ */
+ /* |\ /| */
+ /* |#\ /#| */
+ /* |##\ /##| */
+ /* |##/ \##| */
+ /* |#/ \#| */
+ /* |/ \| */
+ /* +-------+ */
+ {
+ if (dx == 0)
+ {
+ dx = 1;
+ adx = 1;
+ }
+ dist = tt->dist;
+ adx = adx / dx;
+
+ if (tt->win[0])
+ {
+ xx = x - ((adx * 10 * dist) / 100);
+ yy = y - (dist * 10 * dy) / (100 * WinGetH(VROOT) / 2);
+ EobjMove(tt->win[0], xx - 4, yy - 4);
+ }
+
+ if (tt->win[1])
+ {
+ xx = x - ((adx * 30 * dist) / 100);
+ yy = y - (dist * 30 * dy) / (100 * WinGetH(VROOT) / 2);
+ EobjMove(tt->win[1], xx - 8, yy - 8);
+ }
+
+ if (tt->win[2])
+ {
+ xx = x - ((adx * 50 * dist) / 100);
+ yy = y - (dist * 50 * dy) / (100 * WinGetH(VROOT) / 2);
+ EobjMove(tt->win[2], xx - 12, yy - 12);
+ }
+
+ if (tt->win[3])
+ {
+ xx = x - ((adx * 80 * dist) / 100);
+ yy = y - (dist * 80 * dy) / (100 * WinGetH(VROOT) / 2);
+ EobjMove(tt->win[3], xx - 16, yy - 16);
+ }
+
+ xx = x - ((adx * 100 * dist) / 100);
+ yy = y - (dist * 100 * dy) / (100 * WinGetH(VROOT) / 2);
+ if (adx < 0)
+ ww = 0;
+ else
+ ww = w;
+ hh = (h / 2) + ((dy * h) / (WinGetH(VROOT) / 2));
+ }
+
+ EobjMoveResize(tt->TTWIN, xx - ww, yy - hh, w, h);
+
+ for (i = 0; i < 5; i++)
+ {
+ eo = tt->win[i];
+ if (!eo)
+ continue;
+ ImageclassApply(tt->iclass[i], EobjGetWin(eo), 0, 0, STATE_NORMAL,
+ ST_TOOLTIP);
+ EobjShapeUpdate(eo, 0);
+ EobjMap(eo, 0);
+ }
+
+ xx = pad->left + iw;
+
+ /* draw the ordinary tooltip text */
+ TextDraw(tt->tclass, EobjGetWin(tt->TTWIN), None, 0, 0, STATE_NORMAL, text,
+ xx, pad->top, headline_w, headline_h, 17, 512);
+
+ /* draw the icons and labels, if any */
+ if (ac)
+ {
+ num = ActionclassGetActionCount(ac);
+ y = pad->top + headline_h;
+ xx = pad->left + double_w;
+
+ for (i = 0; i < num; i++)
+ {
+ x = xx + iw;
+
+ aa = ActionclassGetAction(ac, i);
+ if (!aa)
+ continue;
+
+ tts = ActionGetTooltipString(aa);
+ if (!tts)
+ continue;
+ tts = _(tts);
+
+ if (ActionGetEvent(aa) == EVENT_DOUBLE_DOWN)
+ {
+ TextDraw(tt->tclass, EobjGetWin(tt->TTWIN), None, 0, 0,
+ STATE_NORMAL, "2x", xx + iw - double_w, y, double_w,
+ heights[i], 17, 0);
+ }
+
+ if (ActionGetAnybutton(aa))
+ {
+ TooltipIclassPaste(tt, "TOOLTIP_MOUSEBUTTON_ANY", x, y, &x);
+ }
+ else
+ switch (ActionGetButton(aa))
+ {
+ case 1:
+ TooltipIclassPaste(tt, "TOOLTIP_MOUSEBUTTON_1", x, y, &x);
+ break;
+ case 2:
+ TooltipIclassPaste(tt, "TOOLTIP_MOUSEBUTTON_2", x, y, &x);
+ break;
+ case 3:
+ TooltipIclassPaste(tt, "TOOLTIP_MOUSEBUTTON_3", x, y, &x);
+ break;
+ case 4:
+ TooltipIclassPaste(tt, "TOOLTIP_MOUSEBUTTON_4", x, y, &x);
+ break;
+ case 5:
+ TooltipIclassPaste(tt, "TOOLTIP_MOUSEBUTTON_5", x, y, &x);
+ break;
+ default:
+ break;
+ }
+
+ modifiers = ActionGetModifiers(aa);
+ if (modifiers)
+ {
+ if (modifiers & ShiftMask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_SHIFT", x, y, &x);
+ if (modifiers & LockMask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_LOCK", x, y, &x);
+ if (modifiers & ControlMask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_CTRL", x, y, &x);
+ if (modifiers & Mod1Mask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_MOD1", x, y, &x);
+ if (modifiers & Mod2Mask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_MOD2", x, y, &x);
+ if (modifiers & Mod3Mask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_MOD3", x, y, &x);
+ if (modifiers & Mod4Mask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_MOD4", x, y, &x);
+ if (modifiers & Mod5Mask)
+ TooltipIclassPaste(tt, "TOOLTIP_KEY_MOD5", x, y, &x);
+ }
+
+ TextDraw(tt->tclass, EobjGetWin(tt->TTWIN), None, 0, 0,
+ STATE_NORMAL, tts, pad->left + icons_width + iw, y,
+ labels_width, heights[i], 17, 0);
+ y += heights[i];
+
+ }
+ }
+
+ Efree(heights);
+}
+
+void
+TooltipHide(ToolTip * tt)
+{
+ int i;
+
+ if (!tt || !tt->TTWIN || !tt->TTWIN->shown)
+ return;
+
+ for (i = 4; i >= 0; i--)
+ if (tt->win[i])
+ EobjUnmap(tt->win[i]);
+}
+
+static int
+_TooltipMatchName(const void *data, const void *match)
+{
+ return strcmp(((const ToolTip *)data)->name, (const char *)match);
+}
+
+ToolTip *
+TooltipFind(const char *name)
+{
+ return (ToolTip *) ecore_list_find(tt_list, _TooltipMatchName, name);
+}
+
+/*
+ * Tooltips
+ */
+
+void
+TooltipsHide(void)
+{
+ ToolTip *tt;
+
+ TooltipsSetPending(0, NULL, NULL);
+
+ ECORE_LIST_FOR_EACH(tt_list, tt) TooltipHide(tt);
+}
+
+void
+TooltipsEnable(int enable)
+{
+ if (enable)
+ {
+ if (Mode_tooltips.inhibit > 0)
+ Mode_tooltips.inhibit--;
+ }
+ else
+ {
+ Mode_tooltips.inhibit++;
+ TooltipsHide();
+ }
+}
+
+static ToolTip *ttip = NULL;
+
+static int
+ToolTipTimeout(void *data __UNUSED__)
+{
+ int x, y;
+ unsigned int mask;
+ ActionClass *ac;
+ const char *tts;
+
+ if (!ttip)
+ ttip = TooltipFind("DEFAULT");
+ if (!ttip)
+ goto done;
+
+ /* In the case of multiple screens, check to make sure
+ * the root window is still where the mouse is... */
+ if (!EQueryPointer(NULL, &x, &y, NULL, &mask))
+ goto done;
+
+ /* In case this is a virtual root */
+ if (x < 0 || y < 0 || x >= WinGetW(VROOT) || y >= WinGetH(VROOT))
+ goto done;
+
+ /* dont pop up tooltip is mouse button down */
+ if (mask &
+ (Button1Mask | Button2Mask | Button3Mask | Button4Mask | Button5Mask))
+ goto done;
+
+ if (!Mode_tooltips.ac_func)
+ goto done;
+ ac = Mode_tooltips.ac_func(Mode_tooltips.ac_data);
+ if (!ac)
+ goto done;
+
+ tts = ActionclassGetTooltipString(ac);
+ if (!tts)
+ goto done;
+
+ TooltipShow(ttip, _(tts), ac, x, y);
+
+ done:
+ tt_timer = NULL;
+ return 0;
+}
+
+/*
+ * We want this on
+ * ButtonPress, ButtonRelease, MotionNotify, EnterNotify, LeaveNotify
+ */
+void
+TooltipsSetPending(int type, CB_GetAclass * func, void *data)
+{
+ if (!Mode_tooltips.ac_func && !func)
+ return;
+
+ Mode_tooltips.ac_func = func;
+ Mode_tooltips.ac_data = data;
+
+ TooltipHide(ttip);
+
+ TIMER_DEL(tt_timer);
+
+ if (Conf_tooltips.showroottooltip)
+ {
+ if (!Mode_tooltips.root_motion_mask_set)
+ {
+ Mode_tooltips.root_motion_mask_set = 1;
+ ESelectInputChange(VROOT, PointerMotionMask, 0);
+ }
+ }
+ else
+ {
+ if (Mode_tooltips.root_motion_mask_set)
+ {
+ Mode_tooltips.root_motion_mask_set = 0;
+ ESelectInputChange(VROOT, 0, PointerMotionMask);
+ }
+ }
+
+ if (!func)
+ return;
+ if (Mode_tooltips.inhibit || !Conf_tooltips.enable)
+ return;
+ if (type && !Conf_tooltips.showroottooltip)
+ return;
+
+ TIMER_ADD(tt_timer, 0.001 * Conf_tooltips.delay, ToolTipTimeout, NULL);
+}
+
+/*
+ * Tooltips Module
+ */
+
+static void
+TooltipsSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ memset(&Mode_tooltips, 0, sizeof(Mode_tooltips));
+ break;
+ case ESIGNAL_AREA_SWITCH_START:
+ case ESIGNAL_DESK_SWITCH_START:
+ case ESIGNAL_EWIN_CHANGE:
+ TooltipsHide();
+ break;
+ }
+}
+
+#if ENABLE_DIALOGS
+/*
+ * Configuration dialog
+ */
+static char tmp_tooltips;
+static int tmp_tooltiptime;
+static char tmp_roottip;
+
+static void
+CB_ConfigureTooltips(Dialog * d __UNUSED__, int val, void *data __UNUSED__)
+{
+ if (val < 2)
+ {
+ Conf_tooltips.enable = tmp_tooltips;
+ Conf_tooltips.delay = tmp_tooltiptime * 10;
+ Conf_tooltips.showroottooltip = tmp_roottip;
+ }
+ autosave();
+}
+
+static void
+_DlgFillTooltips(Dialog * d __UNUSED__, DItem * table, void *data __UNUSED__)
+{
+ DItem *di;
+
+ tmp_tooltips = Conf_tooltips.enable;
+ tmp_tooltiptime = Conf_tooltips.delay / 10;
+ tmp_roottip = Conf_tooltips.showroottooltip;
+
+ DialogItemTableSetOptions(table, 2, 0, 0, 0);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Display Tooltips"));
+ DialogItemCheckButtonSetPtr(di, &tmp_tooltips);
+
+ di = DialogAddItem(table, DITEM_CHECKBUTTON);
+ DialogItemSetColSpan(di, 2);
+ DialogItemSetText(di, _("Display Root Window Tips"));
+ DialogItemCheckButtonSetPtr(di, &tmp_roottip);
+
+ di = DialogAddItem(table, DITEM_TEXT);
+ DialogItemSetAlign(di, 0, 512);
+ DialogItemSetText(di, _("Tooltip Delay:\n"));
+
+ di = DialogAddItem(table, DITEM_SLIDER);
+ DialogItemSliderSetBounds(di, 0, 300);
+ DialogItemSliderSetUnits(di, 10);
+ DialogItemSliderSetJump(di, 25);
+ DialogItemSliderSetValPtr(di, &tmp_tooltiptime);
+}
+
+const DialogDef DlgTooltips = {
+ "CONFIGURE_TOOLTIPS",
+ N_("Tooltips"),
+ N_("Tooltip Settings"),
+ SOUND_SETTINGS_TOOLTIPS,
+ "pix/tips.png",
+ N_("Enlightenment Tooltip\n" "Settings Dialog\n"),
+ _DlgFillTooltips,
+ DLG_OAC, CB_ConfigureTooltips,
+};
+#endif /* ENABLE_DIALOGS */
+
+static const CfgItem TooltipsCfgItems[] = {
+ CFG_ITEM_BOOL(Conf_tooltips, enable, 1),
+ CFG_ITEM_BOOL(Conf_tooltips, showroottooltip, 1),
+ CFG_ITEM_INT(Conf_tooltips, delay, 1500),
+};
+#define N_CFG_ITEMS (sizeof(TooltipsCfgItems)/sizeof(CfgItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModTooltips;
+const EModule ModTooltips = {
+ "tooltips", "tt",
+ TooltipsSighan,
+ {0, NULL},
+ {N_CFG_ITEMS, TooltipsCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _TOOLTIPS_H_
+#define _TOOLTIPS_H_
+
+#include "etypes.h"
+
+typedef struct _tooltip ToolTip;
+
+typedef ActionClass *(CB_GetAclass) (void *data);
+
+int TooltipConfigLoad(FILE * fs);
+
+void TooltipShow(ToolTip * tt, const char *text,
+ ActionClass * ac, int x, int y);
+void TooltipHide(ToolTip * tt);
+
+ToolTip *TooltipFind(const char *name);
+
+void TooltipsSetPending(int type, CB_GetAclass * func,
+ void *data);
+void TooltipsHide(void);
+void TooltipsEnable(int enable);
+
+#endif /* _TOOLTIPS_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "tclass.h"
+
+#if FONT_TYPE_IFT
+#include "eimage.h"
+#include <Imlib2.h>
+
+/*
+ * Imlib2/FreeType
+ */
+__EXPORT__ extern const FontOps FontOps_ift;
+
+typedef void EFont;
+
+static void
+EFonts_Init(void)
+{
+#if !TEST_TTFONT
+ char s[4096];
+
+ Esnprintf(s, sizeof(s), "%s/ttfonts", Mode.theme.path);
+ imlib_add_path_to_font_path(s);
+ Esnprintf(s, sizeof(s), "%s/fonts", EDirRoot());
+ imlib_add_path_to_font_path(s);
+#endif
+}
+
+static EFont *
+Efont_load(const char *file, int size)
+{
+ static char ttfont_path_set = 0;
+ char s[4096];
+ EFont *f;
+
+ if (!ttfont_path_set)
+ {
+ EFonts_Init();
+ ttfont_path_set = 1;
+ }
+
+ Esnprintf(s, sizeof(s), "%s/%d", file, size);
+ f = imlib_load_font(s);
+
+ return f;
+}
+
+static void
+Efont_free(EFont * f)
+{
+ imlib_context_set_font(f);
+ imlib_free_font();
+}
+
+static void
+Efont_extents(EFont * f, const char *text, int len __UNUSED__,
+ int *width, int *height, int *ascent)
+{
+ int h, asc, dsc;
+
+ imlib_context_set_font(f);
+ imlib_get_text_advance(text, width, &h);
+ asc = imlib_get_font_ascent();
+ dsc = imlib_get_font_descent();
+ *height = asc + dsc;
+ *ascent = asc;
+}
+
+static void
+EFont_draw_string(EImage * im, EFont * f, int x, int y,
+ int r, int g, int b, const char *text)
+{
+ imlib_context_set_image(im);
+ imlib_context_set_color(r, g, b, 255);
+ imlib_context_set_font(f);
+ imlib_text_draw(x, y - imlib_get_maximum_font_ascent(), text);
+}
+
+typedef struct {
+ EFont *font;
+ EImage *im;
+ int r, g, b;
+} FontCtxIft;
+
+static int
+_ift_Load(TextState * ts, const char *name __UNUSED__)
+{
+ EFont *font;
+ FontCtxIft *fdc;
+ char s[1024], *ss;
+ int len;
+
+ ss = strchr(ts->fontname, '/');
+ if (!ss)
+ return -1;
+ len = ss - ts->fontname;
+ if (len > 1000)
+ return -1;
+
+ memcpy(s, ts->fontname, len);
+ s[len] = '\0';
+ font = Efont_load(s, atoi(ss + 1));
+ if (!font)
+ return -1;
+
+ fdc = EMALLOC(FontCtxIft, 1);
+ if (!fdc)
+ return -1;
+ fdc->font = font;
+ ts->fdc = fdc;
+ ts->need_utf8 = 1;
+ ts->type = FONT_TYPE_IFT;
+ ts->ops = &FontOps_ift;
+ return 0;
+}
+
+static void
+_ift_Unload(TextState * ts)
+{
+ FontCtxIft *fdc = (FontCtxIft *) ts->fdc;
+
+ Efont_free(fdc->font);
+}
+
+static void
+_ift_TextSize(TextState * ts, const char *text, int len,
+ int *width, int *height, int *ascent)
+{
+ FontCtxIft *fdc = (FontCtxIft *) ts->fdc;
+
+ Efont_extents(fdc->font, text, len, width, height, ascent);
+}
+
+static void
+_ift_TextDraw(TextState * ts, int x, int y, const char *text,
+ int len __UNUSED__)
+{
+ FontCtxIft *fdc = (FontCtxIft *) ts->fdc;
+
+ EFont_draw_string(fdc->im, fdc->font, x, y, fdc->r, fdc->g, fdc->b, text);
+}
+
+static int
+_ift_FdcInit(TextState * ts __UNUSED__, Win win __UNUSED__,
+ Drawable draw __UNUSED__)
+{
+ return 0;
+}
+
+static void
+_ift_FdcSetDrawable(TextState * ts, unsigned long draw)
+{
+ FontCtxIft *fdc = (FontCtxIft *) ts->fdc;
+
+ fdc->im = (EImage *) draw;
+}
+
+static void
+_ift_FdcSetColor(TextState * ts __UNUSED__, EColor * ec)
+{
+ FontCtxIft *fdc = (FontCtxIft *) ts->fdc;
+
+ GET_COLOR(ec, fdc->r, fdc->g, fdc->b);
+}
+
+const FontOps FontOps_ift = {
+ _ift_Load, _ift_Unload, _ift_TextSize, TextstateTextFit, _ift_TextDraw,
+ _ift_FdcInit, NULL, _ift_FdcSetDrawable, _ift_FdcSetColor
+};
+
+#if TEST_TTFONT
+#include <time.h>
+
+Display *disp;
+
+int
+main(int argc, char **argv)
+{
+ Efont *f;
+ GC gc;
+ XGCValues gcv;
+ Window win;
+ int i, j;
+
+ disp = XOpenDisplay(NULL);
+
+ imlib_context_set_display(disp);
+ imlib_context_set_visual(DefaultVisual(disp, DefaultScreen(disp)));
+ imlib_context_set_colormap(DefaultColormap(disp, DefaultScreen(disp)));
+
+ srand(time(NULL));
+ win = XCreateSimpleWindow(disp, DefaultRootWindow(disp), 0, 0, 640, 480, 0,
+ 0, 0);
+ XMapWindow(disp, win);
+ XSync(disp, False);
+
+ gcv.subwindow_mode = IncludeInferiors;
+ gc = XCreateGC(disp, win, GCSubwindowMode, &gcv);
+ for (;; j++)
+ {
+ for (i = 3; i < argc; i++)
+ {
+ XSetForeground(disp, gc, (rand() << 16 | rand()) & 0xffffff);
+ f = Efont_load(argv[i], atoi(argv[1]));
+ if (f)
+ EFont_draw_string(win, gc, 20, atoi(argv[1]) * (i - 2),
+ argv[2], f,
+ DefaultVisual(disp, DefaultScreen(disp)),
+ DefaultColormap(disp, DefaultScreen(disp)));
+ Efont_free(f);
+ f = NULL;
+ }
+ }
+ return 0;
+}
+
+#endif
+
+#endif /* FONT_TYPE_IFT */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "file.h"
+#include "user.h"
+#include "util.h"
+#include <pwd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+char *
+username(int uid)
+{
+ char *s;
+ static int usr_uid = -1;
+ static char *usr_s = NULL;
+ struct passwd *pwd;
+
+ if (usr_uid < 0)
+ usr_uid = getuid();
+ if ((uid == usr_uid) && (usr_s))
+ return Estrdup(usr_s);
+ pwd = getpwuid(uid);
+ if (pwd)
+ {
+ s = Estrdup(pwd->pw_name);
+ if (uid == usr_uid)
+ usr_s = Estrdup(s);
+ return s;
+ }
+ return Estrdup("unknown");
+}
+
+char *
+homedir(int uid)
+{
+ static int usr_uid = -1;
+ static char *usr_s = NULL;
+ char *s;
+ const char *ss;
+ struct passwd *pwd;
+
+ if (usr_uid < 0)
+ usr_uid = getuid();
+ if ((uid == usr_uid) && (usr_s))
+ {
+ return Estrdup(usr_s);
+ }
+ pwd = getpwuid(uid);
+ if (pwd)
+ {
+ s = Estrdup(pwd->pw_dir);
+ if (uid == usr_uid)
+ usr_s = Estrdup(s);
+ return s;
+ }
+ ss = getenv("TMPDIR");
+ if (!ss)
+ ss = "/tmp";
+ return Estrdup(ss);
+}
+
+char *
+usershell(int uid)
+{
+ char *s;
+ static int usr_uid = -1;
+ static char *usr_s = NULL;
+ struct passwd *pwd;
+
+ if (usr_uid < 0)
+ usr_uid = getuid();
+ if ((uid == usr_uid) && (usr_s))
+ return Estrdup(usr_s);
+ pwd = getpwuid(uid);
+ if (pwd)
+ {
+ if (!pwd->pw_shell)
+ return Estrdup("/bin/sh");
+ if (strlen(pwd->pw_shell) < 1)
+ return Estrdup("/bin/sh");
+ if (!(canexec(pwd->pw_shell)))
+ return Estrdup("/bin/sh");
+ s = Estrdup(pwd->pw_shell);
+ if (uid == usr_uid)
+ usr_s = Estrdup(s);
+ return s;
+ }
+ return Estrdup("/bin/sh");
+}
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _USER_H_
+#define _USER_H_
+
+char *username(int uid);
+char *homedir(int uid);
+char *usershell(int uid);
+
+#endif /* _USER_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _UTIL_H_
+#define _UTIL_H_
+
+#include "config.h"
+
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#define INT2PTR(i) ((void*)(long)(i))
+#define PTR2INT(p) ((int)(long)(p))
+
+/* Inspired by Xfuncproto.h */
+#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
+# define __EXPORT__ __attribute__((visibility("default")))
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+# define __EXPORT__ __global
+#else /* not gcc >= 3.3 and not Sun Studio >= 8 */
+# define __EXPORT__
+#endif
+
+#if HAVE___ATTRIBUTE__
+#define __PRINTF_N__(no) __attribute__((__format__(__printf__, (no), (no)+1)))
+#define __NORETURN__ __attribute__((noreturn))
+#else
+#define __PRINTF_N__(no)
+#define __NORETURN__
+#endif
+#define __PRINTF__ __PRINTF_N__(1)
+#define __PRINTF_2__ __PRINTF_N__(2)
+#define __PRINTF_5__ __PRINTF_N__(5)
+
+#if HAVE_STRDUP
+#define USE_LIBC_STRDUP 1 /* Use libc strdup if present */
+#endif
+#if HAVE_STRNDUP
+#define USE_LIBC_STRNDUP 1 /* Use libc strndup if present */
+#endif
+
+#ifdef HAVE_STRCASECMP
+#define Estrcasecmp(s1, s2) strcasecmp(s1, s2)
+#else
+int Estrcasecmp(const char *s1, const char *s2);
+#endif
+#ifdef HAVE_STRCASESTR
+#define Estrcasestr(haystack, needle) strcasestr(haystack, needle)
+#else
+const char *Estrcasestr(const char *haystack, const char *needle);
+#endif
+
+/* memory.c */
+#define Ecalloc calloc
+#define Emalloc malloc
+#define Erealloc realloc
+#if HAVE_FREE_NULL_BUG
+#define Efree(p) if (p) free(p)
+#else
+#define Efree free
+#endif
+
+#define ECALLOC(type, num) (type*)Ecalloc(num, sizeof(type))
+#define EMALLOC(type, num) (type*)Emalloc((num)*sizeof(type))
+#define EREALLOC(type, ptr, num) (type*)Erealloc(ptr, (num)*sizeof(type))
+
+#define _EFREE(p) do { if (p) { Efree(p); p = NULL; } } while (0)
+#define _EFDUP(p, s) do { if (p) Efree(p); p = Estrdup(s); } while (0)
+
+#define STRCPY(dst, src) do { src[sizeof(dst)-1] = '\0'; strcpy(dst, src); } while(0)
+
+char *Estrtrim(char *s);
+
+char *Estrdup(const char *s);
+char *Estrndup(const char *s, size_t n);
+char *Estrdupcat2(char *ss, const char *s1, const char *s2);
+
+char **StrlistDup(char **lst, int num);
+__EXPORT__ void StrlistFree(char **lst, int num);
+char *StrlistJoin(char **lst, int num);
+char *StrlistEncodeEscaped(char *buf, int len, char **lst,
+ int num);
+char **StrlistDecodeEscaped(const char *str, int *pnum);
+__EXPORT__ char **StrlistFromString(const char *str, int delim, int *num);
+
+void Esetenv(const char *name, const char *value);
+
+/* misc.c */
+__EXPORT__ void __PRINTF__ Eprintf(const char *fmt, ...);
+
+#ifdef HAVE_SNPRINTF
+#define Evsnprintf vsnprintf
+#define Esnprintf snprintf
+#else /* HAVE_SNPRINTF */
+int Evsnprintf(char *str, size_t count, const char *fmt,
+ va_list args);
+
+#ifdef HAVE_STDARG_H
+int Esnprintf(char *str, size_t count, const char *fmt, ...);
+
+#else
+int Esnprintf(va_alist);
+#endif
+#endif /* HAVE_SNPRINTF */
+
+#if USE_MODULES
+/* Dynamic loading */
+const void *ModLoadSym(const char *lib, const char *sym,
+ const char *name);
+#endif
+
+#endif /* _UTIL_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+/*
+ * Author: Merlin Hughes
+ * - merlin@merlin.org
+ *
+ * This code is free software.
+ *
+ * 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.
+ */
+#include "E.h"
+#include "desktops.h"
+#include "emodule.h"
+#include "ewins.h"
+#include "focus.h"
+#include "grabs.h"
+#include "iclass.h"
+#include "icons.h"
+#include "screen.h"
+#include "tclass.h"
+#include "tooltips.h"
+#include "xwin.h"
+#include <X11/keysym.h>
+
+typedef struct {
+ EWin *ewin;
+ Win win;
+ char *txt;
+} WarplistItem;
+
+typedef struct {
+ EObj o;
+ TextClass *tc;
+ ImageClass *ic;
+ int mw, mh, tw, th;
+} WarpFocusWin;
+
+static void WarpFocusHandleEvent(Win win, XEvent * ev, void *prm);
+
+static WarpFocusWin *warpFocusWindow = NULL;
+
+static int warpFocusIndex = 0;
+static unsigned int warpFocusKey = 0;
+static unsigned int warpFocusState = 0;
+static int warplist_num = 0;
+static WarplistItem *warplist;
+
+#define ICON_PAD 2
+
+static WarpFocusWin *
+WarpFocusWinCreate(void)
+{
+ WarpFocusWin *fw;
+
+ fw = ECALLOC(WarpFocusWin, 1);
+ if (!fw)
+ return fw;
+
+ EoInit(fw, EOBJ_TYPE_MISC, None, 0, 0, 1, 1, 1, "Warp");
+ EoSetFloating(fw, 1);
+ EoSetLayer(fw, 20);
+ EoSetFade(fw, 1);
+ EoSetShadow(fw, 1);
+
+ EventCallbackRegister(EoGetWin(fw), 0, WarpFocusHandleEvent, NULL);
+ ESelectInput(EoGetWin(fw), ButtonReleaseMask);
+
+ fw->tc = TextclassFind("WARPFOCUS", 0);
+ if (!fw->tc)
+ fw->tc = TextclassFind("COORDS", 1);
+
+ fw->ic = ImageclassFind("WARPFOCUS", 0);
+ if (!fw->ic)
+ fw->ic = ImageclassFind("COORDS", 1);
+
+ return fw;
+}
+
+#if 0
+static void
+WarpFocusWinDestroy(WarpFocusWin * fw)
+{
+ EventCallbackUnregister(EoGetWin(fw), 0, WarpFocusHandleEvent, NULL);
+ EoFini(fw);
+ Efree(fw);
+}
+#endif
+
+static void
+WarpFocusWinShow(WarpFocusWin * fw)
+{
+ WarplistItem *wi;
+ EImageBorder *pad;
+ EWin *ewin;
+ int i, x, y, w, h, ww, hh;
+ char s[1024], ss[32];
+ const char *fmt;
+
+ w = 0;
+ h = 0;
+ pad = ImageclassGetPadding(fw->ic);
+
+ for (i = 0; i < warplist_num; i++)
+ {
+ wi = warplist + i;
+ wi->win = ECreateWindow(EoGetWin(fw), 0, 0, 1, 1, 0);
+ EMapWindow(wi->win);
+
+ ewin = wi->ewin;
+ if (ewin->state.iconified)
+ fmt = "%s[%s]";
+ else if (ewin->state.shaded)
+ fmt = "%s=%s=";
+ else
+ fmt = "%s%s";
+ ss[0] = '\0';
+ if (Conf.warplist.showalldesks)
+ {
+ if (EoIsSticky(ewin) || ewin->state.iconified)
+ strcpy(ss, "[-] ");
+ else
+ Esnprintf(ss, sizeof(ss), "[%d] ", EoGetDeskNum(ewin));
+ }
+ Esnprintf(s, sizeof(s), fmt, ss, EwinGetTitle(ewin));
+ wi->txt = strdup(s);
+ TextSize(fw->tc, 0, 0, 0, wi->txt, &ww, &hh, 17);
+ if (ww > w)
+ w = ww;
+ if (hh > h)
+ h = hh;
+ }
+
+ fw->tw = w; /* Text size */
+ fw->th = h;
+ w += pad->left + pad->right;
+ h += pad->top + pad->bottom;
+ if (Conf.warplist.icon_mode != 0)
+ w += h;
+ fw->mw = w; /* Focus list item size */
+ fw->mh = h;
+
+ /* Reset shape */
+ EShapeSetMask(EoGetWin(fw), 0, 0, None);
+
+ ScreenGetAvailableAreaByPointer(&x, &y, &ww, &hh);
+ x += (ww - w) / 2;
+ y += (hh - h * warplist_num) / 2;
+ EoMoveResize(fw, x, y, w, h * warplist_num);
+
+ for (i = 0; i < warplist_num; i++)
+ EMoveResizeWindow(warplist[i].win, 0, (h * i), fw->mw, fw->mh);
+
+ EoMap(fw, 0);
+
+ /*
+ * Grab the keyboard. The grab is automatically released when
+ * WarpFocusHide unmaps warpFocusWindow.
+ */
+ GrabKeyboardSet(EoGetWin(fw));
+ GrabPointerSet(EoGetWin(fw), None, 0);
+
+ TooltipsEnable(0);
+}
+
+static void
+WarpFocusWinHide(WarpFocusWin * fw)
+{
+ int i;
+
+ EoUnmap(fw);
+ for (i = 0; i < warplist_num; i++)
+ {
+ EDestroyWindow(warplist[i].win);
+ Efree(warplist[i].txt);
+ }
+#if 0 /* We might as well keep it around */
+ WarpFocusWinDestroy(fw);
+ warpFocusWindow = NULL;
+#endif
+
+ TooltipsEnable(1);
+}
+
+static void
+WarpFocusWinPaint(WarpFocusWin * fw)
+{
+ int i, state, iw;
+ WarplistItem *wi;
+ EImageBorder *pad;
+
+ pad = ImageclassGetPadding(fw->ic);
+
+ for (i = 0; i < warplist_num; i++)
+ {
+ wi = warplist + i;
+
+ if (!EwinFindByPtr(wi->ewin))
+ wi->ewin = NULL;
+ if (!wi->ewin)
+ continue;
+
+ state = (i == warpFocusIndex) ? STATE_CLICKED : STATE_NORMAL;
+
+ ImageclassApply(fw->ic, wi->win, 0, 0, state, ST_WARPLIST);
+
+ iw = 0;
+ if (Conf.warplist.icon_mode != 0)
+ {
+ int icon_size = fw->mh - 2 * ICON_PAD;
+ EImage *im;
+
+ im = EwinIconImageGet(wi->ewin, icon_size,
+ Conf.warplist.icon_mode);
+ if (im)
+ {
+ EImageRenderOnDrawable(im, wi->win, None,
+ EIMAGE_BLEND | EIMAGE_ANTI_ALIAS,
+ pad->left + ICON_PAD, ICON_PAD,
+ icon_size, icon_size);
+ EImageFree(im);
+ }
+ iw = fw->mh;
+ }
+
+ TextDraw(fw->tc, wi->win, None, 0, 0, state, wi->txt,
+ pad->left + iw, pad->top, fw->tw, fw->th, 0, 0);
+ }
+
+ /* FIXME - Check shape */
+ EoShapeUpdate(fw, 1);
+}
+
+static void
+WarpFocusShow(void)
+{
+ WarpFocusWin *fw = warpFocusWindow;
+
+ if (!warplist)
+ return;
+
+ if (!fw)
+ {
+ warpFocusWindow = fw = WarpFocusWinCreate();
+ if (!fw)
+ return;
+ }
+
+ if (!EoIsShown(fw))
+ WarpFocusWinShow(fw);
+
+ WarpFocusWinPaint(fw);
+}
+
+static void
+WarpFocusHide(void)
+{
+ WarpFocusWin *fw = warpFocusWindow;
+
+ if (fw && EoIsShown(fw))
+ WarpFocusWinHide(fw);
+
+ Efree(warplist);
+ warplist = NULL;
+ warplist_num = 0;
+}
+
+void
+WarpFocus(int delta)
+{
+ WarpFocusWin *fw = warpFocusWindow;
+ EWin *const *lst;
+ EWin *ewin;
+ int i, num;
+ WarplistItem *wl;
+
+ /* Remember invoking keycode (ugly hack) */
+ if (!fw || !EoIsShown(fw))
+ {
+ warpFocusKey = Mode.events.last_keycode;
+ warpFocusState = Mode.events.last_keystate;
+ }
+
+ if (!warplist)
+ {
+ lst = EwinListFocusGet(&num);
+ for (i = 0; i < num; i++)
+ {
+ ewin = lst[i];
+ if ( /* Either visible or iconified */
+ ((EwinIsOnScreen(ewin)) || (ewin->state.iconified) ||
+ (Conf.warplist.showalldesks)) &&
+ /* Exclude windows that explicitely say so */
+ (!ewin->props.skip_focuslist) &&
+ (!ewin->props.skip_ext_task) &&
+ /* Keep shaded windows if conf say so */
+ ((!ewin->state.shaded) || (Conf.warplist.showshaded)) &&
+ /* Keep sticky windows if conf say so */
+ ((!EoIsSticky(ewin)) || (Conf.warplist.showsticky)) &&
+ /* Keep iconified windows if conf say so */
+ ((!ewin->state.iconified) || (Conf.warplist.showiconified)))
+ {
+ warplist_num++;
+ warplist = EREALLOC(WarplistItem, warplist, warplist_num);
+ wl = warplist + warplist_num - 1;
+ wl->ewin = ewin;
+ }
+ }
+
+ /* Hmmm. Hack... */
+ if (warplist_num >= 2 && warplist[1].ewin == GetFocusEwin())
+ {
+ warplist[1].ewin = warplist[0].ewin;
+ warplist[0].ewin = GetFocusEwin();
+ }
+
+ warpFocusIndex = 0;
+ }
+
+ if (!warplist)
+ return;
+
+ warpFocusIndex = (warpFocusIndex + warplist_num + delta) % warplist_num;
+ ewin = warplist[warpFocusIndex].ewin;
+ if (!EwinFindByPtr(ewin))
+ ewin = NULL;
+ if (!ewin)
+ return;
+
+ WarpFocusShow();
+
+ if (!EwinIsOnScreen(ewin))
+ return;
+
+ if (Conf.focus.raise_on_next)
+ EwinRaise(ewin);
+ if (Conf.focus.warp_on_next)
+ EwinWarpTo(ewin);
+ if (Conf.warplist.warpfocused)
+ FocusToEWin(ewin, FOCUS_SET);
+}
+
+static void
+WarpFocusClick(int ix)
+{
+ EWin *ewin;
+
+ if (!warplist)
+ return;
+ if (ix < 0 || ix >= warplist_num)
+ return;
+ if (ix == warpFocusIndex)
+ return;
+
+ warpFocusIndex = ix;
+ WarpFocusShow();
+
+ ewin = warplist[ix].ewin;
+ if (!EwinFindByPtr(ewin))
+ return;
+
+ if (Conf.focus.raise_on_next)
+ EwinRaise(ewin);
+
+ FocusToEWin(ewin, FOCUS_SET);
+}
+
+static void
+WarpFocusFinish(void)
+{
+ EWin *ewin;
+
+ ewin = warplist[warpFocusIndex].ewin;
+
+ WarpFocusHide();
+
+ if (!EwinFindByPtr(ewin))
+ return;
+
+ EwinOpActivate(ewin, OPSRC_USER, Conf.warplist.raise_on_select);
+ if (Conf.warplist.warp_on_select)
+ EwinWarpTo(ewin);
+}
+
+static void
+WarpFocusHandleEvent(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
+{
+ WarpFocusWin *fw = warpFocusWindow;
+ KeySym key;
+ unsigned int mask;
+
+ if (!EoIsShown(fw))
+ return;
+
+ switch (ev->type)
+ {
+ case KeyPress:
+ if (ev->xkey.keycode == warpFocusKey)
+ {
+ if (((ev->xkey.state ^ warpFocusState) &
+ Mode.masks.mod_key_mask) == 0)
+ key = 0x80000000;
+ else
+ key = 0x80000001;
+ }
+ else
+ key = XLookupKeysym(&ev->xkey, 0);
+ switch (key)
+ {
+ default:
+ break;
+ case 0x80000000:
+ case XK_Down:
+ WarpFocus(1);
+ break;
+ case XK_Up:
+ case 0x80000001:
+ WarpFocus(-1);
+ break;
+ }
+ break;
+
+ case KeyRelease:
+ mask = 0;
+ EQueryPointer(NULL, NULL, NULL, NULL, &mask);
+ if ((mask & Mode.masks.mod_key_mask) == 0)
+ {
+ WarpFocusFinish();
+ break;
+ }
+ if (ev->xkey.keycode == warpFocusKey)
+ key = 0x80000000;
+ else
+ key = XLookupKeysym(&ev->xkey, 0);
+ switch (key)
+ {
+ case XK_Escape:
+ WarpFocusHide();
+ break;
+ default:
+ case 0x80000000:
+ case XK_Down:
+ case XK_Up:
+ break;
+ }
+ break;
+
+ case ButtonRelease:
+ WarpFocusClick((ev->xbutton.y * warplist_num) / EoGetH(fw));
+ break;
+ }
+}
+
+/*
+ * Warplist module
+ */
+
+static void
+WarplistCfgValidate(void)
+{
+ if (Conf.warplist.icon_mode < 0 || Conf.warplist.icon_mode > 3)
+ Conf.warplist.icon_mode = 3;
+}
+
+static void
+WarplistSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_INIT:
+ WarplistCfgValidate();
+ break;
+ }
+}
+
+static const CfgItem WarplistCfgItems[] = {
+ CFG_ITEM_BOOL(Conf.warplist, enable, 1),
+ CFG_ITEM_BOOL(Conf.warplist, showsticky, 1),
+ CFG_ITEM_BOOL(Conf.warplist, showshaded, 1),
+ CFG_ITEM_BOOL(Conf.warplist, showiconified, 1),
+ CFG_ITEM_BOOL(Conf.warplist, showalldesks, 0),
+ CFG_ITEM_BOOL(Conf.warplist, warpfocused, 1),
+ CFG_ITEM_BOOL(Conf.warplist, raise_on_select, 1),
+ CFG_ITEM_BOOL(Conf.warplist, warp_on_select, 0),
+ CFG_ITEM_INT(Conf.warplist, icon_mode, 3),
+};
+#define N_CFG_ITEMS (sizeof(WarplistCfgItems)/sizeof(CfgItem))
+
+extern const EModule ModWarplist;
+const EModule ModWarplist = {
+ "warplist", "warp",
+ WarplistSighan,
+ {0, NULL},
+ {N_CFG_ITEMS, WarplistCfgItems}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2005-2009 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "borders.h"
+#include "conf.h"
+#include "desktops.h"
+#include "e16-ecore_list.h"
+#include "emodule.h"
+#include "ewins.h"
+#include "ewin-ops.h"
+#include "windowmatch.h"
+
+typedef struct _windowmatch WindowMatch;
+
+struct _windowmatch {
+ char *name;
+ /* Match criteria */
+ char match;
+ char op;
+ char prop;
+ char qual;
+ char *value;
+ int width_min, width_max;
+ int height_min, height_max;
+ /* Match actions */
+ char *args;
+ Border *border;
+};
+
+#define MATCH_TYPE_TITLE 1
+#define MATCH_TYPE_WM_NAME 2
+#define MATCH_TYPE_WM_CLASS 3
+#define MATCH_TYPE_SIZE 4
+#define MATCH_TYPE_SIZE_H 5
+#define MATCH_TYPE_SIZE_V 6
+#define MATCH_TYPE_PROP 7
+
+#define MATCH_PROP_TRANSIENT 1
+#define MATCH_PROP_SHAPED 2
+#define MATCH_PROP_FIXEDSIZE 3
+#define MATCH_PROP_FIXEDSIZE_H 4
+#define MATCH_PROP_FIXEDSIZE_V 5
+
+#define MATCH_OP_BORDER 1
+#define MATCH_OP_ICON 2
+#define MATCH_OP_WINOP 3
+
+static int WindowMatchEobjOpsParse(EObj * eo, const char *ops);
+
+static Ecore_List *wm_list = NULL;
+
+static const char *MatchType[] = {
+ NULL, "Title", "Name", "Class", "Size", "Width", "Height", "Prop", NULL
+};
+
+static const char *MatchProp[] = {
+ NULL, "Transient", "Shaped", "FixedSize", "FixedWidth", "FixedHeight", NULL
+};
+
+static const char *MatchOp[] = {
+ NULL, "Border", "Icon", "Winop", NULL
+};
+
+static int
+MatchFind(const char **list, const char *str)
+{
+ int i;
+
+ for (i = 1; list[i]; i++)
+ if (!strcmp(str, list[i]))
+ return i;
+
+ return 0;
+}
+
+static WindowMatch *
+WindowMatchCreate(const char *name)
+{
+ WindowMatch *b;
+
+ b = ECALLOC(WindowMatch, 1);
+ if (!b)
+ return NULL;
+
+ if (!wm_list)
+ wm_list = ecore_list_new();
+ ecore_list_prepend(wm_list, b);
+
+ b->name = Estrdup(name);
+ b->width_max = 99999;
+ b->height_max = 99999;
+
+ return b;
+}
+
+static void
+WindowMatchDestroy(WindowMatch * wm)
+{
+ if (!wm)
+ return;
+
+ ecore_list_node_remove(wm_list, wm);
+
+ Efree(wm->name);
+ Efree(wm->value);
+ Efree(wm->args);
+
+ Efree(wm);
+}
+
+int
+WindowMatchConfigLoad(FILE * fs)
+{
+ int err = 0;
+ WindowMatch *wm = 0;
+ char s[FILEPATH_LEN_MAX];
+ char s2[FILEPATH_LEN_MAX];
+ int i1;
+
+ while (GetLine(s, sizeof(s), fs))
+ {
+ i1 = ConfigParseline1(s, s2, NULL, NULL);
+ switch (i1)
+ {
+ case CONFIG_VERSION:
+ case CONFIG_WINDOWMATCH:
+ err = -1;
+ break;
+
+ case CONFIG_CLASSNAME:
+ wm = WindowMatchCreate(s2);
+ break;
+
+ case CONFIG_CLOSE:
+ if (wm)
+ {
+ if (!wm->match || !wm->op)
+ WindowMatchDestroy(wm);
+ wm = NULL;
+ err = 0;
+ }
+ goto done;
+
+ case WINDOWMATCH_MATCHTITLE:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_TITLE;
+ wm->value = Estrdup(s2);
+ break;
+ case WINDOWMATCH_MATCHNAME:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_WM_NAME;
+ wm->value = Estrdup(s2);
+ break;
+ case WINDOWMATCH_MATCHCLASS:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_WM_CLASS;
+ wm->value = Estrdup(s2);
+ break;
+
+ case WINDOWMATCH_WIDTH:
+ if (!wm)
+ break;
+ if (wm->match == MATCH_TYPE_SIZE_V)
+ wm->match = MATCH_TYPE_SIZE;
+ else
+ wm->match = MATCH_TYPE_SIZE_H;
+ sscanf(s, "%*s %u %u", &(wm->width_min), &(wm->width_max));
+ break;
+ case WINDOWMATCH_HEIGHT:
+ if (!wm)
+ break;
+ if (wm->match == MATCH_TYPE_SIZE_H)
+ wm->match = MATCH_TYPE_SIZE;
+ else
+ wm->match = MATCH_TYPE_SIZE_V;
+ sscanf(s, "%*s %u %u", &(wm->height_min), &(wm->height_max));
+ break;
+
+ case WINDOWMATCH_TRANSIENT:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_PROP;
+ wm->prop = MATCH_PROP_TRANSIENT;
+ wm->qual = !atoi(s2);
+ break;
+ case WINDOWMATCH_SHAPED:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_PROP;
+ wm->prop = MATCH_PROP_SHAPED;
+ wm->qual = !atoi(s2);
+ break;
+ case WINDOWMATCH_NO_RESIZE_H:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_PROP;
+ if (wm->prop == MATCH_PROP_FIXEDSIZE_V)
+ wm->prop = MATCH_PROP_FIXEDSIZE;
+ else
+ wm->prop = MATCH_PROP_FIXEDSIZE_H;
+ wm->qual = !atoi(s2);
+ break;
+ case WINDOWMATCH_NO_RESIZE_V:
+ if (!wm)
+ break;
+ wm->match = MATCH_TYPE_PROP;
+ if (wm->prop == MATCH_PROP_FIXEDSIZE_H)
+ wm->prop = MATCH_PROP_FIXEDSIZE;
+ else
+ wm->prop = MATCH_PROP_FIXEDSIZE_V;
+ wm->qual = !atoi(s2);
+ break;
+
+ case CONFIG_BORDER:
+ case WINDOWMATCH_USEBORDER:
+ if (!wm)
+ break;
+ wm->border = BorderFind(s2);
+ if (!wm->border)
+ break;
+ wm->op = MATCH_OP_BORDER;
+ break;
+
+ case WINDOWMATCH_ICON:
+ case CONFIG_ICONBOX:
+#if 0 /* This has not been active since at least 0.16.5 */
+ if (!wm)
+ break;
+ wm->icon = ImageclassFind(s2, 0);
+ if (!wm->icon)
+ break;
+ wm->op = MATCH_OP_ICON;
+ wm->icon->ref_count++;
+#endif
+ break;
+
+ case WINDOWMATCH_DESKTOP:
+ case CONFIG_DESKTOP:
+#if 0 /* This has not been active since at least 0.16.5 */
+ wm->desk = atoi(s2);
+#endif
+ break;
+
+ case WINDOWMATCH_MAKESTICKY:
+ if (!wm)
+ break;
+ wm->args = Estrdupcat2(wm->args, ":", "stick");
+ break;
+
+ default:
+ ConfigParseError("WindowMatch", s);
+ break;
+ }
+ }
+
+ done:
+ return err;
+}
+
+static WindowMatch *
+WindowMatchDecode(const char *line)
+{
+ char match[32], value[1024], op[32];
+ const char *args;
+ WindowMatch *wm = NULL;
+ int err, num, w1, w2, h1, h2;
+
+ match[0] = value[0] = op[0] = '\0';
+ num = sscanf(line, "%32s %1024s %32s %n", match, value, op, &w1);
+ if (num < 3)
+ return NULL;
+ args = line + w1;
+ if (*args == '\0')
+ return NULL;
+
+ err = 0;
+
+ num = MatchFind(MatchType, match);
+ if (num <= 0)
+ {
+ Eprintf("WindowMatchDecode: Error (%s): %s\n", match, line);
+ err = 1;
+ goto done;
+ }
+
+ wm = WindowMatchCreate(NULL);
+ if (!wm)
+ return NULL;
+
+ wm->match = num;
+
+ switch (wm->match)
+ {
+ case MATCH_TYPE_TITLE:
+ case MATCH_TYPE_WM_NAME:
+ case MATCH_TYPE_WM_CLASS:
+ wm->value = Estrdup(value);
+ break;
+
+ case MATCH_TYPE_SIZE:
+ num = sscanf(value, "%u-%ux%u-%u", &w1, &w2, &h1, &h2);
+ if (num < 4)
+ goto case_error;
+ wm->width_min = w1;
+ wm->width_max = w2;
+ wm->height_min = h1;
+ wm->height_max = h2;
+ break;
+ case MATCH_TYPE_SIZE_H:
+ num = sscanf(value, "%u-%u", &w1, &w2);
+ if (num < 2)
+ goto case_error;
+ wm->width_min = w1;
+ wm->width_max = w2;
+ break;
+ case MATCH_TYPE_SIZE_V:
+ num = sscanf(value, "%u-%u", &h1, &h2);
+ if (num < 2)
+ goto case_error;
+ wm->height_min = h1;
+ wm->height_max = h2;
+ break;
+
+ case MATCH_TYPE_PROP:
+ num = 0;
+ if (*value == '!')
+ {
+ wm->qual = 1;
+ num = 1;
+ }
+ wm->prop = MatchFind(MatchProp, value + num);
+ if (wm->prop <= 0)
+ goto case_error;
+ break;
+
+ case_error:
+ Eprintf("WindowMatchDecode: Error (%s): %s\n", value, line);
+ err = 1;
+ goto done;
+ }
+
+ wm->op = MatchFind(MatchOp, op);
+ if (wm->op <= 0)
+ {
+ Eprintf("WindowMatchDecode: Error (%s): %s\n", op, line);
+ err = 1;
+ goto done;
+ }
+
+ switch (wm->op)
+ {
+ case MATCH_OP_BORDER:
+ wm->border = BorderFind(args);
+ if (!wm->border)
+ {
+ err = 1;
+ goto done;
+ }
+ break;
+
+ case MATCH_OP_ICON:
+ /* FIXME - Check if exists */
+ wm->args = Estrdup(args);
+ break;
+
+ case MATCH_OP_WINOP:
+ if (WindowMatchEobjOpsParse(NULL, args))
+ {
+ Eprintf("WindowMatchDecode: Error (%s): %s\n", args, line);
+ err = 1;
+ goto done;
+ }
+ wm->args = Estrdup(args);
+ break;
+ }
+
+ done:
+ if (err)
+ {
+ if (wm)
+ WindowMatchDestroy(wm);
+ }
+ else
+ {
+ ecore_list_append(wm_list, ecore_list_node_remove(wm_list, wm));
+ }
+ return wm;
+}
+
+static char *
+WindowMatchEncode(WindowMatch * wm, char *buf, int len)
+{
+ char s[1024];
+ const char *qual, *value, *args;
+
+ qual = " ";
+
+ switch (wm->match)
+ {
+ default:
+ value = wm->value;
+ break;
+
+ case MATCH_TYPE_SIZE:
+ value = s;
+ sprintf(s, "%u-%ux%u-%u", wm->width_min, wm->width_max,
+ wm->height_min, wm->height_max);
+ break;
+ case MATCH_TYPE_SIZE_H:
+ value = s;
+ sprintf(s, "%u-%u", wm->width_min, wm->width_max);
+ break;
+ case MATCH_TYPE_SIZE_V:
+ value = s;
+ sprintf(s, "%u-%u", wm->height_min, wm->height_max);
+ break;
+
+ case MATCH_TYPE_PROP:
+ qual = (wm->qual) ? "!" : " ";
+ value = MatchProp[(int)wm->prop];
+ break;
+ }
+
+ switch (wm->op)
+ {
+ default:
+ args = wm->args;
+ break;
+
+ case MATCH_OP_BORDER:
+ args = BorderGetName(wm->border);
+ break;
+ }
+
+ Esnprintf(buf, len, "%-8s %s%-16s %s %s", MatchType[(int)wm->match],
+ qual, value, MatchOp[(int)wm->op], args);
+
+ return buf;
+}
+
+static int
+WindowMatchConfigLoad2(FILE * fs)
+{
+ char s[FILEPATH_LEN_MAX], *ss;
+ int len;
+
+ for (;;)
+ {
+ ss = fgets(s, sizeof(s), fs);
+ if (!ss)
+ break;
+
+ len = strcspn(s, "#\r\n");
+ if (len <= 0)
+ continue;
+ s[len] = '\0';
+
+ WindowMatchDecode(s);
+ }
+
+ return 0;
+}
+
+static int
+WindowMatchEwinTest(const WindowMatch * wm, const EWin * ewin)
+{
+ int match;
+
+ match = 0;
+
+ switch (wm->match)
+ {
+ case MATCH_TYPE_TITLE:
+ return matchregexp(wm->value, EwinGetIcccmName(ewin));
+
+ case MATCH_TYPE_WM_NAME:
+ return matchregexp(wm->value, EwinGetIcccmCName(ewin));
+
+ case MATCH_TYPE_WM_CLASS:
+ return matchregexp(wm->value, EwinGetIcccmClass(ewin));
+
+ case MATCH_TYPE_SIZE:
+ match = (ewin->client.w >= wm->width_min &&
+ ewin->client.w <= wm->width_max &&
+ ewin->client.h >= wm->height_min &&
+ ewin->client.h <= wm->height_max);
+ break;
+ case MATCH_TYPE_SIZE_H:
+ match = (ewin->client.w >= wm->width_min &&
+ ewin->client.w <= wm->width_max);
+ break;
+ case MATCH_TYPE_SIZE_V:
+ match = (ewin->client.h >= wm->height_min &&
+ ewin->client.h <= wm->height_max);
+ break;
+
+ case MATCH_TYPE_PROP:
+ switch (wm->prop)
+ {
+ case MATCH_PROP_TRANSIENT:
+ match = EwinIsTransient(ewin);
+ break;
+
+ case MATCH_PROP_SHAPED:
+ match = ewin->state.shaped;
+ break;
+
+ case MATCH_PROP_FIXEDSIZE:
+ match = ewin->props.no_resize_h && ewin->props.no_resize_v;
+ break;
+ case MATCH_PROP_FIXEDSIZE_H:
+ match = ewin->props.no_resize_h;
+ break;
+ case MATCH_PROP_FIXEDSIZE_V:
+ match = ewin->props.no_resize_v;
+ break;
+ }
+ }
+
+ if (wm->qual)
+ match = !match;
+ return match;
+}
+
+#if USE_COMPOSITE
+static int
+WindowMatchEobjTest(const WindowMatch * wm, const EObj * eo)
+{
+ int match;
+
+ match = 0;
+
+ switch (wm->match)
+ {
+ case MATCH_TYPE_TITLE:
+ return matchregexp(wm->value, EobjGetName(eo));
+
+ case MATCH_TYPE_WM_NAME:
+ return matchregexp(wm->value, EobjGetCName(eo));
+
+ case MATCH_TYPE_WM_CLASS:
+ return matchregexp(wm->value, EobjGetClass(eo));
+ }
+
+ if (wm->qual)
+ match = !match;
+ return match;
+}
+#endif
+
+typedef struct {
+ int type;
+ const EWin *ewin;
+} wmatch_type_data;
+
+static int
+WindowMatchTypeMatch(const void *data, const void *match)
+{
+ const WindowMatch *wm = (WindowMatch *) data;
+ const wmatch_type_data *wmtd = (wmatch_type_data *) match;
+
+ return !(wm->op == wmtd->type && WindowMatchEwinTest(wm, wmtd->ewin));
+}
+
+static WindowMatch *
+WindowMatchType(const EWin * ewin, int type)
+{
+ wmatch_type_data wmtd;
+
+ wmtd.type = type;
+ wmtd.ewin = ewin;
+
+ return (WindowMatch *) ecore_list_find(wm_list, WindowMatchTypeMatch, &wmtd);
+}
+
+Border *
+WindowMatchEwinBorder(const EWin * ewin)
+{
+ WindowMatch *wm;
+
+ wm = WindowMatchType(ewin, MATCH_OP_BORDER);
+#if 0
+ Eprintf("WindowMatchEwinBorder %s %s\n", EwinGetTitle(ewin),
+ (wm) ? BorderGetName(wm->border) : "???");
+#endif
+ if (wm)
+ return wm->border;
+ return NULL;
+}
+
+const char *
+WindowMatchEwinIcon(const EWin * ewin)
+{
+ WindowMatch *wm;
+
+ wm = WindowMatchType(ewin, MATCH_OP_ICON);
+#if 0
+ Eprintf("WindowMatchEwinIcon %s %s\n", EwinGetTitle(ewin),
+ (wm) ? wm->args : "???");
+#endif
+ if (wm)
+ return wm->args;
+ return NULL;
+}
+
+static int
+GetBoolean(const char *value)
+{
+ /* We set off if "0" or "off", otherwise on */
+ if (!value)
+ return 1;
+ else if (!strcmp(value, "0") || !strcmp(value, "off"))
+ return 0;
+ return 1;
+}
+
+#define WINOP_SET_BOOL(item, val) item = GetBoolean(val)
+
+static void
+WindowMatchEwinOpsAction(EWin * ewin, int op, const char *args)
+{
+ int a, b;
+
+ /* NB! This must only be used when a new client is being adopted */
+
+ switch (op)
+ {
+ default:
+ /* We should not get here */
+ return;
+
+ case EWIN_OP_TITLE:
+ Efree(EwinGetIcccmName(ewin));
+ EwinGetIcccmName(ewin) = Estrdup(args);
+ break;
+
+ case EWIN_OP_ICONIFY:
+ WINOP_SET_BOOL(ewin->icccm.start_iconified, args);
+ break;
+
+ case EWIN_OP_SHADE:
+ WINOP_SET_BOOL(ewin->state.shaded, args);
+ break;
+
+ case EWIN_OP_STICK:
+ WINOP_SET_BOOL(ewin->o.sticky, args);
+ break;
+
+ case EWIN_OP_DESK:
+ EoSetDesk(ewin, DeskGet(atoi(args)));
+ break;
+
+#if 0 /* Causes crash */
+ case EWIN_OP_AREA:
+ a = b = 0;
+ if (sscanf(args, "%u %u", &a, &b) < 2)
+ break;
+ EwinMoveToArea(ewin, a, b); /* FIXME - We should not move here */
+ break;
+#endif
+
+ case EWIN_OP_MOVE:
+ a = ewin->client.x;
+ b = ewin->client.y;
+ if (sscanf(args, "%i %i", &a, &b) < 2)
+ break;
+ ewin->client.x = a;
+ ewin->client.y = b;
+ ewin->state.placed = 1;
+ break;
+
+ case EWIN_OP_SIZE:
+ a = ewin->client.w;
+ b = ewin->client.h;
+ if (sscanf(args, "%u %u", &a, &b) < 2)
+ break;
+ ewin->client.w = a;
+ ewin->client.h = b;
+ ewin->state.maximized_horz = ewin->state.maximized_vert = 0;
+ break;
+
+ case EWIN_OP_FULLSCREEN:
+ WINOP_SET_BOOL(ewin->state.fullscreen, args);
+ break;
+
+ case EWIN_OP_LAYER:
+ EoSetLayer(ewin, atoi(args));
+ break;
+
+ case EWIN_OP_OPACITY:
+ a = atoi(args);
+ ewin->ewmh.opacity = OpacityFromPercent(OpacityFix(a, 0));
+ break;
+
+ case EWIN_OP_FOCUSED_OPACITY:
+ a = atoi(args);
+ ewin->props.focused_opacity = OpacityFromPercent(OpacityFix(a, 0));
+ break;
+
+ case EWIN_OP_SKIP_LISTS:
+ WINOP_SET_BOOL(ewin->props.skip_winlist, args);
+ ewin->props.skip_focuslist = ewin->props.skip_ext_task =
+ ewin->props.skip_winlist;
+ break;
+
+ case EWIN_OP_FOCUS_CLICK:
+ WINOP_SET_BOOL(ewin->props.focusclick, args);
+ break;
+
+ case EWIN_OP_NEVER_USE_AREA:
+ WINOP_SET_BOOL(ewin->props.never_use_area, args);
+ break;
+
+ case EWIN_OP_NO_BUTTON_GRABS:
+ WINOP_SET_BOOL(ewin->props.no_button_grabs, args);
+ break;
+
+ case EWIN_OP_AUTOSHADE:
+ WINOP_SET_BOOL(ewin->props.autoshade, args);
+ break;
+
+ case EWIN_OP_INH_APP_FOCUS:
+ WINOP_SET_BOOL(EwinInhGetApp(ewin, focus), args);
+ break;
+
+ case EWIN_OP_INH_APP_MOVE:
+ WINOP_SET_BOOL(EwinInhGetApp(ewin, move), args);
+ break;
+
+ case EWIN_OP_INH_APP_SIZE:
+ WINOP_SET_BOOL(EwinInhGetApp(ewin, size), args);
+ break;
+
+ case EWIN_OP_INH_USER_CLOSE:
+ WINOP_SET_BOOL(EwinInhGetUser(ewin, close), args);
+ break;
+
+ case EWIN_OP_INH_USER_MOVE:
+ WINOP_SET_BOOL(EwinInhGetUser(ewin, move), args);
+ break;
+
+ case EWIN_OP_INH_USER_SIZE:
+ WINOP_SET_BOOL(EwinInhGetUser(ewin, size), args);
+ break;
+
+ case EWIN_OP_INH_WM_FOCUS:
+ WINOP_SET_BOOL(EwinInhGetWM(ewin, focus), args);
+ break;
+
+#if USE_COMPOSITE
+ case EWIN_OP_FADE:
+ WINOP_SET_BOOL(ewin->o.fade, args);
+ break;
+
+ case EWIN_OP_SHADOW:
+ WINOP_SET_BOOL(ewin->o.shadow, args);
+ break;
+
+ case EWIN_OP_NO_REDIRECT:
+ WINOP_SET_BOOL(ewin->o.noredir, args);
+ break;
+
+ case EWIN_OP_NO_ARGB:
+ WINOP_SET_BOOL(ewin->props.no_argb, args);
+ break;
+#endif
+ }
+}
+
+#if USE_COMPOSITE
+static void
+WindowMatchEobjOpsAction(EObj * eo, int op, const char *args)
+{
+ int a;
+
+ switch (op)
+ {
+ default:
+ /* We should not get here */
+ return;
+
+ case EWIN_OP_OPACITY:
+ a = atoi(args);
+ eo->opacity = OpacityFromPercent(OpacityFix(a, 100));
+ break;
+
+ case EWIN_OP_FADE:
+ WINOP_SET_BOOL(eo->fade, args);
+ break;
+
+ case EWIN_OP_SHADOW:
+ WINOP_SET_BOOL(eo->shadow, args);
+ break;
+
+ case EWIN_OP_NO_REDIRECT:
+ WINOP_SET_BOOL(eo->noredir, args);
+ break;
+ }
+}
+#endif
+
+static int
+WindowMatchEobjOpsParse(EObj * eo, const char *ops)
+{
+ int err, len;
+ const WinOp *wop;
+ char *ops2, *s, *p, op[32];
+
+ if (!ops)
+ return -1;
+
+ /* Parse ':' separated operations list, e.g. "layer 3:desk 1: shade" */
+ p = ops2 = Estrdup(ops);
+
+ err = 0;
+ for (; p; p = s)
+ {
+ /* Break at ':' */
+ s = strchr(p, ':');
+ if (s)
+ *s++ = '\0';
+
+ len = 0;
+ sscanf(p, "%31s %n", op, &len);
+ if (len <= 0)
+ break;
+ p += len;
+
+ wop = EwinOpFind(op);
+ if (!wop || !wop->ok_match)
+ {
+ err = -1;
+ break;
+ }
+
+ /* If eo is NULL, we are validating the configuration */
+ if (!eo)
+ continue;
+#if USE_COMPOSITE
+ if (eo->type == EOBJ_TYPE_EWIN)
+ WindowMatchEwinOpsAction((EWin *) eo, wop->op, p);
+ else
+ WindowMatchEobjOpsAction(eo, wop->op, p);
+#else
+ WindowMatchEwinOpsAction((EWin *) eo, wop->op, p);
+#endif
+ }
+
+ Efree(ops2);
+
+ return err;
+}
+
+static void
+_WindowMatchEwinFunc(void *_wm, void *_ew)
+{
+ const WindowMatch *wm = (WindowMatch *) _wm;
+ EWin *ew = (EWin *) _ew;
+
+ if (wm->op != MATCH_OP_WINOP || !WindowMatchEwinTest(wm, ew))
+ return;
+
+ /* Match found - do the ops */
+ WindowMatchEobjOpsParse(EoObj(ew), wm->args);
+}
+
+void
+WindowMatchEwinOps(EWin * ew)
+{
+ ecore_list_for_each(wm_list, _WindowMatchEwinFunc, ew);
+}
+
+#if USE_COMPOSITE
+static void
+_WindowMatchEobjFunc(void *_wm, void *_eo)
+{
+ const WindowMatch *wm = (WindowMatch *) _wm;
+ EObj *eo = (EObj *) _eo;
+
+ if (wm->op != MATCH_OP_WINOP || !WindowMatchEobjTest(wm, eo))
+ return;
+
+ /* Match found - do the ops */
+ WindowMatchEobjOpsParse(eo, wm->args);
+}
+
+void
+WindowMatchEobjOps(EObj * eo)
+{
+ ecore_list_for_each(wm_list, _WindowMatchEobjFunc, eo);
+}
+#endif
+
+/*
+ * Winmatch module
+ */
+
+static void
+WindowMatchSighan(int sig, void *prm __UNUSED__)
+{
+ switch (sig)
+ {
+ case ESIGNAL_CONFIGURE:
+#if 0 /* Done as part of theme loading */
+ ConfigFileLoad("windowmatches.cfg", Mode.theme.path,
+ WindowMatchConfigLoad, 1);
+#endif
+ ConfigFileLoad("matches.cfg", NULL, WindowMatchConfigLoad2, 0);
+#if 0
+ WindowMatchConfigLoadUser();
+#endif
+#if 0
+ IcondefChecker(0, NULL);
+#endif
+ break;
+ }
+}
+
+static void
+WindowMatchIpc(const char *params)
+{
+ const char *p;
+ char cmd[128], prm[4096], buf[4096];
+ int len;
+
+ cmd[0] = prm[0] = '\0';
+ p = params;
+ if (p)
+ {
+ len = 0;
+ sscanf(p, "%100s %4000s %n", cmd, prm, &len);
+ p += len;
+ }
+
+ if (!p || cmd[0] == '?')
+ {
+ }
+ else if (!strncmp(cmd, "list", 2))
+ {
+ WindowMatch *wm;
+
+ ECORE_LIST_FOR_EACH(wm_list, wm)
+ IpcPrintf("%s\n", WindowMatchEncode(wm, buf, sizeof(buf)));
+ }
+}
+
+static const IpcItem WindowMatchIpcArray[] = {
+ {
+ WindowMatchIpc,
+ "wmatch", "wma",
+ "Window match functions",
+ " wmatch list List window matches\n"}
+ ,
+};
+#define N_IPC_FUNCS (sizeof(WindowMatchIpcArray)/sizeof(IpcItem))
+
+/*
+ * Module descriptor
+ */
+extern const EModule ModWindowMatch;
+const EModule ModWindowMatch = {
+ "winmatch", NULL,
+ WindowMatchSighan,
+ {N_IPC_FUNCS, WindowMatchIpcArray}
+ ,
+ {0, NULL}
+};
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2006-2007 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _WINDOWMATCH_H_
+#define _WINDOWMATCH_H_
+
+#include "etypes.h"
+
+int WindowMatchConfigLoad(FILE * fs);
+Border *WindowMatchEwinBorder(const EWin * ewin);
+const char *WindowMatchEwinIcon(const EWin * ewin);
+void WindowMatchEwinOps(EWin * ewin);
+
+void WindowMatchEobjOps(EObj * eo);
+
+#endif /* _WINDOWMATCH_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#define DECLARE_WIN 1
+#include "E.h"
+#include "edebug.h"
+#include "util.h"
+#include "xwin.h"
+#include <string.h>
+#include <unistd.h>
+#ifdef USE_ECORE_X
+#include <Ecore_X.h>
+#endif
+#include <X11/Xatom.h>
+#include <X11/Xutil.h>
+#include <X11/Xresource.h>
+#include <X11/extensions/shape.h>
+#if USE_COMPOSITE
+#include <X11/extensions/Xrender.h>
+#endif
+#if USE_GLX
+#include "eglx.h"
+#endif
+
+#define DEBUG_XWIN 0
+#define DEBUG_PIXMAP 0
+
+EDisplay Dpy;
+
+#if USE_COMPOSITE
+static Visual *argb_visual = NULL;
+static Colormap argb_cmap = None;
+#endif
+
+static XContext xid_context = 0;
+
+static Win win_first = NULL;
+static Win win_last = NULL;
+
+#define WinBgInvalidate(win) if (win->bg_owned > 0) win->bg_owned = -1
+
+#if !EXPOSE_WIN
+Window
+WinGetXwin(const Win win)
+{
+ return win->xwin;
+}
+
+int
+WinGetX(const Win win)
+{
+ return win->x;
+}
+
+int
+WinGetY(const Win win)
+{
+ return win->y;
+}
+
+int
+WinGetW(const Win win)
+{
+ return win->w;
+}
+
+int
+WinGetH(const Win win)
+{
+ return win->h;
+}
+
+int
+WinGetBorderWidth(const Win win)
+{
+ return win->bw;
+}
+
+int
+WinGetDepth(const Win win)
+{
+ return win->depth;
+}
+
+Visual *
+WinGetVisual(const Win win)
+{
+ return win->visual;
+}
+
+Colormap
+WinGetCmap(const Win win)
+{
+ return win->cmap;
+}
+#endif
+
+void
+EXInit(void)
+{
+ memset(&Dpy, 0, sizeof(Dpy));
+}
+
+static Win
+EXidCreate(void)
+{
+ Win win;
+
+ win = ECALLOC(struct _xwin, 1);
+
+ win->bgcol = 0xffffffff;
+
+ return win;
+}
+
+static void
+EXidDestroy(Win win)
+{
+#if DEBUG_XWIN
+ Eprintf("EXidDestroy: %p %#lx\n", win, win->xwin);
+#endif
+ if (win->rects)
+ XFree(win->rects);
+ Efree(win->cbl.lst);
+ Efree(win);
+}
+
+static void
+EXidAdd(Win win)
+{
+#if DEBUG_XWIN
+ Eprintf("EXidAdd: %p %#lx\n", win, win->xwin);
+#endif
+ if (!xid_context)
+ xid_context = XUniqueContext();
+
+ XSaveContext(disp, win->xwin, xid_context, (XPointer) win);
+
+ if (!win_first)
+ {
+ win_first = win_last = win;
+ }
+ else
+ {
+ win->prev = win_last;
+ win_last->next = win;
+ win_last = win;
+ }
+}
+
+static void
+EXidDel(Win win)
+{
+#if DEBUG_XWIN
+ Eprintf("EXidDel: %p %#lx\n", win, win->xwin);
+#endif
+ if (win == win_first)
+ {
+ if (win == win_last)
+ {
+ win_first = win_last = NULL;
+ }
+ else
+ {
+ win_first = win->next;
+ win->next->prev = NULL;
+ }
+ }
+ else if (win == win_last)
+ {
+ win_last = win->prev;
+ win->prev->next = NULL;
+ }
+ else
+ {
+ win->prev->next = win->next;
+ win->next->prev = win->prev;
+ }
+
+ XDeleteContext(disp, win->xwin, xid_context);
+ if (win->in_use)
+ win->do_del = 1;
+ else
+ EXidDestroy(win);
+}
+
+#define EXidLookup ELookupXwin
+
+Win
+EXidLookup(Window xwin)
+{
+ Win win;
+ XPointer xp;
+
+ if (!xid_context)
+ return NULL;
+
+ xp = NULL;
+ if (XFindContext(disp, xwin, xid_context, &xp) == XCNOENT)
+ xp = NULL;
+ win = (Win) xp;
+
+ return win;
+}
+
+static Win
+EXidSet(Window xwin, Win parent, int x, int y, int w, int h, int depth,
+ Visual * visual, Colormap cmap)
+{
+ Win win;
+
+ win = EXidCreate();
+ win->parent = parent;
+ win->xwin = xwin;
+ win->x = x;
+ win->y = y;
+ win->w = w;
+ win->h = h;
+ win->depth = depth;
+ win->visual = visual;
+ win->cmap = cmap;
+#if DEBUG_XWIN
+ Eprintf("EXidSet: %#lx\n", win->xwin);
+#endif
+ EXidAdd(win);
+
+ return win;
+}
+
+void
+EventCallbackRegister(Win win, int type __UNUSED__, EventCallbackFunc * func,
+ void *prm)
+{
+ EventCallbackItem *eci;
+
+ if (!win)
+ return;
+#if 0
+ Eprintf("EventCallbackRegister: %p %#lx: func=%p prm=%p\n", win, win->xwin,
+ func, prm);
+#endif
+
+ win->cbl.num++;
+ win->cbl.lst = EREALLOC(EventCallbackItem, win->cbl.lst, win->cbl.num);
+ eci = win->cbl.lst + win->cbl.num - 1;
+ eci->func = func;
+ eci->prm = prm;
+}
+
+void
+EventCallbackUnregister(Win win, int type __UNUSED__,
+ EventCallbackFunc * func, void *prm)
+{
+ EventCallbackList *ecl;
+ EventCallbackItem *eci;
+ int i;
+
+ if (!win)
+ return;
+#if 0
+ Eprintf("EventCallbackUnregister: %p %#lx: func=%p prm=%p\n", win, win->xwin,
+ func, prm);
+#endif
+
+ ecl = &win->cbl;
+ eci = ecl->lst;
+ for (i = 0; i < ecl->num; i++, eci++)
+ if (eci->func == func && eci->prm == prm)
+ {
+ ecl->num--;
+ if (ecl->num)
+ {
+ for (; i < ecl->num; i++, eci++)
+ *eci = *(eci + 1);
+ win->cbl.lst =
+ EREALLOC(EventCallbackItem, win->cbl.lst, ecl->num);
+ }
+ else
+ {
+ Efree(win->cbl.lst);
+ win->cbl.lst = NULL;
+ }
+ return;
+ }
+}
+
+void
+EventCallbacksProcess(Win win, XEvent * ev)
+{
+ EventCallbackList *ecl;
+ EventCallbackItem *eci;
+ int i;
+
+ if (!win)
+ return;
+
+ win->in_use = 1;
+ ecl = &win->cbl;
+ eci = ecl->lst;
+ for (i = 0; i < ecl->num; i++, eci++)
+ {
+ if (EDebug(EDBUG_TYPE_DISPATCH))
+ Eprintf("EventDispatch: type=%d win=%#lx func=%p prm=%p\n",
+ ev->type, ev->xany.window, eci->func, eci->prm);
+ eci->func(win, ev, eci->prm);
+ if (win->do_del)
+ {
+ EXidDestroy(win);
+ return;
+ }
+ }
+ win->in_use = 0;
+}
+
+Win
+ECreateWindow(Win parent, int x, int y, int w, int h, int saveunder)
+{
+ Win win;
+ Window xwin;
+ XSetWindowAttributes attr;
+
+ attr.backing_store = NotUseful;
+ attr.override_redirect = False;
+ attr.colormap = parent->cmap;
+ attr.border_pixel = 0;
+/* attr.background_pixel = 0; */
+ attr.background_pixmap = None;
+ if ((saveunder == 1) && (Conf.save_under))
+ attr.save_under = True;
+ else if (saveunder == 2)
+ attr.save_under = True;
+ else
+ attr.save_under = False;
+
+ xwin = XCreateWindow(disp, parent->xwin, x, y, w, h, 0,
+ CopyFromParent, InputOutput, CopyFromParent,
+ CWOverrideRedirect | CWSaveUnder | CWBackingStore |
+ CWColormap | CWBackPixmap | CWBorderPixel, &attr);
+ win = EXidSet(xwin, parent, x, y, w, h, parent->depth, parent->visual,
+ parent->cmap);
+
+ return win;
+}
+
+#if USE_COMPOSITE
+static Win
+ECreateWindowVDC(Win parent, int x, int y, int w, int h,
+ Visual * vis, unsigned int depth, Colormap cmap)
+{
+ Win win;
+ Window xwin;
+ XSetWindowAttributes attr;
+
+ attr.background_pixmap = None;
+ attr.border_pixel = 0;
+ attr.backing_store = NotUseful;
+ attr.save_under = False;
+ attr.override_redirect = False;
+ attr.colormap = cmap;
+
+ xwin = XCreateWindow(disp, parent->xwin, x, y, w, h, 0,
+ depth, InputOutput, vis,
+ CWOverrideRedirect | CWSaveUnder | CWBackingStore |
+ CWColormap | CWBackPixmap | CWBorderPixel, &attr);
+ win = EXidSet(xwin, parent, x, y, w, h, depth, vis, cmap);
+
+ return win;
+}
+
+Win
+ECreateArgbWindow(Win parent, int x, int y, int w, int h, Win cwin)
+{
+ int depth;
+ Visual *vis;
+ Colormap cmap;
+
+ if (cwin && Conf.testing.argb_clients_inherit_attr)
+ {
+ depth = cwin->depth;
+ vis = cwin->visual;
+ cmap = cwin->cmap;
+ }
+ else
+ {
+ if (!argb_visual)
+ {
+ argb_visual = EVisualFindARGB();
+ argb_cmap =
+ XCreateColormap(disp, WinGetXwin(VROOT), argb_visual,
+ AllocNone);
+ }
+ depth = 32;
+ vis = argb_visual;
+ cmap = argb_cmap;
+ }
+
+ return ECreateWindowVDC(parent, x, y, w, h, vis, depth, cmap);
+}
+
+#if USE_GLX
+Win
+ECreateWindowVD(Win parent, int x, int y, int w, int h,
+ Visual * vis, unsigned int depth)
+{
+ Colormap cmap;
+
+ if (!vis || depth == 0)
+ return 0;
+
+ cmap = XCreateColormap(disp, WinGetXwin(VROOT), vis, AllocNone);
+
+ return ECreateWindowVDC(parent, x, y, w, h, vis, depth, cmap);
+}
+#endif
+
+#endif /* USE_COMPOSITE */
+
+Win
+ECreateObjectWindow(Win parent, int x, int y, int w, int h, int saveunder,
+ int type, Win cwin)
+{
+ Win win;
+
+#if USE_COMPOSITE
+ int argb = 0;
+
+ switch (type)
+ {
+ default:
+ case WIN_TYPE_NO_ARGB:
+ break;
+ case WIN_TYPE_CLIENT:
+ if (Conf.testing.argb_clients || EVisualIsARGB(cwin->visual))
+ argb = 1;
+ break;
+ case WIN_TYPE_INTERNAL:
+ if (Conf.testing.argb_internal_objects)
+ argb = 1;
+ break;
+#if USE_GLX
+ case WIN_TYPE_GLX: /* Internal GL */
+ argb = 1;
+ win =
+ ECreateWindowVD(parent, x, y, w, h, EGlGetVisual(), EGlGetDepth());
+ if (win)
+ win->argb = 1;
+ return win;
+#endif
+ }
+
+ if (argb)
+ win = ECreateArgbWindow(parent, x, y, w, h, cwin);
+ else
+ win = ECreateWindow(parent, x, y, w, h, saveunder);
+ win->argb = argb;
+#else
+ win = ECreateWindow(parent, x, y, w, h, saveunder);
+ type = 0;
+ cwin = NULL;
+#endif
+
+ return win;
+}
+
+Win
+ECreateClientWindow(Win parent, int x, int y, int w, int h)
+{
+#if USE_COMPOSITE
+ if (Conf.testing.argb_internal_clients)
+ return ECreateArgbWindow(parent, x, y, w, h, NULL);
+#endif
+
+ return ECreateWindow(parent, x, y, w, h, 0);
+}
+
+Win
+ECreateEventWindow(Win parent, int x, int y, int w, int h)
+{
+ Win win;
+ Window xwin;
+ XSetWindowAttributes attr;
+
+ attr.override_redirect = False;
+
+ xwin = XCreateWindow(disp, parent->xwin, x, y, w, h, 0, 0, InputOnly,
+ CopyFromParent, CWOverrideRedirect, &attr);
+ win = EXidSet(xwin, parent, x, y, w, h, 0, NULL, None);
+
+ return win;
+}
+
+#if 0 /* Not used */
+/*
+ * create a window which will accept the keyboard focus when no other
+ * windows have it
+ */
+Win
+ECreateFocusWindow(Win parent, int x, int y, int w, int h)
+{
+ Win win;
+ XSetWindowAttributes attr;
+
+ attr.backing_store = NotUseful;
+ attr.override_redirect = False;
+ attr.colormap = WinGetCmap(VROOT);
+ attr.border_pixel = 0;
+ attr.background_pixel = 0;
+ attr.save_under = False;
+ attr.event_mask = KeyPressMask | FocusChangeMask;
+
+ Window xwin, xpar;
+
+ win = XCreateWindow(disp, parent, x, y, w, h, 0, 0, InputOnly,
+ CopyFromParent,
+ CWOverrideRedirect | CWSaveUnder | CWBackingStore |
+ CWColormap | CWBackPixel | CWBorderPixel | CWEventMask,
+ &attr);
+
+ XSetWindowBackground(disp, win, 0);
+ XMapWindow(disp, win);
+ XSetInputFocus(disp, win, RevertToParent, CurrentTime);
+
+ return win;
+}
+#endif
+
+void
+EMoveWindow(Win win, int x, int y)
+{
+ if (!win)
+ return;
+
+#if 0
+ Eprintf("EMoveWindow: %p %#lx: %d,%d %dx%d -> %d,%d\n",
+ win, win->xwin, win->x, win->y, win->w, win->h, x, y);
+#endif
+ if ((x == win->x) && (y == win->y))
+ return;
+
+ win->x = x;
+ win->y = y;
+
+ XMoveWindow(disp, win->xwin, x, y);
+}
+
+void
+EResizeWindow(Win win, int w, int h)
+{
+ if (!win)
+ return;
+
+ if ((w == win->w) && (h == win->h))
+ return;
+
+ WinBgInvalidate(win);
+ win->w = w;
+ win->h = h;
+
+ XResizeWindow(disp, win->xwin, w, h);
+}
+
+void
+EMoveResizeWindow(Win win, int x, int y, int w, int h)
+{
+ if (!win)
+ return;
+
+#if 0
+ Eprintf("EMoveResizeWindow: %p %#lx: %d,%d %dx%d -> %d,%d %dx%d\n",
+ win, win->xwin, win->x, win->y, win->w, win->h, x, y, w, h);
+#endif
+ if ((w == win->w) && (h == win->h) && (x == win->x) && (y == win->y))
+ return;
+
+ if (w != win->w || h != win->h)
+ WinBgInvalidate(win);
+
+ win->x = x;
+ win->y = y;
+ win->w = w;
+ win->h = h;
+
+ XMoveResizeWindow(disp, win->xwin, x, y, w, h);
+}
+
+static int
+ExDelTree(Win win)
+{
+ Win win2;
+ int nsub;
+
+ win->do_del = -1;
+
+ nsub = 0;
+ for (win2 = win_first; win2; win2 = win2->next)
+ {
+ if (win2->parent != win)
+ continue;
+ ExDelTree(win2);
+ nsub++;
+ }
+
+ return nsub;
+}
+
+void
+EDestroyWindow(Win win)
+{
+ Win next;
+ int nsub;
+
+ if (!win)
+ return;
+
+#if DEBUG_XWIN
+ Eprintf("ExDestroyWindow: %p %#lx\n", win, win->xwin);
+#endif
+ if (win->parent != None)
+ {
+ EFreeWindowBackgroundPixmap(win);
+ XDestroyWindow(disp, win->xwin);
+ }
+
+ /* Mark the ones to be deleted */
+ nsub = ExDelTree(win);
+ if (nsub == 0)
+ {
+ /* No children */
+ EXidDel(win);
+ return;
+ }
+
+ /* Delete entire tree */
+ for (win = win_first; win; win = next)
+ {
+ next = win->next;
+ if (win->do_del < 0)
+ EXidDel(win);
+ }
+}
+
+void
+EWindowSync(Win win)
+{
+ Window rr;
+ int x, y;
+ unsigned int w, h, bw, depth;
+
+ if (!win)
+ return;
+
+ XGetGeometry(disp, win->xwin, &rr, &x, &y, &w, &h, &bw, &depth);
+#if 0
+ Eprintf("EWindowSync: %p %#lx: %d,%d %dx%d -> %d,%d %dx%d\n",
+ win, win->xwin, win->x, win->y, win->w, win->h, x, y, w, h);
+#endif
+ win->x = x;
+ win->y = y;
+ win->w = w;
+ win->h = h;
+ win->depth = depth;
+}
+
+void
+EWindowSetGeometry(Win win, int x, int y, int w, int h, int bw)
+{
+ if (!win)
+ return;
+
+ win->x = x;
+ win->y = y;
+ win->w = w;
+ win->h = h;
+ win->bw = bw;
+}
+
+void
+EWindowSetMapped(Win win, int mapped)
+{
+ if (!win)
+ return;
+
+ win->mapped = mapped;
+}
+
+Window
+EXWindowGetParent(Window xwin)
+{
+ Window parent, rt;
+ Window *pch = NULL;
+ unsigned int nch = 0;
+
+ parent = None;
+ if (!XQueryTree(disp, xwin, &rt, &parent, &pch, &nch))
+ parent = None;
+ else if (pch)
+ XFree(pch);
+
+#if 0 /* FIXME - Remove? */
+ win = EXidLookup(xwin);
+ if (win)
+ win->parent = parent;
+#endif
+
+ return parent;
+}
+
+Win
+ECreateWinFromXwin(Window xwin)
+{
+ Win win;
+ Window rr;
+ int x, y;
+ unsigned int w, h, bw, depth;
+
+ if (!XGetGeometry(disp, xwin, &rr, &x, &y, &w, &h, &bw, &depth))
+ return NULL;
+
+ win = EXidCreate();
+ if (!win)
+ return NULL;
+
+ win->xwin = xwin;
+ win->x = x;
+ win->y = y;
+ win->w = w;
+ win->h = h;
+ win->depth = depth;
+ win->visual = WinGetVisual(VROOT);
+ win->cmap = WinGetCmap(VROOT);
+
+ return win;
+}
+
+void
+EDestroyWin(Win win)
+{
+ EXidDestroy(win);
+}
+
+Win
+ERegisterWindow(Window xwin, XWindowAttributes * pxwa)
+{
+ Win win;
+ XWindowAttributes xwa;
+
+ win = EXidLookup(xwin);
+ if (win)
+ goto done;
+
+ if (!pxwa)
+ {
+ pxwa = &xwa;
+ if (!XGetWindowAttributes(disp, xwin, pxwa))
+ goto done;
+ }
+
+#if 0
+ Eprintf("ERegisterWindow %#lx %d+%d %dx%d\n", win, x, y, w, h);
+#endif
+ win = EXidSet(xwin, None, pxwa->x, pxwa->y, pxwa->width, pxwa->height,
+ pxwa->depth, pxwa->visual, pxwa->colormap);
+ win->mapped = pxwa->map_state != IsUnmapped;
+ win->attached = 1;
+
+ done:
+ return win;
+}
+
+void
+EUnregisterXwin(Window xwin)
+{
+ Win win;
+
+ win = EXidLookup(xwin);
+ if (!win)
+ return;
+
+ /* FIXME - We shouldn't go here */
+ EXidDel(win);
+#if 1 /* Debug - Fix code if we get here */
+ Eprintf("*** FIXME - EUnregisterXwin %#lx\n", xwin);
+#endif
+}
+
+void
+EUnregisterWindow(Win win)
+{
+ if (!win)
+ return;
+
+ if (win->cbl.lst)
+ {
+ if (EDebug(1))
+ Eprintf("EUnregisterWindow(%#lx) Ignored (%d callbacks remain)\n",
+ win->xwin, win->cbl.num);
+ return;
+ }
+
+ EXidDel(win);
+}
+
+void
+EMapWindow(Win win)
+{
+ if (!win)
+ return;
+
+ if (win->mapped)
+ return;
+ win->mapped = 1;
+
+ XMapWindow(disp, win->xwin);
+}
+
+void
+EUnmapWindow(Win win)
+{
+ if (!win)
+ return;
+
+ if (!win->mapped)
+ return;
+ win->mapped = 0;
+
+ XUnmapWindow(disp, win->xwin);
+}
+
+void
+EReparentWindow(Win win, Win parent, int x, int y)
+{
+ if (!win)
+ return;
+
+#if 0
+ Eprintf
+ ("EReparentWindow: %p %#lx: %d %#lx->%#lx %d,%d %dx%d -> %d,%d\n",
+ win, win->xwin, win->mapped, win->parent, parent->xwin,
+ win->x, win->y, win->w, win->h, x, y);
+#endif
+ if (parent == win->parent)
+ {
+ if ((x != win->x) || (y != win->y))
+ {
+ win->x = x;
+ win->y = y;
+ XMoveWindow(disp, win->xwin, x, y);
+ }
+ return;
+ }
+ else
+ {
+ win->parent = parent;
+ win->x = x;
+ win->y = y;
+ }
+
+ XReparentWindow(disp, win->xwin, parent->xwin, x, y);
+}
+
+void
+EMapRaised(Win win)
+{
+ if (!win)
+ return;
+
+ if (win->mapped)
+ {
+ XRaiseWindow(disp, win->xwin);
+ return;
+ }
+ else
+ {
+ win->mapped = 1;
+ }
+
+ XMapRaised(disp, win->xwin);
+}
+
+int
+EXGetGeometry(Drawable draw, Window * root_return, int *x, int *y,
+ int *w, int *h, int *bw, int *depth)
+{
+ int ok;
+ Window rr;
+ int xx, yy;
+ unsigned int ww, hh, bb, dd;
+
+ ok = XGetGeometry(disp, draw, &rr, &xx, &yy, &ww, &hh, &bb, &dd);
+ if (!ok)
+ goto done;
+
+ if (root_return)
+ *root_return = rr;
+ if (x)
+ *x = xx;
+ if (y)
+ *y = yy;
+ if (w)
+ *w = ww;
+ if (h)
+ *h = hh;
+ if (bw)
+ *bw = bb;
+ if (depth)
+ *depth = dd;
+
+ done:
+#if 0 /* Debug */
+ if (!ok)
+ Eprintf("EGetGeometry win=%#x, error %d\n", (unsigned)win, ok);
+#endif
+ return ok;
+}
+
+int
+EGetGeometry(Win win, Window * root_return, int *x, int *y,
+ int *w, int *h, int *bw, int *depth)
+{
+ if (!win)
+ return 0;
+
+ if (x)
+ *x = win->x;
+ if (y)
+ *y = win->y;
+ if (w)
+ *w = win->w;
+ if (h)
+ *h = win->h;
+ if (bw)
+ *bw = 0;
+ if (depth)
+ *depth = win->depth;
+ if (root_return)
+ *root_return = WinGetXwin(VROOT);
+
+ return 1;
+}
+
+void
+EGetWindowAttributes(Win win, XWindowAttributes * pxwa)
+{
+ if (!win)
+ return;
+
+ pxwa->x = win->x;
+ pxwa->y = win->y;
+ pxwa->width = win->w;
+ pxwa->height = win->h;
+ pxwa->border_width = win->bw;
+ pxwa->depth = win->depth;
+ pxwa->visual = win->visual;
+ pxwa->colormap = win->cmap;
+}
+
+#if 0 /* Unused */
+void
+EConfigureWindow(Win win, unsigned int mask, XWindowChanges * wc)
+{
+ char doit = 0;
+
+ if (!win)
+ return;
+
+ if ((mask & CWX) && (wc->x != win->x))
+ {
+ win->x = wc->x;
+ doit = 1;
+ }
+ if ((mask & CWY) && (wc->y != win->y))
+ {
+ win->y = wc->y;
+ doit = 1;
+ }
+ if ((mask & CWWidth) && (wc->width != win->w))
+ {
+ WinBgInvalidate(win);
+ win->w = wc->width;
+ doit = 1;
+ }
+ if ((mask & CWHeight) && (wc->height != win->h))
+ {
+ WinBgInvalidate(win);
+ win->h = wc->height;
+ doit = 1;
+ }
+
+ if ((doit) || (mask & (CWBorderWidth | CWSibling | CWStackMode)))
+ XConfigureWindow(disp, win->xwin, mask, wc);
+}
+#endif
+
+void
+ESetWindowBackgroundPixmap(Win win, Pixmap pmap)
+{
+ if (!win)
+ return;
+
+ if (win->bgpmap && win->bg_owned)
+ EFreeWindowBackgroundPixmap(win);
+ win->bgpmap = pmap;
+ win->bg_owned = 0; /* Don't manage pixmap */
+ win->bgcol = 0xffffffff; /* Hmmm.. */
+
+ XSetWindowBackgroundPixmap(disp, win->xwin, pmap);
+}
+
+Pixmap
+EGetWindowBackgroundPixmap(Win win)
+{
+ Pixmap pmap;
+
+ if (!win)
+ return None;
+
+ if (win->bg_owned < 0) /* Free if invalidated */
+ EFreeWindowBackgroundPixmap(win);
+ else if (win->bgpmap)
+ return win->bgpmap;
+
+ /* Allocate/set new */
+ pmap = ECreatePixmap(win, win->w, win->h, 0);
+ ESetWindowBackgroundPixmap(win, pmap);
+ win->bg_owned = 1; /* Manage pixmap */
+
+ return pmap;
+}
+
+void
+EFreeWindowBackgroundPixmap(Win win)
+{
+ if (!win || !win->bgpmap)
+ return;
+
+ if (win->bg_owned)
+ EFreePixmap(win->bgpmap);
+ win->bgpmap = 0;
+ win->bg_owned = 0;
+}
+
+void
+ESetWindowBackground(Win win, unsigned int col)
+{
+ if (!win)
+ return;
+
+ if (win->bgpmap)
+ {
+ EFreeWindowBackgroundPixmap(win);
+ win->bgcol = col;
+ }
+ else if (win->bgcol != col)
+ {
+ win->bgcol = col;
+ }
+ else
+ return;
+
+ XSetWindowBackground(disp, win->xwin, col);
+}
+
+void
+ESelectInput(Win win, unsigned int event_mask)
+{
+ XSelectInput(disp, win->xwin, event_mask);
+}
+
+void
+EChangeWindowAttributes(Win win, unsigned int mask, XSetWindowAttributes * attr)
+{
+ XChangeWindowAttributes(disp, win->xwin, mask, attr);
+}
+
+void
+ESetWindowBorderWidth(Win win, unsigned int bw)
+{
+ XSetWindowBorderWidth(disp, win->xwin, bw);
+}
+
+void
+ERaiseWindow(Win win)
+{
+ XRaiseWindow(disp, win->xwin);
+}
+
+void
+ELowerWindow(Win win)
+{
+ XLowerWindow(disp, win->xwin);
+}
+
+void
+EXRestackWindows(Window * windows, int nwindows)
+{
+ XRestackWindows(disp, windows, nwindows);
+}
+
+void
+EClearWindow(Win win)
+{
+ XClearWindow(disp, win->xwin);
+}
+
+void
+EClearArea(Win win, int x, int y, unsigned int w, unsigned int h)
+{
+ XClearArea(disp, win->xwin, x, y, w, h, False);
+}
+
+int
+ETranslateCoordinates(Win src_w, Win dst_w, int src_x, int src_y,
+ int *dest_x_return, int *dest_y_return,
+ Window * child_return)
+{
+ Window child;
+
+ if (!child_return)
+ child_return = &child;
+
+ return XTranslateCoordinates(disp, src_w->xwin, dst_w->xwin, src_x, src_y,
+ dest_x_return, dest_y_return, child_return);
+}
+
+void
+EXWarpPointer(Window xwin, int x, int y)
+{
+ XWarpPointer(disp, None, xwin, 0, 0, 0, 0, x, y);
+}
+
+static Bool
+EXQueryPointer(Window xwin, int *px, int *py, Window * pchild,
+ unsigned int *pmask)
+{
+ Window root, child;
+ int root_x, root_y;
+ unsigned int mask;
+
+ if (xwin == None)
+ xwin = WinGetXwin(VROOT);
+
+ if (!px)
+ px = &root_x;
+ if (!py)
+ py = &root_y;
+ if (!pchild)
+ pchild = &child;
+ if (!pmask)
+ pmask = &mask;
+
+ return XQueryPointer(disp, xwin, &root, pchild, &root_x, &root_y, px, py,
+ pmask);
+}
+
+Bool
+EQueryPointer(Win win, int *px, int *py, Window * pchild, unsigned int *pmask)
+{
+ Window xwin;
+
+ xwin = (win) ? win->xwin : WinGetXwin(VROOT);
+
+ return EXQueryPointer(xwin, px, py, pchild, pmask);
+}
+
+void
+ESelectInputChange(Win win, unsigned long set, unsigned long clear)
+{
+ XWindowAttributes xwa;
+
+ XGetWindowAttributes(disp, win->xwin, &xwa);
+ xwa.your_event_mask |= set;
+ xwa.your_event_mask &= ~clear;
+ XSelectInput(disp, win->xwin, xwa.your_event_mask);
+}
+
+int
+EDrawableCheck(Drawable draw, int grab)
+{
+ int ok;
+
+ if (draw == None)
+ return 0;
+
+ if (grab)
+ EGrabServer();
+
+ ok = EXGetGeometry(draw, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+
+ if (grab && !ok)
+ EUngrabServer();
+
+ return ok;
+}
+
+KeyCode
+EKeysymToKeycode(KeySym keysym)
+{
+ return XKeysymToKeycode(disp, keysym);
+}
+
+KeyCode
+EKeynameToKeycode(const char *name)
+{
+ return XKeysymToKeycode(disp, XStringToKeysym(name));
+}
+
+const char *
+EKeycodeToString(KeyCode keycode, int ix)
+{
+ return XKeysymToString(XKeycodeToKeysym(disp, keycode, ix));
+}
+
+Atom
+EInternAtom(const char *name)
+{
+ return XInternAtom(disp, name, False);
+}
+
+#define DEBUG_SHAPE_OPS 0
+#define DEBUG_SHAPE_PROPAGATE 0
+
+#if DEBUG_SHAPE_OPS || DEBUG_SHAPE_PROPAGATE
+static void
+EShapeShow(const char *txt, Window xwin, XRectangle * pr, int nr)
+{
+ int i;
+
+ Eprintf("%s %#lx nr=%d\n", txt, xwin, nr);
+ for (i = 0; i < nr; i++)
+ Eprintf(" %d - %4d,%4d %4dx%4d\n", i,
+ pr[i].x, pr[i].y, pr[i].width, pr[i].height);
+}
+#endif
+
+static void
+EShapeUpdate(Win win)
+{
+ if (win->rects)
+ {
+ XFree(win->rects);
+ win->num_rect = 0;
+ }
+
+ win->rects =
+ XShapeGetRectangles(disp, win->xwin, ShapeBounding, &(win->num_rect),
+ &(win->ord));
+ if (win->rects)
+ {
+ if (win->num_rect == 1)
+ {
+ if ((win->rects[0].x == 0) && (win->rects[0].y == 0)
+ && (win->rects[0].width == win->w)
+ && (win->rects[0].height == win->h))
+ {
+ win->num_rect = 0;
+ XFree(win->rects);
+ win->rects = NULL;
+ XShapeCombineMask(disp, win->xwin, ShapeBounding, 0, 0,
+ None, ShapeSet);
+ }
+ }
+ else if (win->num_rect > 4096)
+ {
+ Eprintf("*** EShapeUpdate: nrect=%d - Not likely, ignoring.\n",
+ win->num_rect);
+ XShapeCombineMask(disp, win->xwin, ShapeBounding, 0, 0, None,
+ ShapeSet);
+ win->num_rect = 0;
+ XFree(win->rects);
+ win->rects = NULL;
+ }
+ }
+ else
+ {
+ win->num_rect = -1;
+ }
+#if DEBUG_SHAPE_OPS
+ EShapeShow("EShapeUpdate", win->xwin, win->rects, win->num_rect);
+#endif
+}
+
+static void
+EShapeCombineMask(Win win, int dest, int x, int y, Pixmap pmap, int op)
+{
+ char wasshaped = 0;
+
+ if (!win)
+ return;
+
+ if (win->rects || win->num_rect < 0)
+ {
+ win->num_rect = 0;
+ if (win->rects)
+ XFree(win->rects);
+ win->rects = NULL;
+ wasshaped = 1;
+ }
+#if DEBUG_SHAPE_OPS
+ Eprintf("EShapeCombineMask %#lx %d,%d %dx%d mask=%#lx wassh=%d\n",
+ win->xwin, win->x, win->y, win->w, win->h, pmap, wasshaped);
+#endif
+ if (pmap)
+ {
+ XShapeCombineMask(disp, win->xwin, dest, x, y, pmap, op);
+ EShapeUpdate(win);
+ }
+ else if (wasshaped)
+ XShapeCombineMask(disp, win->xwin, dest, x, y, pmap, op);
+}
+
+static void
+EShapeCombineMaskTiled(Win win, int dest, int x, int y,
+ Pixmap pmap, int op, int w, int h)
+{
+ XGCValues gcv;
+ GC gc;
+ Window tm;
+
+ gcv.fill_style = FillTiled;
+ gcv.tile = pmap;
+ gcv.ts_x_origin = 0;
+ gcv.ts_y_origin = 0;
+ tm = ECreatePixmap(win, w, h, 1);
+ gc = EXCreateGC(tm, GCFillStyle | GCTile |
+ GCTileStipXOrigin | GCTileStipYOrigin, &gcv);
+ XFillRectangle(disp, tm, gc, 0, 0, w, h);
+ EXFreeGC(gc);
+ EShapeCombineMask(win, dest, x, y, tm, op);
+ EFreePixmap(tm);
+}
+
+static void
+EShapeCombineRectangles(Win win, int dest, int x, int y,
+ XRectangle * rect, int n_rects, int op, int ordering)
+{
+ if (!win)
+ return;
+#if DEBUG_SHAPE_OPS
+ Eprintf("EShapeCombineRectangles %#lx %d\n", win->xwin, n_rects);
+#endif
+
+ if (n_rects == 1 && op == ShapeSet)
+ {
+ if ((rect[0].x == 0) && (rect[0].y == 0) &&
+ (rect[0].width == win->w) && (rect[0].height == win->h))
+ {
+ win->num_rect = 0;
+ XFree(win->rects);
+ win->rects = NULL;
+ XShapeCombineMask(disp, win->xwin, dest, x, y, None, op);
+ return;
+ }
+ }
+ XShapeCombineRectangles(disp, win->xwin, dest, x, y, rect, n_rects, op,
+ ordering);
+ if (n_rects > 1)
+ {
+ /* Limit shape to window extents */
+ XRectangle r;
+
+ r.x = r.y = 0;
+ r.width = win->w;
+ r.height = win->h;
+ XShapeCombineRectangles(disp, win->xwin, ShapeBounding, 0, 0, &r,
+ 1, ShapeIntersect, Unsorted);
+ }
+ EShapeUpdate(win);
+}
+
+static void
+EShapeCombineShape(Win win, int dest, int x, int y,
+ Win src_win, int src_kind, int op)
+{
+ if (!win)
+ return;
+
+ XShapeCombineShape(disp, win->xwin, dest, x, y, src_win->xwin, src_kind, op);
+ EShapeUpdate(win);
+}
+
+int
+EShapePropagate(Win win)
+{
+ Win xch;
+ unsigned int num_rects;
+ int k, rn;
+ int x, y, w, h;
+ XRectangle *rects, *rectsn, *rl;
+
+ if (!win || win->w <= 0 || win->h <= 0)
+ return 0;
+
+#if DEBUG_SHAPE_PROPAGATE
+ Eprintf("EShapePropagate %#lx %d,%d %dx%d\n", win->xwin,
+ win->x, win->y, win->w, win->h);
+#endif
+
+ num_rects = 0;
+ rects = NULL;
+
+ /* go through all child windows and create/inset spans */
+ for (xch = win_first; xch; xch = xch->next)
+ {
+ if (xch->parent != win)
+ continue;
+
+#if DEBUG_SHAPE_PROPAGATE > 1
+ Eprintf("%#lx(%d): %4d,%4d %4dx%4d\n", xch->xwin, xch->mapped,
+ xch->x, xch->y, xch->w, xch->h);
+#endif
+ if (!xch->mapped)
+ continue;
+
+ x = xch->x;
+ y = xch->y;
+ w = xch->w;
+ h = xch->h;
+ if (x >= win->w || y >= win->h || x + w < 0 || y + h < 0)
+ continue;
+
+ rn = xch->num_rect;
+
+ if (rn > 0)
+ {
+ rl = xch->rects;
+ rectsn = EREALLOC(XRectangle, rects, num_rects + rn);
+ if (!rectsn)
+ goto bail_out;
+ rects = rectsn;
+
+ /* go through all clip rects in thsi window's shape */
+ for (k = 0; k < rn; k++)
+ {
+ /* for each clip rect, add it to the rect list */
+ rects[num_rects + k].x = x + rl[k].x;
+ rects[num_rects + k].y = y + rl[k].y;
+ rects[num_rects + k].width = rl[k].width;
+ rects[num_rects + k].height = rl[k].height;
+#if DEBUG_SHAPE_PROPAGATE > 1
+ Eprintf(" - %d: %4d,%4d %4dx%4d\n", k,
+ rects[num_rects + k].x,
+ rects[num_rects + k].y, rects[num_rects + k].width,
+ rects[num_rects + k].height);
+#endif
+ }
+ num_rects += rn;
+ }
+ else if (rn == 0)
+ {
+ /* Unshaped */
+ rectsn = EREALLOC(XRectangle, rects, num_rects + 1);
+ if (!rectsn)
+ goto bail_out;
+ rects = rectsn;
+
+ rects[num_rects].x = x;
+ rects[num_rects].y = y;
+ rects[num_rects].width = w;
+ rects[num_rects].height = h;
+ num_rects++;
+ }
+ }
+
+#if DEBUG_SHAPE_PROPAGATE
+ EShapeShow("EShapePropagate", win->xwin, rects, num_rects);
+#endif
+
+ /* set the rects as the shape mask */
+ if (rects)
+ {
+ EShapeCombineRectangles(win, ShapeBounding, 0, 0, rects,
+ num_rects, ShapeSet, Unsorted);
+ Efree(rects);
+ }
+ else
+ {
+ /* Empty shape */
+ EShapeCombineRectangles(win, ShapeBounding, 0, 0, NULL, 0, ShapeSet,
+ Unsorted);
+ }
+
+ return win->num_rect;
+
+ bail_out:
+ Efree(rects);
+ EShapeCombineMask(win, ShapeBounding, 0, 0, None, ShapeSet);
+ return 0;
+}
+
+int
+EShapeCheck(Win win)
+{
+ if (!win)
+ return 0;
+
+ return win->num_rect;
+}
+
+void
+EShapeSetMask(Win win, int x, int y, Pixmap mask)
+{
+ EShapeCombineMask(win, ShapeBounding, x, y, mask, ShapeSet);
+}
+
+void
+EShapeUnionMask(Win win, int x, int y, Pixmap mask)
+{
+ EShapeCombineMask(win, ShapeBounding, x, y, mask, ShapeUnion);
+}
+
+void
+EShapeSetMaskTiled(Win win, int x, int y, Pixmap mask, int w, int h)
+{
+ EShapeCombineMaskTiled(win, ShapeBounding, x, y, mask, ShapeSet, w, h);
+}
+
+void
+EShapeSetRects(Win win, int x, int y, XRectangle * rect, int n_rects)
+{
+ EShapeCombineRectangles(win, ShapeBounding, x, y, rect, n_rects,
+ ShapeSet, Unsorted);
+}
+
+void
+EShapeUnionRects(Win win, int x, int y, XRectangle * rect, int n_rects)
+{
+ EShapeCombineRectangles(win, ShapeBounding, x, y, rect, n_rects,
+ ShapeUnion, Unsorted);
+}
+
+int
+EShapeSetShape(Win win, int x, int y, Win src_win)
+{
+ EShapeCombineShape(win, ShapeBounding, x, y,
+ src_win, ShapeBounding, ShapeSet);
+ return win->num_rect != 0;
+}
+
+/* Build mask from window shape rects */
+Pixmap
+EWindowGetShapePixmap(Win win)
+{
+ Pixmap mask;
+ GC gc;
+ int i;
+ const XRectangle *rect;
+
+ if (win->num_rect == 0) /* Not shaped */
+ return None;
+
+ mask = ECreatePixmap(win, win->w, win->h, 1);
+ gc = EXCreateGC(mask, 0, NULL);
+
+ XSetForeground(disp, gc, 0);
+ XFillRectangle(disp, mask, gc, 0, 0, win->w, win->h);
+
+ XSetForeground(disp, gc, 1);
+ rect = win->rects;
+ for (i = 0; i < win->num_rect; i++)
+ XFillRectangle(disp, mask, gc, rect[i].x, rect[i].y,
+ rect[i].width, rect[i].height);
+
+ EXFreeGC(gc);
+
+ return mask;
+}
+
+Pixmap
+ECreatePixmap(Win win, unsigned int width, unsigned int height,
+ unsigned int depth)
+{
+ Pixmap pmap;
+
+ if (depth == 0)
+ depth = win->depth;
+
+ pmap = XCreatePixmap(disp, win->xwin, width, height, depth);
+#if DEBUG_PIXMAP
+ Eprintf("%s: %#lx\n", __func__, pmap);
+#endif
+ return pmap;
+}
+
+void
+EFreePixmap(Pixmap pmap)
+{
+#if DEBUG_PIXMAP
+ Eprintf("%s: %#lx\n", __func__, pmap);
+#endif
+ XFreePixmap(disp, pmap);
+}
+
+Pixmap
+EXCreatePixmapCopy(Pixmap src, unsigned int w, unsigned int h,
+ unsigned int depth)
+{
+ Pixmap pmap;
+ GC gc;
+
+ pmap = XCreatePixmap(disp, src, w, h, depth);
+ gc = EXCreateGC(src, 0, NULL);
+ XCopyArea(disp, src, pmap, gc, 0, 0, w, h, 0, 0);
+ EXFreeGC(gc);
+#if DEBUG_PIXMAP
+ Eprintf("%s: %#lx\n", __func__, pmap);
+#endif
+ return pmap;
+}
+
+void
+EXCopyArea(Drawable src, Drawable dst, int sx, int sy, unsigned int w,
+ unsigned int h, int dx, int dy)
+{
+ GC gc;
+
+ gc = EXCreateGC(src, 0, NULL);
+ XCopyArea(disp, src, dst, gc, sx, sy, w, h, dx, dy);
+ EXFreeGC(gc);
+}
+
+void
+EXCopyAreaTiled(Drawable src, Pixmap mask, Drawable dst, int sx, int sy,
+ unsigned int w, unsigned int h, int dx, int dy)
+{
+ GC gc;
+ XGCValues gcv;
+
+ gcv.fill_style = FillTiled;
+ gcv.tile = src;
+ gcv.ts_x_origin = sx;
+ gcv.ts_y_origin = sy;
+ gcv.clip_mask = mask;
+ gc = EXCreateGC(dst, GCFillStyle |
+ GCTile | GCTileStipXOrigin | GCTileStipYOrigin | GCClipMask,
+ &gcv);
+ XFillRectangle(disp, dst, gc, dx, dy, w, h);
+ EXFreeGC(gc);
+}
+
+GC
+EXCreateGC(Drawable draw, unsigned long mask, XGCValues * val)
+{
+ XGCValues xgcv;
+
+ if (val)
+ {
+ mask |= GCGraphicsExposures;
+ val->graphics_exposures = False;
+ }
+ else
+ {
+ mask = GCGraphicsExposures;
+ val = &xgcv;
+ val->graphics_exposures = False;
+ }
+ return XCreateGC(disp, draw, mask, val);
+}
+
+int
+EXFreeGC(GC gc)
+{
+ return XFreeGC(disp, gc);
+}
+
+void
+EXSendEvent(Window xwin, long event_mask, XEvent * ev)
+{
+ XSendEvent(disp, xwin, False, event_mask, ev);
+}
+
+void
+EAllocColor(Colormap cmap, EColor * pec)
+{
+ XColor xc;
+
+ EAllocXColor(cmap, &xc, pec);
+ pec->pixel = xc.pixel;
+}
+
+void
+EAllocXColor(Colormap cmap, XColor * pxc, EColor * pec)
+{
+ pxc->red = pec->red << 8;
+ pxc->green = pec->green << 8;
+ pxc->blue = pec->blue << 8;
+ XAllocColor(disp, cmap, pxc);
+}
+
+/*
+ * Display
+ */
+
+int
+EDisplayOpen(const char *dstr, int scr)
+{
+ char dbuf[256], *s;
+
+ if (scr >= 0)
+ {
+ /* Override screen */
+ Esnprintf(dbuf, sizeof(dbuf) - 10, "%s", dstr);
+ s = strchr(dbuf, ':');
+ if (s)
+ {
+ s = strchr(s, '.');
+ if (s)
+ *s = '\0';
+ }
+ Esnprintf(dbuf + strlen(dbuf), 10, ".%d", scr);
+ dstr = dbuf;
+ }
+
+#ifdef USE_ECORE_X
+ ecore_x_init(dstr);
+ disp = ecore_x_display_get();
+#else
+ disp = XOpenDisplay(dstr);
+#endif
+
+ return (disp) ? 0 : -1;
+}
+
+void
+EDisplayClose(void)
+{
+ if (!disp)
+ return;
+#ifdef USE_ECORE_X
+ ecore_x_shutdown();
+#else
+ XCloseDisplay(disp);
+#endif
+ XSetErrorHandler(NULL);
+ XSetIOErrorHandler(NULL);
+ disp = NULL;
+}
+
+void
+EDisplayDisconnect(void)
+{
+ if (!disp)
+ return;
+#ifdef USE_ECORE_X
+ ecore_x_disconnect();
+#else
+ close(ConnectionNumber(disp));
+#endif
+ XSetErrorHandler(NULL);
+ XSetIOErrorHandler(NULL);
+
+ disp = NULL;
+}
+
+static int
+HandleXError(Display * dpy, XErrorEvent * ev)
+{
+ char buf[64];
+
+ if (EDebug(1))
+ {
+ XGetErrorText(dpy, ev->error_code, buf, 63);
+ Eprintf("*** ERROR: xid=%#lx error=%i req=%i/%i: %s\n",
+ ev->resourceid, ev->error_code,
+ ev->request_code, ev->minor_code, buf);
+ }
+
+ Dpy.last_error_code = ev->error_code;
+
+ return 0;
+}
+
+static void (*EXIOErrorFunc) (void) = NULL;
+
+static int
+HandleXIOError(Display * dpy __UNUSED__)
+{
+ disp = NULL;
+
+ if (EXIOErrorFunc)
+ EXIOErrorFunc();
+
+ return 0;
+}
+
+void
+EDisplaySetErrorHandlers(void (*fatal) (void))
+{
+ /* set up an error handler for then E would normally have fatal X errors */
+ XSetErrorHandler(HandleXError);
+
+ /* set up a handler for when the X Connection goes down */
+ EXIOErrorFunc = fatal;
+ XSetIOErrorHandler(HandleXIOError);
+}
+
+/*
+ * Server
+ */
+
+void
+EGrabServer(void)
+{
+ if (Dpy.server_grabbed <= 0)
+ {
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("EGrabServer\n");
+ XGrabServer(disp);
+ }
+ Dpy.server_grabbed++;
+}
+
+void
+EUngrabServer(void)
+{
+ if (Dpy.server_grabbed == 1)
+ {
+ XUngrabServer(disp);
+ XFlush(disp);
+ if (EDebug(EDBUG_TYPE_GRABS))
+ Eprintf("EUngrabServer\n");
+ }
+ Dpy.server_grabbed--;
+ if (Dpy.server_grabbed < 0)
+ Dpy.server_grabbed = 0;
+}
+
+int
+EServerIsGrabbed(void)
+{
+ return Dpy.server_grabbed;
+}
+
+void
+EFlush(void)
+{
+ XFlush(disp);
+}
+
+void
+ESync(unsigned int mask)
+{
+ if (mask & Conf.testing.no_sync_mask)
+ return;
+ XSync(disp, False);
+}
+
+/*
+ * Visuals
+ */
+
+#if USE_COMPOSITE
+
+Visual *
+EVisualFindARGB(void)
+{
+ XVisualInfo *xvi, xvit;
+ int i, num;
+ Visual *vis;
+
+ xvit.screen = Dpy.screen;
+ xvit.depth = 32;
+#if __cplusplus
+ xvit.c_class = TrueColor;
+#else
+ xvit.class = TrueColor;
+#endif
+
+ xvi = XGetVisualInfo(disp,
+ VisualScreenMask | VisualDepthMask | VisualClassMask,
+ &xvit, &num);
+ if (!xvi)
+ return NULL;
+
+ for (i = 0; i < num; i++)
+ {
+ if (EVisualIsARGB(xvi[i].visual))
+ break;
+ }
+
+ vis = (i < num) ? xvi[i].visual : NULL;
+
+ XFree(xvi);
+
+ return vis;
+}
+
+int
+EVisualIsARGB(Visual * vis)
+{
+ XRenderPictFormat *pictfmt;
+
+ pictfmt = XRenderFindVisualFormat(disp, vis);
+ if (!pictfmt)
+ return 0;
+
+#if 0
+ Eprintf("Visual ID=%#lx Type=%d, alphamask=%d\n", vis->visualid,
+ pictfmt->type, pictfmt->direct.alphaMask);
+#endif
+ return pictfmt->type == PictTypeDirect && pictfmt->direct.alphaMask;
+}
+
+#endif
+
+/*
+ * Misc
+ */
+
+Time
+EGetTimestamp(void)
+{
+ static Window win_ts = None;
+ XSetWindowAttributes attr;
+ XEvent ev;
+
+ if (win_ts == None)
+ {
+ attr.override_redirect = False;
+ win_ts = XCreateWindow(disp, WinGetXwin(VROOT), -100, -100, 1, 1, 0,
+ CopyFromParent, InputOnly, CopyFromParent,
+ CWOverrideRedirect, &attr);
+ XSelectInput(disp, win_ts, PropertyChangeMask);
+ }
+
+ XChangeProperty(disp, win_ts, XA_WM_NAME, XA_STRING, 8,
+ PropModeAppend, (unsigned char *)"", 0);
+ XWindowEvent(disp, win_ts, PropertyChangeMask, &ev);
+
+ return ev.xproperty.time;
+}
--- /dev/null
+/*
+ * Copyright (C) 2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _XTYPES_H_
+#define _XTYPES_H_
+
+typedef struct _xwin *Win;
+
+#endif /* _XTYPES_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#ifndef _XWIN_H_
+#define _XWIN_H_
+
+#include <X11/Xlib.h>
+#include "util.h"
+#include "xtypes.h"
+
+typedef struct {
+ Display *disp;
+ char *name;
+ int screens;
+ int screen;
+ unsigned int pixel_black;
+ unsigned int pixel_white;
+
+ Win rroot; /* Real root window */
+ Win vroot; /* Virtual root window */
+
+ int server_grabbed;
+
+ unsigned char last_error_code;
+} EDisplay;
+
+__EXPORT__ extern EDisplay Dpy;
+
+#define disp Dpy.disp
+#define RROOT Dpy.rroot
+#define VROOT Dpy.vroot
+
+void EXInit(void);
+
+int EDisplayOpen(const char *dstr, int scr);
+void EDisplayClose(void);
+void EDisplayDisconnect(void);
+void EDisplaySetErrorHandlers(void (*fatal) (void));
+
+void EGrabServer(void);
+void EUngrabServer(void);
+int EServerIsGrabbed(void);
+void EFlush(void);
+
+#define ESYNC_MAIN 0x0001
+#define ESYNC_DESKS 0x0002
+#define ESYNC_MENUS 0x0004
+#define ESYNC_MOVRES 0x0008
+#define ESYNC_FOCUS 0x0010
+#define ESYNC_TLOOP 0x0040
+#define ESYNC_SLIDEOUT 0x0080
+#define ESYNC_STARTUP 0x0100
+void ESync(unsigned int mask);
+
+#if USE_COMPOSITE
+int EVisualIsARGB(Visual * vis);
+Visual *EVisualFindARGB(void);
+#endif
+
+Time EGetTimestamp(void);
+
+typedef void (EventCallbackFunc) (Win win, XEvent * ev, void *prm);
+
+#define EXPOSE_WIN 1
+#if EXPOSE_WIN || DECLARE_WIN
+typedef struct {
+ EventCallbackFunc *func;
+ void *prm;
+} EventCallbackItem;
+
+typedef struct {
+ int num;
+ EventCallbackItem *lst;
+} EventCallbackList;
+
+struct _xwin {
+ struct _xwin *next;
+ struct _xwin *prev;
+ EventCallbackList cbl;
+ Window xwin;
+ Win parent;
+ int x, y, w, h;
+ short depth;
+ unsigned short bw;
+ char argb;
+ char mapped;
+ char in_use;
+ signed char do_del;
+ char attached;
+ signed char bg_owned; /* bgpmap "owned" by Win */
+ int num_rect;
+ int ord;
+ XRectangle *rects;
+ Visual *visual;
+ Colormap cmap;
+ Pixmap bgpmap;
+ unsigned int bgcol;
+};
+#endif
+
+Win ELookupXwin(Window xwin);
+
+#if EXPOSE_WIN
+#define WinGetXwin(win) ((win)->xwin)
+#define WinGetPmap(win) ((win)->bgpmap)
+#define WinGetX(win) ((win)->x)
+#define WinGetY(win) ((win)->y)
+#define WinGetW(win) ((win)->w)
+#define WinGetH(win) ((win)->h)
+#define WinGetBorderWidth(win) ((win)->bw)
+#define WinGetDepth(win) ((win)->depth)
+#define WinGetVisual(win) ((win)->visual)
+#define WinGetCmap(win) ((win)->cmap)
+#define WinIsShaped(win) ((win)->num_rect != 0)
+#else
+Window WinGetXwin(const Win win);
+int WinGetX(const Win win);
+int WinGetY(const Win win);
+int WinGetW(const Win win);
+int WinGetH(const Win win);
+int WinGetBorderWidth(const Win win);
+int WinGetDepth(const Win win);
+Visual *WinGetVisual(const Win win);
+Colormap WinGetCmap(const Win win);
+#endif
+
+Win ECreateWinFromXwin(Window xwin);
+void EDestroyWin(Win win);
+
+Win ERegisterWindow(Window xwin, XWindowAttributes * pxwa);
+void EUnregisterWindow(Win win);
+void EUnregisterXwin(Window xwin);
+void EventCallbackRegister(Win win, int type,
+ EventCallbackFunc * func, void *prm);
+void EventCallbackUnregister(Win win, int type,
+ EventCallbackFunc * func,
+ void *prm);
+void EventCallbacksProcess(Win win, XEvent * ev);
+
+Win ECreateWindow(Win parent, int x, int y, int w, int h,
+ int saveunder);
+Win ECreateArgbWindow(Win parent, int x, int y, int w, int h,
+ Win cwin);
+Win ECreateWindowVD(Win parent, int x, int y, int w, int h,
+ Visual * vis, unsigned int depth);
+Win ECreateClientWindow(Win parent, int x, int y, int w, int h);
+
+#define WIN_TYPE_CLIENT 0
+#define WIN_TYPE_INTERNAL 1
+#define WIN_TYPE_NO_ARGB 2
+#define WIN_TYPE_GLX 3
+Win ECreateObjectWindow(Win parent, int x, int y, int w,
+ int h, int saveunder, int type,
+ Win cwin);
+Win ECreateEventWindow(Win parent, int x, int y, int w, int h);
+Win ECreateFocusWindow(Win parent, int x, int y, int w, int h);
+void EWindowSync(Win win);
+void EWindowSetGeometry(Win win, int x, int y, int w, int h,
+ int bw);
+void EWindowSetMapped(Win win, int mapped);
+void ESelectInputChange(Win win, unsigned long set,
+ unsigned long clear);
+
+void EMoveWindow(Win win, int x, int y);
+void EResizeWindow(Win win, int w, int h);
+void EMoveResizeWindow(Win win, int x, int y, int w, int h);
+void EDestroyWindow(Win win);
+void EMapWindow(Win win);
+void EMapRaised(Win win);
+void EUnmapWindow(Win win);
+void EReparentWindow(Win win, Win parent, int x, int y);
+int EGetGeometry(Win win, Window * root_return,
+ int *x, int *y, int *w, int *h, int *bw,
+ int *depth);
+void EGetWindowAttributes(Win win, XWindowAttributes * pxwa);
+void EConfigureWindow(Win win, unsigned int mask,
+ XWindowChanges * wc);
+void ESetWindowBackgroundPixmap(Win win, Pixmap pmap);
+Pixmap EGetWindowBackgroundPixmap(Win win);
+void EFreeWindowBackgroundPixmap(Win win);
+void ESetWindowBackground(Win win, unsigned int col);
+int ETranslateCoordinates(Win src_w, Win dst_w,
+ int src_x, int src_y,
+ int *dest_x_return,
+ int *dest_y_return,
+ Window * child_return);
+int EDrawableCheck(Drawable draw, int grab);
+
+void ESelectInput(Win win, unsigned int event_mask);
+void EChangeWindowAttributes(Win win, unsigned int mask,
+ XSetWindowAttributes * attr);
+void ESetWindowBorderWidth(Win win, unsigned int bw);
+void ERaiseWindow(Win win);
+void ELowerWindow(Win win);
+void EClearWindow(Win win);
+void EClearArea(Win win, int x, int y,
+ unsigned int w, unsigned int h);
+
+Pixmap ECreatePixmap(Win win, unsigned int width,
+ unsigned int height, unsigned int depth);
+void EFreePixmap(Pixmap pixmap);
+
+void EShapeSetMask(Win win, int x, int y, Pixmap mask);
+void EShapeUnionMask(Win win, int x, int y, Pixmap mask);
+void EShapeSetMaskTiled(Win win, int x, int y, Pixmap mask,
+ int w, int h);
+void EShapeSetRects(Win win, int x, int y,
+ XRectangle * rect, int n_rects);
+void EShapeUnionRects(Win win, int x, int y,
+ XRectangle * rect, int n_rects);
+int EShapeSetShape(Win win, int x, int y, Win src_win);
+int EShapePropagate(Win win);
+int EShapeCheck(Win win);
+Pixmap EWindowGetShapePixmap(Win win);
+
+Bool EQueryPointer(Win win, int *px, int *py,
+ Window * pchild, unsigned int *pmask);
+
+typedef struct {
+ unsigned long pixel;
+ unsigned char alpha, red, green, blue;
+} EColor;
+
+void EAllocColor(Colormap cmap, EColor * pec);
+void EAllocXColor(Colormap cmap, XColor * pxc, EColor * pec);
+
+#define SET_COLOR(xc, _r, _g, _b) \
+ do { (xc)->red = _r; (xc)->green = _g; (xc)->blue = _b; } while(0)
+
+#define GET_COLOR(xc, _r, _g, _b) \
+ do { _r = (xc)->red; _g = (xc)->green; _b = (xc)->blue; } while(0)
+
+Window EXWindowGetParent(Window xwin);
+int EXGetGeometry(Window xwin, Window * root_return,
+ int *x, int *y, int *w, int *h, int *bw,
+ int *depth);
+
+void EXRestackWindows(Window * windows, int nwindows);
+
+void EXCopyArea(Drawable src, Drawable dst, int sx, int sy,
+ unsigned int w, unsigned int h, int dx, int dy);
+void EXCopyAreaTiled(Drawable src, Pixmap mask, Drawable dst,
+ int sx, int sy,
+ unsigned int w, unsigned int h,
+ int dx, int dy);
+
+void EXWarpPointer(Window xwin, int x, int y);
+
+Pixmap EXCreatePixmapCopy(Pixmap src, unsigned int w,
+ unsigned int h, unsigned int depth);
+
+GC EXCreateGC(Drawable draw, unsigned long mask,
+ XGCValues * val);
+int EXFreeGC(GC gc);
+
+void EXSendEvent(Window xwin, long event_mask, XEvent * ev);
+
+KeyCode EKeysymToKeycode(KeySym keysym);
+KeyCode EKeynameToKeycode(const char *name);
+const char *EKeycodeToString(KeyCode keycode, int index);
+
+Atom EInternAtom(const char *name);
+
+typedef struct {
+ char type;
+ Pixmap pmap;
+ Pixmap mask;
+ int w, h;
+} PmapMask;
+
+void FreePmapMask(PmapMask * pmm);
+
+#endif /* _XWIN_H_ */
--- /dev/null
+/*
+ * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
+ * Copyright (C) 2004-2008 Kim Woelders
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies of the Software, its documentation and marketing & publicity
+ * materials, and acknowledgment shall be given in the documentation, materials
+ * and software packages that this Software was used.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+#include "E.h"
+#include "ewins.h"
+#include "focus.h"
+#include "xwin.h"
+
+#ifdef WITH_ZOOM
+#include <X11/extensions/xf86vmode.h>
+
+static int std_vid_modes_num = 0;
+static int std_vid_mode_cur = 0;
+static XF86VidModeModeInfo **std_vid_modes = NULL;
+
+static Win zoom_mask_1 = 0;
+static Win zoom_mask_2 = 0;
+static Win zoom_mask_3 = 0;
+static Win zoom_mask_4 = 0;
+static EWin *zoom_last_ewin = NULL;
+static int zoom_last_x, zoom_last_y;
+static char zoom_can = 0;
+
+static void
+FillStdVidModes(void)
+{
+ XF86VidModeGetAllModeLines(disp, Dpy.screen,
+ &std_vid_modes_num, &std_vid_modes);
+}
+
+static XF86VidModeModeInfo *
+FindMode(int w, int h)
+{
+ XF86VidModeModeInfo *chosen = NULL;
+ int i, closest = 0x7fffffff;
+
+ for (i = 0; i < std_vid_modes_num; i++)
+ {
+ int value = 0x7fffffff;
+
+ if ((std_vid_modes[i]->hdisplay >= w) &&
+ (std_vid_modes[i]->vdisplay >= h))
+ value = ((std_vid_modes[i]->hdisplay - w) +
+ (std_vid_modes[i]->vdisplay - h));
+ if (value < closest)
+ {
+ closest = value;
+ chosen = std_vid_modes[i];
+ }
+ }
+ return chosen;
+}
+
+static int
+GetModeIndex(unsigned int dotclock, XF86VidModeModeLine * line)
+{
+ int i;
+ const XF86VidModeModeInfo *info;
+
+ for (i = 0; i < std_vid_modes_num; i++)
+ {
+ info = std_vid_modes[i];
+ if (info->dotclock == dotclock &&
+ info->hdisplay == line->hdisplay &&
+ info->vdisplay == line->vdisplay)
+ return i;
+ }
+ return 0;
+}
+
+static const XF86VidModeModeInfo *
+SwitchRes(char inout, int x, int y, int w, int h)
+{
+ static int vp_x, vp_y;
+ XF86VidModeModeInfo *mode = NULL;
+ int scr;
+
+ scr = Dpy.screen;
+
+ if (inout)
+ {
+ XF86VidModeModeLine curmode;
+ int dotclock;
+
+ if (!XF86VidModeGetModeLine(disp, scr, &dotclock, &curmode))
+ return mode;
+ XF86VidModeGetViewPort(disp, scr, &vp_x, &vp_y);
+
+ mode = FindMode(w, h);
+ if (mode)
+ {
+ XF86VidModeLockModeSwitch(disp, scr, 0);
+ std_vid_mode_cur = GetModeIndex(dotclock, &curmode);
+ XF86VidModeSwitchToMode(disp, scr, mode);
+ XF86VidModeSetViewPort(disp, scr, x, y);
+ XF86VidModeLockModeSwitch(disp, scr, 1);
+ }
+ }
+ else
+ {
+ mode = std_vid_modes[std_vid_mode_cur];
+ XF86VidModeLockModeSwitch(disp, scr, 0);
+ XF86VidModeSwitchToMode(disp, scr, mode);
+ XF86VidModeSetViewPort(disp, scr, vp_x, vp_y);
+#if 0 /* No, don't lock or we can't switch resolution */
+ XF86VidModeLockModeSwitch(disp, scr, 1);
+#endif
+ }
+ return mode;
+}
+
+static char
+XHasDGA(void)
+{
+ int ev_base, er_base;
+
+ if (XF86VidModeQueryExtension(disp, &ev_base, &er_base))
+ return 1;
+ else
+ return 0;
+}
+
+EWin *
+GetZoomEWin(void)
+{
+ return zoom_last_ewin;
+}
+
+void
+ReZoom(EWin * ewin)
+{
+ if ((InZoom()) && (ewin != zoom_last_ewin))
+ {
+ Zoom(NULL);
+ Zoom(ewin);
+ }
+}
+
+char
+InZoom(void)
+{
+ if (zoom_last_ewin)
+ return 1;
+ return 0;
+}
+
+char
+CanZoom(void)
+{
+ return zoom_can;
+}
+
+void
+ZoomInit(void)
+{
+ if (XHasDGA())
+ {
+ FillStdVidModes();
+ if (std_vid_modes_num > 1)
+ zoom_can = 1;
+ }
+}
+
+static Win
+ZoomMask(int x, int y, int w, int h)
+{
+ Win win;
+
+ if (x < 0 || y < 0 || w <= 0 || h <= 0)
+ return 0;
+
+ win = ECreateWindow(VROOT, x, y, w, h, 0);
+ ESetWindowBackground(win, Dpy.pixel_black);
+ ERaiseWindow(win);
+ EMapWindow(win);
+
+ return win;
+}
+
+void
+Zoom(EWin * ewin)
+{
+ const XF86VidModeModeInfo *mode;
+
+ if (!CanZoom())
+ return;
+
+ if (!ewin)
+ {
+ if (zoom_last_ewin)
+ {
+ ewin = zoom_last_ewin;
+/* XUngrabPointer(disp, CurrentTime); */
+ EwinMove(ewin, zoom_last_x, zoom_last_y);
+ if (zoom_mask_1)
+ EDestroyWindow(zoom_mask_1);
+ if (zoom_mask_2)
+ EDestroyWindow(zoom_mask_2);
+ if (zoom_mask_3)
+ EDestroyWindow(zoom_mask_3);
+ if (zoom_mask_4)
+ EDestroyWindow(zoom_mask_4);
+ SwitchRes(0, 0, 0, 0, 0);
+ EwinWarpTo(ewin);
+ ESync(0);
+ zoom_last_ewin = NULL;
+ }
+ return;
+ }
+
+ mode = SwitchRes(1, 0, 0, ewin->client.w, ewin->client.h);
+ if (mode)
+ {
+ int x1, y1, x2, y2, bl, br, bt, bb;
+
+ zoom_last_ewin = ewin;
+ zoom_last_x = EoGetX(ewin);
+ zoom_last_y = EoGetY(ewin);
+ x1 = (mode->hdisplay - ewin->client.w) / 2;
+ if (x1 < 0)
+ x1 = 0;
+ y1 = (mode->vdisplay - ewin->client.h) / 2;
+ if (y1 < 0)
+ y1 = 0;
+ x2 = mode->hdisplay - ewin->client.w - x1;
+ if (x2 < 0)
+ x2 = 0;
+ y2 = mode->vdisplay - ewin->client.h - y1;
+ if (y2 < 0)
+ y2 = 0;
+ EwinRaise(ewin);
+ EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
+ EwinMove(ewin, -bl + x1, -bt + y1);
+ FocusToEWin(ewin, FOCUS_SET);
+ EwinWarpTo(ewin);
+#if 0 /* Doesn't work as intended */
+ XGrabPointer(disp, EwinGetClientXwin(ewin), True,
+ ButtonPressMask | ButtonReleaseMask |
+ PointerMotionMask | ButtonMotionMask |
+ EnterWindowMask | LeaveWindowMask,
+ GrabModeAsync, GrabModeAsync,
+ EwinGetClientXwin(ewin), None, CurrentTime);
+#endif
+ zoom_mask_1 = ZoomMask(0, 0, x1, mode->vdisplay);
+ zoom_mask_2 = ZoomMask(0, 0, mode->hdisplay, y1);
+ zoom_mask_3 = ZoomMask(x1 + ewin->client.w, 0, x2, mode->vdisplay);
+ zoom_mask_4 = ZoomMask(0, y1 + ewin->client.h, mode->hdisplay, y2);
+ ESync(0);
+ }
+}
+
+#else
+
+EWin *
+GetZoomEWin(void)
+{
+ return NULL;
+}
+
+void
+ReZoom(EWin * ewin)
+{
+ ewin = NULL;
+}
+
+char
+InZoom(void)
+{
+ return 0;
+}
+
+char
+CanZoom(void)
+{
+ return 0;
+}
+
+void
+ZoomInit(void)
+{
+}
+
+void
+Zoom(EWin * ewin)
+{
+ ewin = NULL;
+}
+
+#endif
--- /dev/null
+
+THEME = winter
+THEME_FILES = winter.etheme
+
+EXTRA_DIST = $(THEME_FILES)
+
+THEME_DIR = $(DESTDIR)$(pkgdatadir)/themes/$(THEME)
+
+install-data-local:
+ $(mkinstalldirs) $(THEME_DIR)
+ for tf in $(THEME_FILES); do \
+ gzip -d -c < $(srcdir)/$$tf | (cd $(THEME_DIR); tar -xmf -); \
+ done
+ -if [ -n "$(USER)" ]; then chown -R $(USER) $(THEME_DIR); else chown -R root $(THEME_DIR); fi
+
+
+uninstall-local:
+ -for tf in $(THEME_FILES); do \
+ gzip -d -c < $(srcdir)/$$tf | (cd $(THEME_DIR); \
+ rm -f `tar -tf -` 2>/dev/null); \
+ done
--- /dev/null
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 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@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@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 = themes
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
+ $(top_srcdir)/m4/ac_warnflags.m4 $(top_srcdir)/m4/codeset.m4 \
+ $(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gettext.m4 \
+ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
+ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
+ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUDIOFILE_CFLAGS = @AUDIOFILE_CFLAGS@
+AUDIOFILE_LIBS = @AUDIOFILE_LIBS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DBUS_CFLAGS = @DBUS_CFLAGS@
+DBUS_LIBS = @DBUS_LIBS@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLOPEN_LIBS = @DLOPEN_LIBS@
+DSYMUTIL = @DSYMUTIL@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECORE_CFLAGS = @ECORE_CFLAGS@
+ECORE_LIBS = @ECORE_LIBS@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_CONFIG = @ESD_CONFIG@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+E_RPM_REVISION = @E_RPM_REVISION@
+E_X_LIBS = @E_X_LIBS@
+GLX_LIBS = @GLX_LIBS@
+GMSGFMT = @GMSGFMT@
+GREP = @GREP@
+IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+IMLIB2_LIBS = @IMLIB2_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NMEDIT = @NMEDIT@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PANGO_CFLAGS = @PANGO_CFLAGS@
+PANGO_LIBS = @PANGO_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PA_CFLAGS = @PA_CFLAGS@
+PA_LIBS = @PA_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SM_LIBS = @SM_LIBS@
+STRIP = @STRIP@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XFT_CFLAGS = @XFT_CFLAGS@
+XFT_LIBS = @XFT_LIBS@
+XGETTEXT = @XGETTEXT@
+XINERAMA_LIBS = @XINERAMA_LIBS@
+XMKMF = @XMKMF@
+XMLTO = @XMLTO@
+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_CC = @ac_ct_CC@
+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@
+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@
+THEME = winter
+THEME_FILES = winter.etheme
+EXTRA_DIST = $(THEME_FILES)
+THEME_DIR = $(DESTDIR)$(pkgdatadir)/themes/$(THEME)
+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 \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign themes/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign 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
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+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 $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local
+
+install-dvi: install-dvi-am
+
+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
+
+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-local
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-local 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 \
+ uninstall uninstall-am uninstall-local
+
+
+install-data-local:
+ $(mkinstalldirs) $(THEME_DIR)
+ for tf in $(THEME_FILES); do \
+ gzip -d -c < $(srcdir)/$$tf | (cd $(THEME_DIR); tar -xmf -); \
+ done
+ -if [ -n "$(USER)" ]; then chown -R $(USER) $(THEME_DIR); else chown -R root $(THEME_DIR); fi
+
+uninstall-local:
+ -for tf in $(THEME_FILES); do \
+ gzip -d -c < $(srcdir)/$$tf | (cd $(THEME_DIR); \
+ rm -f `tar -tf -` 2>/dev/null); \
+ done
+# 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: