~ubuntu-push-hackers/ubuntu-push/automatic

« back to all changes in this revision

Viewing changes to click/click.go

moved bus/notification/app_helper to click/cappinfo; added AppId.Icon(); some fixes and cleanups suggested by pedronis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
        "launchpad.net/go-xdg/v0"
30
30
 
 
31
        "launchpad.net/ubuntu-push/click/cappinfo"
31
32
        "launchpad.net/ubuntu-push/click/cclick"
32
33
)
33
34
 
104
105
        return app.Versioned() + ".desktop"
105
106
}
106
107
 
 
108
func (app *AppId) Icon() string {
 
109
        return cappinfo.AppIconFromDesktopId(app.DesktopId())
 
110
}
 
111
 
107
112
// ClickUser exposes the click package registry for the user.
108
113
type ClickUser struct {
109
114
        ccu  cclick.CClickUser