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 736208 - Rework the well done dialog
Rework the well done dialog
Status: RESOLVED FIXED
Product: gnome-sudoku
Classification: Applications
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: gnome-sudoku-maint
gnome-sudoku-maint
Depends on:
Blocks:
 
 
Reported: 2014-09-06 20:18 UTC by Michael Catanzaro
Modified: 2014-09-15 21:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Rework the well done dialog (2.31 KB, patch)
2014-09-06 20:18 UTC, Michael Catanzaro
none Details | Review
Rework the well done dialog (2.34 KB, patch)
2014-09-06 20:23 UTC, Michael Catanzaro
committed Details | Review

Description Michael Catanzaro 2014-09-06 20:18:54 UTC
Not really worth a string freeze break, so this is for 3.16.
Comment 1 Michael Catanzaro 2014-09-06 20:18:55 UTC
Created attachment 285590 [details] [review]
Rework the well done dialog

The buttons should be actions, and sudoku is a long enough game that
there's not much value in letting players skip the one-click new game
screen.
Comment 2 Michael Catanzaro 2014-09-06 20:23:03 UTC
Created attachment 285591 [details] [review]
Rework the well done dialog

The buttons should be actions, and sudoku is a long enough game that
there's not much value in letting players skip the one-click new game
screen. And the dialog should be modal.
Comment 3 Arnaud B. 2014-09-06 21:08:53 UTC
Without having tested the patches, the problem I see with making the dialog modal is that you cannot have a look to the finished game, you cannot restart it (try to do it in less time), and you cannot think for example to print it for your friends…

And, a "Well done, you completed the puzzle in 846 minutes!" dialog would look quite ironical I think; we should prefer something like "Well done, you completed the puzzle! It took %d minutes."
Comment 4 Arnaud B. 2014-09-06 21:16:36 UTC
Oh, related actual bug: you can undo-redo when the game is finished, and then you have a second/another “Well done!” dialog that popups, with a different timer… Maybe we should at least stop the timer?
Comment 5 Michael Catanzaro 2014-09-06 21:42:49 UTC
Alas, I think we're not supposed to use non-modal dialogs in GNOME.

(In reply to comment #4)
> Oh, related actual bug: you can undo-redo when the game is finished, and then
> you have a second/another “Well done!” dialog that popups, with a different
> timer… Maybe we should at least stop the timer?

I think it does not make sense to allow undo after the game is over. That's only reasonable in games where the player can lose. Can you file a different bug for that please?

(In reply to comment #3)
> Without having tested the patches, the problem I see with making the dialog
> modal is that you cannot have a look to the finished game

Good point.  Well, you can do this by pressing Escape, but who would know to do that.

> you cannot restart
> it (try to do it in less time),

Nobody would want to do that. :p

> and you cannot think for example to print it
> for your friends…

Another good point.

> And, a "Well done, you completed the puzzle in 846 minutes!" dialog would look
> quite ironical I think; we should prefer something like "Well done, you
> completed the puzzle! It took %d minutes."

Yeah, but we has a clock patch accepted already for 3.16 so we can actually completely delete the mention of time.
Comment 6 Michael Catanzaro 2014-09-15 21:27:15 UTC
I think the mid-term solution to your objections is to figure out how to remove this dialog, while still making it clear that the player won the game.  I'll push this in the meantime (to master, NOT gnome-3-14, so we've got plenty of time to change our minds).
Comment 7 Michael Catanzaro 2014-09-15 21:40:04 UTC
Attachment 285591 [details] pushed as 29ce0f5 - Rework the well done dialog