! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce_panel_plugin_register_menu() docs unclear
Status:
RESOLVED: FIXED
Severity:
trivial
Product:
Xfce4-panel
Component:
Documentation

Comments

Description Diego Ongaro 2007-04-20 23:09:51 CEST
Based on this email [1], it'd be nice if the libxfce4panel API documentation [2] for xfce_panel_plugin_register_menu() could be updated. Here's an excerpt:

BEGIN QUOTE

> 2) registering menu with panel
>
> xfdesktop calls xfce_panel_plugin_register_menu() before each time the
> menu is opened. Is it sufficient to call
> xfce_panel_plugin_register_menu() only when the menu is (re-)created?
>
>   
No you have to call it every time the menu is opened. That function 
probably should have been called *_register_open_menu() or something. It 
allows the panel to properly handle focus, transparency, autohide and 
probably some other things when the menu closes."

END QUOTE

Perhaps the existing phrasing is a little confusing, too. You don't want to "register an open menu"; you want to register a menu opening.

[1] http://foo-projects.org/pipermail/xfce4-dev/2007-April/022965.html
[2] http://www.xfce.org/documentation/4.4/api/libxfce4panel/XfcePanelPlugin.html#xfce-panel-plugin-register-menu
Comment 1 Nick Schermer editbugs 2010-02-27 15:09:01 CET
Devel branch has been merged in master. A 4.7.0 release will follow soon. If you think this bug is not fixed? Feel free to reopen the bug.

Bug #3166

Reported by:
Diego Ongaro
Reported on: 2007-04-20
Last modified on: 2010-02-27

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
Unspecified

Attachments

Additional information