summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2025-02-12 17:28:07 +0100
committerkotontrion <[email protected]>2025-02-12 17:28:07 +0100
commitb3150026383a9351cc57635dbb6707d0e457e5ff (patch)
tree3925791d70b6507d82dd0d772833501b94a91c8d
parentcff43dc16a1fbdd20a808a8bbaa3dffe9b3632a9 (diff)
tray: add missing doc comments
-rw-r--r--lib/tray/trayItem.vala11
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;