Matej Urbančič
04f92b9969
Update Slovenian translation
2021-01-12 18:11:15 +00:00
Marek Černocký
0ff8293bb2
Updated Czech translation
2021-01-11 13:32:59 +01:00
Asier Sarasua Garmendia
3eb538ffc0
Update Basque translation
2021-01-10 12:23:16 +00:00
Asier Sarasua Garmendia
e5485d7370
Add Basque translation
2021-01-10 10:55:36 +00:00
Michael Catanzaro
b4998ff97b
Prepare 40.alpha
2021-01-07 15:16:18 -06:00
Hugo Carvalho
246c312b5d
Update Portuguese translation
2021-01-06 13:46:34 +00:00
Jordi Mas
a5f0759262
Update Catalan translation
2021-01-03 15:15:08 +01:00
Anders Jonsson
a425128929
Update Swedish translation
2021-01-01 00:42:56 +00:00
Fabio Tomat
c57b6e2136
Update Friulian translation
2020-12-30 06:48:59 +00:00
Florentina Mușat
5c9531c90e
Update Romanian translation
2020-12-29 14:31:23 +00:00
Philipp Kiemle
daeb0a3cf6
Update German translation
2020-12-27 15:06:42 +00:00
Michael Catanzaro
72cbf108ea
No longer need to keep event controllers alive
...
The controller is now owned by its widget.
2020-12-27 09:01:00 -06:00
Michael Catanzaro
edabe87c18
Remove POTFILES.skip
...
I think this is safe to do, because we have switched to meson, so we no
longer distribute generated C files. Right? Let's see if anyone
complains....
2020-12-26 14:05:09 -06:00
Michael Catanzaro
5270d4b2cf
Fix indentation
2020-12-26 11:21:20 -06:00
Piotr Drąg
d0083dd78f
Update POTFILES.in
2020-12-26 12:14:27 +01:00
Michael Catanzaro
c292a01440
Create a ChessWindow and move a bunch of logic there
2020-12-25 11:16:50 -06:00
Michael Catanzaro
d5fefd3433
No need to manually unparent dialog children after all?
...
I still don't understand this fully. See:
https://gitlab.gnome.org/GNOME/vala/-/issues/1121#note_992251
2020-12-25 11:10:42 -06:00
Michael Catanzaro
400a556af5
scene: properly disconnect game signals
2020-12-25 10:06:49 -06:00
Michael Catanzaro
573d46538c
Remove engine ready signal
...
All it does is queue an unneeded draw.
2020-12-25 08:22:20 -06:00
Michael Catanzaro
48afadef23
view: make scene property construct-only
...
This improves robustness, because the code is not currently able to
handle the scene being set twice.
2020-12-25 08:22:20 -06:00
Michael Catanzaro
58db072126
Revert "view: properly disconnect scene_changed_cb"
...
This reverts commit 574158dbb9
.
It crashes the first time the property is set, and it is only set once.
I don't want to make this nullable, so let's try something different....
2020-12-25 08:22:20 -06:00
Piotr Drąg
a794d8c931
Update POTFILES.in and POTFILES.skip
2020-12-25 14:40:29 +01:00
Michael Catanzaro
574158dbb9
view: properly disconnect scene_changed_cb
2020-12-24 17:58:07 -06:00
Michael Catanzaro
bef30225f9
Simplify dialog management
...
These dialogs have gotten a little unwieldy....
2020-12-24 17:21:47 -06:00
Michael Catanzaro
d5a6a04720
Revert "Use Gtk namespace."
...
This reverts commit 273c081ce2
.
I don't like this very much. Sometimes clarity is more important than
brevity.
2020-12-24 16:32:32 -06:00
Michael Catanzaro
529ed7207c
Oops, main_box should be nullable
...
Since it is our direct child, and we have to check for null in dispose.
2020-12-24 16:09:43 -06:00
Michael Catanzaro
13f03c5e00
Use composite template to build preferences dialog
2020-12-24 16:07:31 -06:00
Michael Catanzaro
68669ebb3a
This was committed by mistake, oops.
2020-12-24 15:20:03 -06:00
Michael Catanzaro
07a6086446
Use composite template to build promotion type selector
...
This also fixes a bug that I introduced with my GTK 4 porting: the
promotion type selector dialog would always display pieces in the color
of the first player to promote a piece, but it should always change
color to match the current player.
Note that I declared all the GtkChild widgets as unowned due to
vala#1121, which I discovered while working on this.
2020-12-24 15:14:47 -06:00
Michael Catanzaro
b9d34b35c8
Move gresource.xml to data/
2020-12-24 13:12:36 -06:00
Michael Catanzaro
6ce6d59c4a
Split engine support into a separate internal lib
...
The chess engine support currently lives in src/, which otherwise
handles only GUI functions. This is a little misplaced, because engines
are not related to the GUI. So lib/ would be a better location for it.
Except all the engine support is actually higher-level than lib/. So we
can nicely fit it in between src/ and lib/ by creating a second internal
lib, libengine.
This is only a small benefit, but it's nice to keep src/ focused on the
GUI.
2020-12-24 12:10:58 -06:00
Yuri Chornoivan
64ba3d3b67
Update Ukrainian translation
2020-12-24 18:07:23 +00:00
Michael Catanzaro
627ee9c5b3
Use GResource for piece images
...
It's 2020, no need to load SVGs from /usr/share anymore.
2020-12-24 11:56:53 -06:00
Michael Catanzaro
1c38521a22
Remove New Game button from header bar
...
It takes too much space in narrow mode, and it no longer needs to be a
button because we have a window menu again. I think I originally made
this a button when removing the window menu, but nowadays the menu is
back.
2020-12-24 11:00:51 -06:00
Michael Catanzaro
929ad02976
Improve stalemate message
...
Saying "opponent cannot move" is confusing if the human player is
stalemated.
2020-12-24 10:57:23 -06:00
Michael Catanzaro
67a5d88e0d
Port to GTK 4
...
I probably should have removed GtkDialog.run() use first, in a separate
commit, but I didn't and now it would be a lot of effort to split it
out. So here it is: one big GTK 4 megacommit.
2020-12-24 16:41:53 +00:00
Yuri Chornoivan
a705010460
Update Ukrainian translation
2020-12-24 07:26:29 +00:00
Anders Jonsson
3017e0aed8
Update Swedish translation
2020-12-24 01:57:42 +00:00
Jordi Mas
e0e1b9572d
Clarification in documentation
2020-12-22 21:44:36 +01:00
Jordi Mas
b06ce64de2
Fixes to Catalan translation
2020-12-22 21:40:06 +01:00
Jordi Mas i Hernandez
1205e0f357
Update Catalan translation
2020-12-22 15:12:43 +00:00
Anders Jonsson
b8abc36714
Update Swedish translation
2020-12-16 22:02:05 +00:00
Daniel Mustieles
2c2b78e26f
Updated Spanish translation
2020-12-15 10:28:00 +01:00
Florentina Mușat
f47bd36b32
Update Romanian translation
2020-12-12 17:36:51 +00:00
Yuri Chornoivan
f334580473
Update Ukrainian translation
2020-12-07 09:03:32 +00:00
Michael Catanzaro
a413c88e0d
Reduce length of engine oops message
...
We don't have much space in the window title, especially on narrow mode.
2020-12-06 12:55:30 -06:00
Yuri Chornoivan
0c4f379015
Update Ukrainian translation
2020-12-06 18:33:57 +00:00
Michael Catanzaro
53f4aea057
Update NEWS
2020-12-06 12:13:22 -06:00
Michael Catanzaro
1b7143072e
Set game_needs_saving = false after a normal Save
...
This currently only happens after Save As. Oops?
2020-12-06 11:46:53 -06:00
Michael Catanzaro
809df32ff1
Improve en passant description in history combo
...
Let's show the actual positions of the pieces.
Note I couldn't figure out how to use markup here. Enabling it in the
GtkCellRenderer didn't seem to work.
2020-12-06 11:33:44 -06:00