Commit b40d87ab authored by Roman Alifanov's avatar Roman Alifanov

move func

parent b5ae85c1
...@@ -68,10 +68,6 @@ type SystemUpdaterWindow struct { ...@@ -68,10 +68,6 @@ type SystemUpdaterWindow struct {
listbox *gtk.ListBox listbox *gtk.ListBox
} }
func (sw *SystemUpdaterWindow) FillWithChanges(su *SystemUpdater, us apm.UpdaterSource) {
sw.listbox.Append(NewUpdateRow("System packages", us.GetPackageChanges()))
}
var mainWin *SystemUpdaterWindow var mainWin *SystemUpdaterWindow
func GetSystemUpdaterWindow(app *gtk.Application) *SystemUpdaterWindow { func GetSystemUpdaterWindow(app *gtk.Application) *SystemUpdaterWindow {
...@@ -94,6 +90,10 @@ func GetSystemUpdaterWindow(app *gtk.Application) *SystemUpdaterWindow { ...@@ -94,6 +90,10 @@ func GetSystemUpdaterWindow(app *gtk.Application) *SystemUpdaterWindow {
return mainWin return mainWin
} }
func (sw *SystemUpdaterWindow) FillWithChanges(su *SystemUpdater, us apm.UpdaterSource) {
sw.listbox.Append(NewUpdateRow("System packages", us.GetPackageChanges()))
}
func (sw *SystemUpdaterWindow) Present() { func (sw *SystemUpdaterWindow) Present() {
sw.win.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