summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;