diff options
author | kotontrion <[email protected]> | 2025-02-12 17:28:07 +0100 |
---|---|---|
committer | kotontrion <[email protected]> | 2025-02-12 17:28:07 +0100 |
commit | b3150026383a9351cc57635dbb6707d0e457e5ff (patch) | |
tree | 3925791d70b6507d82dd0d772833501b94a91c8d /lib | |
parent | cff43dc16a1fbdd20a808a8bbaa3dffe9b3632a9 (diff) |
tray: add missing doc comments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tray/trayItem.vala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/tray/trayItem.vala b/lib/tray/trayItem.vala index 6da51cb..f753cd0 100644 --- a/lib/tray/trayItem.vala +++ b/lib/tray/trayItem.vala @@ -165,13 +165,22 @@ public class TrayItem : Object { private DBusMenu.Importer menu_importer; + /** + * The MenuModel describing the menu for this TrayItem to be used with a MenuButton or PopoverMenu. + * The actions for this menu are defined in [[email protected]:action-group]. + */ public MenuModel? menu_model { owned get { if (menu_importer == null) return null; return menu_importer.model; } } - + + /** + * The ActionGroup containing the actions for the menu. All actions have the `dbusmenu` prefix and are + * setup to work with the [[email protected]:menu-model]. Make sure to insert this action group + * into a parent widget of the menu, eg the MenuButton for which the MenuModel for this TrayItem is set. + */ public ActionGroup? action_group { owned get { if (menu_importer == null) return null; |