[Panel-devel] trashcan applet

Aaron J. Seigo aseigo at kde.org
Thu Nov 22 18:56:21 CET 2007


On Thursday 22 November 2007, Marco Martin wrote:
> Hi all,
> i was trying to learn a little bit about plasma, so i've tried to implement
> a little trashcan plasmoid, i've uploaded a copy at
> http://www.notmart.org/misc/Plasma-trash.tar.bz2

neat; do you have an svn account? if so, can you please put this in 
trunk/playground/base/plasma/applets? if not, i can put it in there for you 
and if you continue working on it we'll just get you your own account.

in the popup method, you probably want to change this:

    if (!pressed) {
        return;
    }

to

    if (!pressed || m_menu.isVisible()) {
        m_menu.hide();
        return;
    }

so that a second click hides the menu. (eventually we should probably have a 
icon-for-popups probably; but i'm hesitant to add more Plasma::Widgets at 
this point so close to 4.0 knowing as well that they are likely to be 
replaced in 4.1 =)

> a strange problem i ecoutered is if i run plasma from kde3 clicking on the
> open action it opens konqueror at the right location, under a kde4 sessions
> it says "malformaed url trash:/"
> the strange thing is that i get the same problem if i create an url
> plasmoid pointing at trash:/

yeah, issues with ioslaves in kde4 afaik.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071122/7047f48d/attachment.pgp 


More information about the Panel-devel mailing list