Esempio n. 1
0
func dialogChangelog() {
	str := getChangelog()
	if str == "" {
		return
	}
	log.Info("", str) // Also show it on console.
	// TODO: icon shouldn't be nil, grab first icon.
	// 			Icon *pFirstIcon = cairo_dock_get_first_icon (g_pMainDock->icons);
	dialog.NewDialog(nil, globals.Maindock().Container(), cdtype.DialogData{
		Message:   str,
		Icon:      globals.FileCairoDockIcon(),
		UseMarkup: true})
}
Esempio n. 2
0
// PopupDialog opens a dialog box. See cdtype.AppIcon.
//
func (o *AppGldi) PopupDialog(data cdtype.DialogData) error {
	addIdle(func() {
		dialog.NewDialog(o.Icon, o.Icon.GetContainer(), data)
	})
	return nil
}