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 706429 - Display preview issues
Display preview issues
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Display
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Debarshi Ray
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-20 17:34 UTC by Thomas Wood
Modified: 2013-08-30 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
display: improve the display previews (8.78 KB, patch)
2013-08-27 10:54 UTC, Thomas Wood
committed Details | Review
Screenshot Before (12.90 KB, image/png)
2013-08-29 13:32 UTC, Thomas Wood
  Details
Screenshot After (26.35 KB, image/png)
2013-08-29 13:33 UTC, Thomas Wood
  Details

Description Thomas Wood 2013-08-20 17:34:13 UTC
As described in bug 706115, there are a few issues with the display previews:

 * Black squares with numbers on the thumbnails need work (rounded corners,
centered numbers) -  they should look exactly the same as the actual OSD
 * Use a "screenshot" of the display (wallpaper + top bar, if there is one) for
the thumbnail
Comment 1 Thomas Wood 2013-08-27 10:54:10 UTC
Created attachment 253234 [details] [review]
display: improve the display previews

Add the current background to the display previews and improve the
display number indicators.
Comment 2 Thomas Wood 2013-08-29 13:32:54 UTC
Created attachment 253501 [details]
Screenshot Before
Comment 3 Thomas Wood 2013-08-29 13:33:17 UTC
Created attachment 253502 [details]
Screenshot After
Comment 4 Debarshi Ray 2013-08-30 10:07:18 UTC
Review of attachment 253234 [details] [review]:

Looks good.

Unrelated to this patch, I noticed that even though cc-display-panel.c includes math.h it doesn't link to libm.

::: panels/display/cc-display-panel.c
@@ +70,3 @@
 
+  GnomeBG *background;
+  GnomeDesktopThumbnailFactory *thumbnail_factory;

Do we really need them for the whole lifetime of the object? They are only used once. I don't really care. Upto you.
Comment 5 Thomas Wood 2013-08-30 12:40:33 UTC
Comment on attachment 253234 [details] [review]
display: improve the display previews

Attachment 253234 [details] pushed as 183e318 - display: improve the display previews

(In reply to comment #4)
  > ::: panels/display/cc-display-panel.c
  > @@ +70,3 @@
  > 
  > +  GnomeBG *background;
  > +  GnomeDesktopThumbnailFactory *thumbnail_factory;
  > 
  > Do we really need them for the whole lifetime of the object? They are only used
  > once. I don't really care. Upto you.

The background and thumbnail factory objects are used each time the preview is painted, which is why they are kept for the lifetime of the object.