Commit graph

42 commits

Author SHA1 Message Date
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
13f03c5e00 Use composite template to build preferences dialog 2020-12-24 16:07:31 -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
Arnaud Bonatti
cf1feeeace Clean a bit UI files. 2020-06-26 18:31:05 +00:00
Arnaud Bonatti
a06e566950 Replace GtkTable. 2020-06-26 18:31:05 +00:00
Johan Manuel
ba128dd084 Add option to alternate between black and white
Add the option 'Alternate' in 'Play as' in the preferences menu.
When selected, the player will play as the opposite color he played the
last time when starting a new game.

https://bugzilla.gnome.org/show_bug.cgi?id=747411
2015-04-15 10:58:27 +05:30
Michael Catanzaro
16095b0555 Fix several untranslatable strings on the preferences dialog
https://bugzilla.gnome.org/show_bug.cgi?id=745130
2015-02-25 10:19:09 +05:30
Sahil Sareen
d00db10c10 Add support for Fischer and Bronstein clocks
* Preferences dialog: Added option for clock type
* Clock Library: Support for these clocks
* Gnome-Chess: Handle fischer/bronstein clocks

https://bugzilla.gnome.org/show_bug.cgi?id=473395
2015-02-16 09:45:50 +05:30
Sahil Sareen
b8e6d10b2b Code alignment fix
Minor code alignment fix in preferences.ui
2015-01-31 20:41:21 +05:30
Sahil Sareen
72054b7273 Set a limit on the max amount of time per game
Setting a limit on hours to 10 and minutes to 600 in
custom game duration in preferences.

https://bugzilla.gnome.org/show_bug.cgi?id=726953
2014-12-16 18:08:06 -06:00
Michael Catanzaro
83a1d1bc0c Improve time control handling
Set the game's time limit, not a duration, so that selecting one hour
gives each player a time limit of one hour (rather than 30 minutes).

This also fixes our interpretation of the TimeControl field.
2014-07-06 14:42:15 -05:00
Michael Catanzaro
bed6ad0e64 preferences: fix size of piece style combo
Easy to see what's wrong now that things are in the right position
2014-07-06 13:44:28 -05:00
Michael Catanzaro
f09cb157f4 Move widgets around in preferences.ui
Don't change the dialog at all, just move these to more sane positions
within the file.
2014-07-06 13:42:46 -05:00
Michael Catanzaro
c4d9ba7c53 Remove 3D mode
https://mail.gnome.org/archives/games-list/2014-June/msg00006.html

https://bugzilla.gnome.org/show_bug.cgi?id=720284
2014-07-06 11:48:46 -05:00
Michael Catanzaro
cb0600a8d3 preferences: do not use deprecated GtkAlignment 2014-06-25 01:41:35 -05:00
Michael Catanzaro
3cc715d197 Fix preferences dialog layout with recent GTK+ 2014-06-25 01:29:21 -05:00
Michael Catanzaro
021f3ec246 Fix another translator comment 2014-04-09 19:30:31 -05:00
Michael Catanzaro
00f7df8abc Preferences: add missing mnemonics 2014-04-09 19:29:43 -05:00
Michael Catanzaro
a9fca365a9 Fix translator comment in preferences dialog 2014-04-09 08:40:31 -05:00
Michael Catanzaro
d567309442 Require GTK+ 3.12
We forgot to bump the GTK+ requirement when using GtkDialog's new
use_header_bar property.

https://bugzilla.gnome.org/show_bug.cgi?id=727720
2014-04-06 17:40:41 -05:00
Yosef Or Boczko
621308e1b8 Use headerbar in the preferences dialog
https://bugzilla.gnome.org/show_bug.cgi?id=727056
2014-03-26 08:43:01 -05:00
Michael Catanzaro
c6b3fa5610 Remove stock items from the preferences dialog
Also, switch to a symbolic icon for the light bulb.
2014-01-11 16:01:27 -06:00
Volker Sobek
7f257c725d UI: Remove deprecated GtkVBox, GtkHBox
Use GtkBox instead.

https://bugzilla.gnome.org/show_bug.cgi?id=720497
2013-12-15 12:17:02 -06:00
Michael Catanzaro
a55926a7d1 Reorder items on the preferences dialog a bit
It looks a bit odd now that a couple of things have been removed
2013-08-18 22:10:51 -05:00
Michael Catanzaro
bc62e3dd41 Remove show history option
There's really no benefit to being able to hide the history bar.  You
currently gain a bit of space, but that's because this option breaks
timed games by hiding the timers.  This option might make sense after a
bit of a UI redesign, but I don't see that happening anytime soon.

https://bugzilla.gnome.org/show_bug.cgi?id=705046
2013-08-18 14:25:50 -05:00
Michael Catanzaro
dcbbd976d4 Review and update the suggested game durations
Blitz Chess is typically five minutes per player (10 minutes total). If
you want to go faster than that, you can always set a custom duration.

Most players will probably be most comfortable with a longer limit such
as 90 minutes/player.
2013-07-27 21:18:23 -05:00
Michael Catanzaro
33007005e0 Remove face-to-face board orientation
This isn't a board orientation, it's a piece orientation.  It actually
silently forces the "White" board orientation.

It could be implemented separately as a checkbox, but I don't think we
want to keep this "feature."

Also, this option is broken in 3D mode.  (Though as a checkbox, it could
be insensitive in 3D mode.)
2013-07-27 11:46:40 -05:00
Michael Catanzaro
d81bebf5ca Preferences: move "opposing player" to the top
With "opposing player" above both "play all" and "difficulty," we can
set these options insensitive when two humans are playing.

https://bugzilla.gnome.org/show_bug.cgi?id=703839
2013-07-13 15:41:34 -05:00
Michael Catanzaro
688ebd3c19 Field labels should use sentence capitalization
Fix minor HIG violation
2013-07-08 23:07:28 -05:00
Michael Catanzaro
87425a5a02 Remove "Show Toolbar" option
Toolbar is now mandatory. You won't be able to do much without it.
2013-07-06 14:54:38 -05:00
Michael Catanzaro
91f1e3c196 preferences.ui: target gtk+ 3 2013-07-04 13:57:31 -05:00
Chandni Verma
bd08b61e48 [chess] No need of promotion-type combo box and related settings 2012-12-20 08:13:08 +05:30
Robert Ancell
82bffad69a chess: Fix play as white/black preferences option 2011-01-31 21:47:36 +11:00
Robert Ancell
b2f90f5046 chess: Add context to translatable strings 2011-01-19 18:07:47 +11:00
Robert Ancell
f0f1d4f559 chess: Set correct plural form in time units combobox 2011-01-19 17:18:05 +11:00
Robert Ancell
38c4bb4ca6 chess: Add translator comments 2011-01-19 08:56:15 +11:00
Robert Ancell
5d961fd85c Port of glchess from Python to Vala. 3D is disabled for now as it doesn't work in GTK3 2010-12-08 18:18:30 +11:00
Greg McNew
2ba4e0216b chess: Add an option for showing captured pieces (Bug #510732) 2010-11-10 17:01:29 +11:00
Thomas Hindoe Paaboel Andersen
e59320330d Chess: Standardize on using "Appearance" in all games
GNOME bug #574114
2010-04-09 00:43:59 +02:00
Robert Ancell
8f2a509d6d Make prefernces dialog HIG compliant 2010-04-02 18:25:27 +11:00
Robert Ancell
e6e8ac5c4b Use SVG themes for 2D chess pieces (patch by Alexey Kryukov) 2010-03-15 09:49:26 +11:00
Robert Ancell
42e5190398 Replace libglade with GtkBuilder (Robert Ancell, Bug #556808)
svn path=/trunk/; revision=9006
2009-04-07 10:48:48 +00:00