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

List:       kde-panel-devel
Subject:    Re: settings menu in plasma2 plasmoids
From:       Marco Martin <notmart () gmail ! com>
Date:       2013-09-08 14:52:41
Message-ID: 201309081652.41442.notmart () gmail ! com
[Download RAW message or body]

On Saturday 07 September 2013, Heena Mahour wrote:
> Hi ,
> I want to ask that why am I unable to view  a menu like this
> http://picpaste.com/plasma4calendar-6xZmBFis.png on right clicking plasma2
> plasmoids   as in case with plasma1 plasmoids ?
> Also I want to have an action in this menu ,so I did
>   function action_open() {
>    //do task
>     }
>     Component.onCompleted: {
>         plasmoid.action_open = function() {
>             //do task
>         }
>         plasmoid.setAction("open", "Open","document-open");
> }
> But somehow neither it is showing a menu as in the screenshot on
> rightclicking nor the actions .
> Kindly suggest something .I am getting error as "plasmoid not defined " in
> statements like plasmoid.action_open,plasmoid.runCommand etc

what do you mean?
actions in context menu?
the trashcan already adds actions there and they do work

-- 
Marco Martin
_______________________________________________
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