[Panel-devel] [PATCH] tooltips + taskbar thumbnails

Jason Stubbs jasonbstubbs at gmail.com
Thu Dec 27 14:15:46 CET 2007


On Thursday 27 December 2007 16:50:59 JST, Chani wrote:
> having applet menu options in the task context menu would be much less
> ugly, of course. the problem I see (from briefly glancing at the code) is
> that the task management code currently hands us a TaskRMBMenu, instead of
> something we can easily add to like a list of QActions...

As chatted about on IRC, I've worked up a patch that adds a new virtual to 
Applet that can be overridden to return a menu based on a given point. The 
default implementation just returns 0. The containment then calls this to 
with the context menu event position and adds the applet menu as a submenu
if it returns a menu.

For the tasks applet, this simply means overriding the method, figuring out 
which item (if any) is being requested and returning the menu rather than 
displaying it.

Patches for each of the above attached and a screenshot too. :)

-- 
Jason Stubbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libplasma-baseContextMenu.patch
Type: text/x-diff
Size: 2883 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071227/74b0d32d/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tasks-baseContextMenu.patch
Type: text/x-diff
Size: 3677 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071227/74b0d32d/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: baseContextMenu.png
Type: image/png
Size: 19323 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071227/74b0d32d/attachment-0001.png 


More information about the Panel-devel mailing list