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 672925 - Pictures folder items displayed in random order
Pictures folder items displayed in random order
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Background
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 682394 (view as bug list)
Depends on: 674635
Blocks:
 
 
Reported: 2012-03-27 15:00 UTC by William Jon McCann
Modified: 2012-08-21 21:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Ignore Screenshots for backgrounds (1.67 KB, patch)
2012-03-28 19:05 UTC, William Jon McCann
none Details | Review
Sort Pictures folder by name (2.45 KB, patch)
2012-03-28 19:05 UTC, William Jon McCann
committed Details | Review
Ignore Screenshots for backgrounds (1.66 KB, patch)
2012-03-28 19:22 UTC, William Jon McCann
needs-work Details | Review

Description William Jon McCann 2012-03-27 15:00:56 UTC
It is incredibly hard to find stuff in the Pictures folder option of the background settings because they are displayed in random order.

I think recent order is much better.
Comment 1 William Jon McCann 2012-03-28 16:27:30 UTC
And we should filter out showing screenshots.
Comment 2 William Jon McCann 2012-03-28 16:27:59 UTC
or for that matter small images and things that obviously make no sense as wallpapers.
Comment 3 William Jon McCann 2012-03-28 19:05:42 UTC
Created attachment 210805 [details] [review]
Ignore Screenshots for backgrounds
Comment 4 William Jon McCann 2012-03-28 19:05:44 UTC
Created attachment 210806 [details] [review]
Sort Pictures folder by name
Comment 5 William Jon McCann 2012-03-28 19:22:36 UTC
Created attachment 210812 [details] [review]
Ignore Screenshots for backgrounds
Comment 6 Bastien Nocera 2012-03-28 21:54:43 UTC
Review of attachment 210806 [details] [review]:

::: panels/background/bg-pictures-source.c
@@ +198,3 @@
     }
 
+  cc_background_item_load (item, NULL);

What does this do?
Comment 7 William Jon McCann 2012-03-28 22:07:59 UTC
(In reply to comment #6)
> Review of attachment 210806 [details] [review]:
> 
> ::: panels/background/bg-pictures-source.c
> @@ +198,3 @@
>      }
> 
> +  cc_background_item_load (item, NULL);
> 
> What does this do?

calls update_info so we get a valid name. Basically there is no usable metadata until we do that. Pretty unfortunate API I agree.
Comment 8 Bastien Nocera 2012-03-28 22:41:42 UTC
Review of attachment 210812 [details] [review]:

Looks fine for master after branching.

::: panels/background/bg-pictures-source.c
@@ +248,3 @@
+     create screenshots with the name format
+     "Screenshot from %s.png" */
+  if (g_strrstr (basename, _("Screenshot")))

Why g_strrstr and not strstr?
Comment 9 Bastien Nocera 2012-03-28 22:42:33 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Review of attachment 210806 [details] [review] [details]:
> > 
> > ::: panels/background/bg-pictures-source.c
> > @@ +198,3 @@
> >      }
> > 
> > +  cc_background_item_load (item, NULL);
> > 
> > What does this do?
> 
> calls update_info so we get a valid name. Basically there is no usable metadata
> until we do that. Pretty unfortunate API I agree.

Looks fine.
Comment 10 Tobias Wolf 2012-03-30 23:57:47 UTC
> And we should filter out showing screenshots.

That’s hilarious. Why did you start to dump them in there in the first place?
First you create a potpurri of random images and then you grep them out afterwards again.

But you’re right, finding what you need in XDG_PICTURES is a pain. Which makes taking trains of screenshots a pain by inference.
Comment 11 Bastien Nocera 2012-04-23 16:24:57 UTC
(In reply to comment #10)
> > And we should filter out showing screenshots.
> 
> That’s hilarious.

This isn't a forum, and I'd be happy if you kept your snarky comments to yourself, especially when I've already commented on the patches.
Comment 12 Bastien Nocera 2012-04-23 16:28:17 UTC
Review of attachment 210812 [details] [review]:

I would actually prefer to filter based on the "software" generating it. See bug 674635
Comment 13 Bastien Nocera 2012-04-23 16:28:35 UTC
Review of attachment 210806 [details] [review]:

Looks fine.
Comment 14 Bastien Nocera 2012-04-26 10:12:30 UTC
Comment on attachment 210812 [details] [review]
Ignore Screenshots for backgrounds

commit a3055b3202ca4446f15fa7941c25811a7b4e2f7c
Author: Bastien Nocera <hadess@hadess.net>
Date:   Thu Apr 26 11:07:08 2012 +0100

    background: Ignore screenshots
    
    Don't list screenshots coming from gnome-screenshot in our
    Pictures source.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672925
Comment 15 Simonas Kazlauskas 2012-08-21 21:00:21 UTC
*** Bug 682394 has been marked as a duplicate of this bug. ***