After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687015 - Option to close scores/finished window without forcing a new game.
Option to close scores/finished window without forcing a new game.
Status: RESOLVED FIXED
Product: gnome-mines
Classification: Applications
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: gnome-mines-maint
gnome-mines-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-27 22:53 UTC by gnomebugs
Modified: 2013-11-19 17:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow nice closing of scores window (1.35 KB, patch)
2013-11-09 19:29 UTC, Isaac Lenton
reviewed Details | Review
(Version 2) Allow nice closing of scores window (1.26 KB, patch)
2013-11-11 14:33 UTC, Isaac Lenton
committed Details | Review

Description gnomebugs 2012-10-27 22:53:32 UTC
When you've completed a game, the scores window pops up in front of your game (if you're in the top ten) or if you aren't another window pops up to say that you finished but didn't score in the top ten.  You have the following options to continue:
1) Press New Game to go to the game-size selector.
2) Press Quit to quit the program entirely.
3) Close the pop-up window with the X in the corner (or similar mechanism depending on your window manager and theme) or pressing escape.  This results in the same behaviour as #1 above.

It would make more sense to allow you to just close the pop-up window so you can still observe your completed game.  This could be achieved by:
1) Adding a third button ("Close").
and/or
2) Changing the action linked to closing the pop-up window.
Comment 1 Michael Catanzaro 2013-11-07 18:01:04 UTC
All the Vala games with scores behave this way.  A close button probably makes sense for many of them (including Mines), but not all (e.g. Mahjongg, where you have nothing left on the board).
Comment 2 Isaac Lenton 2013-11-09 19:29:54 UTC
Created attachment 259345 [details] [review]
Allow nice closing of scores window

This patch implements both points.
Comment 3 Michael Catanzaro 2013-11-11 14:11:36 UTC
Review of attachment 259345 [details] [review]:

I think we should just replace the Quit button for Mines.  Having three buttons doesn't look very good - it forces the dialog to be unnecessarily wide.
Comment 4 Isaac Lenton 2013-11-11 14:33:05 UTC
Created attachment 259565 [details] [review]
(Version 2) Allow nice closing of scores window

I think you are right,
Comment 5 Michael Catanzaro 2013-11-12 01:36:41 UTC
Comment on attachment 259565 [details] [review]
(Version 2) Allow nice closing of scores window

Again leaving open for a few days as a reminder for me to check other games.
Comment 6 Michael Catanzaro 2013-11-19 04:03:49 UTC
Done for Klotski as well. Mario, do you want this change for Quadrapassel?  I think that's the only other game where this might make sense.
Comment 7 Mario Wenzel 2013-11-19 11:32:26 UTC
You are right, this seems quite applicable to quadrapassel and I'd be happy to have that change in master.

Thank you :)
Comment 8 Michael Catanzaro 2013-11-19 17:00:52 UTC
Done, thanks everyone.