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 336822 - f-spot screensaver should have an 'all pictures' option
f-spot screensaver should have an 'all pictures' option
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.2.1
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-01 12:31 UTC by Luis Villa
Modified: 2007-06-09 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First attempt at supporting 'All' photos (381 bytes, patch)
2006-09-09 10:16 UTC, Simon Geard
none Details | Review
complete patch with UI (6.87 KB, patch)
2007-02-15 13:35 UTC, Stephane Delcroix
none Details | Review
mandatory screenshot (25.86 KB, image/png)
2007-02-15 13:36 UTC, Stephane Delcroix
  Details
updated patch (6.85 KB, patch)
2007-06-09 19:25 UTC, Stephane Delcroix
committed Details | Review

Description Luis Villa 2006-04-01 12:31:40 UTC
Please describe the problem:
Currently I show *all* my pictures in xscreensaver, and very many of them aren't
tagged yet in f-spot. It would be really nice if I could just select 'show all
pictures' in my f-spot screensaver options.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Bengt Thuree 2006-04-01 12:58:59 UTC
Changing this to an Enhancement Request
Comment 2 Simon Geard 2006-09-09 10:16:16 UTC
Created attachment 72443 [details] [review]
First attempt at supporting 'All' photos

I also don't like being forced to choose a category, since I don't have a set of photos tagged as favorites - I want to see everything.

So, here's a rough patch that achieves that, by defaulting to showing all photos if the GConf key doesn't correspond to a tag. Maybe not the *right* way, but it works as a starting point.

I've not made any UI changes (I can't follow that code so well), so the only way to activate it is by using gconf-editor to change the tagid to something invalid (such as 0 or -1).
Comment 3 Luis Villa 2006-10-15 05:38:31 UTC
confirming and noting that this is still in 0.2.1 :(
Comment 4 Stephane Delcroix 2006-12-07 22:45:56 UTC
Good try Simon,

I think this is a bit better:

                                Photo [] photos;
                                if (tag != null)
                                        photos = db.Photos.Query (new Tag [] { tag } );
+                               else if ((int) Preferences.Get (Preferences.SCREENSAVER_TAG) == 0)
+                                       photos = db.Photos.Query (new Tag [] {});
                                else
                                        photos = new Photo [0];

this way, the screensaver will only show all pictures if the tag_id is 0. Otherwise, selecting a tag for the screensaver, then removing it will start displaying all your collection as screensaver.

I'm currently checking what are the possibilities in the UI...
Comment 5 Stephane Delcroix 2007-02-15 13:35:16 UTC
Created attachment 82602 [details] [review]
complete patch with UI

this patch adds the UI part.

Since the screensaver is not working for me, PLEASE TEST THIS AND REPORT (it should be ok and working, but...)
Comment 6 Stephane Delcroix 2007-02-15 13:36:11 UTC
Created attachment 82603 [details]
mandatory screenshot
Comment 7 Luis Villa 2007-02-15 13:38:40 UTC
I might suggest it just be the first entry in the tags dropdown- something like 'all tags' or 'all pictures'- instead of a radio selection. Seems like it should be easy enough to find there, without cluttering the dialog.
Comment 8 Stephane Delcroix 2007-02-15 16:52:03 UTC
Hi Luis,
I thought about that also, but for some widget reusabilty reason it's not possible...
Comment 9 Luis Villa 2007-02-15 16:55:41 UTC
Ah, well, not a huge deal. Hope it makes it into an f-spot release before Feisty freezes :)
Comment 10 Luis Villa 2007-02-15 16:56:02 UTC
And thanks!
Comment 11 Stephane Delcroix 2007-02-15 18:26:11 UTC
Hi Luis,

Feisty froze one week ago :(

Am just waiting for one positive test to push that in svn
Comment 12 Chris Cobb 2007-06-07 12:29:55 UTC
(In reply to comment #11)
> Hi Luis,
> 
> Feisty froze one week ago :(
> 
> Am just waiting for one positive test to push that in svn
> 

Comment 13 Bengt Thuree 2007-06-07 14:35:13 UTC
Hmm...

Must be doing something wrong here...

Applied the patch, and fixed Core.cs so it would patch/compile
Index: src/Core.cs
===================================================================
--- src/Core.cs (revision 3138)
+++ src/Core.cs (working copy)
@@ -154,6 +154,8 @@
                                Photo [] photos;
                                if (tag != null)
                                        photos = Database.Photos.Query (new Tag [] { tag } );
+                               else if ((int) Preferences.Get (Preferences.SCREENSAVER_TAG) == 0)
+                                       photos = Database.Photos.Query ((Tag []) null );
                                else
                                        photos = new Photo [0];


But when I select All Images, I get 0 photos.
Selecting any other tag works fine.

footnote:
I am not installing f-spot in the default location, so I modify the f-spot-screensaver file to point to ~/unstable/f-spot/bin/f-spot.
My screensaver f-spot do not work when it is applied from within F-Spot, but when I let Gnome set it (Changing from Blank, to F-Spot Photos for instance), the F-Spot screensaver starts. Easiest to verify is to use the preview function in Gnome screensaver settings. :)
Comment 14 Maxxer 2007-06-08 23:19:54 UTC
(In reply to comment #13)
> I am not installing f-spot in the default location, so I modify the
> f-spot-screensaver file to point to ~/unstable/f-spot/bin/f-spot.

Where is the file you modified? I couldn't find it :(
I just get a black screen
Comment 15 Bengt Thuree 2007-06-09 00:35:53 UTC
Index: tools/f-spot-screensaver
===================================================================
--- tools/f-spot-screensaver    (revision 3138)
+++ tools/f-spot-screensaver    (working copy)
@@ -1,2 +1,3 @@
 #!/bin/sh
-exec f-spot --slideshow
+#exec f-spot --slideshow
+exec /home/bengt/unstable/f-spot/bin/f-spot --slideshow

Comment 16 Maxxer 2007-06-09 10:25:56 UTC
guessed so :)
I also forgot to add the --basedir and --photodir in the file.

btw using the button in preferences I get only a black screen, any tag choosen.
if I manually run libexec/gnome-screensaver/f-spot-screensaver the screensaver starts, and all the pictures are shown correctly.
Comment 17 Stephane Delcroix 2007-06-09 19:25:47 UTC
Created attachment 89657 [details] [review]
updated patch

works fine now. committed in r3143