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 749883 - Design regressions
Design regressions
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Printers
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-05-26 10:06 UTC by Marek Kašík
Modified: 2015-06-16 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the current state (31.50 KB, image/png)
2015-05-26 10:06 UTC, Marek Kašík
  Details
Don't expand search entry (2.62 KB, patch)
2015-05-26 10:08 UTC, Marek Kašík
committed Details | Review
Show border around 'No printers detected' text (2.22 KB, patch)
2015-05-26 10:09 UTC, Marek Kašík
none Details | Review
Screenshot of the fixed dialog (31.52 KB, image/png)
2015-05-26 10:09 UTC, Marek Kašík
  Details
Show border around 'No printers detected' text (2.28 KB, patch)
2015-06-16 14:12 UTC, Marek Kašík
committed Details | Review

Description Marek Kašík 2015-05-26 10:06:38 UTC
Created attachment 303982 [details]
Screenshot of the current state

There are 2 design regression in the 'New printer dialog':

The first one is that after detection of available printers, the search entry is expanded over the space previously occupied by the spinner on the right side. There should be an empty space instead of the spinner.

The second one is that there is missing border around the 'No printers detected' text when no printers are detected in the dialog.

The first regression was introduced in 3.16, the second one in 3.14.2.
Comment 1 Marek Kašík 2015-05-26 10:08:13 UTC
Created attachment 303983 [details] [review]
Don't expand search entry

This patch fixes the first regression by placing the GtkSpinner into a GtkFixed.
Comment 2 Marek Kašík 2015-05-26 10:09:01 UTC
Created attachment 303984 [details] [review]
Show border around 'No printers detected' text

This patch fixes the second regression by placing the GtkLabel into a GtkViewport.
Comment 3 Marek Kašík 2015-05-26 10:09:44 UTC
Created attachment 303985 [details]
Screenshot of the fixed dialog
Comment 4 Allan Day 2015-06-15 15:45:05 UTC
(In reply to Marek Kašík from comment #3)
> Created attachment 303985 [details]
> Screenshot of the fixed dialog

Seems like an obvious improvement to me.
Comment 5 Bastien Nocera 2015-06-16 13:34:15 UTC
Review of attachment 303983 [details] [review]:

Sure.
Comment 6 Bastien Nocera 2015-06-16 13:36:01 UTC
Review of attachment 303984 [details] [review]:

::: panels/printers/new-printer-dialog.ui
@@ +147,3 @@
                 </child>
                 <child>
+                  <object class="GtkViewport" id="viewport1">

Why do you use a viewport here?
Comment 7 Marek Kašík 2015-06-16 13:59:06 UTC
(In reply to Bastien Nocera from comment #6)
> Review of attachment 303984 [details] [review] [review]:
> 
> ::: panels/printers/new-printer-dialog.ui
> @@ +147,3 @@
>                  </child>
>                  <child>
> +                  <object class="GtkViewport" id="viewport1">
> 
> Why do you use a viewport here?

I use it because it has a visible border and I can place the label into it.
Comment 8 Bastien Nocera 2015-06-16 14:00:57 UTC
(In reply to Marek Kašík from comment #7)
> (In reply to Bastien Nocera from comment #6)
> > Review of attachment 303984 [details] [review] [review] [review]:
> > 
> > ::: panels/printers/new-printer-dialog.ui
> > @@ +147,3 @@
> >                  </child>
> >                  <child>
> > +                  <object class="GtkViewport" id="viewport1">
> > 
> > Why do you use a viewport here?
> 
> I use it because it has a visible border and I can place the label into it.

The point of GtkViewport is to be able to put scrollable content inside it. You probably want GtkFrame instead.
Comment 9 Marek Kašík 2015-06-16 14:12:35 UTC
Created attachment 305400 [details] [review]
Show border around 'No printers detected' text

(In reply to Bastien Nocera from comment #8)
> (In reply to Marek Kašík from comment #7)
> > (In reply to Bastien Nocera from comment #6)
> > > Review of attachment 303984 [details] [review] [review] [review] [review]:
> > > 
> > > ::: panels/printers/new-printer-dialog.ui
> > > @@ +147,3 @@
> > >                  </child>
> > >                  <child>
> > > +                  <object class="GtkViewport" id="viewport1">
> > > 
> > > Why do you use a viewport here?
> > 
> > I use it because it has a visible border and I can place the label into it.
> 
> The point of GtkViewport is to be able to put scrollable content inside it.
> You probably want GtkFrame instead.

You are right, GtkFrame is enough here. Attached is modified version of the patch.
Comment 10 Bastien Nocera 2015-06-16 14:20:15 UTC
Review of attachment 305400 [details] [review]:

Looks good.
Comment 11 Marek Kašík 2015-06-16 14:46:38 UTC
Thank you for the reviews. I've pushed the first patch into 3.16 and master. The second one into 3.14, 3.16 and master.