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 332162 - in browser mode the trash icon on location bar doesn't update
in browser mode the trash icon on location bar doesn't update
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Trash
2.21.x
Other All
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 338052 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-22 11:46 UTC by m96
Modified: 2008-02-21 09:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch (2.39 KB, patch)
2008-02-21 00:18 UTC, Cosimo Cecchi
committed Details | Review

Description m96 2006-02-22 11:46:58 UTC
Please describe the problem:
i'm using nautilus in browser mode (not spatial) and have the 'Location Bar'
visible. if there is something in the trash and open the trash the trash icon in
location bar shows 'full trash' icon - which is correct. but after emptying the
trash the icon on the 'Location Bar' shows still the same icon. even the trash
icon on my desktop is updated and shows an 'empty trash' icon.

after closing and opening the nautilus windows it show the correct icon ('empty
trash') in the location bar.

Steps to reproduce:
1. set nautilus to browser mode
2. delete some files/directories with nautilus (trash icon on desktop is full)
3. double click trash icon to open trash
4. mark all files in trash and press 'delete' to empty trash
5. confirm to delete those files (this will result in updating the trash icon on
destop - which will show empty, but not the icon on the location bar!)


Actual results:
see description

Expected results:
updated trash icon in 'Location Bar'

Does this happen every time?
yes

Other information:
system: debian unstable
Comment 1 Sergej Kotliar 2006-04-10 15:07:52 UTC
Yeah, this is still there in 2.14.
Comment 2 Sergej Kotliar 2006-04-11 09:29:37 UTC
*** Bug 338052 has been marked as a duplicate of this bug. ***
Comment 3 Cosimo Cecchi 2008-02-20 13:46:00 UTC
Still there with 2.21.91.
Comment 4 Cosimo Cecchi 2008-02-21 00:18:16 UTC
Created attachment 105675 [details] [review]
patch

This is roughly the same code used in the sidebar, works fine.
Comment 5 Cosimo Cecchi 2008-02-21 09:32:45 UTC
Committed to trunk.

2008-02-21  Cosimo Cecchi  <cosimoc@gnome.org>

	* src/nautilus-pathbar.c: (trash_state_changed_cb),
	(nautilus_path_bar_init):
	Update the trash icon on the pathbar according to the trash state.
	(#332162).