[Goodies-commits] r2340 - in thunar-volman/trunk: . icons icons/48x48 icons/scalable po thunar-volman
Benedikt Meurer
benny at xfce.org
Fri Jan 12 00:11:32 CET 2007
Author: benny
Date: 2007-01-11 23:11:32 +0000 (Thu, 11 Jan 2007)
New Revision: 2340
Added:
thunar-volman/trunk/AUTHORS
thunar-volman/trunk/COPYING
thunar-volman/trunk/ChangeLog
thunar-volman/trunk/INSTALL
thunar-volman/trunk/Makefile.am
thunar-volman/trunk/NEWS
thunar-volman/trunk/README
thunar-volman/trunk/autogen.sh
thunar-volman/trunk/configure.in.in
thunar-volman/trunk/icons/
thunar-volman/trunk/icons/48x48/
thunar-volman/trunk/icons/48x48/Makefile.am
thunar-volman/trunk/icons/48x48/tvm-burn-cd.png
thunar-volman/trunk/icons/48x48/tvm-dev-tablet.png
thunar-volman/trunk/icons/Makefile.am
thunar-volman/trunk/icons/scalable/
thunar-volman/trunk/icons/scalable/Makefile.am
thunar-volman/trunk/icons/scalable/tvm-burn-cd.svg
thunar-volman/trunk/po/
thunar-volman/trunk/po/ChangeLog
thunar-volman/trunk/po/LINGUAS
thunar-volman/trunk/po/Makefile
thunar-volman/trunk/po/POTFILES.in
thunar-volman/trunk/po/de.po
thunar-volman/trunk/po/thunar-volman.pot
thunar-volman/trunk/thunar-volman/
thunar-volman/trunk/thunar-volman/Makefile.am
thunar-volman/trunk/thunar-volman/main.c
thunar-volman/trunk/thunar-volman/tvm-block-device.c
thunar-volman/trunk/thunar-volman/tvm-block-device.h
thunar-volman/trunk/thunar-volman/tvm-camera-device.c
thunar-volman/trunk/thunar-volman/tvm-camera-device.h
thunar-volman/trunk/thunar-volman/tvm-command-entry.c
thunar-volman/trunk/thunar-volman/tvm-command-entry.h
thunar-volman/trunk/thunar-volman/tvm-device.c
thunar-volman/trunk/thunar-volman/tvm-device.h
thunar-volman/trunk/thunar-volman/tvm-input-device.c
thunar-volman/trunk/thunar-volman/tvm-input-device.h
thunar-volman/trunk/thunar-volman/tvm-pango-extensions.c
thunar-volman/trunk/thunar-volman/tvm-pango-extensions.h
thunar-volman/trunk/thunar-volman/tvm-preferences-dialog.c
thunar-volman/trunk/thunar-volman/tvm-preferences-dialog.h
thunar-volman/trunk/thunar-volman/tvm-preferences.c
thunar-volman/trunk/thunar-volman/tvm-preferences.h
thunar-volman/trunk/thunar-volman/tvm-prompt.c
thunar-volman/trunk/thunar-volman/tvm-prompt.h
thunar-volman/trunk/thunar-volman/tvm-run.c
thunar-volman/trunk/thunar-volman/tvm-run.h
thunar-volman/trunk/thunar-volman/xfce-heading.c
thunar-volman/trunk/thunar-volman/xfce-heading.h
thunar-volman/trunk/thunar-volman/xfce-titled-dialog.c
thunar-volman/trunk/thunar-volman/xfce-titled-dialog.h
Modified:
thunar-volman/trunk/
Log:
2007-01-12 Benedikt Meurer <benny at xfce.org>
* Initial import.
Property changes on: thunar-volman/trunk
___________________________________________________________________
Name: svn:ignore
+ Makefile
Makefile.in
aclocal.m4
autom4te.cache
compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
configure.in
depcomp
install-sh
intltool-*
libtool
ltmain.sh
mkinstalldirs
missing
stamp-h1
.*.swp
thunar-volman-*.tar.bz2
thunar-volman-*.tar.gz
core.*
core
*.core
Added: thunar-volman/trunk/AUTHORS
===================================================================
--- thunar-volman/trunk/AUTHORS (rev 0)
+++ thunar-volman/trunk/AUTHORS 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,4 @@
+Benedikt Meurer <benny at xfce.org>
+
+Portions of the code are based on code from gnome-volume-manager, written by
+Robert Love <rml at novell.com> and Jeffrey Stedfast <fejj at novell.com> for GNOME.
Added: thunar-volman/trunk/COPYING
===================================================================
--- thunar-volman/trunk/COPYING (rev 0)
+++ thunar-volman/trunk/COPYING 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
Added: thunar-volman/trunk/ChangeLog
===================================================================
--- thunar-volman/trunk/ChangeLog (rev 0)
+++ thunar-volman/trunk/ChangeLog 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,5 @@
+2007-01-12 Benedikt Meurer <benny at xfce.org>
+
+ * Initial import.
+
+# vi:set ts=8 sw=8 noet ai nocindent:
Added: thunar-volman/trunk/INSTALL
===================================================================
--- thunar-volman/trunk/INSTALL (rev 0)
+++ thunar-volman/trunk/INSTALL 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,231 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free
+Software Foundation, Inc.
+
+This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+Some systems require unusual options for compilation or linking that the
+`configure' script does not know about. Run `./configure --help' for
+details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory. After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PREFIX'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PREFIX', the package will
+use PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+There may be some features `configure' cannot figure out automatically,
+but needs to determine by the type of machine the package will run on.
+Usually, assuming the package is built to be run on the _same_
+architectures, `configure' can figure that out, but if it prints a
+message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the `--target=TYPE' option to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+If you want to set default values for `configure' scripts to share, you
+can create a site shell script called `config.site' that gives default
+values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+will cause the specified gcc to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+`configure' Invocation
+======================
+
+`configure' recognizes the following options to control how it operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
Added: thunar-volman/trunk/Makefile.am
===================================================================
--- thunar-volman/trunk/Makefile.am (rev 0)
+++ thunar-volman/trunk/Makefile.am 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,15 @@
+# $Id$
+
+SUBDIRS = \
+ icons \
+ po \
+ thunar-volman
+
+distclean-local:
+ rm -rf *.spec *.cache *~
+
+rpm: dist
+ rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
+ @rm -f $(PACKAGE)-$(VERSION).tar.gz
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: thunar-volman/trunk/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/NEWS
===================================================================
Added: thunar-volman/trunk/README
===================================================================
--- thunar-volman/trunk/README (rev 0)
+++ thunar-volman/trunk/README 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,87 @@
+What is it?
+===========
+
+thunar-volman is an extension for the Thunar File Manager, which enables
+automatic management of removable drives and media. For example, if
+thunar-volman is installed and configured properly, and you plug in your
+digitcal camera, it will automatically spawn your preferred photo application
+and import the new pictures from your camera.
+
+It was designed to look and behave similar to gnome-volume-manager to get
+consistent removable drive and media management in Xfce and GNOME. This is
+to help GNOME refugees and people using both Xfce and GNOME (i.e. having to
+use GNOME at the office).
+
+
+Required packages
+=================
+
+thunar-volman depends on the following packages:
+
+ - Thunar 0.5.1svn or above
+ - libexo 0.3.1.13svn or above
+ - intltool 0.30 or above
+ - D-BUS 0.34 or above (esp. the dbus-glib devel package)
+ - HAL 0.5.0 or above (esp. the libhal devel package)
+
+
+Installation
+============
+
+The file 'INSTALL' contains generic installation instructions. For more
+detailed information, visit the thunar-volman website at
+http://thunar.xfce.org/projects/thunar-volman/.
+
+
+Debugging Support
+=================
+
+thunar-volman currently supports four different levels of debugging support, which
+can be setup using the configure flag `--enable-debug' (check the output of
+`configure --help'):
+
+ `full' Use this if you want to debug thunar-volman to locate a bug.
+ The build will most probably be noticably slower. This is also
+ recommended for people that want to develop thunar-volman stuff.
+
+ `yes' This is the default for SVN snapshot builds. It adds all
+ kinds of checks to the code, and is therefore likely to run
+ slower.
+
+ `minimum' This is the default for release builds, and presents the
+ recommended behaviour.
+
+ `no' Disables all sanity checks. Don't use this unless you know
+ exactly what you do.
+
+
+Standards compliance
+====================
+
+Thunar supports the following standards/specifications:
+
+ * XDG Base Directory Specification
+ http://freedesktop.org/wiki/Standards_2fbasedir_2dspec
+
+ * Shared MIME Database Specification
+ http://freedesktop.org/wiki/Standards_2fshared_2dmime_2dinfo_2dspec
+
+ * Icon Naming Specification
+ http://freedesktop.org/wiki/Standards_2ficon_2dnaming_2dspec
+
+ * Icon Theme Specification
+ http://freedesktop.org/wiki/Standards_2ficon_2dtheme_2dspec
+
+ * File URI Specification
+ http://freedesktop.org/wiki/Standards_2ffile_2duri_2dspec
+
+ * Desktop Application Autostart Specification
+ http://freedesktop.org/wiki/Standards_2fautostart_2dspec
+
+
+How to report bugs?
+===================
+
+Bugs should be reported to the Xfce bug tracking system
+(http://bugzilla.xfce.org, product Thunar Plugins, component
+thunar-volman). You will need to create an account for yourself.
Added: thunar-volman/trunk/autogen.sh
===================================================================
--- thunar-volman/trunk/autogen.sh (rev 0)
+++ thunar-volman/trunk/autogen.sh 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# $Id$
+#
+# Copyright (c) 2002-2006
+# The Thunar development team. All rights reserved.
+#
+# Written for Thunar by Benedikt Meurer <benny at xfce.org>.
+#
+
+(type xdt-autogen) >/dev/null 2>&1 || {
+ cat >&2 <<EOF
+autogen.sh: You don't seem to have the Xfce development tools installed on
+ your system, which are required to build this software.
+ Please install the xfce4-dev-tools package first, it is available
+ from http://www.xfce.org/.
+EOF
+ exit 1
+}
+
+# verify that po/LINGUAS is present
+(test -f po/LINGUAS) >/dev/null 2>&1 || {
+ cat >&2 <<EOF
+autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot
+ or try to checkout again.
+EOF
+ exit 1
+}
+
+# substitute revision and linguas
+linguas=`sed -e '/^#/d' po/LINGUAS`
+revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
+sed -e "s/@LINGUAS@/${linguas}/g" \
+ -e "s/@REVISION@/${revision}/g" \
+ < "configure.in.in" > "configure.in"
+
+exec xdt-autogen $@
+
+# vi:set ts=2 sw=2 et ai:
Property changes on: thunar-volman/trunk/autogen.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/configure.in.in
===================================================================
--- thunar-volman/trunk/configure.in.in (rev 0)
+++ thunar-volman/trunk/configure.in.in 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,185 @@
+dnl $Id$
+dnl
+dnl Copyright (c) 2004-2007
+dnl The Thunar development team. All rights reserved.
+dnl
+dnl Written for thunar-volman by Benedikt Meurer <benny at xfce.org>.
+dnl
+
+dnl ***************************
+dnl *** Version information ***
+dnl ***************************
+m4_define([tvm_version_major], [0])
+m4_define([tvm_version_minor], [0])
+m4_define([tvm_version_micro], [1])
+m4_define([tvm_version_build], [r at REVISION@])
+m4_define([tvm_version_tag], [svn])
+m4_define([tvm_version], [tvm_version_major().tvm_version_minor().tvm_version_micro()ifelse(tvm_version_tag(), [svn], [tvm_version_tag()-tvm_version_build()], [tvm_version_tag()])])
+
+dnl *******************************************
+dnl *** Debugging support for SVN snapshots ***
+dnl *******************************************
+m4_define([tvm_debug_default], [ifelse(tvm_version_tag(), [svn], [yes], [minimum])])
+
+dnl ***************************
+dnl *** Initialize autoconf ***
+dnl ***************************
+AC_COPYRIGHT([Copyright (c) 2004-2007
+ The Thunar development team. All rights reserved.
+
+Written for thunar-volman by Benedikt Meurer <benny at xfce.org>.])
+AC_INIT([thunar-volman], [tvm_version()], [http://bugzilla.xfce.org/])
+AC_PREREQ([2.50])
+AC_CANONICAL_TARGET()
+AC_REVISION([$Id$])
+
+dnl ***************************
+dnl *** Initialize automake ***
+dnl ***************************
+AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
+AM_CONFIG_HEADER([config.h])
+AM_MAINTAINER_MODE()
+
+dnl *******************************
+dnl *** Check for UNIX variants ***
+dnl *******************************
+AC_AIX()
+AC_ISC_POSIX()
+AC_MINIX()
+
+dnl ********************************
+dnl *** Check for basic programs ***
+dnl ********************************
+AC_PROG_CC()
+AC_PROG_LD()
+AC_PROG_INSTALL()
+
+dnl **************************
+dnl *** Initialize libtool ***
+dnl **************************
+AC_DISABLE_STATIC()
+AC_PROG_LIBTOOL()
+
+dnl **********************************
+dnl *** Check for standard headers ***
+dnl **********************************
+AC_CHECK_HEADERS([errno.h path.h stdarg.h sys/types.h sys/wait.h])
+
+dnl ************************************
+dnl *** Check for standard functions ***
+dnl ************************************
+AC_CHECK_FUNCS([])
+
+dnl ******************************
+dnl *** Check for i18n support ***
+dnl ******************************
+XDT_I18N([@LINGUAS@])
+
+dnl ***********************************
+dnl *** Check for required packages ***
+dnl ***********************************
+XDT_CHECK_PACKAGE([DBUS], [dbus-glib-1], [0.34])
+XDT_CHECK_PACKAGE([EXO_HAL], [exo-hal-0.3], [0.3.1.13])
+XDT_CHECK_PACKAGE([HAL], [hal-storage], [0.5.0])
+XDT_CHECK_PACKAGE([THUNAR_VFS], [thunar-vfs-1], [0.5.1])
+
+dnl ***********************************
+dnl *** Check for debugging support ***
+dnl ***********************************
+AC_ARG_ENABLE([debug],
+AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes/full@:>@], [Turn on debugging @<:@default=tvm_debug_default@:>@]),
+ [], [enable_debug=tvm_debug_default])
+AC_MSG_CHECKING([whether to enable debugging support])
+if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
+ dnl Print the result
+ AC_MSG_RESULT([$enable_debug])
+
+ dnl Make sure we detect possible errors (if supported)
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -Wall -Werror"
+ AC_MSG_CHECKING([whether $CC accepts -Wall -Werror])
+ AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
+ AC_MSG_RESULT([yes])
+ PLATFORM_CFLAGS="$PLATFORM_CFLAGS -Wall -Werror"
+ ], [
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS="$save_CFLAGS"
+
+ dnl Paranoia for --enable-debug=full
+ if test x"$enable_debug" = x"full"; then
+ dnl Enable extensive debugging
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_ENABLE_DEBUG"
+
+ dnl Use -O0 -g3 if the compiler supports it
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -O0 -g3"
+ AC_MSG_CHECKING([whether $CC accepts -O0 -g3])
+ AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
+ AC_MSG_RESULT([yes])
+ PLATFORM_CFLAGS="$PLATFORM_CFLAGS -O0 -g3"
+ ], [
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS="$save_CFLAGS"
+ fi
+else
+ dnl Print the result
+ AC_MSG_RESULT([$enable_debug])
+
+ dnl Disable debugging (release build)
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DNDEBUG"
+
+ dnl Disable object cast checks
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_CAST_CHECKS"
+
+ dnl Disable all checks for --enable-debug=no
+ if test x"$enable_debug" = x"no"; then
+ PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
+ fi
+fi
+
+dnl **************************************
+dnl *** Check for linker optimizations ***
+dnl **************************************
+AC_MSG_CHECKING([whether $LD accepts -O1])
+case `$LD -O1 -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -Wl,-O1"
+ AC_MSG_RESULT([yes])
+ ;;
+*)
+ AC_MSG_RESULT([no])
+ ;;
+esac
+
+dnl *********************************
+dnl *** Substitute platform flags ***
+dnl *********************************
+AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
+AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
+AC_SUBST([PLATFORM_CPPFLAGS])
+AC_MSG_CHECKING([PLATFORM_CFLAGS])
+AC_MSG_RESULT([$PLATFORM_CFLAGS])
+AC_SUBST([PLATFORM_CFLAGS])
+AC_MSG_CHECKING([PLATFORM_LDFLAGS])
+AC_MSG_RESULT([$PLATFORM_LDFLAGS])
+AC_SUBST([PLATFORM_LDFLAGS])
+
+AC_OUTPUT([
+Makefile
+icons/Makefile
+icons/48x48/Makefile
+icons/scalable/Makefile
+po/Makefile.in
+thunar-volman/Makefile
+])
+
+dnl ***************************
+dnl *** Print configuration ***
+dnl ***************************
+echo
+echo "Build Configuration:"
+echo
+echo "* Debug Support: $enable_debug"
+echo
Property changes on: thunar-volman/trunk/configure.in.in
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Property changes on: thunar-volman/trunk/icons
___________________________________________________________________
Name: svn:ignore
+ .deps
.libs
Makefile
Makefile.in
.*.swp
Property changes on: thunar-volman/trunk/icons/48x48
___________________________________________________________________
Name: svn:ignore
+ .deps
.libs
Makefile
Makefile.in
.*.swp
Added: thunar-volman/trunk/icons/48x48/Makefile.am
===================================================================
--- thunar-volman/trunk/icons/48x48/Makefile.am (rev 0)
+++ thunar-volman/trunk/icons/48x48/Makefile.am 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,11 @@
+# $Id$
+
+iconsdir = $(datadir)/icons/hicolor/48x48/apps
+icons_DATA = \
+ tvm-burn-cd.png \
+ tvm-dev-tablet.png
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: thunar-volman/trunk/icons/48x48/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/icons/48x48/tvm-burn-cd.png
===================================================================
(Binary files differ)
Property changes on: thunar-volman/trunk/icons/48x48/tvm-burn-cd.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: thunar-volman/trunk/icons/48x48/tvm-dev-tablet.png
===================================================================
(Binary files differ)
Property changes on: thunar-volman/trunk/icons/48x48/tvm-dev-tablet.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: thunar-volman/trunk/icons/Makefile.am
===================================================================
--- thunar-volman/trunk/icons/Makefile.am (rev 0)
+++ thunar-volman/trunk/icons/Makefile.am 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,20 @@
+# $Id$
+
+SUBDIRS = \
+ 48x48 \
+ scalable
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+
+install-data-hook:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating Gtk icon cache."; \
+ $(gtk_update_icon_cache); \
+ else \
+ echo "*** Icon cache not updated. Remember to run:"; \
+ echo "***"; \
+ echo "*** $(gtk_update_icon_cache)"; \
+ echo "***"; \
+ fi
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: thunar-volman/trunk/icons/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Property changes on: thunar-volman/trunk/icons/scalable
___________________________________________________________________
Name: svn:ignore
+ .deps
.libs
Makefile
Makefile.in
.*.swp
Added: thunar-volman/trunk/icons/scalable/Makefile.am
===================================================================
--- thunar-volman/trunk/icons/scalable/Makefile.am (rev 0)
+++ thunar-volman/trunk/icons/scalable/Makefile.am 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,10 @@
+# $Id$
+
+iconsdir = $(datadir)/icons/hicolor/scalable/apps
+icons_DATA = \
+ tvm-burn-cd.svg
+
+EXTRA_DIST = \
+ $(icons_DATA)
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: thunar-volman/trunk/icons/scalable/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/icons/scalable/tvm-burn-cd.svg
===================================================================
(Binary files differ)
Property changes on: thunar-volman/trunk/icons/scalable/tvm-burn-cd.svg
___________________________________________________________________
Name: svn:mime-type
+ image/svg+xml
Property changes on: thunar-volman/trunk/po
___________________________________________________________________
Name: svn:ignore
+ .deps
.libs
Makefile
Makefile.in
Makefile.in.in
POTFILES
*.gmo
*.mo
.*.swp
Added: thunar-volman/trunk/po/ChangeLog
===================================================================
--- thunar-volman/trunk/po/ChangeLog (rev 0)
+++ thunar-volman/trunk/po/ChangeLog 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,5 @@
+2007-01-12 Benedikt Meurer <benny at xfce.org>
+
+ * Initial import.
+
+# vi:set ts=8 sw=8 noet ai nocindent:
Added: thunar-volman/trunk/po/LINGUAS
===================================================================
--- thunar-volman/trunk/po/LINGUAS (rev 0)
+++ thunar-volman/trunk/po/LINGUAS 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,2 @@
+# set of available languages (in alphabetic order)
+de
Added: thunar-volman/trunk/po/Makefile
===================================================================
--- thunar-volman/trunk/po/Makefile (rev 0)
+++ thunar-volman/trunk/po/Makefile 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,283 @@
+# Makefile for program source directory in GNU NLS utilities package.
+# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper at gnu.ai.mit.edu>
+#
+# This file file be copied and used freely without restrictions. It can
+# be used in projects which are not available under the GNU Public License
+# but which still want to provide support for the GNU gettext functionality.
+# Please note that the actual code is *not* freely available.
+#
+# - Modified by Owen Taylor <otaylor at redhat.com> to use GETTEXT_PACKAGE
+# instead of PACKAGE and to look for po2tbl in ./ not in intl/
+#
+# - Modified by jacob berkman <jacob at ximian.com> to install
+# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
+
+GETTEXT_PACKAGE = thunar-volman
+PACKAGE = thunar-volman
+VERSION = 0.0.1svn-r00000
+
+SHELL = /bin/sh
+
+
+srcdir = .
+top_srcdir = ..
+
+
+prefix = /opt/local
+exec_prefix = ${prefix}
+datadir = ${prefix}/share
+libdir = ${exec_prefix}/lib
+localedir = $(prefix)/share/locale
+gnulocaledir = $(prefix)/share/locale
+gettextsrcdir = $(datadir)/glib-2.0/gettext/po
+subdir = po
+
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+MKINSTALLDIRS = $(top_srcdir)/./mkinstalldirs
+
+CC = gcc
+GENCAT = @GENCAT@
+GMSGFMT = /opt/local/bin/msgfmt
+MSGFMT = /opt/local/bin/msgfmt
+XGETTEXT_ARGS = --keyword=Q_
+XGETTEXT = /opt/local/bin/xgettext $(XGETTEXT_ARGS)
+MSGMERGE = msgmerge
+
+DEFS = -DHAVE_CONFIG_H
+CFLAGS = -O2 -pipe -mmmx -msse -msse2 -mfpmath=sse
+CPPFLAGS = -I/opt/local/include -I/usr/local/include
+
+INCLUDES = -I.. -I$(top_srcdir)/intl
+
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+
+SOURCES =
+POFILES = de.po
+GMOFILES = de.gmo
+DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
+$(POFILES) $(GMOFILES) $(SOURCES)
+
+POTFILES = \
+ ../thunar-volman/main.c \
+ ../thunar-volman/tvm-block-device.c \
+ ../thunar-volman/tvm-camera-device.c \
+ ../thunar-volman/tvm-command-entry.c \
+ ../thunar-volman/tvm-device.c \
+ ../thunar-volman/tvm-input-device.c \
+ ../thunar-volman/tvm-pango-extensions.c \
+ ../thunar-volman/tvm-preferences-dialog.c \
+ ../thunar-volman/tvm-preferences.c \
+ ../thunar-volman/tvm-prompt.c \
+ ../thunar-volman/tvm-run.c \
+ ../thunar-volman/xfce-heading.c \
+ ../thunar-volman/xfce-titled-dialog.c
+
+CATALOGS = de.gmo
+CATOBJEXT = .gmo
+INSTOBJEXT = .mo
+
+.SUFFIXES:
+.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
+
+.c.o:
+ $(COMPILE) $<
+
+.po.pox:
+ $(MAKE) $(GETTEXT_PACKAGE).pot
+ $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox
+
+.po.mo:
+ $(MSGFMT) -o $@ $<
+
+.po.gmo:
+ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ && rm -f $$file && $(GMSGFMT) -c -o $$file $<
+
+.po.cat:
+ sed -f ../intl/po2msg.sed < $< > $*.msg \
+ && rm -f $@ && $(GENCAT) $@ $*.msg
+
+
+all: all-yes
+
+all-yes: $(CATALOGS)
+all-no:
+
+$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
+ $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
+ --add-comments --keyword=_ --keyword=N_ \
+ --flag=g_strdup_printf:1:c-format \
+ --flag=g_string_printf:2:c-format \
+ --flag=g_string_append_printf:2:c-format \
+ --flag=g_error_new:3:c-format \
+ --flag=g_set_error:4:c-format \
+ --flag=g_markup_printf_escaped:1:c-format \
+ --flag=g_log:3:c-format \
+ --flag=g_print:1:c-format \
+ --flag=g_printerr:1:c-format \
+ --flag=g_printf:1:c-format \
+ --flag=g_fprintf:2:c-format \
+ --flag=g_sprintf:2:c-format \
+ --flag=g_snprintf:3:c-format \
+ --flag=g_scanner_error:2:c-format \
+ --flag=g_scanner_warn:2:c-format \
+ --files-from=$(srcdir)/POTFILES.in \
+ && test ! -f $(GETTEXT_PACKAGE).po \
+ || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
+ && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot )
+
+install: install-exec install-data
+install-exec:
+install-data: install-data-yes
+install-data-no: all
+install-data-yes: all
+ if test -r "$(MKINSTALLDIRS)"; then \
+ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
+ else \
+ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
+ fi
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ case "$$cat" in \
+ *.gmo) destdir=$(gnulocaledir);; \
+ *) destdir=$(localedir);; \
+ esac; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
+ if test -r "$(MKINSTALLDIRS)"; then \
+ $(MKINSTALLDIRS) $$dir; \
+ else \
+ $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
+ fi; \
+ if test -r $$cat; then \
+ $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
+ echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
+ else \
+ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
+ echo "installing $(srcdir)/$$cat as" \
+ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
+ fi; \
+ if test -r $$cat.m; then \
+ $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
+ echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
+ else \
+ if test -r $(srcdir)/$$cat.m ; then \
+ $(INSTALL_DATA) $(srcdir)/$$cat.m \
+ $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
+ echo "installing $(srcdir)/$$cat as" \
+ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
+ else \
+ true; \
+ fi; \
+ fi; \
+ done
+ if test "$(PACKAGE)" = "glib"; then \
+ if test -r "$(MKINSTALLDIRS)"; then \
+ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
+ else \
+ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
+ fi; \
+ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
+ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+ else \
+ : ; \
+ fi
+
+# Define this as empty until I found a useful application.
+installcheck:
+
+uninstall:
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
+ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
+ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
+ done
+ if test "$(PACKAGE)" = "glib"; then \
+ rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+ fi
+
+check: all
+
+dvi info tags TAGS ID:
+
+mostlyclean:
+ rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp
+ rm -fr *.o
+
+clean: mostlyclean
+
+distclean: clean
+ rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
+
+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 $(GMOFILES)
+
+distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
+dist distdir: update-po $(DISTFILES)
+ dists="$(DISTFILES)"; \
+ for file in $$dists; do \
+ ln $(srcdir)/$$file $(distdir) 2> /dev/null \
+ || cp -p $(srcdir)/$$file $(distdir); \
+ done
+
+update-po: Makefile
+ $(MAKE) $(GETTEXT_PACKAGE).pot
+ tmpdir=`pwd`; \
+ cd $(srcdir); \
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ echo "$$lang:"; \
+ if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).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; \
+ rm -f $$tmpdir/$$lang.new.po; \
+ exit 1; \
+ fi; \
+ fi; \
+ else \
+ echo "msgmerge for $$cat failed!"; \
+ rm -f $$tmpdir/$$lang.new.po; \
+ fi; \
+ done
+
+# POTFILES is created from POTFILES.in by stripping comments, empty lines
+# and Intltool tags (enclosed in square brackets), and appending a full
+# relative path to them
+POTFILES: POTFILES.in
+ ( if test 'x$(srcdir)' != 'x.'; then \
+ posrcprefix='$(top_srcdir)/'; \
+ else \
+ posrcprefix="../"; \
+ fi; \
+ rm -f $@-t $@ \
+ && (sed -e '/^#/d' \
+ -e "s/^\[.*\] +//" \
+ -e '/^[ ]*$$/d' \
+ -e "s at .*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
+ | sed -e '$$s/\\$$//') > $@-t \
+ && chmod a-w $@-t \
+ && mv $@-t $@ )
+
+Makefile: Makefile.in.in ../config.status POTFILES
+ cd .. \
+ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
+ $(SHELL) ./config.status
+
+# 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:
Property changes on: thunar-volman/trunk/po/Makefile
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/po/POTFILES.in
===================================================================
--- thunar-volman/trunk/po/POTFILES.in (rev 0)
+++ thunar-volman/trunk/po/POTFILES.in 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,13 @@
+thunar-volman/main.c
+thunar-volman/tvm-block-device.c
+thunar-volman/tvm-camera-device.c
+thunar-volman/tvm-command-entry.c
+thunar-volman/tvm-device.c
+thunar-volman/tvm-input-device.c
+thunar-volman/tvm-pango-extensions.c
+thunar-volman/tvm-preferences-dialog.c
+thunar-volman/tvm-preferences.c
+thunar-volman/tvm-prompt.c
+thunar-volman/tvm-run.c
+thunar-volman/xfce-heading.c
+thunar-volman/xfce-titled-dialog.c
Added: thunar-volman/trunk/po/de.po
===================================================================
--- thunar-volman/trunk/po/de.po (rev 0)
+++ thunar-volman/trunk/po/de.po 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,363 @@
+# German translations for thunar-volman.
+# Copyright (C) 2007 Benedikt Meurer.
+# This file is distributed under the same license as the thunar-volman package.
+# Benedikt Meurer <benny at xfce.org>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: thunar-volman 0.0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-01-11 23:49+0100\n"
+"PO-Revision-Date: 2007-01-11 23:30+0100\n"
+"Last-Translator: Benedikt Meurer <benny at xfce.org>\n"
+"Language-Team: German <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: thunar-volman/main.c:50
+msgid "The HAL device UDI of the newly added device"
+msgstr ""
+
+#: thunar-volman/main.c:51 thunar-volman/tvm-preferences-dialog.c:118
+msgid "Configure management of removable drives and media"
+msgstr "Die Verwaltung von Wechseldatenträgern und -medien konfigurieren"
+
+#: thunar-volman/main.c:52
+msgid "Print version information and exit"
+msgstr "Programmversion anzeigen"
+
+#. setup application name
+#: thunar-volman/main.c:69
+msgid "Thunar Volume Manager"
+msgstr "Thunar Datenträgerverwaltung"
+
+#: thunar-volman/main.c:90
+msgid "Failed to open display"
+msgstr "Konnte keine Verbindung zum XServer herstellen"
+
+#: thunar-volman/main.c:106
+msgid "The Thunar development team. All rights reserved."
+msgstr "Die Thunar Entwickler. Alle Rechte vorbehalten."
+
+#: thunar-volman/main.c:107
+msgid "Written by Benedikt Meurer <benny at xfce.org>."
+msgstr "Entwickelt von Benedikt Meurer <benny at xfce.org>."
+
+#: thunar-volman/main.c:108
+#, c-format
+msgid "Please report bugs to <%s>."
+msgstr "Bitte melden Sie Probleme unter <%s>."
+
+#. TRANSLATORS: A HAL device UDI must match certain conditions to be valid (to be exact, it must be a valid D-Bus object path)
+#: thunar-volman/main.c:133
+#, c-format
+msgid "The specified UDI \"%s\" is not a valid HAL device UDI"
+msgstr ""
+
+#. TRANSLATORS: thunar-volman wasn't invoked with either --device-added or --configure.
+#: thunar-volman/main.c:144
+#, c-format
+msgid "Must specify the new HAL device UDI with --device-added"
+msgstr ""
+
+#. ...so we need to prompt what to do
+#: thunar-volman/tvm-block-device.c:143
+msgid "Photos and Music"
+msgstr "Fotos und Musik"
+
+#: thunar-volman/tvm-block-device.c:144
+msgid "Photos were found on your portable music player."
+msgstr "Auf diesem Gerät wurden Fotos und Musik entdeckt."
+
+#: thunar-volman/tvm-block-device.c:145
+msgid "Would you like to import the photos or manage the music?"
+msgstr "Sollen die Fotos importiert oder die Musik verwaltet werden?"
+
+#: thunar-volman/tvm-block-device.c:146 thunar-volman/tvm-block-device.c:213
+#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:359
+#: thunar-volman/tvm-block-device.c:629 thunar-volman/tvm-run.c:136
+#: thunar-volman/tvm-run.c:147
+msgid "Ig_nore"
+msgstr "_Ignorieren"
+
+#: thunar-volman/tvm-block-device.c:147 thunar-volman/tvm-block-device.c:214
+msgid "Import _Photos"
+msgstr "Fotos _Importieren"
+
+#: thunar-volman/tvm-block-device.c:148
+msgid "Manage _Music"
+msgstr "_Musik verwalten"
+
+#. ask the user whether to import photos
+#: thunar-volman/tvm-block-device.c:210
+msgid "Photo Import"
+msgstr "Fotos importieren"
+
+#: thunar-volman/tvm-block-device.c:211
+msgid "A photo card has been detected."
+msgstr "Ein Medium mit Fotos wurde erkannt."
+
+#: thunar-volman/tvm-block-device.c:212
+msgid ""
+"There are photos on the card. Would you like to add these photos to your "
+"album?"
+msgstr ""
+"Auf diesem Medium sind Fotos vorhanden. Sollen diese Ihrem Fotoalbum "
+"hinzugefügt werden?"
+
+#. prompt the user whether to execute this file
+#: thunar-volman/tvm-block-device.c:298
+#, c-format
+msgid "Would you like to allow \"%s\" to run?"
+msgstr "Soll »%s« ausgeführt werden?"
+
+#: thunar-volman/tvm-block-device.c:299
+msgid "Auto-Run Confirmation"
+msgstr "Automatisches Ausführen bestätigen"
+
+#: thunar-volman/tvm-block-device.c:300
+msgid "Auto-Run capability detected"
+msgstr "Unterstützung für Automatisches Ausführen erkannt."
+
+#: thunar-volman/tvm-block-device.c:302
+msgid "_Allow Auto-Run"
+msgstr "_Automatisches Ausführen erlauben"
+
+#. prompt the user whether to autoopen this file
+#: thunar-volman/tvm-block-device.c:356
+#, c-format
+msgid "Would you like to open \"%s\"?"
+msgstr "Soll »%s« geöffnet werden?"
+
+#: thunar-volman/tvm-block-device.c:357
+msgid "Auto-Open Confirmation"
+msgstr "Automatisches Öffnen bestätigen"
+
+#: thunar-volman/tvm-block-device.c:358
+msgid "Auto-Open capability detected"
+msgstr "Unterstützung für Automatisches Öffnen erkannt."
+
+#: thunar-volman/tvm-block-device.c:360
+msgid "_Open"
+msgstr "Ö_ffnen"
+
+#. ask what do with the mixed audio/data disc
+#: thunar-volman/tvm-block-device.c:626
+msgid "Audio / Data CD"
+msgstr "Audio-/Daten-CD"
+
+#: thunar-volman/tvm-block-device.c:627
+msgid "The CD in the drive contains both music and files."
+msgstr "Die CD im Laufwerk enthält sowohl Musik als auch Dateien."
+
+#: thunar-volman/tvm-block-device.c:628
+msgid "Would you like to listen to music or browse the files?"
+msgstr "Soll die Musik wiedergegeben oder die Dateien angezeigt werden?"
+
+#: thunar-volman/tvm-block-device.c:630
+msgid "_Browse Files"
+msgstr "_Dateien anzeigen"
+
+#: thunar-volman/tvm-block-device.c:631
+msgid "_Play CD"
+msgstr "_CD wiedergeben"
+
+#: thunar-volman/tvm-command-entry.c:233
+msgid "Select an Application"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:243
+msgid "All Files"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:248
+msgid "Executable Files"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:263
+msgid "Perl Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:269
+msgid "Python Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:275
+msgid "Ruby Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:281
+msgid "Shell Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:117
+msgid "Removable Drives and Media"
+msgstr "Wechseldatenträger- und Medieneinstellungen"
+
+#.
+#. Storage
+#.
+#: thunar-volman/tvm-preferences-dialog.c:135
+msgid "Storage"
+msgstr "Datenträger"
+
+#: thunar-volman/tvm-preferences-dialog.c:145
+msgid "Removable Storage"
+msgstr "Wechseldatenträger"
+
+#: thunar-volman/tvm-preferences-dialog.c:162
+msgid "_Mount removable drives when hot-plugged"
+msgstr "_Hotplug-Wechsellaufwerke automatisch einhängen"
+
+#: thunar-volman/tvm-preferences-dialog.c:167
+msgid "Mount removable media when _inserted"
+msgstr "Wechselmedien beim Einlegen ein_hängen"
+
+#: thunar-volman/tvm-preferences-dialog.c:172
+msgid "B_rowse removable media when inserted"
+msgstr "Wechselmedien beim _Einlegen öffnen"
+
+#: thunar-volman/tvm-preferences-dialog.c:177
+msgid "_Auto-run programs on new drives and media"
+msgstr "_Programme auf neuen Laufwerken und Medien automatisch ausführen"
+
+#: thunar-volman/tvm-preferences-dialog.c:182
+msgid "Auto-open files on new drives and media"
+msgstr "Dateien auf neuen Laufwerken und Medien automatisch ö_ffnen"
+
+#: thunar-volman/tvm-preferences-dialog.c:191
+msgid "Blank CDs and DVDs"
+msgstr "CD/DVD-Rohlinge"
+
+#: thunar-volman/tvm-preferences-dialog.c:208
+msgid "_Burn a CD or DVD when a blank disc is inserted"
+msgstr "Eine CD oder DVD _brennen, wenn ein Rohling eingelegt wird"
+
+#: thunar-volman/tvm-preferences-dialog.c:216
+msgid "Command for _Data CDs:"
+msgstr "Befehl für _Daten-CDs:"
+
+#: thunar-volman/tvm-preferences-dialog.c:223
+msgid "Command for A_udio CDs:"
+msgstr "Befehl für A_udio-CDs:"
+
+#.
+#. Multimedia
+#.
+#: thunar-volman/tvm-preferences-dialog.c:237
+msgid "Multimedia"
+msgstr "Unterhaltungsmedien"
+
+#: thunar-volman/tvm-preferences-dialog.c:247
+msgid "Audio CDs"
+msgstr "Audio-CDs"
+
+#: thunar-volman/tvm-preferences-dialog.c:264
+msgid "Play _audio CDs when inserted"
+msgstr "_Audio-CDs beim Einlegen wiedergeben"
+
+#: thunar-volman/tvm-preferences-dialog.c:269
+#: thunar-volman/tvm-preferences-dialog.c:375
+#: thunar-volman/tvm-preferences-dialog.c:416
+msgid "_Command:"
+msgstr "_Befehl:"
+
+#: thunar-volman/tvm-preferences-dialog.c:279
+msgid "Video CDs/DVDs"
+msgstr "Video-CDs/DVDs"
+
+#: thunar-volman/tvm-preferences-dialog.c:296
+msgid "Play _video CDs and DVDs when inserted"
+msgstr "_Video-CDs/DVDs beim Einlegen wiedergeben"
+
+#: thunar-volman/tvm-preferences-dialog.c:301
+#: thunar-volman/tvm-preferences-dialog.c:333
+#: thunar-volman/tvm-preferences-dialog.c:448
+msgid "C_ommand:"
+msgstr "B_efehl:"
+
+#: thunar-volman/tvm-preferences-dialog.c:311
+msgid "Portable Music Players"
+msgstr "Tragbare Musik-Player"
+
+#: thunar-volman/tvm-preferences-dialog.c:328
+msgid "Play _music files when connected"
+msgstr "Nach dem Verbinden _Musikdateien abspielen"
+
+#.
+#. Cameras
+#.
+#: thunar-volman/tvm-preferences-dialog.c:343
+msgid "Cameras"
+msgstr "Kameras"
+
+#: thunar-volman/tvm-preferences-dialog.c:353
+msgid "Digital Cameras"
+msgstr "Digitalkameras"
+
+#: thunar-volman/tvm-preferences-dialog.c:370
+msgid "Import digital photographs when connected"
+msgstr "Nach dem Verbinden digitale Fotos _importieren"
+
+#.
+#. Input Devices
+#.
+#: thunar-volman/tvm-preferences-dialog.c:384
+msgid "Input Devices"
+msgstr "Eingabegeräte"
+
+#: thunar-volman/tvm-preferences-dialog.c:394
+msgid "Keyboards"
+msgstr "Tastaturen"
+
+#: thunar-volman/tvm-preferences-dialog.c:411
+msgid "Automatically run a program when an USB _keyboard is connected"
+msgstr ""
+"Automatisch ein Programm ausführen, wenn eine USB-_Tastatur eingesteckt wird"
+
+#: thunar-volman/tvm-preferences-dialog.c:426
+msgid "Mice"
+msgstr "Mäuse"
+
+#: thunar-volman/tvm-preferences-dialog.c:443
+msgid "Automatically run a program when an USB _mouse is connected"
+msgstr ""
+"Automatisch ein Programm ausführen, wenn eine USB-_Maus eingesteckt wird"
+
+#: thunar-volman/tvm-preferences-dialog.c:458
+msgid "Tablet"
+msgstr "Grafiktablets"
+
+#: thunar-volman/tvm-preferences-dialog.c:475
+msgid "Automatically run a program when a _tablet is connected"
+msgstr ""
+"Automatisch ein Programm ausführen, wenn ein _Grafiktablett eingesteckt wird"
+
+#: thunar-volman/tvm-preferences-dialog.c:480
+msgid "Com_mand:"
+msgstr "Befe_hl:"
+
+#: thunar-volman/tvm-run.c:133 thunar-volman/tvm-run.c:144
+msgid "Choose Disc Type"
+msgstr "Medientyp auswählen"
+
+#: thunar-volman/tvm-run.c:134 thunar-volman/tvm-run.c:145
+msgid "You have inserted a blank disc."
+msgstr "Ein Rohling wurde eingelegt."
+
+#: thunar-volman/tvm-run.c:135 thunar-volman/tvm-run.c:146
+msgid "What would you like to do?"
+msgstr "Welche Aktion soll ausgeführt werden?"
+
+#: thunar-volman/tvm-run.c:137
+msgid "Make _DVD"
+msgstr "_DVD brennen"
+
+#: thunar-volman/tvm-run.c:148
+msgid "Make _Data CD"
+msgstr "_Daten-CD brennen"
+
+#: thunar-volman/tvm-run.c:149
+msgid "Make _Audio CD"
+msgstr "_Audio-CD brennen"
Added: thunar-volman/trunk/po/thunar-volman.pot
===================================================================
--- thunar-volman/trunk/po/thunar-volman.pot (rev 0)
+++ thunar-volman/trunk/po/thunar-volman.pot 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,359 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-01-11 23:49+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: thunar-volman/main.c:50
+msgid "The HAL device UDI of the newly added device"
+msgstr ""
+
+#: thunar-volman/main.c:51 thunar-volman/tvm-preferences-dialog.c:118
+msgid "Configure management of removable drives and media"
+msgstr ""
+
+#: thunar-volman/main.c:52
+msgid "Print version information and exit"
+msgstr ""
+
+#. setup application name
+#: thunar-volman/main.c:69
+msgid "Thunar Volume Manager"
+msgstr ""
+
+#: thunar-volman/main.c:90
+msgid "Failed to open display"
+msgstr ""
+
+#: thunar-volman/main.c:106
+msgid "The Thunar development team. All rights reserved."
+msgstr ""
+
+#: thunar-volman/main.c:107
+msgid "Written by Benedikt Meurer <benny at xfce.org>."
+msgstr ""
+
+#: thunar-volman/main.c:108
+#, c-format
+msgid "Please report bugs to <%s>."
+msgstr ""
+
+#. TRANSLATORS: A HAL device UDI must match certain conditions to be valid (to be exact, it must be a valid D-Bus object path)
+#: thunar-volman/main.c:133
+#, c-format
+msgid "The specified UDI \"%s\" is not a valid HAL device UDI"
+msgstr ""
+
+#. TRANSLATORS: thunar-volman wasn't invoked with either --device-added or --configure.
+#: thunar-volman/main.c:144
+#, c-format
+msgid "Must specify the new HAL device UDI with --device-added"
+msgstr ""
+
+#. ...so we need to prompt what to do
+#: thunar-volman/tvm-block-device.c:143
+msgid "Photos and Music"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:144
+msgid "Photos were found on your portable music player."
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:145
+msgid "Would you like to import the photos or manage the music?"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:146 thunar-volman/tvm-block-device.c:213
+#: thunar-volman/tvm-block-device.c:301 thunar-volman/tvm-block-device.c:359
+#: thunar-volman/tvm-block-device.c:629 thunar-volman/tvm-run.c:136
+#: thunar-volman/tvm-run.c:147
+msgid "Ig_nore"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:147 thunar-volman/tvm-block-device.c:214
+msgid "Import _Photos"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:148
+msgid "Manage _Music"
+msgstr ""
+
+#. ask the user whether to import photos
+#: thunar-volman/tvm-block-device.c:210
+msgid "Photo Import"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:211
+msgid "A photo card has been detected."
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:212
+msgid ""
+"There are photos on the card. Would you like to add these photos to your "
+"album?"
+msgstr ""
+
+#. prompt the user whether to execute this file
+#: thunar-volman/tvm-block-device.c:298
+#, c-format
+msgid "Would you like to allow \"%s\" to run?"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:299
+msgid "Auto-Run Confirmation"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:300
+msgid "Auto-Run capability detected"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:302
+msgid "_Allow Auto-Run"
+msgstr ""
+
+#. prompt the user whether to autoopen this file
+#: thunar-volman/tvm-block-device.c:356
+#, c-format
+msgid "Would you like to open \"%s\"?"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:357
+msgid "Auto-Open Confirmation"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:358
+msgid "Auto-Open capability detected"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:360
+msgid "_Open"
+msgstr ""
+
+#. ask what do with the mixed audio/data disc
+#: thunar-volman/tvm-block-device.c:626
+msgid "Audio / Data CD"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:627
+msgid "The CD in the drive contains both music and files."
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:628
+msgid "Would you like to listen to music or browse the files?"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:630
+msgid "_Browse Files"
+msgstr ""
+
+#: thunar-volman/tvm-block-device.c:631
+msgid "_Play CD"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:233
+msgid "Select an Application"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:243
+msgid "All Files"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:248
+msgid "Executable Files"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:263
+msgid "Perl Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:269
+msgid "Python Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:275
+msgid "Ruby Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-command-entry.c:281
+msgid "Shell Scripts"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:117
+msgid "Removable Drives and Media"
+msgstr ""
+
+#.
+#. Storage
+#.
+#: thunar-volman/tvm-preferences-dialog.c:135
+msgid "Storage"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:145
+msgid "Removable Storage"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:162
+msgid "_Mount removable drives when hot-plugged"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:167
+msgid "Mount removable media when _inserted"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:172
+msgid "B_rowse removable media when inserted"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:177
+msgid "_Auto-run programs on new drives and media"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:182
+msgid "Auto-open files on new drives and media"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:191
+msgid "Blank CDs and DVDs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:208
+msgid "_Burn a CD or DVD when a blank disc is inserted"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:216
+msgid "Command for _Data CDs:"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:223
+msgid "Command for A_udio CDs:"
+msgstr ""
+
+#.
+#. Multimedia
+#.
+#: thunar-volman/tvm-preferences-dialog.c:237
+msgid "Multimedia"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:247
+msgid "Audio CDs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:264
+msgid "Play _audio CDs when inserted"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:269
+#: thunar-volman/tvm-preferences-dialog.c:375
+#: thunar-volman/tvm-preferences-dialog.c:416
+msgid "_Command:"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:279
+msgid "Video CDs/DVDs"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:296
+msgid "Play _video CDs and DVDs when inserted"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:301
+#: thunar-volman/tvm-preferences-dialog.c:333
+#: thunar-volman/tvm-preferences-dialog.c:448
+msgid "C_ommand:"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:311
+msgid "Portable Music Players"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:328
+msgid "Play _music files when connected"
+msgstr ""
+
+#.
+#. Cameras
+#.
+#: thunar-volman/tvm-preferences-dialog.c:343
+msgid "Cameras"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:353
+msgid "Digital Cameras"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:370
+msgid "Import digital photographs when connected"
+msgstr ""
+
+#.
+#. Input Devices
+#.
+#: thunar-volman/tvm-preferences-dialog.c:384
+msgid "Input Devices"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:394
+msgid "Keyboards"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:411
+msgid "Automatically run a program when an USB _keyboard is connected"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:426
+msgid "Mice"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:443
+msgid "Automatically run a program when an USB _mouse is connected"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:458
+msgid "Tablet"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:475
+msgid "Automatically run a program when a _tablet is connected"
+msgstr ""
+
+#: thunar-volman/tvm-preferences-dialog.c:480
+msgid "Com_mand:"
+msgstr ""
+
+#: thunar-volman/tvm-run.c:133 thunar-volman/tvm-run.c:144
+msgid "Choose Disc Type"
+msgstr ""
+
+#: thunar-volman/tvm-run.c:134 thunar-volman/tvm-run.c:145
+msgid "You have inserted a blank disc."
+msgstr ""
+
+#: thunar-volman/tvm-run.c:135 thunar-volman/tvm-run.c:146
+msgid "What would you like to do?"
+msgstr ""
+
+#: thunar-volman/tvm-run.c:137
+msgid "Make _DVD"
+msgstr ""
+
+#: thunar-volman/tvm-run.c:148
+msgid "Make _Data CD"
+msgstr ""
+
+#: thunar-volman/tvm-run.c:149
+msgid "Make _Audio CD"
+msgstr ""
Property changes on: thunar-volman/trunk/thunar-volman
___________________________________________________________________
Name: svn:ignore
+ .deps
.libs
Makefile
Makefile.in
.*.swp
thunar-volman
Added: thunar-volman/trunk/thunar-volman/Makefile.am
===================================================================
--- thunar-volman/trunk/thunar-volman/Makefile.am (rev 0)
+++ thunar-volman/trunk/thunar-volman/Makefile.am 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,60 @@
+# $Id$
+
+INCLUDES = \
+ -I$(top_builddir) \
+ -I$(top_srcdir) \
+ -DBINDIR=\"$(bindir)\" \
+ -DEXO_API_SUBJECT_TO_CHANGE \
+ -DEXO_DISABLE_DEPRECATED \
+ -DG_LOG_DOMAIN=\"thunar-volman\" \
+ -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
+ $(PLATFORM_CPPFLAGS)
+
+bin_PROGRAMS = \
+ thunar-volman
+
+thunar_volman_SOURCES = \
+ main.c \
+ tvm-block-device.c \
+ tvm-block-device.h \
+ tvm-camera-device.c \
+ tvm-camera-device.h \
+ tvm-command-entry.c \
+ tvm-command-entry.h \
+ tvm-device.c \
+ tvm-device.h \
+ tvm-input-device.c \
+ tvm-input-device.h \
+ tvm-pango-extensions.c \
+ tvm-pango-extensions.h \
+ tvm-preferences-dialog.c \
+ tvm-preferences-dialog.h \
+ tvm-preferences.c \
+ tvm-preferences.h \
+ tvm-prompt.c \
+ tvm-prompt.h \
+ tvm-run.c \
+ tvm-run.h \
+ xfce-heading.c \
+ xfce-heading.h \
+ xfce-titled-dialog.c \
+ xfce-titled-dialog.h
+
+thunar_volman_CFLAGS = \
+ $(DBUS_CFLAGS) \
+ $(EXO_HAL_CFLAGS) \
+ $(HAL_CFLAGS) \
+ $(THUNAR_VFS_CFLAGS) \
+ $(PLATFORM_CFLAGS)
+
+thunar_volman_LDFLAGS = \
+ -no-undefined \
+ $(PLATFORM_LDFLAGS)
+
+thunar_volman_LDADD = \
+ $(DBUS_LIBS) \
+ $(EXO_HAL_LIBS) \
+ $(HAL_LIBS) \
+ $(THUNAR_VFS_LIBS)
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Property changes on: thunar-volman/trunk/thunar-volman/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/thunar-volman/main.c
===================================================================
--- thunar-volman/trunk/thunar-volman/main.c (rev 0)
+++ thunar-volman/trunk/thunar-volman/main.c 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,164 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>.
+ *
+ * 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
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include <glib/gstdio.h>
+
+#include <exo-hal/exo-hal.h>
+
+#include <thunar-vfs/thunar-vfs.h>
+
+#include <thunar-volman/tvm-device.h>
+#include <thunar-volman/tvm-preferences-dialog.h>
+
+
+
+/* --- globals --- */
+static gchar *opt_hal_udi = NULL;
+static gboolean opt_configure = FALSE;
+static gboolean opt_version = FALSE;
+
+
+
+/* --- command line options --- */
+static GOptionEntry option_entries[] =
+{
+ { "device-added", 'a', 0, G_OPTION_ARG_STRING, &opt_hal_udi, N_ ("The HAL device UDI of the newly added device"), NULL, },
+ { "configure", 'c', 0, G_OPTION_ARG_NONE, &opt_configure, N_ ("Configure management of removable drives and media"), NULL, },
+ { "version", 'v', 0, G_OPTION_ARG_NONE, &opt_version, N_ ("Print version information and exit"), NULL, },
+ { NULL, },
+};
+
+
+
+int
+main (int argc, char **argv)
+{
+ TvmPreferences *preferences;
+ GtkWidget *dialog;
+ GError *err = NULL;
+
+ /* setup translation domain */
+ xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+
+ /* setup application name */
+ g_set_application_name (_("Thunar Volume Manager"));
+
+#ifdef G_ENABLE_DEBUG
+ /* Do NOT remove this line for now, If something doesn't work,
+ * fix your code instead!
+ */
+ g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING);
+#endif
+
+ /* initialize the GThread system */
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
+
+ /* initialize Gtk+ */
+ if (!gtk_init_with_args (&argc, &argv, NULL, option_entries, GETTEXT_PACKAGE, &err))
+ {
+ /* check if we have an error message */
+ if (G_LIKELY (err == NULL))
+ {
+ /* no error message, the GUI initialization failed */
+ const gchar *display_name = gdk_get_display_arg_name ();
+ g_fprintf (stderr, "thunar-volman: %s: %s.\n", _("Failed to open display"), (display_name != NULL) ? display_name : " ");
+ }
+ else
+ {
+ /* yep, there's an error, so print it */
+ g_fprintf (stderr, "%s: %s.\n", g_get_prgname (), err->message);
+ g_error_free (err);
+ }
+ return EXIT_FAILURE;
+ }
+
+ /* check if we should print version information */
+ if (G_UNLIKELY (opt_version))
+ {
+ g_print ("%s %s (Xfce %s)\n\n", PACKAGE_NAME, PACKAGE_VERSION, xfce_version_string ());
+ g_print ("%s\n", "Copyright (c) 2004-2007");
+ g_print ("\t%s\n\n", _("The Thunar development team. All rights reserved."));
+ g_print ("%s\n\n", _("Written by Benedikt Meurer <benny at xfce.org>."));
+ g_print (_("Please report bugs to <%s>."), PACKAGE_BUGREPORT);
+ g_print ("\n");
+ return EXIT_SUCCESS;
+ }
+
+ /* initialize the ThunarVFS library */
+ thunar_vfs_init ();
+
+ /* load the preferences for the volume manager */
+ preferences = tvm_preferences_get ();
+
+ /* check if we should configure the volume manager */
+ if (G_UNLIKELY (opt_configure))
+ {
+ /* bring up the preferences dialog */
+ dialog = tvm_preferences_dialog_new ();
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+ }
+ else if (G_LIKELY (opt_hal_udi != NULL))
+ {
+ /* make sure the specified UDI is valid */
+ if (!exo_hal_udi_validate (opt_hal_udi, -1, NULL))
+ {
+ /* TRANSLATORS: A HAL device UDI must match certain conditions to be valid (to be exact, it must be a valid D-Bus object path) */
+ g_set_error (&err, G_FILE_ERROR, G_FILE_ERROR_FAILED, _("The specified UDI \"%s\" is not a valid HAL device UDI"), opt_hal_udi);
+ }
+ else
+ {
+ /* try to handle the newly added device */
+ tvm_device_added (preferences, opt_hal_udi, &err);
+ }
+ }
+ else
+ {
+ /* TRANSLATORS: thunar-volman wasn't invoked with either --device-added or --configure. */
+ g_set_error (&err, G_FILE_ERROR, G_FILE_ERROR_FAILED, _("Must specify the new HAL device UDI with --device-added"));
+ }
+
+ /* flush the preferences */
+ g_object_unref (G_OBJECT (preferences));
+
+ /* shutdown thunar-vfs */
+ thunar_vfs_shutdown ();
+
+ /* check if an error occurred */
+ if (G_UNLIKELY (err != NULL))
+ {
+ /* tell the user about the problem */
+ g_fprintf (stderr, "%s: %s.\n", g_get_prgname (), err->message);
+ g_error_free (err);
+ return EXIT_FAILURE;
+ }
+
+ return EXIT_SUCCESS;
+}
+
Property changes on: thunar-volman/trunk/thunar-volman/main.c
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/thunar-volman/tvm-block-device.c
===================================================================
--- thunar-volman/trunk/thunar-volman/tvm-block-device.c (rev 0)
+++ thunar-volman/trunk/thunar-volman/tvm-block-device.c 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,691 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>.
+ *
+ * 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
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif
+#include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include <dbus/dbus-glib-lowlevel.h>
+
+#include <thunar-volman/tvm-block-device.h>
+#include <thunar-volman/tvm-prompt.h>
+#include <thunar-volman/tvm-run.h>
+
+
+
+static gboolean tvm_block_device_autoipod (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error);
+static gboolean tvm_block_device_autophoto (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error);
+static gboolean tvm_block_device_autorun (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error);
+static gboolean tvm_block_device_mount (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ GError **error);
+static gboolean tvm_block_device_mounted (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error);
+
+
+
+static gboolean
+tvm_block_device_autoipod (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error)
+{
+ gboolean result = FALSE;
+ gboolean autoipod;
+ gchar *autoipod_command;
+ gchar *autophoto_command;
+ gchar *storage_udi;
+ gchar *path_dcim = NULL;
+ gchar *product;
+ gint response;
+
+ /* check if music players should be handled automatically */
+ g_object_get (G_OBJECT (preferences), "autoipod", &autoipod, "autoipod-command", &autoipod_command, NULL);
+ if (G_LIKELY (autoipod && autoipod_command != NULL && *autoipod_command != '\0'))
+ {
+ /* determine the storage device UDI */
+ storage_udi = libhal_device_get_property_string (context, udi, "block.storage_device", NULL);
+ if (G_LIKELY (storage_udi != NULL))
+ {
+ /* check if we have a portable audio player here */
+ if (libhal_device_query_capability (context, storage_udi, "portable_audio_player", NULL))
+ {
+ /* check if we have an iPod here */
+ product = libhal_device_get_property_string (context, storage_udi, "info.product", NULL);
+ if (product != NULL && strcmp (product, "iPod") != 0)
+ {
+ /* an iPod may have photos */
+ path_dcim = g_build_filename (mount_point, "dcim", NULL);
+ if (!g_file_test (path_dcim, G_FILE_TEST_IS_DIR))
+ {
+ /* no photos */
+ g_free (path_dcim);
+ path_dcim = NULL;
+ }
+ else
+ {
+ /* add the "content.photos" capability to this device */
+ libhal_device_add_capability (context, udi, "content.photos", NULL);
+ }
+ }
+ libhal_free_string (product);
+ }
+
+ /* check if autophoto command is specified, else we cannot handle the photos on the iPod anyway */
+ g_object_get (G_OBJECT (preferences), "autophoto-command", &autophoto_command, NULL);
+ if (G_UNLIKELY (autophoto_command == NULL || *autophoto_command == '\0'))
+ {
+ /* cannot handle photos */
+ g_free (path_dcim);
+ path_dcim = NULL;
+ }
+
+ /* iPods can carry both music and photos... */
+ if (G_LIKELY (path_dcim != NULL))
+ {
+ /* ...so we need to prompt what to do */
+ response = tvm_prompt (context, udi, "gnome-dev-ipod", _("Photos and Music"),
+ _("Photos were found on your portable music player."),
+ _("Would you like to import the photos or manage the music?"),
+ _("Ig_nore"), GTK_RESPONSE_CANCEL,
+ _("Import _Photos"), TVM_RESPONSE_PHOTOS,
+ _("Manage _Music"), TVM_RESPONSE_MUSIC,
+ NULL);
+ }
+ else
+ {
+ /* no photos, so we can manage only music */
+ response = TVM_RESPONSE_MUSIC;
+ }
+
+ /* check what to do */
+ if (response == TVM_RESPONSE_MUSIC)
+ {
+ /* run the preferred application to manage music players */
+ result = tvm_run_command (context, udi, autoipod_command, device_file, mount_point, error);
+ }
+ else if (response == TVM_RESPONSE_PHOTOS)
+ {
+ /* run the preferred application to manage photos */
+ result = tvm_run_command (context, udi, autophoto_command, device_file, mount_point, error);
+ }
+
+ /* cleanup */
+ libhal_free_string (storage_udi);
+ g_free (autophoto_command);
+ g_free (path_dcim);
+ }
+ }
+
+ /* cleanup */
+ g_free (autoipod_command);
+
+ return result;
+}
+
+
+
+static gboolean
+tvm_block_device_autophoto (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error)
+{
+ gboolean result = FALSE;
+ gboolean autophoto;
+ gchar *autophoto_command;
+ gchar *path_dcim;
+ gint response;
+
+ /* check autophoto support is enabled */
+ g_object_get (G_OBJECT (preferences), "autophoto", &autophoto, "autophoto-command", &autophoto_command, NULL);
+ if (G_LIKELY (autophoto && autophoto_command != NULL && *autophoto_command != '\0'))
+ {
+ /* check if we have photos on the volume */
+ path_dcim = g_build_filename (mount_point, "dcim", NULL);
+ if (g_file_test (path_dcim, G_FILE_TEST_IS_DIR))
+ {
+ /* add the "content.photos" capability to this device */
+ libhal_device_add_capability (context, udi, "content.photos", NULL);
+
+ /* ask the user whether to import photos */
+ response = tvm_prompt (context, udi, "camera-photo", _("Photo Import"),
+ _("A photo card has been detected."),
+ _("There are photos on the card. Would you like to add these photos to your album?"),
+ _("Ig_nore"), GTK_RESPONSE_CANCEL,
+ _("Import _Photos"), TVM_RESPONSE_PHOTOS,
+ NULL);
+ if (G_LIKELY (response == TVM_RESPONSE_PHOTOS))
+ {
+ /* run the preferred application to manage photos */
+ result = tvm_run_command (context, udi, autophoto_command, device_file, mount_point, error);
+ }
+ else
+ {
+ /* pretend that we handled the device */
+ result = TRUE;
+ }
+ }
+ g_free (path_dcim);
+ }
+ g_free (autophoto_command);
+
+ return result;
+}
+
+
+
+static gboolean
+tvm_block_device_autorun (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error)
+{
+ struct stat statb_mount_point;
+ struct stat statb_autoopen;
+ gboolean result;
+ gboolean autoopen;
+ gboolean autoplay;
+ gboolean autorun;
+ gchar *autoplay_command;
+ gchar *path_video_ts;
+ gchar *path_autoopen;
+ gchar *path_autorun;
+ gchar line[1024];
+ gchar *path_vcd;
+ gchar *message;
+ gchar **argv;
+ FILE *fp;
+ gint response;
+ gint n;
+
+ /* check if autoplay video CDs/DVDs is enabled */
+ g_object_get (G_OBJECT (preferences), "autoplay-video-cd", &autoplay, "autoplay-video-cd-command", &autoplay_command, NULL);
+ if (G_LIKELY (autoplay))
+ {
+ /* check if we have a video CD or video DVD here */
+ path_vcd = g_build_filename (mount_point, "vcd", NULL);
+ path_video_ts = g_build_filename (mount_point, "video_ts", NULL);
+ if (g_file_test (path_vcd, G_FILE_TEST_IS_DIR) || g_file_test (path_video_ts, G_FILE_TEST_IS_DIR))
+ {
+ /* try to spawn the preferred video CD/DVD-Player */
+ result = tvm_run_command (context, udi, autoplay_command, device_file, mount_point, error);
+ g_free (autoplay_command);
+ g_free (path_video_ts);
+ g_free (path_vcd);
+ return result;
+ }
+
+ /* cleanup */
+ g_free (path_video_ts);
+ g_free (path_vcd);
+ }
+ g_free (autoplay_command);
+
+ /* check if autorun support is enabled */
+ g_object_get (G_OBJECT (preferences), "autorun", &autorun, NULL);
+ if (G_LIKELY (autorun))
+ {
+ /* "Autostart Files" (Desktop Application Autostart Specification) */
+ static const gchar *AUTORUN[] = { ".autorun", "autorun", "autorun.sh" };
+ for (n = 0; n < G_N_ELEMENTS (AUTORUN); ++n)
+ {
+ /* check if one of the autorun files is present and executable */
+ path_autorun = g_build_filename (mount_point, AUTORUN[n], NULL);
+ if (g_file_test (path_autorun, G_FILE_TEST_IS_EXECUTABLE))
+ {
+ /* prompt the user whether to execute this file */
+ message = g_strdup_printf (_("Would you like to allow \"%s\" to run?"), AUTORUN[n]);
+ response = tvm_prompt (context, udi, "gnome-fs-executable", _("Auto-Run Confirmation"),
+ _("Auto-Run capability detected"), message,
+ _("Ig_nore"), GTK_RESPONSE_CANCEL,
+ _("_Allow Auto-Run"), TVM_RESPONSE_AUTORUN,
+ NULL);
+ g_free (message);
+
+ /* check if we should autorun */
+ if (response == TVM_RESPONSE_AUTORUN)
+ {
+ /* prepare argv to launch autorun file */
+ argv = g_new (gchar *, 2);
+ argv[0] = path_autorun;
+ argv[1] = NULL;
+
+ /* try to launch the autorun file */
+ result = g_spawn_async (mount_point, argv, NULL, 0, NULL, NULL, NULL, error);
+
+ /* cleanup */
+ g_strfreev (argv);
+
+ /* outa here */
+ return result;
+ }
+ }
+ g_free (path_autorun);
+ }
+ }
+
+ /* check if autoopen support is enabled */
+ g_object_get (G_OBJECT (preferences), "autoopen", &autoopen, NULL);
+ if (G_LIKELY (autoopen))
+ {
+ /* "Autoopen Files" (Desktop Application Autostart Specification) */
+ static const gchar *AUTOOPEN[] = { ".autoopen", "autoopen" };
+ for (n = 0; n < G_N_ELEMENTS (AUTOOPEN); ++n)
+ {
+ /* check if one of the autoopen files is present */
+ path_autoopen = g_build_filename (mount_point, AUTOOPEN[n], NULL);
+ fp = fopen (path_autoopen, "r");
+ g_free (path_autoopen);
+
+ /* check if the file could be opened */
+ if (G_UNLIKELY (fp != NULL))
+ {
+ /* read the first line of the file (MUST NOT be an absolute path) */
+ if (fgets (line, sizeof (line), fp) != NULL && !g_path_is_absolute (line))
+ {
+ /* determine the absolute path of the file */
+ path_autoopen = g_build_filename (mount_point, line, NULL);
+
+ /* the file must exist on exactly this device */
+ if (stat (mount_point, &statb_mount_point) == 0 && stat (path_autoopen, &statb_autoopen) == 0
+ && S_ISREG (statb_autoopen.st_mode) && (statb_autoopen.st_mode & 0111) == 0
+ && (statb_mount_point.st_dev == statb_autoopen.st_dev))
+ {
+ /* prompt the user whether to autoopen this file */
+ message = g_strdup_printf (_("Would you like to open \"%s\"?"), AUTOOPEN[n]);
+ response = tvm_prompt (context, udi, "gnome-fs-executable", _("Auto-Open Confirmation"),
+ _("Auto-Open capability detected"), message,
+ _("Ig_nore"), GTK_RESPONSE_CANCEL,
+ _("_Open"), TVM_RESPONSE_AUTOOPEN,
+ NULL);
+ g_free (message);
+
+ /* check if we should autoopen */
+ if (response == TVM_RESPONSE_AUTOOPEN)
+ {
+ /* prepare the command to autoopen */
+ argv = g_new (gchar *, 3);
+ argv[0] = g_strdup ("Thunar");
+ argv[1] = path_autoopen;
+ argv[2] = NULL;
+
+ /* let Thunar open the file */
+ result = g_spawn_async (mount_point, argv, NULL, 0, NULL, NULL, NULL, error);
+
+ /* cleanup */
+ g_free (path_autoopen);
+ fclose (fp);
+ return result;
+ }
+ }
+
+ /* cleanup */
+ g_free (path_autoopen);
+ }
+
+ /* close the file handle */
+ fclose (fp);
+ }
+ }
+ }
+
+ /* not handled */
+ return FALSE;
+}
+
+
+
+static gboolean
+tvm_block_device_mount (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ GError **error)
+{
+ DBusError derror;
+ gboolean result = FALSE;
+ GSList *mount_points;
+ gchar *device_file;
+ gchar *argv[4];
+ gint status;
+
+ /* check if we should ignore the volume, if so, pretend that we succeed */
+ if (libhal_device_get_property_bool (context, udi, "volume.ignore", NULL))
+ return TRUE;
+
+ /* generate the command to mount the device */
+ argv[0] = (gchar *) "exo-mount";
+ argv[1] = (gchar *) "--hal-udi";
+ argv[2] = (gchar *) udi;
+ argv[3] = NULL;
+
+ /* let exo-mount mount the device */
+ if (!g_spawn_sync (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, &status, error))
+ {
+ /* failed to spawn the exo-mount command */
+ return FALSE;
+ }
+ else if (!WIFEXITED (status) || WEXITSTATUS (status) != 0)
+ {
+ /* exo-mount failed, but already displayed an error */
+ return TRUE;
+ }
+
+ /* initalize D-Bus error */
+ dbus_error_init (&derror);
+
+ /* successfully mounted the device, determine the device file */
+ device_file = libhal_device_get_property_string (context, udi, "block.device", &derror);
+ if (G_UNLIKELY (device_file == NULL))
+ {
+ /* propagate the error */
+ dbus_set_g_error (error, &derror);
+ return FALSE;
+ }
+
+ /* determine the active mount point(s) for the device from the kernel */
+ mount_points = exo_mount_point_list_matched (EXO_MOUNT_POINT_MATCH_ACTIVE | EXO_MOUNT_POINT_MATCH_DEVICE, device_file, NULL, NULL, error);
+ if (G_LIKELY (mount_points != NULL))
+ {
+ /* try to handled the mounted volume */
+ result = tvm_block_device_mounted (preferences, context, udi, device_file, ((ExoMountPoint *) mount_points->data)->folder, error);
+
+ /* release the mount points */
+ g_slist_foreach (mount_points, (GFunc) exo_mount_point_free, NULL);
+ g_slist_free (mount_points);
+ }
+
+ /* release the device file */
+ libhal_free_string (device_file);
+
+ return result;
+}
+
+
+
+
+static gboolean
+tvm_block_device_mounted (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *device_file,
+ const gchar *mount_point,
+ GError **error)
+{
+ gboolean autobrowse;
+ gboolean result;
+ GError *err = NULL;
+
+ /* check if we have a portable media player here */
+ result = tvm_block_device_autoipod (preferences, context, udi, device_file, mount_point, &err);
+ if (G_LIKELY (!result && err == NULL))
+ {
+ /* check if we have a digital photo camera here */
+ result = tvm_block_device_autophoto (preferences, context, udi, device_file, mount_point, &err);
+ if (G_LIKELY (!result && err == NULL))
+ {
+ /* try autorun (video CD/DVD, autoopen, etc.) first */
+ result = tvm_block_device_autorun (preferences, context, udi, device_file, mount_point, &err);
+ if (G_LIKELY (!result && err == NULL))
+ {
+ /* check if we should autobrowse the mount point folder */
+ g_object_get (G_OBJECT (preferences), "autobrowse", &autobrowse, NULL);
+ if (G_LIKELY (autobrowse))
+ {
+ /* open the mount point folder in Thunar */
+ result = tvm_run_command (context, udi, "Thunar %m", device_file, mount_point, &err);
+ }
+ }
+ }
+ }
+
+ /* check if we need to propagate an error */
+ if (G_UNLIKELY (err != NULL))
+ {
+ /* propagate the error */
+ g_propagate_error (error, err);
+ result = FALSE;
+ }
+
+ return result;
+}
+
+
+
+/**
+ * tvm_block_device_added:
+ * @preferences : a #TvmPreferences.
+ * @context : a #LibHalContext.
+ * @udi : the HAL device UDI of the newly added block device.
+ * @capability : the capability, which caused this handler to be run.
+ * @error : return location for errors or %NULL.
+ *
+ * See #TvmDeviceCallback for further information.
+ *
+ * Return value: %TRUE if handled, %FALSE if not handled or an
+ * unrecoverable error occurred.
+ **/
+gboolean
+tvm_block_device_added (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *capability,
+ GError **error)
+{
+ DBusError derror;
+ gboolean disc_has_audio;
+ gboolean disc_has_data;
+ gboolean automount;
+ gboolean autoplay;
+ gboolean is_cdrom;
+ gchar *storage_udi;
+ gchar *drive_type;
+ gint response;
+
+ g_return_val_if_fail (exo_hal_udi_validate (udi, -1, NULL), FALSE);
+ g_return_val_if_fail (TVM_IS_PREFERENCES (preferences), FALSE);
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ g_return_val_if_fail (capability != NULL, FALSE);
+ g_return_val_if_fail (context != NULL, FALSE);
+
+ /* initialize D-Bus error */
+ dbus_error_init (&derror);
+
+ /* verify that we have a mountable volume here */
+ if (!libhal_device_get_property_bool (context, udi, "block.is_volume", &derror))
+ {
+err0: /* check if we have an error to propagate */
+ if (dbus_error_is_set (&derror))
+ {
+ /* propagate the error */
+ dbus_set_g_error (error, &derror);
+ dbus_error_free (&derror);
+ }
+
+ return FALSE;
+ }
+
+ /* determine the HAL UDI of the backing storage device */
+ storage_udi = libhal_device_get_property_string (context, udi, "block.storage_device", &derror);
+ if (G_UNLIKELY (storage_udi == NULL))
+ goto err0;
+
+ /* if the partition_table_changed flag is set, we don't want to mount as a partitioning tool might be modifying this device */
+ if (libhal_device_get_property_bool (context, storage_udi, "storage.partition_table_changed", NULL))
+ {
+err1: libhal_free_string (storage_udi);
+ goto err0;
+ }
+
+ /* check if this device supports removable media */
+ if (libhal_device_get_property_bool (context, storage_udi, "storage.removable", NULL))
+ {
+ /* check if the device is locked */
+ if (libhal_device_get_property_bool (context, storage_udi, "info.locked", NULL))
+ {
+ /* pretend that we handled the device */
+ libhal_free_string (storage_udi);
+ return TRUE;
+ }
+
+ /* determine the drive type */
+ drive_type = libhal_device_get_property_string (context, storage_udi, "storage.drive_type", &derror);
+ if (G_UNLIKELY (drive_type == NULL))
+ goto err1;
+
+ /* check if we have a CD-ROM here */
+ is_cdrom = (strcmp (drive_type, "cdrom") == 0);
+
+ /* we don't need the storage UDI any more */
+ libhal_free_string (storage_udi);
+
+ /* free the drive type */
+ libhal_free_string (drive_type);
+
+ /* CD-ROMs deserve special handling */
+ if (G_LIKELY (is_cdrom))
+ {
+ /* check for blank discs */
+ if (libhal_device_get_property_bool (context, udi, "volume.disc.is_blank", NULL))
+ {
+ /* run the preferred CD-Burner application */
+ return tvm_run_cdburner (preferences, context, udi, error);
+ }
+ else
+ {
+ /* check if we have DATA/AUDIO tracks */
+ disc_has_audio = libhal_device_get_property_bool (context, udi, "volume.disc.has_audio", NULL);
+ disc_has_data = libhal_device_get_property_bool (context, udi, "volume.disc.has_data", NULL);
+ if (G_UNLIKELY (disc_has_audio && disc_has_data))
+ {
+ /* check if we need to prompt the user */
+ g_object_get (G_OBJECT (preferences), "automount-media", &automount, "autoplay-audio-cd", &autoplay, NULL);
+ if (G_LIKELY (automount && autoplay))
+ {
+ /* ask what do with the mixed audio/data disc */
+ response = tvm_prompt (context, udi, "gnome-dev-cdrom-audio", _("Audio / Data CD"),
+ _("The CD in the drive contains both music and files."),
+ _("Would you like to listen to music or browse the files?"),
+ _("Ig_nore"), GTK_RESPONSE_CANCEL,
+ _("_Browse Files"), TVM_RESPONSE_BROWSE,
+ _("_Play CD"), TVM_RESPONSE_PLAY,
+ NULL);
+ switch (response)
+ {
+ case TVM_RESPONSE_PLAY:
+ goto autoplay_disc;
+
+ case TVM_RESPONSE_BROWSE:
+ goto automount_disc;
+
+ default:
+ break;
+ }
+ }
+ else if (automount)
+ {
+ /* just automount the media */
+ goto automount_disc;
+ }
+ else if (autoplay)
+ {
+ /* just autoplay the disc */
+ goto autoplay_disc;
+ }
+ }
+ else if (G_LIKELY (disc_has_audio))
+ {
+autoplay_disc: /* run the preferred CD-Player application */
+ return tvm_run_cdplayer (preferences, context, udi, error);
+ }
+ else if (G_LIKELY (disc_has_data))
+ {
+automount_disc: /* check if we should automount removable media */
+ g_object_get (G_OBJECT (preferences), "automount-media", &automount, NULL);
+ if (G_LIKELY (automount))
+ {
+ /* try to mount the CD-ROM in the disc */
+ return tvm_block_device_mount (preferences, context, udi, error);
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ /* we don't need the storage UDI any more */
+ libhal_free_string (storage_udi);
+ }
+
+ /* check if we should automount drives, otherwise, we're done here */
+ g_object_get (G_OBJECT (preferences), "automount-drives", &automount, NULL);
+ if (G_UNLIKELY (!automount))
+ return FALSE;
+
+ /* try to mount the block device */
+ return tvm_block_device_mount (preferences, context, udi, error);
+}
+
+
+
+
Property changes on: thunar-volman/trunk/thunar-volman/tvm-block-device.c
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/thunar-volman/tvm-block-device.h
===================================================================
--- thunar-volman/trunk/thunar-volman/tvm-block-device.h (rev 0)
+++ thunar-volman/trunk/thunar-volman/tvm-block-device.h 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,35 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>.
+ *
+ * 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
+ */
+
+#ifndef __TVM_BLOCK_DEVICE_H__
+#define __TVM_BLOCK_DEVICE_H__
+
+#include <thunar-volman/tvm-device.h>
+
+G_BEGIN_DECLS;
+
+gboolean tvm_block_device_added (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *capability,
+ GError **error) G_GNUC_INTERNAL;
+
+G_END_DECLS;
+
+#endif /* !__TVM_BLOCK_DEVICE_H__ */
Property changes on: thunar-volman/trunk/thunar-volman/tvm-block-device.h
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/thunar-volman/tvm-camera-device.c
===================================================================
--- thunar-volman/trunk/thunar-volman/tvm-camera-device.c (rev 0)
+++ thunar-volman/trunk/thunar-volman/tvm-camera-device.c 2007-01-11 23:11:32 UTC (rev 2340)
@@ -0,0 +1,89 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>.
+ *
+ * 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
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include <thunar-volman/tvm-camera-device.h>
+#include <thunar-volman/tvm-prompt.h>
+#include <thunar-volman/tvm-run.h>
+
+
+
+/**
+ * tvm_block_camera_added:
+ * @preferences : a #TvmPreferences.
+ * @context : a #LibHalContext.
+ * @udi : the HAL device UDI of the newly added camera device.
+ * @capability : the capability, which caused this handler to be run.
+ * @error : return location for errors or %NULL.
+ *
+ * See #TvmDeviceCallback for further information.
+ *
+ * Return value: %TRUE if handled, %FALSE if not handled or an
+ * unrecoverable error occurred.
+ **/
+gboolean
+tvm_camera_device_added (TvmPreferences *preferences,
+ LibHalContext *context,
+ const gchar *udi,
+ const gchar *capability,
+ GError **error)
+{
+ gboolean result = FALSE;
+ gboolean autophoto;
+ gchar *autophoto_command;
+ gchar *access_method;
+
+ g_return_val_if_fail (exo_hal_udi_validate (udi, -1, NULL), FALSE);
+ g_return_val_if_fail (TVM_IS_PREFERENCES (preferences), FALSE);
+ g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ g_return_val_if_fail (capability != NULL, FALSE);
+ g_return_val_if_fail (context != NULL, FALSE);
+
+ /* check if this is a non-mass-storage camera device, handled by gphoto2 */
+ access_method = libhal_device_get_property_string (context, udi, "camera.access_method", NULL);
+ if ((access_method != NULL && strcmp (access_method, "ptp") == 0)
+ || libhal_device_get_property_bool (context, udi, "camera.libgphoto2.support", NULL))
+ {
+ /* check if autophoto support is enabled */
+ g_object_get (G_OBJECT (preferences), "autophoto", &autophoto, "autophoto-command", &autophoto_command, NULL);
+ if (G_LIKELY (autophoto && autophoto_command != NULL && *autophoto_command != '\0'))
+ {
+ /* run the preferred photo management application */
+ result = tvm_run_command (context, udi, autophoto_command, NULL, NULL, error);
+ }
+ g_free (autophoto_command);
+ }
+ libhal_free_string (access_method);
+
+ return result;
+}
+
+
+
+
Property changes on: thunar-volman/trunk/thunar-volman/tvm-camera-device.c
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Rev
Added: thunar-volman/trunk/thuna