Remove item from panel plugin menu

Nick Schermer nickschermer at gmail.com
Mon Dec 21 12:32:59 CET 2009


2009/12/21 Landry Breuil <landry.breuil at gmail.com>:
> On Mon, Dec 21, 2009 at 10:23 AM, Nick Schermer <nickschermer at gmail.com> wrote:
>> 2009/12/20 Landry Breuil <landry.breuil at gmail.com>:
>>> Hi,
>>>
>>> so far the public functions to handle panel rightclick menu only
>>> permits to block/unblock menu,
>>> and add an item. Is it possible to also add a function to remove items
>>> from this menu ? Or
>>> maybe there's another way to implement that i didn't found..
>>
>> You can always remove items by keeping a pointer to the widget (menu
>> item) and calling gtk_widget_destroy on it.
>
> Hm, makes sense.. i was more worried this was going to confuse panel plugin
> menu internals.

No, the panel only insert the menu item in the correct position.

Nick



More information about the Xfce4-dev mailing list