~whereswaldon/gio-x

ref: 25b1f7920092ac9d03657ab3cfbf6c9460b075e1 gio-x/notify/notify_unsupported.go -rw-r--r-- 456 bytes
25b1f792Chris Waldon notify: remove dangling golang references to niotify 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//+build !linux,!android,!openbsd,!freebsd,!dragonfly,!netbsd,!darwin

package notify

type unsupportedManager struct{}

func newManager() (Manager, error) {
	return Manager{unsupportedManager{}}, nil
}

func (u unsupportedManager) CreateNotification(title, text string) (*Notification, error) {
	return &Notification{unsupportedNotification{}}, nil
}

type unsupportedNotification struct{}

func (u unsupportedNotification) Cancel() error {
	return nil
}