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 787366 - Adapt header buttons on low resolution displays
Adapt header buttons on low resolution displays
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-09-06 14:47 UTC by Georges Basile Stavracas Neto
Modified: 2017-09-06 15:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adapt header buttons on low resolution displays (4.54 KB, patch)
2017-09-06 14:47 UTC, Georges Basile Stavracas Neto
committed Details | Review

Description Georges Basile Stavracas Neto 2017-09-06 14:47:13 UTC
See the patch below.
Comment 1 Georges Basile Stavracas Neto 2017-09-06 14:47:17 UTC
Created attachment 359275 [details] [review]
Adapt header buttons on low resolution displays

The header buttons are the major offenders when dealing with low
resolution displays, and they render the window unresizable even
on views that can resize.

In order to detect that, this commit adds a new method to check
if the current display has a low resolution. We're considering
anything below 800x600 as low resolution right now. This assumption
can change as we see fit.

The header buttons are adapted on realize, when it is guaranteed
that the window is in a monitor, and the fix is making the views
buttons non-homogeneous.
Comment 2 Georges Basile Stavracas Neto 2017-09-06 15:21:30 UTC
Per IRC, "hughsie: fine for me then, thanks. approve for master".

Attachment 359275 [details] pushed as 1f7a162 - Adapt header buttons on low resolution displays