// AddRow adds a row for the applet in the applet list. // func (widget *ListAdd) AddRow(name string, app datatype.Appleter) { iter := widget.newIter(name, app) widget.model.SetCols(iter, gtk.Cols{ RowKey: name, RowName: app.GetTitle(), RowCategory: app.FormatCategory(), }) // int iSize = cairo_dock_search_icon_size (GTK_ICON_SIZE_LARGE_TOOLBAR); // gchar *cIcon = cairo_dock_search_icon_s_path (pModule->pVisitCard->cIconFilePath, iSize); img := app.GetIconFilePath() if pix, e := common.PixbufNewFromFile(img, iconSize); !widget.log.Err(e, "Load icon") { widget.model.SetValue(iter, RowIcon, pix) } widget.setActiveIter(iter, app.IsActive()) }