Commit Graph

19 Commits

Author SHA1 Message Date
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
5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
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
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
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
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
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
fbf0d33323 Mark user-visible messages for translation 2017-09-28 03:59:44 +03:00
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
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
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
84b099342c Bug 784700 - Bug fix for crash with metadata editor when some fields are empty 2017-07-08 19:55:43 +02:00
a5fe6b8372 Clean up metadata menu stuff: capitalization, separator, indentation 2017-07-08 09:39:31 +02:00
6b80104aeb plug-ins: factor out set_tag_string() utility in metadata-exitor.c 2017-07-08 09:29:04 +02:00
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
486e0f3d88 plug-ins: lots and lots of cleanup in metadata/ 2017-07-07 23:54:25 +02:00
a10b07e398 plug-ins: fix some warnings in metadata/ 2017-07-07 19:14:47 +02:00
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