[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: adding actions to the standard menu
From:       Chani <chanika () gmail ! com>
Date:       2011-06-25 16:39:12
Message-ID: 201106250939.31799.chanika () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On June 25, 2011 00:59:01 you wrote:
> Hi,
> 
> I'm using KDE 4.6.3 on Fedora 14.
> 
> I would like to add an action to the standard menu. Specifically, I
> would like to run the sleep action by popping up the standard menu using
> the right mouse button on the desktop and then to select sleep with the
> left mouse button.
> 
> How can I make this change?
> 
> Thanks in advance
> 
> Roberto

hmm. the standard menu doesn't have that as an option. you'd have to add it to 
the code... I can't remember exactly where that plugin lives, but the plasma-
devel list can tell you. :)
it would just be a matter of adding another action, like the logout one, and 
code to carry it out. if you're not sure how to invoke sleep, I'm sure there's 
an example in some other applet. iirc it was *very* similar to logout.

oh, and watch out for the ugly hack I did to set which actions are on by 
default.

if you want other people to benefit from your patch too, you can either submit 
it to the plasma team, or put your own plugin up on kde-apps.org.

-- 
Chani
http://chani.ca

["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic