~whereswaldon/gio-x

ref: 2edae8a2560135f81337aac777a83f170fda1a97 gio-x/notify/niotify_unsupported.go -rw-r--r-- 456 bytes
2edae8a2Chris Waldon scroll: fix screenshot path 2 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
}