-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.go
41 lines (33 loc) · 833 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package Notifications
import "github.com/sqp/godock/libs/cdtype"
const (
defaultNotifAltIcon = "img/active.png"
)
//
//------------------------------------------------------------------[ CONFIG ]--
type appletConf struct {
cdtype.ConfGroupIconBoth `group:"Icon"`
NotifConfig `group:"Configuration"`
groupConfig `group:"Configuration"`
}
type groupConfig struct {
NotifAltIcon string
DialogDuration int
DialogTemplate cdtype.Template `default:"dialognotif"`
}
//
//----------------------------------------------------------[ ACTIONS & MENU ]--
// List of actions defined in this applet. Order must match defineActions
// declaration order.
//
const (
ActionNone = iota
ActionShowAll
ActionClear
)
// Actions available in the menu.
//
var menuUser = []int{
ActionShowAll,
ActionClear,
}