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 630892 - Show explanation why pictures source might be empty
Show explanation why pictures source might be empty
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Background
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
3.10
: 691813 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-09-29 11:49 UTC by Bastien Nocera
Modified: 2013-06-04 13:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First attempt at implementation of this feature (10.25 KB, patch)
2013-05-24 21:26 UTC, Joshua Lock
none Details | Review
First attempt at implementation of this feature (10.25 KB, patch)
2013-05-29 21:51 UTC, Joshua Lock
reviewed Details | Review
Screenshot (22.02 KB, image/png)
2013-05-31 13:13 UTC, Thomas Wood
  Details
layout guidance (7.55 KB, image/png)
2013-06-01 10:33 UTC, Allan Day
  Details
Updated screenshot (22.01 KB, image/png)
2013-06-03 23:48 UTC, Joshua Lock
  Details
Updated patch with spacing and alignment tweaks (10.36 KB, patch)
2013-06-03 23:49 UTC, Joshua Lock
committed Details | Review

Description Bastien Nocera 2010-09-29 11:49:44 UTC
+++ This bug was initially created as a clone of Bug #630417 +++

While trying the new background panel, I noticed some small issues:
- my pictures folder only contains subdirectories. if I select 'Pictures', the
sidebar stays empty. Probably best to not offer 'Pictures' at all, if there's
no pictures to choose from

Or show a "no pictures" label in the treeview instead.
Comment 1 Fabian Greffrath 2011-01-27 14:28:29 UTC
I have encountered the same issue today. My ~/Pictures directory is virtually empty and I have my favourite wallpaper pictures in a separate wallpapers/ subdirectory. It is sad to not be able to select them from the background panel. :(
Comment 2 Bastien Nocera 2011-02-14 23:26:57 UTC
(In reply to comment #1)
> I have encountered the same issue today. My ~/Pictures directory is virtually
> empty and I have my favourite wallpaper pictures in a separate wallpapers/
> subdirectory. It is sad to not be able to select them from the background
> panel. :(

You can add and remove "pictures" by hand now. Showing a button or a label in the list view would be nice though.
Comment 3 Thomas Wood 2013-05-15 10:44:55 UTC
*** Bug 691813 has been marked as a duplicate of this bug. ***
Comment 4 Joshua Lock 2013-05-24 01:54:33 UTC
I've begun working on this, my intention is follow an observed design pattern and crib from Documents - explicitly I intend to have a dimmed UI with the emblem-photos-symbolic icon and some text:

"No Pictures Found
You can add images to your Pictures folder and they will show up here."

with the word Pictures being a hyperlink which calls gtk_open_uri (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES))); 

I'd like to add some explanatory text to explain that only images in the top-level Pictures directory will be shown but am struggling with forming a sentence which doesn't sound like it's written by an engineer:

"images in sub-directories of the Pictures folder will not be shown"

Any suggestions here?
Comment 5 Joshua Lock 2013-05-24 21:26:13 UTC
Created attachment 245278 [details] [review]
First attempt at implementation of this feature

Here's a first attempt at this based on the EmptyResultsBox in gnome-documents.

My main concerns are that I'm not sure if the translatable string is formed in an appropriate way and the explanation I've added for what's wrong doesn't cover any of the details (we won't show screenshots, gifs or images in subdirectories).
Comment 6 Joshua Lock 2013-05-29 21:51:19 UTC
Created attachment 245597 [details] [review]
First attempt at implementation of this feature

Embarrassingly the first uploaded version of this patch didn't even compile, not sure how I managed that but here's the correct patch.
Comment 7 Thomas Wood 2013-05-31 12:57:17 UTC
Review of attachment 245597 [details] [review]:

We may need UI review from the design team, but the patch looks good otherwise.
Comment 8 Thomas Wood 2013-05-31 13:13:32 UTC
Created attachment 245723 [details]
Screenshot
Comment 9 William Jon McCann 2013-05-31 13:59:13 UTC
Pretty close. Should look like this https://raw.github.com/gnome-design-team/gnome-mockups/master/documents/documents-empty.png
Comment 10 Allan Day 2013-06-01 10:33:54 UTC
Created attachment 245816 [details]
layout guidance

Thanks for the patch, Joshua! I agree with Jon - this isn't far off. There are just a few tweaks to make to padding and alignment. The attached image might help with this; feel free to ask questions if you have them.
Comment 11 Joshua Lock 2013-06-03 23:48:21 UTC
Created attachment 245972 [details]
Updated screenshot

Thanks Jon and Allan for the feedback, in the attached screenshot I've changed the alignment of the labels such that they are both left-aligned and tweaked the spacing.
Comment 12 Joshua Lock 2013-06-03 23:49:15 UTC
Created attachment 245973 [details] [review]
Updated patch with spacing and alignment tweaks
Comment 13 Fabian Greffrath 2013-06-04 13:35:59 UTC
So, images in subdirectories of ~/Pictures will still not show up? Images that should get selected as wallpapers have to be lose files in ~/Pictures?