Commit b40d87ab authored by Roman Alifanov's avatar Roman Alifanov

move func

parent b5ae85c1
......@@ -68,10 +68,6 @@ type SystemUpdaterWindow struct {
listbox *gtk.ListBox
}
func (sw *SystemUpdaterWindow) FillWithChanges(su *SystemUpdater, us apm.UpdaterSource) {
sw.listbox.Append(NewUpdateRow("System packages", us.GetPackageChanges()))
}
var mainWin *SystemUpdaterWindow
func GetSystemUpdaterWindow(app *gtk.Application) *SystemUpdaterWindow {
......@@ -94,6 +90,10 @@ func GetSystemUpdaterWindow(app *gtk.Application) *SystemUpdaterWindow {
return mainWin
}
func (sw *SystemUpdaterWindow) FillWithChanges(su *SystemUpdater, us apm.UpdaterSource) {
sw.listbox.Append(NewUpdateRow("System packages", us.GetPackageChanges()))
}
func (sw *SystemUpdaterWindow) Present() {
sw.win.Present()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment