Commit Graph

124 Commits

Author SHA1 Message Date
Michael Natterer 738c035839 plug-ins: fix two harmless compiler warnings 2019-07-02 15:22:52 +02:00
Jehan f9c170dfbd Issue #2786: a few string issues.
Several en_GB to en_US.

Also "Show a preview of the transform_grided image". "grided" should be
"gridded", but I also have a problem with the underscore. Should it be
"transform-gridded"? Even so, does it really make sense?
I chose to just read "Show a preview of the transformed image", which I
think is simpler and the most understandable (we don't need to leak the
implementation with a transform grid into the human read text IMO). If
anyone think that was not the right choice, feel free to propose
otherwise.
Thanks to Bruce Cowan for noticing these.
2019-01-12 17:22:03 +01:00
ONO Yoshio 3c92b5e00b plug-ins: fix a datasourcetype does not shown in metadata-editor.
Tag of DigitalSourceType has 5 entries, but the combobox shown
only 4 items.
2018-10-02 08:43:56 +09: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 870ca6334d plug-ins: install plug-ins in subfolder.
I am going to forbid plug-ins from being installed directly in the root
of the plug-ins/ directory. They will have to be installed in a
subdirectory named the same as the entry point binary.
This may seem useless for our core plug-ins which are nearly all
self-contained in single binaries, but this is actually a necessary
restriction to eliminate totally the DLL hell issue on Windows. Moving
core plug-ins in subfolders is only a necessary consequence for it.
2018-05-20 21:06:35 +02:00
Michael Natterer bdbec7941c Use the new macros from the last commit in all files
...and gone are the annoying warnings.
2018-05-20 21:06:34 +02:00
luz.paz 4a77ff2d3d Bug 795557 - Misc. typo fixes in source, comments and doxygen (pt3)
Found via `codespell` and grep.
2018-04-25 23:49:06 +02:00
luz.paz 147c09f19e Bug 795161 - Misc. typo fixes in source comments and doxygen
Found via `codespell`
Follow-up to  commit 7fdb963e01
2018-04-18 21:06:57 +02:00
Jehan 4fdf301dea plug-ins: properly check widget class holding tag data.
Some tag data is hold in GtkEntry, other in GtkTextView, which are not
parent to each other. Previous checks were wrong and resulted in
"invalid cast from 'GtkEntry' to 'GtkTextView'" WARNINGs (followed by
many CRITICALs because of this first error).

Also properly free the data returned by gtk_text_buffer_get_text() which
is allocated (unlike strings returned by gtk_entry_get_text() which must
not be freed).
2018-03-16 20:20:24 +01:00
Jehan bc5032012e plug-ins: fix some coding-style issues in metadata-editor.
Mostly missing spaces here and there fixed with search and replace
followed by manual verification and retouching.
2018-01-10 03:32:33 +01:00
Jehan 62ee5d3c7e plug-ins: metadata-editor crashes when strtok() initialized with NULL.
When running strtok() the first time, it needs to be non-NULL so we must
check for the string. This is even more important because NULL actually
has a special meaning in strtok() to indicate further search on the same
string, in a stateful way. So searching with NULL at first call was
crashing the metadata editor plug-in in my case.
I could also imagine it could have reused strings from previous
searches, mixing metadata contents in some edge cases. Anyway that would
be bad as well!

While I was there, I also checked for non-null search string before
strstr() calls, when there was not already such a check before. This
function also requires non-NULL haystack argument.
It feels like this code doesn't do much validity checks, and it's likely
there are more similar issues. I haven't reviewed the whole code, only
this part which was crashing here.
2018-01-10 03:25:24 +01:00
Alexandre Prokoudine fbf0d33323 Mark user-visible messages for translation 2017-09-28 03:59:44 +03:00
Jehan ad4564e527 plug-ins: do not use stock IDs.
They are to be deprecated in future GTK+ and we don't use them anymore
anywhere else in our code.
See also commit 7da7bab0.
2017-08-23 21:47:14 +02:00
Ell 497fb9b0c3 plug-ins: in metedata-editor.c, don't use initial declarations
... in for loops
2017-08-21 11:41:33 -04:00
Ben Touchette 97c9a99339 Regression fix for metadata viewer allows to view all tags.
Partially revert commit 8c2ca36ac7, so
that unlabeled tags are not hidden.
2017-08-05 09:14:59 -04:00
draekko 619a05a688 Bug 785265 - Patch for localization for combotext in metadata editor
Mark string constants in arrays with N_() and call gettext() on them.
2017-07-24 12:28:02 +02:00
Michael Natterer d315cc1034 Bug 761170 - Warnings building with clang
Fix clang warnings along with some other minor stuff, no logic changes.
2017-07-14 12:26:10 +02:00
Michael Natterer 8de3e69e88 plug-ins: fix a tab in metadata/Makefile.am 2017-07-09 16:30:36 +02:00
draekko 84b099342c Bug 784700 - Bug fix for crash with metadata editor when some fields are empty 2017-07-08 19:55:43 +02:00
Ell 8c2ca36ac7 Bug 769112 - The metadata windows takes a lot of CPU.
The new metadata viewer is based on a version of the old metadata
plugin that still contained this bug, and a few other bugs that've
been fixed since then.  Reapply those fixes to the new plugin.

This is essentially an adaptation of commits
f8e291bf31,
ce9e7feabd,
38c79600f1,
and 801bd8fb3f.
2017-07-08 08:55:02 -04:00
Michael Natterer 5ff921853a plug-ins: add all metadata sources to SOURCES 2017-07-08 09:47:35 +02:00
Michael Natterer a5fe6b8372 Clean up metadata menu stuff: capitalization, separator, indentation 2017-07-08 09:39:31 +02:00
Michael Natterer 6b80104aeb plug-ins: factor out set_tag_string() utility in metadata-exitor.c 2017-07-08 09:29:04 +02:00
Alexandre Prokoudine c68239e937 Make new Metadata submenu and new dialogs' captions translatable.
Adjust the tooltip for the Edit Metadata menu item.
2017-07-08 03:16:41 +03:00
Michael Natterer 486e0f3d88 plug-ins: lots and lots of cleanup in metadata/ 2017-07-07 23:54:25 +02:00
Michael Natterer a10b07e398 plug-ins: fix some warnings in metadata/ 2017-07-07 19:14:47 +02:00
Ben Touchette dc9856cfe1 Bug 769820 - Cannot enter Iptc information when no metadata is available...
...and fails to write it to file when it is

Completely redo metadata editor and viewer code, adds support for
Xmp.xmpMM.History and more.
2017-07-07 18:11:39 +02:00
Michael Natterer ce2822d58f plug-ins: remove the old metadata plug-in 2013-10-27 01:15:37 +02:00
Michael Natterer ec786816bb */Makefile.am: merge INCLUDES into AM_CPPFLAGS
automake-1.13 finally warns about this anachronism.
2013-06-05 20:48:37 +02:00
Michael Natterer 66ff5dd70b Remove all calls to g_type_init(), it's deprecated
The type system is initialized automatically now.
2013-05-25 22:44:20 +02:00
Ville Skyttä 6b0d1038cc Bug 692641 - Various spelling fixes 2013-01-27 18:59:02 +01:00
Michael Natterer 95d7edf72b Bug 675069 - "Value" in po-plug-ins/ja.po is conflicted
Add a translation context to "Value" in the metadata plug-in.
2013-01-19 22:48:31 +01:00
Michael Natterer 2eae4c42e8 metadata: indentation in interface.c 2013-01-19 22:46:14 +01:00
Michael Natterer 908f727f0a Chain up unconditionally in GObject::constructed()
It's supported since GLib 2.28.
2012-11-12 21:51:22 +01:00
Kevin Cozens a2e037fb00 Corrected spelling errors spotted by Ari Pollak (Mostly fixes bug #683694)
Still need to address the "allows to" grammatical error.
2012-09-10 12:22:12 -04:00
Michael Natterer aecef113ab Bug 655684 - After saving an image with geotags you cannot...
Apply patch from Hartmut Kuhse which fixes encoding of
XMP_TYPE_GPS_COORDINATE.
2012-09-09 00:54:49 +02:00
Michael Natterer c207e395fd Bug 680432 - metadata.exe keeps dying
Based on a patch by Hartmut Kuhse, run all strings through
gimp_any_to_utf8() which always returns something that's UTF-8, even
if it's only "(invalid UTF-8 String)". Better than crashing.
2012-07-31 15:14:20 +02:00
Mikael Magnusson a4cd8637af metadata: fix length passed to base64 decoder 2012-06-13 02:12:27 +02:00
Øyvind Kolås d1ced11415 plug-ins: add GEGL_CFLAGS to many Makefile.am's 2012-05-02 17:46:08 +02:00
Mukund Sivaraman 018cdc7a99 metadata: Change sign of data type 2011-10-27 14:46:46 +05:30
Mukund Sivaraman 7ebcf3f755 metadata: Use glib base64 decoder instead of local copy 2011-10-06 20:22:27 +05:30
Mukund Sivaraman b3337ee865 metadata: Delete dead assignment and move variable to local block 2011-10-06 19:24:56 +05:30
Mukund Sivaraman ea12d8da4d metadata: Remove ns_prefix decl (it is conditionally used) 2011-10-03 12:55:10 +05:30
Michael Natterer 8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Mukund Sivaraman ee6a029040 Add -fno-common to CFLAGS
Also fix the errors that were discovered by it. Multiple
definitions of global variables are no longer silently combined by
the linker, and will be reported as errors.

If you see GIMP crash strangely (i.e, apart from the usual crashes),
please go see a head doctor.
2011-03-21 22:51:30 +05:30
Michael Natterer 87646e9ace libgimp: deprecate and rename the image parasite functions
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
Michael Natterer 0a1a2915d0 plug-ins: implement GObject::constructed() instead of ::constructor() 2011-01-14 09:38:46 +01:00
Michael Schumacher e77dd90fc0 Bug 574018 - Add a manifest to executables
Created a resource file for plug-ins and a rule to link it to them.
The application icon file is smaller than the default one, there's no
point in doubling the size of a plug-in executable just for an icon.

If no problems turn up, this will close the bug.
2010-09-01 08:24:45 +02:00
Roman Joost a4ccfcee72 Default XMP_TYPE_LANG_ALT to "x-default" according to spec.
To prevent a crash of the meta-data plug-in during export, the encoding
process now falls back to x-default for XMP_TYPE_LANG_ALT properties.
2010-05-24 21:44:51 +10:00
Roman Joost 45a8d2c63c Make use of the XMPModel widget interface.
The GtkEntry is re-factored to use the XMPModel based interface.
2010-05-14 18:11:53 +10:00