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 147994 - add a file open animation
add a file open animation
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: File and Folder Operations
3.14.x
Other All
: High enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 164181 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-07-20 13:58 UTC by Vincent Noel
Modified: 2021-06-18 15:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
starting point (17.07 KB, patch)
2005-06-02 15:27 UTC, Vincent Noel
none Details | Review
much better patch (17.42 KB, patch)
2005-06-02 17:37 UTC, Vincent Noel
needs-work Details | Review
An experiment (20.45 KB, patch)
2005-06-02 20:38 UTC, Vincent Noel
none Details | Review
much better experiment (20.53 KB, patch)
2005-06-03 17:00 UTC, Vincent Noel
needs-work Details | Review

Description Vincent Noel 2004-07-20 13:59:00 UTC
Description of Problem:
When you open a file in nautilus by
double-clicking on it, there is no notification
that an application has just been launched. If the
app takes a long time to initialize, we don't know
if something is happening or not.

I think nautilus should display a notification
when the user double-click on a file to open it,
just to let the user know something is happening. 

MacOS X does this with a little animation of the
icon, like it's exploding and vanishing. Nautilus
could re-use the animation from the panel, when a
user clicks on a launcher (expanding boxes).
Comment 1 Bryan W Clark 2005-01-05 19:49:55 UTC
seems like this is because nautilus doesn't forward startup-notification which
is probably related to bug 162424
Comment 2 Vincent Noel 2005-01-05 20:56:42 UTC
Well I don't know...
AFAIK startup-notification is to display a busy cursor while the application is
launching. This bug is about nautilus displaying an animation when launching a
file...
Comment 3 Sebastien Bacher 2005-01-31 00:24:04 UTC
*** Bug 164181 has been marked as a duplicate of this bug. ***
Comment 4 Sebastien Bacher 2005-02-12 22:33:31 UTC
"launching a file" ? what do you mean ? when you click on a file you launch an
app to open it ...
Comment 5 Vincent Noel 2005-02-12 22:57:30 UTC
Yes, indeed. And when that happens, I'd like to see some animation to show that
my click did something. For example, if you click on a Word file, OpenOffice
might launch, but there's no way to be sure your click was registered.

On MacOSX, when you click on a file you get a nice animation of the file.
I'd like to see at least the same animation that happens when you launch an
application from the panel (expanding boxes).
Comment 6 Vincent Noel 2005-02-12 23:02:20 UTC
Just to clear up my comment in #2 :
startup notification is about letting the desktop know when an app is launched,
to let it show something in the taskbar (ie "epiphany starting" or something
like that) and set up the "busy" mouse cursor while launching.
This bug is conceptually much simpler : it's just about getting some kind of
visual feedback, an animation. In my mind, it should just require
copy-and-pasting the animation code from the panel... but I might be wrong :)
Comment 7 Sebastien Bacher 2005-02-12 23:37:00 UTC
You say that you want a notification, but you have just described 2 of them
(taskbar and cursor). 
BTW here the panel doesn't move an icon when I click on them, it just changes
the cursor ... is that an option somewhere ?
Comment 8 Vincent Noel 2005-02-13 00:02:31 UTC
You're right, but unfortunately some applications do not follow the
startup-notification thing... (IIRC, OpenOffice does not)
So a little animation would help (and visually it's more interesting too ;))

You can see an example of startup notification in the taskbar in bug #166956
(attachment #37322 [details]). If this does not happen when you open a file in nautilus,
it's another bug I was not aware of ;)
Comment 9 Sebastien Bacher 2005-02-13 01:09:50 UTC
right
Comment 10 Vincent Noel 2005-06-01 19:14:07 UTC
I'm trying to write a patch for this, but I'm having trouble finding the screen
coordinates of the icon for a NautilusFile...
What is the official way to do this ?
Comment 11 Vincent Noel 2005-06-02 15:27:16 UTC
Created attachment 47148 [details] [review]
starting point

Here is a starting point for that feature. It only works on the desktop for
now, but it works well and gives a good idea of what this feature could bring
to nautilus.
When you double-click a file on your desktop, you'll get a zooming box
animation.
Comment 12 Vincent Noel 2005-06-02 17:37:38 UTC
Created attachment 47150 [details] [review]
much better patch

Here is a much better patch that works in any window in Icon View.
It doesn't work in list view yet.
Comment 13 Christian Neumair 2005-06-02 18:04:15 UTC
Whoho! You know how much you rock, don't you? :)
Comment 14 Vincent Noel 2005-06-02 20:38:36 UTC
Created attachment 47164 [details] [review]
An experiment

Just for kicks, here is a different version of the patch :
with it nautilus shows the zooming boxes when you open files but also when you
open nautilus folders (with the boxes zooming from/to the correct screen
locations). 

Current problems with the patch :
* It doesn't work for folders that have never been opened in nautilus before
(e.g. a newly-created folder). I guess it's just a matter of calling
xstuff_queued_zoom_animate in the correct place (in the present state, this can
cause funny effects with zooms coming/going to incorrect places)
* It doesn't work for "special" desktop folders (computer/mounted
drives/trash).	I guess it's just a matter of calling xstuff_queue_zoom at the
right place. 
* It slows down the opening of folders a little as the folder has to wait
before the animation is over to draw the folder.

Other than that, it works pretty well.
Comment 15 Vincent Noel 2005-06-03 17:00:33 UTC
Created attachment 47200 [details] [review]
much better experiment

This patch adds zooming boxes when opening a file or folder in all icon views
(desktop, computer:///, trash, spatial or browsing mode...), with the animation
coming and going to the right place. All the previous problems have been
solved.
Comment 16 Alexander Larsson 2005-06-07 09:58:38 UTC
You've added code to fm-directory-view that only works for icon views. This
breaks for other types of views, like the list view.

the xstuff.c files seems to contains a lot of stuff that we aren't using. Also,
that code is completely not in the nautilus coding style or namespace. Only the
required functions should be non-static, and they should be in the nautilus
namespace.

Also, I slightly worry about the zoom animation and delays. Right now, on a fast
machine the whole zoom takes 60 microseconds, this is really hard to see.
However, we can't really extend it because the way the animation is done
requires an X grab, and we don't want to have long X grabs. Furthermore, any
increase of time makes actually opening a folder slower. For slow machines it
slows down opening of a folder, and of fast machines its really hard to even see
the zoom...



Comment 17 Alexandre Franke 2014-12-25 01:47:36 UTC
Vincent, do you think you can make an updated patch taking into account the feedback from Alexander above?
Comment 18 André Klapper 2021-06-18 15:48:45 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.