From kde-devel Mon Apr 30 19:58:57 2001 From: David Faure Date: Mon, 30 Apr 2001 19:58:57 +0000 To: kde-devel Subject: Re: creating new mimetypes and changing the trash icon ( from empty to full ) X-MARC-Message: https://marc.info/?l=kde-devel&m=98866073728995 On Saturday 28 April 2001 17:49, Rafi Yanai wrote: > hi, > > i'm developing a file-manager for KDE 2.x ( Krusader ) and i have 2 > questions: > > 1) i added an option to delete to the user trash directory ( from > KGlobalSettings::trashPath() ) > the files are moved to this directory but if the trash can was empty the > icon don't change... > i thought that the trash directory was controlled by a KDirLister that > checks for new files > and change the icon, but apparently that's not the case ( at least on my > system ). > so question 1: how can i change the trash can icon from empty to full ? Use the KDirNotify interface, FilesChanged specifically. The code that does it for konqueror is in kdebase/libkonq/konq_operations.cc -- David FAURE, david@mandrakesoft.com, faure@kde.org http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/ KDE, Making The Future of Computing Available Today >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<