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 619171 - No visual indication while scanning for folders
No visual indication while scanning for folders
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
GIT
Other Linux
: High critical
: 0.7.0
Assigned To: F-spot maintainers
F-spot maintainers
: 536516 609725 (view as bug list)
Depends on:
Blocks: 619160
 
 
Reported: 2010-05-20 08:12 UTC by Ruben Vermeersch
Modified: 2010-06-05 20:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Select selected URI in option menu (793 bytes, patch)
2010-05-20 11:11 UTC, Paul Wellner Bou
committed Details | Review
Remove unused method (833 bytes, patch)
2010-05-20 16:20 UTC, Paul Wellner Bou
committed Details | Review
Reload preview pixmap to default if empty collection is found (803 bytes, patch)
2010-05-20 16:21 UTC, Paul Wellner Bou
committed Details | Review
Prepare import when selecting previous option menu items (3.33 KB, patch)
2010-05-20 16:22 UTC, Paul Wellner Bou
needs-work Details | Review
Prepare import when selecting previous option menu items (3.37 KB, patch)
2010-05-21 06:54 UTC, Paul Wellner Bou
committed Details | Review
scroll to top on changing source (827 bytes, patch)
2010-05-21 09:08 UTC, Paul Wellner Bou
none Details | Review
scroll to top on changing source (771 bytes, patch)
2010-05-21 09:10 UTC, Paul Wellner Bou
none Details | Review
scroll to top on changing source (697 bytes, patch)
2010-05-21 09:15 UTC, Paul Wellner Bou
committed Details | Review

Description Ruben Vermeersch 2010-05-20 08:12:42 UTC
There is no visual indication when scanning for folders during import. This is especially apparent when selecting a remote location over ssh, it appears as though the import dialog is frozen. In reality it is just walking the filesystem.

We need some Icon + Label (and possibly a spinner) somewhere that shows that it's actually doing stuff.
Comment 1 Ruben Vermeersch 2010-05-20 08:33:42 UTC
*** Bug 609725 has been marked as a duplicate of this bug. ***
Comment 2 Maxxer 2010-05-20 08:47:12 UTC
*** Bug 536516 has been marked as a duplicate of this bug. ***
Comment 3 Paul Wellner Bou 2010-05-20 11:11:44 UTC
Created attachment 161537 [details] [review]
Select selected URI in option menu

A first step to indicate that "something" happened when selecting a directory or
location. The name of this selection is now selected in the option menu.
Comment 4 Paul Wellner Bou 2010-05-20 16:20:51 UTC
Created attachment 161562 [details] [review]
Remove unused method
Comment 5 Paul Wellner Bou 2010-05-20 16:21:50 UTC
Created attachment 161563 [details] [review]
Reload preview pixmap to default if empty collection is found

Before the previous preview image was displayed even when selecting
a new import source, if this source does not contain images.
Comment 6 Paul Wellner Bou 2010-05-20 16:22:28 UTC
Created attachment 161564 [details] [review]
Prepare import when selecting previous option menu items

Was disabled in 2006, but should work.
Comment 7 Ruben Vermeersch 2010-05-20 22:28:35 UTC
Review of attachment 161564 [details] [review]:

Rest of the patch looks okay. Still need to test it though.

::: src/ImportCommand.cs
@@ +233,3 @@
+		public void HandleSourceSelectionChanged (object sender, EventArgs args)
+		{
+			SourceItem source = (SourceItem)((SourceMenu)((OptionMenu) sender).Menu).Active;

This line scares me to death, please split it up to make it readable.
Comment 8 Ruben Vermeersch 2010-05-20 22:31:25 UTC
Attachment 161537 [details] pushed as fd5e26e - Select selected URI in option menu
Attachment 161562 [details] pushed as f560c41 - Remove unused method
Attachment 161563 [details] pushed as dad45c0 - Reload preview pixmap to default if empty collection is found
Comment 9 Paul Wellner Bou 2010-05-21 06:54:37 UTC
Created attachment 161607 [details] [review]
Prepare import when selecting previous option menu items

https://bugzilla.gnome.org/show_bug.cgi?id=619171

Use correct casts
Comment 10 Ruben Vermeersch 2010-05-21 07:35:01 UTC
Comment on attachment 161607 [details] [review]
Prepare import when selecting previous option menu items

Attachment 161607 [details] pushed as 4a4788c - Prepare import when selecting previous option menu items

Added! One last thing: when the import is reset, the iconview should be
scrolled all the way up. Should be a one line fix, could you add this?

Test this behavior by:
* Browse to a folder
* Scroll down in the IconView
* Browse to another folder
* IconView is still showing the middle pictures :-)
Comment 11 Paul Wellner Bou 2010-05-21 09:08:26 UTC
Created attachment 161615 [details] [review]
scroll to top on changing source
Comment 12 Paul Wellner Bou 2010-05-21 09:10:57 UTC
Created attachment 161616 [details] [review]
scroll to top on changing source
Comment 13 Paul Wellner Bou 2010-05-21 09:15:11 UTC
Created attachment 161618 [details] [review]
scroll to top on changing source
Comment 14 Ruben Vermeersch 2010-05-21 09:19:33 UTC
Comment on attachment 161618 [details] [review]
scroll to top on changing source

Attachment 161618 [details] pushed as 5b0c695 - scroll to top on changing source

Thanks! Next patch on this bug should actually be a visual indicator of the
folder rescan ;-). Open separate patches for other issues.
Comment 15 Paul Wellner Bou 2010-05-22 13:08:35 UTC
Do we really need a full folder scan and afterwards the actual import process walking through the loop of found photos again? Can't we just start the import thread and for each item found we do a Prepare () before reading meta information and adding it to the import candidate collection and icon view?
Comment 16 Paul Wellner Bou 2010-05-22 13:46:03 UTC
No, may be we shouldn't... This wouldn't help anyway. Disregard this.
Comment 17 Ruben Vermeersch 2010-05-23 08:59:46 UTC
The easiest way to do this is probably by changing the progress message in the progress bar to something like "Scanning for photos", making it visible and have it pulsate. The actual scan will need to happen in a different thread or in a way that it doesn't block the main loop.
Comment 18 Ruben Vermeersch 2010-06-05 20:58:55 UTC
Pushed a new import system, this is fixed now.