Skip to content

Commit

Permalink
Set ItemIsMenu
Browse files Browse the repository at this point in the history
xfce4-panel assumes true as a default here as because otherwise it would just try the possibly failing activation if the property is not set.

Closes #1805
  • Loading branch information
cschramm committed Aug 1, 2022
1 parent 30c2529 commit 48ed144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blueman/main/indicators/StatusNotifierItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@ class StatusNotifierItemService(DbusService):
Category = "Hardware"
Id = "blueman"
Title = "blueman"
ItemIsMenu = False

def __init__(self, icon_name: str, on_activate_status_icon: Callable[[], None],
on_activate_menu_item: "MenuItemActivator") -> None:
super().__init__(None, "org.kde.StatusNotifierItem", "/org/blueman/sni", Gio.BusType.SESSION,
{"Category": "s", "Id": "s", "IconName": "s", "Status": "s", "Title": "s",
"ToolTip": "(sa(iiay)ss)", "Menu": "o"})
"ToolTip": "(sa(iiay)ss)", "Menu": "o", "ItemIsMenu": "b"})
self.add_method("Activate", ("i", "i"), "", lambda x, y: on_activate_status_icon())

self.menu = MenuService(on_activate_menu_item)
Expand Down

0 comments on commit 48ed144

Please sign in to comment.