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 113801 - "Reload applet?" dialog does not accord to HIG
"Reload applet?" dialog does not accord to HIG
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
git master
Other other
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 133912 153316 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-05-27 05:48 UTC by Matthias Warkus
Modified: 2015-03-24 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.32 KB, patch)
2003-12-04 13:51 UTC, Laurent Sansonetti
none Details | Review
patch2 (4.97 KB, patch)
2003-12-04 17:43 UTC, Laurent Sansonetti
none Details | Review
screenshot of patch2 (23.36 KB, image/png)
2003-12-04 17:44 UTC, Laurent Sansonetti
  Details
patch3 (4.96 KB, patch)
2003-12-04 18:48 UTC, Laurent Sansonetti
none Details | Review
patch4 (4.00 KB, patch)
2004-02-13 22:00 UTC, Laurent Sansonetti
none Details | Review
screenshot of patch4 (23.36 KB, image/png)
2004-02-13 22:01 UTC, Laurent Sansonetti
  Details
screenshot of patch4 (real one, sorry) (20.01 KB, image/png)
2004-02-13 22:02 UTC, Laurent Sansonetti
  Details
patch GtkMessageDialog/HIG (5.49 KB, patch)
2004-02-13 22:04 UTC, Laurent Sansonetti
needs-work Details | Review
Proposed Patch. Practical + Feasible. (2.99 KB, patch)
2004-06-26 19:33 UTC, Christian Neumair
needs-work Details | Review
Sample Screenshot (11.17 KB, image/png)
2004-06-26 19:35 UTC, Christian Neumair
  Details
Proposed patch #2. (2.97 KB, patch)
2004-08-10 18:24 UTC, Christian Neumair
needs-work Details | Review
Sample Screenshot #2 (10.17 KB, image/png)
2004-08-10 18:25 UTC, Christian Neumair
  Details
Updated patch. (2.14 KB, patch)
2004-09-21 18:20 UTC, Christian Neumair
committed Details | Review

Description Matthias Warkus 2003-05-27 05:54:40 UTC
Package: gnome-panel
Severity: minor
Version: GNOME2.3.1 2.3.1
Synopsis: "Reload applet?" dialog does not accord to HIG
Bugzilla-Product: gnome-panel
Bugzilla-Component: Panel
Description:
The dialog that comes up when a panel applet has crashed, asking whether
it should be reloaded, does not accord to the HIG specification as it
has Yes/No buttons and the default is on the left.

Instead of "Yes" and "No", the buttons should be labeled "Don't Load"
and "Load" (or "Discard" and "Reload" or something similarly
appropriate), with the default action (i.e. to reload the applet) on the
right-hand side.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-05-27 01:54 -------

Reassigning to the default owner of the component, gnome-panel-maint@bugzilla.gnome.org.

Comment 1 Laurent Sansonetti 2003-12-04 13:51:38 UTC
Created attachment 22089 [details] [review]
patch
Comment 2 Laurent Sansonetti 2003-12-04 13:53:15 UTC
The following patch should fix this issue.

Please review & respond if corrections are needed ;-)
Comment 3 Calum Benson 2003-12-04 15:31:17 UTC
I think "Restart" is a more appropriate word, from a docs
styleguide point of view.  Not sure about "Discard" either; I'd
probably just stick with the old favourite "Cancel", for this
particular message.

Also, to be completely HIG-compliant, alerts should have a primary
message in large bold text, and a secondary message in regular text. 
Suggest something like:

<large><bold>{applet-name} has quit unexpectedly.</bold></large>
This application was running on your panel.  Do you want 
to restart it now?
                                [Cancel] [Restart]

See
http://developer.gnome.org/projects/gup/hig/1.0/windows.html#alert-spacing
for required format and spacing.  Note that we don't talk about
'applets' anywhere in the UI any more, so I've tried desperately to
avoid using that word in my suggested message... other ideas welcome :)
Comment 4 Laurent Sansonetti 2003-12-04 17:43:24 UTC
Created attachment 22100 [details] [review]
patch2
Comment 5 Laurent Sansonetti 2003-12-04 17:44:06 UTC
Created attachment 22101 [details]
screenshot of patch2
Comment 6 Laurent Sansonetti 2003-12-04 17:46:13 UTC
Thank you Calum, here is a new patch, and a screenshot (i hope it's ok
to upload screenshot in bugzilla, since this is my first time) ;-)

I think it should now apply to HIG rules.
Comment 7 Bryan W Clark 2003-12-04 18:12:10 UTC
Looks great Laurent, to keep consistant make sure you don't
interchange "restart" with "reload".  This is such a great improvement.
Comment 8 Vincent Untz 2003-12-04 18:26:56 UTC
I suppose the title of the dialog should not be 'gnome-panel', but
something else...
Comment 9 Laurent Sansonetti 2003-12-04 18:48:16 UTC
Created attachment 22102 [details] [review]
patch3
Comment 10 Laurent Sansonetti 2003-12-04 18:50:36 UTC
Thanks for your quick responses.

Uploaded patch3, which fixes these 2 issues; reload -> restart, and
there is no title, as defined in the HIG rules.
Comment 11 Eugene O'Connor 2003-12-04 19:34:48 UTC
First of all, sorry for the late comments ...

Here is my suggestion for the text on the dialog. I have rewritten it
to hide the idea of "restart/reload," in favour of a simpler "Add".
What do you think?

"
Workspace Switcher has quit unexpectedly.

Workspace Switcher runs on a panel. Do you want to add Workspace
Switcher back to the panel?

Alternatively, right-click on a panel, then use the Add to Panel menu
to add Workspace Switcher to a panel.

                         [Cancel]   [Add to Panel]
"
Comment 12 Calum Benson 2003-12-05 13:43:45 UTC
Hmm, "Do you want to add <blah> back to the panel" sounds a bit clumsy
to me.  How about "Do you want to add <blah> to the panel again"?

If we're mentioning "Quit" in the dialog, though, "Restart" still
sounds like the more correct remedial action to me.  After all, you
wouldn't normally say "oh, I quit that application by mistake, I'll
need to re-add it to my desktop" :)
Comment 13 Eugene O'Connor 2003-12-05 14:01:34 UTC
I see your point about quitting and restarting. But the user-visible
part of the quitting is the removal of the applet from the panel. So
we need to establish a link between the quitting and the removal from
the panel. How about this:

"
Workspace Switcher has quit unexpectedly, and has been removed from a
panel. 

Do you want to add Workspace Switcher back to the panel?

Alternatively, right-click on a panel, then use the Add to Panel menu 
to add Workspace Switcher to a panel.

                                [Cancel]   [Add to Panel]
"
Comment 14 alexander.winston 2004-02-03 03:57:01 UTC
Just confirming this bug . . . ignore me, please. :)
Comment 15 Elijah Newren 2004-02-09 19:29:57 UTC
This is somewhat related to bug 127043 (UI changes to the crash report
dialog).  I mention that just in case someone wants to look at that
and make sure that the interface for these two things are similar in
whatever places it seems to make sense.

I'm also marking priority as high because of the patch(es).
Comment 16 Vincent Untz 2004-02-09 19:41:26 UTC
*** Bug 133912 has been marked as a duplicate of this bug. ***
Comment 17 Mark McLoughlin 2004-02-13 16:34:25 UTC
Long bug - current status:

  As suggested by Eugene, text should be changed to:

"<blah> has quit unexpectedly, and has been removed from a
panel. 

Do you want to add <blah> back to the panel?

Alternatively, right-click on a panel, then use the Add to Panel menu 
to add <blah> to a panel.

                                [Cancel]   [Add to Panel]
"


Laurent:

  + Could you update the patch to use the latest terminology suggested
    by Eugene ?

  + Please don't construct a message dialog by hand just because 
    GtkMessageDialog isn't HIG compliant. The correct fix it to make
    GtkMessageDialog itelf HIG compliant.

  + Punting to 2.8 because we're past the UI and string freezes and
    I don't think this is visible enough to warrant breaking the 
    freezes.

  + Re-add the PATCH keyword once you've updated the patch

Thanks ...
Comment 18 Laurent Sansonetti 2004-02-13 22:00:25 UTC
Created attachment 24394 [details] [review]
patch4
Comment 19 Laurent Sansonetti 2004-02-13 22:01:10 UTC
Created attachment 24395 [details]
screenshot of patch4
Comment 20 Laurent Sansonetti 2004-02-13 22:02:57 UTC
Created attachment 24396 [details]
screenshot of patch4 (real one, sorry)
Comment 21 Laurent Sansonetti 2004-02-13 22:04:11 UTC
Created attachment 24397 [details] [review]
patch GtkMessageDialog/HIG
Comment 22 Laurent Sansonetti 2004-02-13 22:13:22 UTC
Mark,

OK, I hacked GtkMessageDialog to be HIG compliant, and I modified the
previous patch according to eugene's terminology.

I added a screenshot (please ignore the first attachment, it was a
mistake).

For the GTK patch, should I submit it to gtk-devel-list as well?

Please tell me if I have to change something.

PS: bugzilla doesn't want that I add the PATCH keyword (it says that
i'm not the owner of the bug).
Comment 23 Calum Benson 2004-02-16 14:13:26 UTC
Still sounds wordier than it ought to be IMHO (I'd prefer to lose the
"Alternatively" sentence altogether-- this is an alert, not a user
guide), and looks odd because the button wording doesn't correspond to
any words in the message.

Anyway, I suspect that's a symptom of trying to explain an inherently
unhelpful behaviour... if a panel app quits unexpectedly, shouldn't it
just try to re-add itself silently and automatically a couple of times
before alerting the user that something is probably wrong?  It would
be much more useful to fix the behaviour than the error message...
Comment 24 Christian Neumair 2004-06-08 11:33:15 UTC
Calum is right. It's not concise enough. Lets trash the last paragraph. Maybe
you could rework it?
Anyway, thanks for your efforts.

regs,
 Chris
Comment 25 Christian Neumair 2004-06-26 19:31:32 UTC
Mark: I totally disagree with your proposal to fix GTK+ first. It simply isn't
feasible for GNOME 2.8, as it will be GTK+ 2.4-based.

regs,
 Chris
Comment 26 Christian Neumair 2004-06-26 19:33:30 UTC
Created attachment 29030 [details] [review]
Proposed Patch. Practical + Feasible.
Comment 27 Christian Neumair 2004-06-26 19:35:24 UTC
Created attachment 29031 [details]
Sample Screenshot
Comment 28 Calum Benson 2004-06-30 09:27:59 UTC
On the sample screenshot: the bold text should be in sentence caps (i.e. only
the first word capitalised), and to me the secondary text seemed to be a general
statement rather than suggesting what to do.. something like "Do you want to
reload it now?" might be more direct.

(FWIW, I'd still like to see the panel try to reload an applet without asking,
at least once, before popping up a dialog...)
Comment 29 Patrick Costello 2004-06-30 10:09:44 UTC
1. I agree with Calum. The bold text sentence should observe sentence rules,
only the first word takes a capital letter. The first word being the name of the
applet in question. Also there should be a full stop at the end of the sentence.
So: "Kleberzettel has quit unexpectedly."

2. The secondary text is awkward to translate and somewhat ambiguous due to the
use of the future passive construction. Personally, I think the secondary text
is redundant. The direct imperative of the "Reload" button says everything that
the user needs to know. Save translation effort, and save the user the effort of
processing a piece of text that does not add any extra functionality to the
dialog. If necessary, we can include the secondary text in Help.

3. I think the button pair "Cancel" and "Reload" are more appropriate than
"Don't Reload" and "Reload", because "Don't Reload" seems to leave the action
open-ended. Don't Reload but leave something hanging? Also, "Don't Reload" is
going to cause translation awkardness: "Nicht Wieder Aufladen". Negative button
labels can be awkward. The extra length of the negative button could give users
the mistaken impression that there is an extra empahsis placed on that button,
and we really want them to press that button as opposed to "Reload"? Whereas
Cancel is final, clearly defined in scope, and easy to translate.

Pat
Comment 30 Calum Benson 2004-06-30 14:27:05 UTC
I agree with the comment about the buttons too, hadn't noticed that.  Not sure
about the full stop in the primary text... personally I think it ought to act
like a newspaper headline, which wouldn't have one (and because I think it just
looks cleaner with the bigger/bolder text)-- but we ought to say one way or the
other in the HIG, because it's come up a couple of times recently.
Comment 31 Danielle Madeley 2004-08-07 06:40:10 UTC
I was just thinking about this, I didn't realise until now there was such a
complex bug involved.

From a gnome-applets point of view, I'd love to see this dialog fixed up (I
stare at it so often). Is there going to be any movement on this before 2.8?
Comment 32 Christian Neumair 2004-08-10 18:24:35 UTC
Created attachment 30403 [details] [review]
Proposed patch #2.
Comment 33 Christian Neumair 2004-08-10 18:25:43 UTC
Created attachment 30404 [details]
Sample Screenshot #2
Comment 34 Bryan W Clark 2004-08-10 18:45:49 UTC
Looks good to me.  It even conforms to the new HIG recommendations for 'newpaper
headlines' :-) However we've missed the UI Freeze so we'd need permission from
the release team to sneak this in. 

Whenever Mark gets a chance to review the patch we could at least get this into HEAD
Comment 35 Vincent Untz 2004-08-11 18:58:23 UTC
Comment on attachment 30403 [details] [review]
Proposed patch #2.

Patch looks good. Feel free to ask the release team for permission.
(marking as accepted-commit_after_freeze but it should be
accepted-commit_after_rtapproval)
Comment 36 Christian Neumair 2004-08-12 10:27:43 UTC
Approval was rejected.
Comment 37 Kjartan Maraas 2004-09-01 22:03:03 UTC
Was the GtkMessageDialog patch ever filed against gtk+?
Comment 38 Bryan W Clark 2004-09-02 17:45:30 UTC
adding the BLOCKED_BY_FREEZE keyword just to make certain it will get looked at
after.
Comment 39 Mark McLoughlin 2004-09-10 08:40:01 UTC
Comment on attachment 29030 [details] [review]
Proposed Patch. Practical + Feasible.

Re-iterating the need to fix GTK+ rather than hack every message dialog in
GNOME to be HIG compliant.

There's no reason to not get this done for GTK+ 2.6 (and thus GNOME 2.10)
Comment 40 Mark McLoughlin 2004-09-10 08:42:46 UTC
Sorry, I probably wasn't clear - we still need to fix up the text and such in
gnome-panel, but I don't want us messing about with the dialog's border width
and stuff ... that should be done in GTK+
Comment 41 Christian Neumair 2004-09-11 06:00:14 UTC
Mark: Would it be user/dev-friendly if we simply changed GtkDialog's default
style information within minor releases?

regs,
 Chris
Comment 42 Mark McLoughlin 2004-09-21 17:10:56 UTC
*** Bug 153316 has been marked as a duplicate of this bug. ***
Comment 43 Mark McLoughlin 2004-09-21 17:13:05 UTC
Guys, I'd really appreciate it if someone would update the patch to *just* fix
the text and the buttons. No padding/layout changes thanks
Comment 44 Christian Neumair 2004-09-21 18:20:44 UTC
Created attachment 31790 [details] [review]
Updated patch.

What about this one, Mark?
Comment 45 Christian Neumair 2004-10-17 09:36:17 UTC
Mark?
Comment 46 Vincent Untz 2004-10-27 09:07:00 UTC
Comment on attachment 31790 [details] [review]
Updated patch.

Ok, we need to move. It looks ok, so please commit. We'll update this again if
we have a HIG dialog...
Comment 47 Christian Neumair 2004-10-27 16:02:02 UTC
We can't do anything more about it at the moment. As soon as GTK+ gets a
HIG-compliant GtkMessageDialog, the padding issues will vanish. Thanks for all
your efforts :).
Comment 48 Kjartan Maraas 2004-10-27 19:54:59 UTC
Isn't this happening in GTK+-2.5.x?

2004-10-25  Carlos Garnacho Parro  <carlosg@gnome.org>

        Fix for #118764, David Bordoley:

        * gtk/gtkmessagedialog.[ch]
        (gtk_message_dialog_format_secondary_text),
        (gtk_message_dialog_format_secondary_format): API additions to
        create HIG-like dialogs

        * demos/gtk-demo/dialog.c: Use the new API in the example

        * docs/reference/gtk/gtk-sections.txt:
        * docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API
        additions
Comment 49 Christian Neumair 2004-10-27 20:36:55 UTC
I'm not refering to the secondary text API, but to the padding of GtkDialogs
(spacing between action area, window border and content area). I was told
multiple times that breaking GUI layouts is evil within minors.