Documentation ¶
Overview ¶
Package Notifications is a desktop notifications history applet for Cairo-Dock.
requires a hacked version of the dbus api (that wont stop after eavesdropping a message).
Index ¶
Constants ¶
View Source
const ( ActionNone = iota ActionShowAll ActionClear )
List of actions defined in this applet. Order must match defineActions declaration order.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Applet ¶
type Applet struct { cdtype.AppBase // Applet base and dock connection. // contains filtered or unexported fields }
Applet defines a dock applet.
func (*Applet) UpdateCount ¶
UpdateCount shows the number of messages on the icon, and displays the alternate icon if count > 0.
type Notif ¶
type Notif struct {
Sender, Icon, Title, Content string
ID uint32
// contains filtered or unexported fields
}
Notif defines a single Dbus notification.
type NotifConfig ¶
NotifConfig defines the notification service configuration.
type Notifs ¶
type Notifs struct { NotifConfig C chan *dbus.Message // contains filtered or unexported fields }
Notifs handles Dbus notifications management.
func (*Notifs) Listen ¶
func (notifs *Notifs) Listen()
Listen to eavesdropped messages to find notifications..
func (*Notifs) SetOnCount ¶
SetOnCount sets the callback for notifications count change.
Click to show internal directories.
Click to hide internal directories.