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 755713 - Use header bars in the printers panel
Use header bars in the printers panel
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Printers
unspecified
Other All
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-28 05:57 UTC by Michael Catanzaro
Modified: 2017-02-28 17:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
printers: Use a header bar on the jobs dialog (2.55 KB, patch)
2015-09-28 05:57 UTC, Michael Catanzaro
none Details | Review
printers: Add tooltips for icon buttons on jobs dialog (1.99 KB, patch)
2015-09-28 05:57 UTC, Michael Catanzaro
none Details | Review
printers: Move options dialog spinner out of the action area (11.47 KB, patch)
2015-09-28 05:58 UTC, Michael Catanzaro
none Details | Review
printers: Use a header bar on the options dialog (1.92 KB, patch)
2015-09-28 05:58 UTC, Michael Catanzaro
needs-work Details | Review
printers: Avoid warning about unparented ppd selection dialog (1.39 KB, patch)
2015-09-28 05:58 UTC, Michael Catanzaro
committed Details | Review
printers: Move ppd selection dialog spinner out of the action area (10.38 KB, patch)
2015-09-28 05:58 UTC, Michael Catanzaro
needs-work Details | Review
printers: Use a header bar on the ppd selection dialog (4.46 KB, patch)
2015-09-28 05:58 UTC, Michael Catanzaro
needs-work Details | Review
printers: Add mnemonics for ppd selection dialog actions (1.70 KB, patch)
2015-09-28 05:58 UTC, Michael Catanzaro
none Details | Review
Options dialog (24.06 KB, image/png)
2015-10-08 02:34 UTC, Michael Catanzaro
  Details
Options dialog (loading) (7.85 KB, image/png)
2015-10-08 02:34 UTC, Michael Catanzaro
  Details
ppd selection dialog (42.35 KB, image/png)
2015-10-08 02:35 UTC, Michael Catanzaro
  Details
ppd selection dialog spinner (7.95 KB, image/png)
2015-10-08 02:37 UTC, Michael Catanzaro
  Details
printers: Manual ppd selection dialog should have a parent (1.12 KB, patch)
2015-10-08 02:49 UTC, Michael Catanzaro
committed Details | Review
printers: Move options dialog spinner out of the action area (11.69 KB, patch)
2016-11-26 12:01 UTC, Felipe Borges
none Details | Review

Description Michael Catanzaro 2015-09-28 05:57:47 UTC
This patchset cares for the jobs, options, and ppd selection dialogs. It does NOT fix the new printer dialog nor does it fix the Samba authentication dialog. The new printer dialog is a bit tricky and I don't have a Samba printer; help with those two dialogs would be great.
Comment 1 Michael Catanzaro 2015-09-28 05:57:56 UTC
Created attachment 312255 [details] [review]
printers: Use a header bar on the jobs dialog
Comment 2 Michael Catanzaro 2015-09-28 05:57:59 UTC
Created attachment 312256 [details] [review]
printers: Add tooltips for icon buttons on jobs dialog
Comment 3 Michael Catanzaro 2015-09-28 05:58:03 UTC
Created attachment 312257 [details] [review]
printers: Move options dialog spinner out of the action area

For an infinitesimal amount of time after opening the options dialog, a
spinner is displayed at the start of the action area while the dialog
loads asynchronously. Display the spinner in the center of the dialog
instead, using a GtkStack to switch between spinner mode and normal
mode. Test by removing the calls to printer_get_ppd_async(),
get_named_dest_async(), and get_ipp_attributes_async() from the bottom
of populate_options().

Why? (1) It looks better this way. (2) Need to stop using the action
area in order to switch to a header bar.
Comment 4 Michael Catanzaro 2015-09-28 05:58:07 UTC
Created attachment 312258 [details] [review]
printers: Use a header bar on the options dialog
Comment 5 Michael Catanzaro 2015-09-28 05:58:11 UTC
Created attachment 312259 [details] [review]
printers: Avoid warning about unparented ppd selection dialog

Just need to call gtk_window_set_transient_for() a bit earlier.
Comment 6 Michael Catanzaro 2015-09-28 05:58:15 UTC
Created attachment 312260 [details] [review]
printers: Move ppd selection dialog spinner out of the action area
Comment 7 Michael Catanzaro 2015-09-28 05:58:20 UTC
Created attachment 312261 [details] [review]
printers: Use a header bar on the ppd selection dialog
Comment 8 Michael Catanzaro 2015-09-28 05:58:24 UTC
Created attachment 312262 [details] [review]
printers: Add mnemonics for ppd selection dialog actions
Comment 9 Marek Kašík 2015-09-29 09:18:33 UTC
(In reply to Michael Catanzaro from comment #1)
> Created attachment 312255 [details] [review] [review]
> printers: Use a header bar on the jobs dialog

Hi,

this part is actually covered by redesign of the jobs dialog in #755626.
Comment 10 Marek Kašík 2015-09-29 10:21:05 UTC
Review of attachment 312259 [details] [review]:

Thank you for fixing this. This can go to 3.16 as well.
Comment 11 Marek Kašík 2015-09-29 12:33:22 UTC
Thank you for the patches. Have you consulted the UI changes with a Gnome designer (e.g. Allan Day)?
I guess that at least the usage of header bar in options dialog should correspond to the redesign on https://wiki.gnome.org/Design/SystemSettings/Printers (except the "Test Page" button which should be added once the whole redesign is done) .
Comment 12 Michael Catanzaro 2015-09-29 16:02:25 UTC
I obsoleted my Jobs dialog patches, since they'd conflict with Felipe's work, which we should use instead.

(In reply to Marek Kašík from comment #11)
> Thank you for the patches. Have you consulted the UI changes with a Gnome
> designer (e.g. Allan Day)?

I haven't consulted him on this in particular, but I could if you want me to. But it's just a standard application of his "move the buttons from the action area to the header bar" pattern that we've been applying all over the place. For an action dialog (the ppd selection dialog) the header bar has a Cancel button and a suggested action button; for presentation dialogs just a standard X close button (and in general, possibly a suggested action button, but not in any of these cases).

> I guess that at least the usage of header bar in options dialog should
> correspond to the redesign on
> https://wiki.gnome.org/Design/SystemSettings/Printers (except the "Test
> Page" button which should be added once the whole redesign is done) .

The only difference I see regarding the header bar is that the word "Options" is appended to the title in the mockup. (And the Test Page button isn't there.)
Comment 13 Marek Kašík 2015-10-02 13:18:58 UTC
(In reply to Michael Catanzaro from comment #12)
> I obsoleted my Jobs dialog patches, since they'd conflict with Felipe's
> work, which we should use instead.
> 
> (In reply to Marek Kašík from comment #11)
> > Thank you for the patches. Have you consulted the UI changes with a Gnome
> > designer (e.g. Allan Day)?
> 
> I haven't consulted him on this in particular, but I could if you want me
> to. But it's just a standard application of his "move the buttons from the
> action area to the header bar" pattern that we've been applying all over the
> place. For an action dialog (the ppd selection dialog) the header bar has a
> Cancel button and a suggested action button; for presentation dialogs just a
> standard X close button (and in general, possibly a suggested action button,
> but not in any of these cases).

I would like to have the spinner changes reviewed by a designer.


> > I guess that at least the usage of header bar in options dialog should
> > correspond to the redesign on
> > https://wiki.gnome.org/Design/SystemSettings/Printers (except the "Test
> > Page" button which should be added once the whole redesign is done) .
> 
> The only difference I see regarding the header bar is that the word
> "Options" is appended to the title in the mockup. (And the Test Page button
> isn't there.)

There is also the separator on the right side of the header bar in the options dialog mock-up.
Comment 14 Marek Kašík 2015-10-02 13:34:44 UTC
Also, sizes of the 2 dialogs are smaller than before. We should preserve them because there is quite a lot of information on them.
Comment 15 Allan Day 2015-10-07 12:52:08 UTC
(In reply to Marek Kašík from comment #13)
...
> > > Thank you for the patches. Have you consulted the UI changes with a Gnome
> > > designer (e.g. Allan Day)?
> > 
> > I haven't consulted him on this in particular, but I could if you want me
> > to. But it's just a standard application of his "move the buttons from the
> > action area to the header bar" pattern that we've been applying all over the
> > place. For an action dialog (the ppd selection dialog) the header bar has a
> > Cancel button and a suggested action button; for presentation dialogs just a
> > standard X close button (and in general, possibly a suggested action button,
> > but not in any of these cases).
> 
> I would like to have the spinner changes reviewed by a designer.

If someone wants to record a video of the new UI in action, I'd be happy to take a look. At the same time, I would hope that every small change doesn't need my approval - that won't scale (and it's why we have the Human Interface Guidelines).
Comment 16 Michael Catanzaro 2015-10-07 14:55:02 UTC
I'll try to post screenshots soon. A video won't work since the spinner is shown and then hidden almost instantaneously; you wouldn't know it is there unless you hack the code to force it to display always.
Comment 17 Michael Catanzaro 2015-10-08 02:19:36 UTC
(In reply to Marek Kašík from comment #13)
> There is also the separator on the right side of the header bar in the
> options dialog mock-up.

It's a minor flaw in the mockup. The separator is there for main windows, not for dialogs. GTK+ handles that automatically.
Comment 18 Michael Catanzaro 2015-10-08 02:28:54 UTC
(In reply to Marek Kašík from comment #14)
> Also, sizes of the 2 dialogs are smaller than before. We should preserve
> them because there is quite a lot of information on them.

Indeed, not sure how I broke this.... I also accidentally lost the title on the ppd selection dialog. Need to fix that still.

Anyway, attaching screenshots of the spinners, though they're pretty standard....
Comment 19 Michael Catanzaro 2015-10-08 02:34:04 UTC
Created attachment 312871 [details]
Options dialog
Comment 20 Michael Catanzaro 2015-10-08 02:34:27 UTC
Created attachment 312872 [details]
Options dialog (loading)
Comment 21 Michael Catanzaro 2015-10-08 02:35:22 UTC
Created attachment 312873 [details]
ppd selection dialog

The missing title should be "Select printer driver"
Comment 22 Michael Catanzaro 2015-10-08 02:37:17 UTC
Created attachment 312874 [details]
ppd selection dialog spinner

Erm, well this spinner is not where I thought I put it... I thought I had the text underneath the spinner. So sending me to get designer approval was a good idea. :p I will need to fix that....

Anyway, the text is optional.
Comment 23 Michael Catanzaro 2015-10-08 02:49:03 UTC
Created attachment 312876 [details] [review]
printers: Manual ppd selection dialog should have a parent
Comment 24 Marek Kašík 2016-01-27 14:34:06 UTC
Review of attachment 312876 [details] [review]:

Thank you for this patch. It looks good to me.
Comment 25 Michael Catanzaro 2016-01-27 18:52:51 UTC
Sorry, I'm not sure when I'll get around to updating these patches. I don't know why they made the dialogs smaller.
Comment 26 Michael Catanzaro 2016-03-10 20:37:45 UTC
Comment on attachment 312876 [details] [review]
printers: Manual ppd selection dialog should have a parent

(Pushing only the trivial patch that was accepted.)

Attachment 312876 [details] pushed as 3496b05 - printers: Manual ppd selection dialog should have a parent
Comment 27 Felipe Borges 2016-11-26 12:01:29 UTC
Created attachment 340795 [details] [review]
printers: Move options dialog spinner out of the action area

For an infinitesimal amount of time after opening the options dialog, a
spinner is displayed at the start of the action area while the dialog
loads asynchronously. Display the spinner in the center of the dialog
instead, using a GtkStack to switch between spinner mode and normal
mode. Test by removing the calls to printer_get_ppd_async(),
get_named_dest_async(), and get_ipp_attributes_async() from the bottom
of populate_options().

Why? (1) It looks better this way. (2) Need to stop using the action
area in order to switch to a header bar.
Comment 28 Felipe Borges 2016-11-26 12:02:51 UTC
(In reply to Felipe Borges from comment #27)
> Created attachment 340795 [details] [review] [review]
> printers: Move options dialog spinner out of the action area
>

I updated this patch in order to match the spinner which we already have in the main view while loading.
Comment 29 Michael Catanzaro 2017-02-28 17:13:35 UTC
Hey Felipe, can this bug be closed now?

I guess so. Please reopen if there's anything more here that you want.