' Gambas class file
Inherits DBusObject
Event org_freedesktop_StatusNotifierItem_IconChanged
Event org_freedesktop_StatusNotifierItem_NewStatus(sStatus As String)
Property Read org_freedesktop_StatusNotifierItem_Category As String
Public Sub org_freedesktop_StatusNotifierItem_Activate(X As Integer, Y As Integer)
End
Private Function org_freedesktop_StatusNotifierItem_Category_Read() As String
End
...
Public Sub Main()
DBus.Session.Register(hObject, "/StatusNotifierItem", ["org.freedesktop.StatusNotifierItem"])
' This is needed at the moment so that the current application is visible under different names
DBus.Session._RequestName("org.freedesktop.StatusNotifierItem-" & CStr(Application.Handle) & "-1", True)
DBus.Session.Raise(hObject, "org.freedesktop.StatusNotifierItem.IconChanged")
DBus.Session.Raise(hObject, "org.freedesktop.StatusNotifierItem.NewStatus", ["Chuck!"])
Wait 1
DBus.Session.Unregister(hObject)
End