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 670443 - clicking twice on "New game" starts a game without asking which size it should pick
clicking twice on "New game" starts a game without asking which size it shoul...
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnomine
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 670444 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-02-20 12:35 UTC by Baptiste Mille-Mathias
Modified: 2012-07-05 21:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Modify GnoMine's field size repeat behavior. (4.67 KB, patch)
2012-03-10 03:23 UTC, Mike Henning (drawoc)
accepted-commit_after_freeze Details | Review
Newer patch, adds a menu option to repeat the last field size (6.14 KB, patch)
2012-03-15 02:39 UTC, Mike Henning (drawoc)
none Details | Review
Same as last patch, but rebased against master. (6.15 KB, patch)
2012-07-05 16:21 UTC, Mike Henning (drawoc)
committed Details | Review

Description Baptiste Mille-Mathias 2012-02-20 12:35:31 UTC
When you click once on the "New game" button, you're presented a start widget with all sizes available. If you click a second time, a new game starts.

I'm unable to define if it is a bug or a feature. if it is the former I guess it should be fixed, for the latter, I do think there something missing in the flow.
Comment 1 Baptiste Mille-Mathias 2012-02-20 12:57:09 UTC
*** Bug 670444 has been marked as a duplicate of this bug. ***
Comment 2 Robert Ancell 2012-02-25 09:54:07 UTC
It was intentionally added in bug 664974, but I agree it's a bit odd.  I think it would be better to have a menu item for "Restart" (not sure of the name) which would start a new game with the same board size.
Comment 3 Mike Henning (drawoc) 2012-02-25 20:21:27 UTC
Yes, it was intentional. It made sense to me, but seeing as both of you don't like it, I suppose it's less intuitive than I thought.

I'll try and find the time to write a patch for this.
Comment 4 Mike Henning (drawoc) 2012-03-10 03:23:29 UTC
Created attachment 209374 [details] [review]
[PATCH] Modify GnoMine's field size repeat behavior.

This is my proposed solution.
Comment 5 Robert Ancell 2012-03-14 23:59:47 UTC
Review of attachment 209374 [details] [review]:

Looks great and works well, thanks Mike.

I think this needs a freeze exception [1] but I don't have the time to get this done before final freeze.  If anyone can get this (or can determine this is not covered by the UI freeze) please feel free to commit this patch.

[1] http://live.gnome.org/ReleasePlanning/Freezes
Comment 6 Mike Henning (drawoc) 2012-03-15 02:39:12 UTC
Created attachment 209798 [details] [review]
Newer patch, adds a menu option to repeat the last field size

Ugh, I was just about to comment on this, and looking back on the patch I uploaded, I realized I had absent-mindedly forgotten to stage my changes before committing.

Well, here's the patch I intended to submit, which also includes a menu option to restart the most recent game. I realize this doesn't help with the feature freeze situation (especially because it includes new strings, which would make translation difficult at this point in time).

If, by any chance, this can get committed before feature freeze, it might be better to commit the last patch (which doesn't include the new menu option), and then commit the other 1/2 of this (the menu option) after branching.

If that does not happen, then this is the patch that I think should get committed post-branching.
Comment 7 Mike Henning (drawoc) 2012-07-05 16:21:29 UTC
Created attachment 218110 [details] [review]
Same as last patch, but rebased against master.

My last patch bitrotted enough so it wouldn't apply cleanly against master. I regenerated it, so it does apply now.
Comment 8 Robert Ancell 2012-07-05 21:32:14 UTC
Review of attachment 218110 [details] [review]:

Hi, thanks for that.

I've committed this with a few changes:
- Add a shortcut key (ctrl-R)
- Shorten name to "Replay Size"
- Only show when already in a game
- Fixed some whitespace errors