Commit graph

2196 commits

Author SHA1 Message Date
Baurzhan Muftakhidinov
6982a6acff Update Kazakh translation 2021-03-03 03:41:46 +00:00
Charles Monzat
e0da3ec370 Update French translation 2021-03-02 10:06:38 +00:00
Aurimas Černius
92106f2cad Updated Lithuanian translation 2021-02-27 13:55:32 +02:00
Philipp Kiemle
850b74f2c9 Update German translation 2021-02-26 12:16:57 +00:00
Fran Dieguez
f9f01f5f06 Update Galician translation 2021-02-24 14:36:49 +00:00
Jiri Grönroos
98afcd20e1 Update Finnish translation 2021-02-22 09:27:45 +00:00
Emin Tufan Çetin
7eb4199445 Update Turkish translation 2021-02-22 09:00:49 +00:00
Марко Костић
0f970b63f5 Update Serbian translation 2021-02-15 15:53:29 +00:00
Balázs Meskó
e70138018c Update Hungarian translation 2021-02-13 23:10:11 +00:00
Rafael Fontenelle
ca0138effd Update Brazilian Portuguese translation 2021-02-08 11:28:56 +00:00
Vasilis Kosmidis
6f0348bf70 Update Greek translation 2021-02-01 15:10:54 +00:00
Fran Dieguez
8f4482eb8a Update Galician translation 2021-01-25 17:52:09 +00:00
Kjartan Maraas
db76213eb4 Update Norwegian Bokmål translation
(cherry picked from commit 7154cc00d8ef995311f294c66f601d95da3a6a04)
2021-01-25 14:32:57 +00:00
Kukuh Syafaat
a0c16b9255 Update Indonesian translation 2021-01-20 11:40:28 +00:00
Daniel Mustieles
08c055c76e Updated Spanish translation 2021-01-14 10:32:25 +01:00
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