Commit Graph

34 Commits

Author SHA1 Message Date
Jacob Boerema 18408ce966 app, libgimp, libgimpwidgets, plug-ins, etc: rename behaviour to behavior
We use US English which uses behavior. So we replace all occurrences of
behaviour.

Most notable is File Open behavior in preferences. Besides that several
mentions in function documentation and a few in comments.
2023-07-21 15:35:23 -04:00
Jehan 99202c43a4 tools: win32_command() return value is never freed.
On Windows, the macros COPY, REMOVE and REMOVE_DIR are allocated
strings, unlike on other platforms, so the way we use these returned
values, they are never freed.
Instead make win32_command() keep a copy of the allocated string as
static to the function and free it there at each next call (the returned
value being type-casted to (const gchar *)). It will still leak the last
string, but anyway gimptool is short-lived.

Also it should silence static analyzers.
2021-10-21 12:31:55 +02:00
Jehan 8fa7b5bc74 tools: clean up patch from merge request !36.
Commit 283ec1da0f previously pushed had some coding style bugs, which
unfortunately couldn't be fixed before pushing because the platform
doesn't allow it and the original contributor is not available lately.
Let's fix these.
2019-09-16 09:53:24 +02:00
Sergio Jiménez Herena 283ec1da0f issue #2221: gimptool should install plug-ins into subfolders 2019-09-16 07:26:56 +00:00
Salamandar fc657184a0 Undo some (unnecessary) changes. 2019-01-25 19:08:28 +00:00
Félix Piédallu fc8303dd0a (source modifs) Fix: Rename macros as it conflicts with Mingw headers.
* DATADIR -> GIMPDATADIR
* SYSCONFDIR -> GIMPSYSCONFDIR
* DATADIR -> SYSDATADIR (tools/)
2019-01-25 19:08:28 +00:00
Michael Natterer 5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
Jehan 276d9b60b3 configure, tools: actually use GIMP_PKGCONFIG_VERSION and...
... GIMP_TOOL_VERSION rather than hardcoding versions.
We may still have issues with "gtk+-3.0", but let's let this one slip
for now.
2018-06-15 17:22:38 +02:00
Jehan 10480ef7c6 tools: gimptool should check gimp*-3.0 pkg-config file.
And "gtk+-3.0" as well.
Thanks to Benoit Touchette for noting.
2018-06-15 16:47:05 +02:00
Jehan f3de5cd3fe tools: make gimptool memory-managed.
The code was basically leaking memory everywhere, and apparently on
purpose (according to a top comment). Even on short-lived process, not
properly managing memory is not a good habit, especially if we plan to
maintain a program for the long run.
So here are some fixes. I'm sure I must have missed some places (code
was a mess), and hopefully I broke nothing. But that's good for now. At
least it is somewhat sane code now.
2018-05-27 17:53:26 +02:00
Jehan 02fc818bf6 tools: do not segfault gimptool with source without extension.
Since commit 58fa382001, gimptool would accept source files with
non-standard extensions when using known C or C++ compilers. This would
include source with no extensions at all.
When this happens, do not try to set a pointer to a non-existing dot
separator to '\0'. That obviously segfaults.
2018-05-27 16:11:38 +02:00
Jehan 355676e7ae tools: clean tabs out of gimptool code. 2018-05-27 15:17:42 +02:00
張俊芝 58fa382001 Issue #1506: Adds support for source file names with special...
... characters and non-standard suffixes in gimptool
2018-05-27 15:05:52 +02:00
Michael Natterer c73104e3ea Bug 766327 - gimptool-2.0 not quoting filenames/directories
Quote installation paths with g_shell_quote().
2016-05-22 22:38:12 +02:00
Jehan 56c2e19733 Removes various easy compilation warnings. 2014-09-28 18:18:00 +02:00
Michael Natterer 697572ccc0 app,libgimp*: fix includes to follow our include policy
- don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
- instead, include it in many .c files instead of <glib-object.h>,
  finally acknowledging the fact that app/ depends on gdk-pixbuf almost
  globally
- fix up includes as if libgimpbase depended in GIO, which it soon will
2013-10-15 01:58:39 +02:00
Michael Natterer ac808b8b6b tools: make sure clang is not considered to be visual studio
just because it starts with "cl". Spotted by Joerg Sonnenberger.
2013-09-10 12:06:55 +02:00
Jehan 97d14ebda3 Bug 672100: gimptool returns wrong system plugin dir if libdir has been customized.
On UNIX platforms, use the actual libdir value, which has been set at compile time.
2013-07-05 23:46:54 +09:00
Michael Natterer fd34fee7f5 tools: increase buffer size in gimptool from 1000 to 4096 2013-03-27 22:56:01 +01:00
Jehan 0f75ea4127 Bug 694201 - gimptool: update to follow new user directory scheme. 2013-02-20 04:01:02 +09:00
Mukund Sivaraman 2ea49c594c gimptool: Use GIMP_PLUGIN_VERSION instead of GIMP_API_VERSION for scripts dir 2011-10-04 18:29:28 +05:30
Mukund Sivaraman eb11a466ac gimptool: Replace path generation code with glib functions 2011-10-04 18:28:52 +05:30
Mukund Sivaraman 4e056e79d2 gimptool: Fix system script dir path 2011-10-04 18:11:29 +05:30
Michael Natterer 8364672b11 tools: #include "libgimpbase/gimpbase.h" and not just gimpversion.h 2011-04-28 12:47:38 +02:00
Michael Natterer 3014d8d81d tools: fix typo in help text: libgumpui -> libgimpui 2010-01-01 18:48:20 +01:00
Tor Lillqvist cb4c374edd Add missing NULL to g_strconcat() call 2009-10-07 22:33:34 +03:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann d54686d200 declared function usage() as G_GNUC_NORETURN.
2008-12-23  Sven Neumann  <sven@gimp.org>

	* tools/gimptool.c: declared function usage() as 
G_GNUC_NORETURN.


svn path=/trunk/; revision=27824
2008-12-23 11:36:09 +00:00
Sven Neumann 78defb4726 create the target directory and intermediate parent directories as needed.
2008-10-01  Sven Neumann  <sven@gimp.org>

	* tools/gimptool.c: create the target directory and intermediate
	parent directories as needed. Restores the behavior of the
	gimptool shell script.


svn path=/trunk/; revision=27101
2008-10-01 19:13:16 +00:00
Tor Lillqvist c68265e09c Make it compile without warnings also with gcc -Wwrite-strings. Use
2008-09-04  Tor Lillqvist  <tml@novell.com>

	* tools/gimptool.c: Make it compile without warnings also with gcc
	-Wwrite-strings. Use cmd.exe instead of command.com to execute the
	COPY and DEL commands on Windows.


svn path=/trunk/; revision=26865
2008-09-04 17:46:51 +00:00
Michael Natterer 6570d5d19b add tons of const.
2008-09-04  Michael Natterer  <mitch@gimp.org>

	* tools/gimptool.c: add tons of const.


svn path=/trunk/; revision=26857
2008-09-04 11:58:48 +00:00
Sven Neumann bbef0f35e8 minor cleanup, hopefully not breaking anything.
2007-11-17  Sven Neumann  <sven@gimp.org>

	* tools/gimptool.c: minor cleanup, hopefully not breaking 
anything.


svn path=/trunk/; revision=24181
2007-11-17 13:30:23 +00:00
Tor Lillqvist 7cef521c8b Ignore --msvc-syntax unless on Windows. Put some Windows-only stuff inside
2007-11-17  Tor Lillqvist  <tml@novell.com>

	* tools/gimptool.c: Ignore --msvc-syntax unless on Windows. Put
	some Windows-only stuff inside ifdef.


svn path=/trunk/; revision=24179
2007-11-16 23:21:40 +00:00
Tor Lillqvist b96853bc5e Use the gimptool program on Unix, too, instead of the gimptool script.
2007-11-16  Tor Lillqvist  <tml@novell.com>

	Use the gimptool program on Unix, too, instead of the gimptool
	script.

	* configure.in
	* Makefile.am: Drop gimptool script and gimptool-win32.c(.in)

	* tools/gimptool.c
	* tools/Makefile.am: Move gimptool-win32.c.in here and call it
	just gimptool.c. Build and install on all platforms.

	* tools/gimptool.c: Change accordingly.

	* doc/gimptool.1.in: Document the --msvc-syntax option.


svn path=/trunk/; revision=24178
2007-11-16 21:37:20 +00:00