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 771631 - Use GtkMessageDialog when appropriate
Use GtkMessageDialog when appropriate
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-18 18:12 UTC by Michael Catanzaro
Modified: 2017-04-04 07:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ui: Use Gtk.MessageDialog for resume dialog (2.39 KB, patch)
2017-04-01 11:17 UTC, Abhinav Singh
committed Details | Review
ui: Use Gtk.MessageDialog for resume-failed dialog (2.51 KB, patch)
2017-04-01 11:18 UTC, Abhinav Singh
committed Details | Review
ui: Use Gtk.MessageDialog for quit dialog (2.88 KB, patch)
2017-04-01 11:18 UTC, Abhinav Singh
committed Details | Review
Resume dialog (4.10 KB, image/png)
2017-04-02 07:22 UTC, Adrien Plazas
  Details
Quit dialog (8.93 KB, image/png)
2017-04-02 07:23 UTC, Adrien Plazas
  Details
Resume failed dialog (6.21 KB, image/png)
2017-04-02 07:23 UTC, Adrien Plazas
  Details
ui: Move 'Restart' at the beginning of resume dialog (1.58 KB, patch)
2017-04-04 06:51 UTC, Adrien Plazas
committed Details | Review
ui: Move 'Cancel' at the beginning of resume-failed dialog (2.02 KB, patch)
2017-04-04 06:51 UTC, Adrien Plazas
committed Details | Review
ui: Move 'Cancel' at the beginning of quit dialog (1.79 KB, patch)
2017-04-04 06:51 UTC, Adrien Plazas
committed Details | Review

Description Michael Catanzaro 2016-09-18 18:12:02 UTC
Reading [1] I see buttons in the header bar on the resume/quit dialogs. It's a misunderstanding of the guidelines for using dialog windows [2]. These are simple message dialogs and the buttons should be on the bottom. Use GtkMessageDialog for them, it's still cool!

[1] http://bytesgnomeschozo.blogspot.com/2016/09/gnome-games-322-giant-leap.html
[2] https://developer.gnome.org/hig/stable/dialogs.html.en
Comment 1 Adrien Plazas 2016-09-18 20:42:31 UTC
Thanks! Message dialogs indeed look better for this job.
Comment 2 Abhinav Singh 2017-04-01 11:17:53 UTC
Created attachment 349108 [details] [review]
ui: Use Gtk.MessageDialog for resume dialog
Comment 3 Abhinav Singh 2017-04-01 11:18:19 UTC
Created attachment 349109 [details] [review]
ui: Use Gtk.MessageDialog for resume-failed dialog
Comment 4 Abhinav Singh 2017-04-01 11:18:41 UTC
Created attachment 349110 [details] [review]
ui: Use Gtk.MessageDialog for quit dialog
Comment 5 Adrien Plazas 2017-04-02 07:11:11 UTC
Review of attachment 349110 [details] [review]:

LGTM.
Comment 6 Adrien Plazas 2017-04-02 07:11:45 UTC
Review of attachment 349108 [details] [review]:

LGTM.
Comment 7 Adrien Plazas 2017-04-02 07:14:21 UTC
Review of attachment 349109 [details] [review]:

LGTM besides the typo. :)

::: data/ui/resume-failed-dialog.ui
@@ +7,3 @@
+    <property name="type_hint">dialog</property>
+    <property name="message_type">question</property>
+    <property name="text" translatable="yes">Resuming failed. Do you want to to restart the game?</property>

Let's take it as an occasion to fix the "to to" typo. :)
Comment 8 Adrien Plazas 2017-04-02 07:22:01 UTC
Created attachment 349135 [details]
Resume dialog

The order of the actions feels off to me. What would be the right order?
Comment 9 Adrien Plazas 2017-04-02 07:23:13 UTC
Created attachment 349136 [details]
Quit dialog

The cancel action of the right side feels off to me. What would be the right order?
Comment 10 Adrien Plazas 2017-04-02 07:23:37 UTC
Created attachment 349137 [details]
Resume failed dialog

The cancel action of the right side feels off to me. What would be the right order?
Comment 11 Adrien Plazas 2017-04-02 07:42:35 UTC
Attachment 349108 [details] pushed as b2e03a9 - ui: Use Gtk.MessageDialog for resume dialog
Attachment 349109 [details] pushed as 2e6d361 - ui: Use Gtk.MessageDialog for resume-failed dialog
Attachment 349110 [details] pushed as d1949fa - ui: Use Gtk.MessageDialog for quit dialog
Comment 12 Adrien Plazas 2017-04-03 11:15:04 UTC
Abhinav: can you check the "Primary buttons" section of https://developer.gnome.org/hig/stable/dialogs.html.en and make sure we follow it correctly? Especially the "don't default to the irreversible actions" part.
Comment 13 Adrien Plazas 2017-04-04 06:51:17 UTC
Created attachment 349213 [details] [review]
ui: Move 'Restart' at the beginning of resume dialog

This makes the order of the actions more natural by having 'Restart'
first and 'Resume' second.
Comment 14 Adrien Plazas 2017-04-04 06:51:23 UTC
Created attachment 349214 [details] [review]
ui: Move 'Cancel' at the beginning of resume-failed dialog

This makes the order of the actions more natural by having 'Cancel'
first and 'Reset' second.

This also makes 'Cancel' the default action as 'Reset' isn't reversible.
Comment 15 Adrien Plazas 2017-04-04 06:51:28 UTC
Created attachment 349215 [details] [review]
ui: Move 'Cancel' at the beginning of quit dialog

This makes the order of the actions more natural by having 'Cancel'
first and 'Quit' second.
Comment 16 Adrien Plazas 2017-04-04 07:02:30 UTC
Attachment 349213 [details] pushed as 82a5099 - ui: Move 'Restart' at the beginning of resume dialog
Attachment 349214 [details] pushed as 46d3ae4 - ui: Move 'Cancel' at the beginning of resume-failed dialog
Attachment 349215 [details] pushed as f2e6c51 - ui: Move 'Cancel' at the beginning of quit dialog