Commit graph

2985 commits

Author SHA1 Message Date
Karl Ove Hufthammer
0d0b3360f1 Update Norwegian Nynorsk translation 2024-06-01 12:40:04 +02:00
Bill Kendrick
3cf3af76aa Ran indent.sh 2024-06-01 02:12:00 -07:00
Bill Kendrick
05181f73af Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2024-06-01 01:39:58 -07:00
Bill Kendrick
01afb5846c api->retract_undo() added to Magic API; used by Filled Polygon
New API function which rolls back the Undo buffer (which is snapshotted
upon a mousedown event ahead of calling the Magic tool's `_click()`
function.)  Dangerous; use sparingly!

Filled Polygon uses this to prevent partially-created (aka unfinished
aka incomplete) polygons -- the preview lines and control points -- from
being recorded and wasting space in the Undo history, or reappearing
upon Redo.

TODO - Other tools (e.g., Clone) would certainly benefit from this.
TODO - Needs more testing to help identify any bugs/issues introduced
by this!
TODO - Magic API docs need updating.

This is probably a sufficient solution that will make
https://sourceforge.net/p/tuxpaint/feature-requests/246/,
'"Overlay" surface in Magic API', unnecessary.
2024-06-01 01:35:50 -07:00
Pere Pujal i Carabantes
dd8952209b Updating Catalan. 2024-06-01 09:26:07 +02:00
dolphin6k
2e9f4b7f42 Updated Japanese again 2024-06-01 14:24:59 +09:00
dolphin6k
874a7ba934 Updated Japanese translation 2024-06-01 14:15:07 +09:00
Jacques Chion
4d1201fdaf modifié : fr.po 2024-05-31 17:11:53 +02:00
Jacques Chion
38ff07090e modifié : fr.po 2024-05-31 10:32:21 +02:00
Bill Kendrick
4c17afa4a9 POT/PO updates after Filled Polygon description update
Last minute change, sorry! :-D
2024-05-30 23:51:52 -07:00
Bill Kendrick
ff829d84e2 Apparently forgot to regen POT & POs recently
Ack sorry
2024-05-30 23:44:50 -07:00
Bill Kendrick
5a89cef4c5 Portuguese updates
h/t Hugo
2024-05-30 23:44:05 -07:00
dolphin6k
ce40f278f6 Updated UI translation, created brush description for Japanese. 2024-05-31 15:24:13 +09:00
Jacques Chion
c448a18bc9 modifié : fr.po 2024-05-30 08:39:18 +02:00
Jacques Chion
39768ba09e Validateur : Jacques Chion <jacques.chion@orange.fr>
modifié :         fr.po
2024-05-30 06:28:37 +02:00
Jacques Chion
f7988fd834 begin traslation 2024-05-29 19:26:51 +02:00
Bill Kendrick
4256d81278 Mend issue of rotating brushes not drawing on single click
Rotating brushes would not draw anything if you simply
click and release with no motion in between (unless brush
spacing was set to the minimum).  It will now draw the
default "up" direction of the brush in that situation.
(h/t Pere for reporting)

Implemented by using a boolean that tracks whether there has
been any motion since a click; if not, the `brush_counter` is
forced to reset (to 999), to insist on `brush_draw()` blitting
something.  (It used to always ignore if a rotational brush,
to avoid accidentally drawing in the wrong direction on release.)
2024-05-25 11:50:17 -07:00
Pere Pujal i Carabantes
c8095c2d44 Updating Catalan. 2024-05-23 02:07:11 +02:00
Bill Kendrick
97c547e9c7 Demoting Specular magic to a WIP 2024-05-19 23:30:12 -07:00
Bill Kendrick
4a79060f26 Ran indent 2024-05-14 23:37:12 -07:00
Bill Kendrick
79d5cb5cea Don't call rsvg_handle_close(); it's deprecated
Borrowing from 825fa1c,

- rsvg_handle_close() is deprecated from librsvg 2.46, together with
  rsvg_handle_write()
- rsvg_handle_close() is only needed to be called after
  rsvg_handle_write()
- rsvg_handle_close() isn't needed to be called after
  rsvg_handle_new_from_file() [1]

1: https://gnome.pages.gitlab.gnome.org/librsvg/Rsvg-2.0/method.Handle.close.html

Shrug!

Closes https://sourceforge.net/p/tuxpaint/bugs/278/
2024-05-14 23:28:50 -07:00
Bill Kendrick
73f66294f4 Warn when 2 magic tools in a group w/ identical order 2024-05-14 23:00:17 -07:00
Bill Kendrick
5bdbc2766b Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
Bill Kendrick
3983ce69b1 Regen POT & POs after 3D Glasses updates 2024-04-29 01:01:17 -07:00
Bill Kendrick
d95e7084df 3D Glasses - Now offers various anaglyph color combos
The size option is being misused to allow different
color combinations: Red/Cyan, Red/Blue, Red/Green, and Magenta/Cyan
(there are others we could add, if only someone could figure out the
math :-D)

Note - If Tux Paint is running in "Novice" complexity mode, no choices
will be available; it will use Red/Cyan, as before.

h/t O'Hare The Rabbit for the idea
2024-04-28 18:03:28 -07:00
Bill Kendrick
0aa370ba44 Attempting to prevent invalid memory access...
...during linear gradient fill.

h/t Peter Link <peterlink3 on SourceForge>
https://sourceforge.net/p/tuxpaint/bugs/287/
2024-04-18 00:25:02 -07:00
Bill Kendrick
ae899da68d Filled polygon: Icon; tweaked on-screen instructions 2024-04-12 09:24:19 -07:00
Bill Kendrick
850b733f4b Activate [un]groupmagictools option 2024-04-10 23:03:17 -07:00
Bill Kendrick
f822947554 Regen POT/POs after updating appdata 2024-04-08 23:26:14 -07:00
Bill Kendrick
d285a169d5 Appdata: Mention filled polygon tool & magic ungrouping 2024-04-08 23:25:25 -07:00
Bill Kendrick
554c6145fc WIP Ability to ungroup Magic tools
Put them in a big long list, without left/right pagination buttons,
like pre-0.9.27 Tux Paint.

Code is in place, but no way of activating it.

For https://sourceforge.net/p/tuxpaint/feature-requests/229/
2024-04-08 22:15:23 -07:00
Bill Kendrick
d7cf2df332 Syncing docs & updating appdata re: Brush descriptions 2024-03-25 23:24:38 -07:00
Bill Kendrick
4fc34ebd83 Load & display brush descriptions. 2024-03-25 21:21:14 -07:00
Bill Kendrick
5adf5dfbf8 Doc'ing new transparent Erasers 2024-03-15 21:11:25 -07:00
Bill Kendrick
f85e2c3519 Transparent erasers
Added round erasers that only expose 25% of the background each
time you click and apply the eraser.

Reworked how erasers are handled in the code to make it easier
to add this.

Reworked how eraser icons are drawn in the selector on the right.
(Squares and non-fuzzy, non-transparent circles are solid;
fuzzy circles are solid in the center with a dithered edge;
transparent circles are entirely dithered.)

TODO
 * Document the new eraser type
 * Remove a visual artfact (XOR outline) when using Ctrl-Z to Undo
 * Eraser icons turn from black to white when temporarily switching
   to certain other tools (e.g., after prompts like Quit or Print,
   or after using Save)
2024-03-15 18:53:13 -07:00
Bill Kendrick
40316cfe45 Bump version to 0.9.33; sync some doc changes! 2024-02-29 22:00:07 -08:00
Bill Kendrick
35c12c60fd Dither: Add a "keep color" variation 2024-02-29 21:41:16 -08:00
Bill Kendrick
9a36dc2cda Update POT/PO to add strings from Specular & Dither 2024-02-29 01:24:13 -08:00
Vankata453
686a60e7a3 Update Bulgarian translation
Updates the Bulgarian translation to 100%.

Also fixes an inconsistency in the translation of the word "click", replacing all instances with the variant, derived from English, since it makes it easier to understand the mouse is being talked about.
2024-02-28 21:41:37 +02:00
Bill Kendrick
54df87db22 Update POT/POs after appdate update
Only seemed to affect code reference comments.
2024-02-18 10:39:42 -08:00
Bill Kendrick
c5591c1b2a Portuguese translation update
h/t Hugo
2024-02-18 10:39:02 -08:00
Will Thompson
eac10ed522 Remove trailing period from translations of "Tux Paint"
appstreamcli validate gets very upset if you have a trailing period in
the name of the app:

    E: org.tuxpaint.Tuxpaint:116: name-has-dot-suffix P\u025bntiri Tukisi .
    E: org.tuxpaint.Tuxpaint:119: name-has-dot-suffix Tuks il\u0259 \u015f\u0259kil \u00e7\u0259k.
2024-02-17 23:00:59 +00:00
Will Thompson
91a0b75ae6 appdata: Add new <developer> tag
Appstream 1.0 introduces a new <developer> tag which supersedes
<developer_name>. Add it, keeping <developer_name> for
backwards-compatibility.

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-developer
2024-02-17 20:26:19 +00:00
Will Thompson
259442d65f appdata: Indicate that Tuxpaint is fully offline
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-internet
2024-02-17 20:14:09 +00:00
Will Thompson
dd6f7b3336 appdata: Replace named display_length with constant values
The named values for <display_length> were removed in Appstream 1.0,
released recently.  In their place, use integer values.

For the <requires> block, attempt to encode the same reasonableness
restrictions as are enforced on the windowsize setting. The code
requires the height to be at least 480px and the width at least 500px,
but there is no way to specify width versus height, just shortest versus
longest edge, so I just require that the shortest edge is at least
500px.

For the <recommends> block, 768px is the suggested number in the
appstream specification for laptops and tablets.

005c5f104d
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length
2024-02-17 20:09:13 +00:00
Mark Kim
c1b2811bbf Make screen refresh more snappy on macOS 2024-02-03 21:45:14 -05:00
Bill Kendrick
81dc7593da Regen POT & PO
Only commentary re: source code lines appears to have changed
since 2024-01-16.
2024-01-29 20:27:08 -08:00
Bill Kendrick
3da5e9c9e1 Sync redone MAGIC-API docs (new glossary)
...aslo bump dates here & there.
2024-01-29 00:15:54 -08:00
dolphin6k
298c7566a3 Updated Japanese 2024-01-27 10:46:51 +09:00
Bill Kendrick
095d77ef62 Albanian Tux Paint l10n updates
h/t Besnik Bleta
2024-01-26 10:32:43 -08:00