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 727050 - Use header bar in the dialogs
Use header bar in the dialogs
Status: RESOLVED FIXED
Product: gnome-mines
Classification: Applications
Component: general
3.11.x
Other Linux
: High enhancement
: ---
Assigned To: Michael Catanzaro
gnome-mines-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-25 21:58 UTC by Yosef Or Boczko
Modified: 2014-04-15 19:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use headerbar in the scores dialog (1.30 KB, patch)
2014-03-25 22:00 UTC, Yosef Or Boczko
reviewed Details | Review
Use headerbar in the preferences dialog (1.16 KB, patch)
2014-03-25 22:00 UTC, Yosef Or Boczko
committed Details | Review
Screenshot of new scores dialog (110.92 KB, image/png)
2014-03-26 13:54 UTC, Michael Catanzaro
  Details
Use headerbar in the scores dialog (1.37 KB, patch)
2014-03-26 18:56 UTC, Yosef Or Boczko
none Details | Review
Require GTK+ 3.12, Vala 0.24 (885 bytes, patch)
2014-04-06 23:22 UTC, Michael Catanzaro
committed Details | Review

Description Yosef Or Boczko 2014-03-25 21:58:49 UTC
See the patches.
Comment 1 Yosef Or Boczko 2014-03-25 22:00:15 UTC
Created attachment 272907 [details] [review]
Use headerbar in the scores dialog
Comment 2 Yosef Or Boczko 2014-03-25 22:00:26 UTC
Created attachment 272908 [details] [review]
Use headerbar in the preferences dialog
Comment 3 Michael Catanzaro 2014-03-26 13:51:35 UTC
Review of attachment 272908 [details] [review]:

Good
Comment 4 Michael Catanzaro 2014-03-26 13:54:13 UTC
Created attachment 272992 [details]
Screenshot of new scores dialog
Comment 5 Michael Catanzaro 2014-03-26 13:57:07 UTC
Review of attachment 272907 [details] [review]:

The dialog is too wide; we'll need to rethink the buttons that we provide, currently "Close" (intended to quit the game) and "New Game."
Comment 6 Michael Catanzaro 2014-03-26 14:10:17 UTC
Hey Mario, what do you think about the scores dialog? Maybe we could have a suggested New Game action in the upper left, and have the standard window decoration close button in the upper right? Just brainstorming.

Maybe we could take this as an opportunity to make the buttons more consistent across games. I don't currently have time to research what buttons each game provides in the scores dialog. I think all C games are the same (just close), but I think we decided that some of the Vala games would have a quit the game button, and some would have a close the dialog button instead. Maybe that wasn't a great choice.
Comment 7 Mario Wenzel 2014-03-26 14:40:32 UTC
I like the buttons in the header bar very much but if that were icons, that would be the best of both worlds.

As I said in the mailing list, having a new-game-icon in the header bar that may or may not open a small popover menu (depending if there were general options for the new game) would solve many problems.

Maybe we should think about moving the buttons in the header bar but also having them as consistent icons. "If I click that, I get a new game. Always. For all games."

But as it is now, the dialog is too wide. But I like it more in the header bar.
Comment 8 Michael Catanzaro 2014-03-26 18:24:18 UTC
One problem is that our new game icon (view-refresh -- needs to be copied so that we have it under a reasonable name) is not very good; I'd actually prefer to just write out "New Game" in text, like I did in Chess.
Comment 9 Mario Wenzel 2014-03-26 18:40:19 UTC
I actually thought, for the header-bar at least (because that would be what all games would have in common), GTK_STOCK_NEW. The view-refresh is "play that one again" whereas the "New Game" actually could be more elaborate (and I think it should be in some cases).

Having that on every game in the top right with (were applicable) a popover with some options (either difficulty or opponent - the most general option available) would be good for the users.
Games could have another "play that one again" as view refresh where this would be useful. I would think for games that are either over very fast (mines) or games that end on their own (quadrapassel), there would be an "again" in the window as well.

I think there could be some proper rules. Maybe we should generate a matrix about the kind of games with "finishes even without interaction", "puzzle", "two-player" and so on. Maybe we find some common rules that could be generally applicable.
Comment 10 Yosef Or Boczko 2014-03-26 18:56:25 UTC
Created attachment 273016 [details] [review]
Use headerbar in the scores dialog

I just added the "suggested-action" style to the new game button.
Comment 11 Michael Catanzaro 2014-03-26 23:30:25 UTC
I agree that some games should have a Play Again button that bypasses the new game screen, but you're getting too far ahead here: only Mines and Sudoku currently have a new game screen, and the only remaining portion of this bug is the scores dialog. I think we should not overload the user with ways to exit from the scores dialog.  A button that's actually a menu of options would probably be a overkill here.

Perhaps the best thing to do is just remove all the buttons from the score dialog: let the user return to the game over screen and use the normal new game (or play again, if available) button. This adds one additional click, but seems tolerable.
Comment 12 Michael Catanzaro 2014-04-06 22:42:44 UTC
We're actually going to restore the ability to save player names in the scores dialog, which will resolve the width issue.
Comment 13 Michael Catanzaro 2014-04-06 23:22:21 UTC
Created attachment 273677 [details] [review]
Require GTK+ 3.12, Vala 0.24

For GtkDialog use_header_bar
Comment 14 Michael Catanzaro 2014-04-15 19:30:48 UTC
We're going to deal with the scores dialog separately. Pushing the preferences dialog patch now; thanks!

Attachment 272908 [details] pushed as 98a92fe - Use headerbar in the preferences dialog
Attachment 273677 [details] pushed as ca06300 - Require GTK+ 3.12, Vala 0.24