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 769633 - The printers list scrolled window is causing the panel to unexpectedly expand
The printers list scrolled window is causing the panel to unexpectedly expand
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Printers
git master
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on: 766569
Blocks:
 
 
Reported: 2016-08-08 14:39 UTC by Felipe Borges
Modified: 2016-08-31 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (105.08 KB, image/png)
2016-08-08 14:39 UTC, Felipe Borges
  Details
printers: Prevent the printers list from expanding the panel (1.33 KB, patch)
2016-08-08 14:40 UTC, Felipe Borges
none Details | Review

Description Felipe Borges 2016-08-08 14:39:54 UTC
Created attachment 332944 [details]
screenshot

This bug can be reproduced after commit 13b745aa3df77c347a98ae8b2ef137ed8bc20483, which bumped the Gtk+ version to a version after the changes in GtkScrolledWindow discussed at Bug 766569.

The following patch can be reverted after there's an API change on Gtk+ size or after the redesign of the Printers panel proposed at Bug 767600 gets merged.
Comment 1 Felipe Borges 2016-08-08 14:40:29 UTC
Created attachment 332945 [details] [review]
printers: Prevent the printers list from expanding the panel

Since the GtkScrolledWindow changes introduced in bgo#766569, the
Printers panel is unexpectedly expading vertically. Since there's
still no concensus in whether there will be new API to cover the
cases where we don't want GtkScrolledWindow to report its child
natural width/height, this patch arbitrarialy sets the widget's
"max-content-height" property to an arbitrary number.
Comment 2 Marek Kašík 2016-08-08 15:45:07 UTC
I've just tested the patch and the window is still too big on my machine.