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 721673 - Hide unsupported UI elements
Hide unsupported UI elements
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Display
unspecified
Other All
: Normal normal
: ---
Assigned To: Debarshi Ray
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-07 03:12 UTC by Cosimo Cecchi
Modified: 2014-01-09 17:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
display: hide Size label when empty (2.00 KB, patch)
2014-01-07 03:12 UTC, Cosimo Cecchi
committed Details | Review
display: show only rotation options if we support them (7.39 KB, patch)
2014-01-07 03:12 UTC, Cosimo Cecchi
needs-work Details | Review
display: show only rotation options if we support them (8.26 KB, patch)
2014-01-07 19:29 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2014-01-07 03:12:38 UTC
We should hide some elements from the Displays panel if we know they're not supported. For instance, Size and Rotation.
The second patch depends on some new libgnome-desktop API from bug 721672.
Comment 1 Cosimo Cecchi 2014-01-07 03:12:39 UTC
Created attachment 265492 [details] [review]
display: hide Size label when empty

We currently just display an empty string next to the Size row if we
can't compute that information. Hide it instead.
Comment 2 Cosimo Cecchi 2014-01-07 03:12:43 UTC
Created attachment 265493 [details] [review]
display: show only rotation options if we support them

Use the new libgnome-desktop API and determine if we can show or not
rotation options.
Comment 3 Bastien Nocera 2014-01-07 07:05:15 UTC
Review of attachment 265493 [details] [review]:

What about if upside-down is available but not 90 degrees rotations?
Comment 4 Bastien Nocera 2014-01-07 07:09:59 UTC
Review of attachment 265492 [details] [review]:

Looks good to commit to master and gnome-3-10.

Why is gnome_rr_output_get_physical_size failing though?
Comment 5 Cosimo Cecchi 2014-01-07 17:51:27 UTC
Comment on attachment 265492 [details] [review]
display: hide Size label when empty

Attachment 265492 [details] pushed as 53801be - display: hide Size label when empty
Comment 6 Cosimo Cecchi 2014-01-07 17:54:18 UTC
(In reply to comment #4)
> Review of attachment 265492 [details] [review]:
> 
> Looks good to commit to master and gnome-3-10.
> 
> Why is gnome_rr_output_get_physical_size failing though?

Thanks, I pushed this. It's not really failing - it just reports zero, and that value comes directly from mutter through Xorg. Buggy/incomplete display controller drivers... See also bug 721674 for a somewhat related fix.
Comment 7 Cosimo Cecchi 2014-01-07 19:29:39 UTC
Created attachment 265564 [details] [review]
display: show only rotation options if we support them

Use the new libgnome-desktop API and determine if we can show or not
rotation options.
Comment 8 Bastien Nocera 2014-01-09 16:39:42 UTC
Review of attachment 265564 [details] [review]:

Looks good.
Comment 9 Cosimo Cecchi 2014-01-09 17:44:12 UTC
Attachment 265564 [details] pushed as d0a832b - display: show only rotation options if we support them