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 152928 - Inclusion of trashapplet in gnome-applets
Inclusion of trashapplet in gnome-applets
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: trash applet
git master
Other All
: Normal enhancement
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-09-17 16:38 UTC by Michiel Sikkes
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: 2.10.0
GNOME version: Unversioned Enhancement


Attachments
Patch to add trashapplet to gnome-applets (73.34 KB, patch)
2004-09-19 18:55 UTC, Michiel Sikkes
none Details | Review

Description Michiel Sikkes 2004-09-17 16:38:54 UTC
Finally here's my request :-). I would really like it if my Trash Applet
(http://luon.net/~michiels/trashapplet) would be included in gnome-applets. I
think it would be a useful contribution to the current applets.

Some current features are:
- DND files onto the applet to move them to the trash.
- Display how many objects are in Trash by pointing your mouse on the applet.
- Icon on the applet displays the current state of the Trash (full/empty)

I've already received lots of patches from people and some positive reactions.
Ubuntu (http://ubuntulinux.org) already has a patched version in their
distribution. 

I would really like to be able to make use of Gnome Bugzilla, Gnome CVS and the
other services so it will be easy to organise the bugreports, and let more
people work on the applet.

Cheers,
Michiel
Comment 1 Sebastien Bacher 2004-09-17 17:02:18 UTC
Just to confirm, the applet is cool and works pretty fine.  It would be nice to
get it integrated to  gnome-applets soon.
Comment 2 Danielle Madeley 2004-09-18 02:00:38 UTC
I agree, I want to put it in.

JamesH indicated over beer, that Canonical had a raft of patches that will be
useful to GNOME as well.

Michiel, I am under the impression that you don't have CVS access. That should
be fine for the moment, as you can work through me, or one of the other
maintainers, for the time being.

The easiest way for you to get it in is to provide me with a patch that adds it
to the latest GNOME-Applets (cvs HEAD), including automake-fu in the base
Makefile.am and configure.in.
Comment 3 Jeff Waugh 2004-09-18 09:43:13 UTC
I wonder if it wouldn't be better in Nautilus itself? Trash Applet in
gnome-applets will have strange effects on the dependency graph. :-)
Comment 4 Danielle Madeley 2004-09-18 10:01:41 UTC
Does it depend on anything in Nautilus? I was under the impression it only
depended on things in GNOME-VFS.
Comment 5 Michiel Sikkes 2004-09-19 12:02:19 UTC
It does actually also depend on libeel. Which is rather overkill actually
because it only uses one variable: EEL_TRASH_URI. I /could/ replace that by a
hardcoded "trash:", which is dirty, but drops the depend.
Comment 6 Michiel Sikkes 2004-09-19 14:37:51 UTC
Oh, another note. Since I've received more patches and am applying them in the
luon.net CVS repository I notice we depend on some more things than only
EEL_TRASH_URI. So I think the libeel depedancy is pretty nesscairy.
Comment 7 Michiel Sikkes 2004-09-19 18:55:00 UTC
Ok, here is the patch to add trashapplet to gnome-applets. I've tested it, so it
works. I haven't migrated the po files though, but I'll do this when trashapplet
hits gnome-applets.
Comment 8 Michiel Sikkes 2004-09-19 18:55:53 UTC
Created attachment 31700 [details] [review]
Patch to add trashapplet to gnome-applets
Comment 9 Danielle Madeley 2004-09-20 06:56:45 UTC
Ok, this is now committed to CVS.

http://cvs.gnome.org/viewcvs/gnome-applets/trashapplet/

Check to make sure all the appropriate files are present. I'll get all the
appropriate component added to Bugzilla. Is there anything else that will need
doing?
Comment 10 Michiel Sikkes 2004-09-20 14:07:41 UTC
Ok, thank you this is great! :-) I will test the build (again) as soon as I get 
home. The only thing I can think of is updating the po files so it includes the 
trashapplet strings. 

I will apply for a CVS account as soon as possible, so I can edit the code 
myself.
Comment 11 James Henstridge 2004-09-21 01:37:23 UTC
One bug that is probably worth considering is this one reported against the
Ubuntu preview:
    https://bugzilla.ubuntu.com/show_bug.cgi?id=1416

Currently the trash applet only works with the ~/.Trash folder and not the
separate Trash folders created on other volumes (floppy disks, NFS volumes,
etc).  This means that trash applet might think the trash is empty when nautilus
thinks it is full, and sometimes moving files to the trash with trash applet can
take longer since it might have to copy the contents over the network.
Comment 12 Danielle Madeley 2004-09-21 04:30:59 UTC
Assigning this bug (and therefore all future bugs) to the trash component.

I have updated the .server file to reflect the correct bugzilla information.
Comment 13 Michiel Sikkes 2004-09-22 17:49:36 UTC
I think the migration went succesfully, translations should be automatically
updated by the GTP scripts. Closing this bug.
Comment 14 Reviczky Ádám János 2004-09-25 00:04:25 UTC
Additional features like eject CD/DVD when you DND the CD/DVD icon over the
trash applet, and disconnect/umount drives when you DND the drive icon over the
trash applet (all OSX-like features) would be great!
/maybe change the icon of the trash applet  - at hold the CD/DVD or device over
the applet - to an eject or something similar icon/