status line

This commit is contained in:
piotr
2021-05-24 04:34:11 +02:00
parent 1c9ad42e8b
commit 30287ff669
4 changed files with 20 additions and 4 deletions

View File

@@ -100,6 +100,8 @@ var (
pinnedFlowBox *gtk.FlowBox
pinnedFlowBoxWrapper *gtk.Box
catButtons []*gtk.Button
statusLabel *gtk.Label
status string
)
// Flags
@@ -186,7 +188,7 @@ func main() {
desktopFiles := listDesktopFiles()
println(fmt.Sprintf("Found %v desktop files", len(desktopFiles)))
parseDesktopFiles(desktopFiles)
status = parseDesktopFiles(desktopFiles)
// USER INTERFACE
gtk.Init(nil)
@@ -300,6 +302,11 @@ func main() {
resultWindow.Add(appFlowBoxWrapper)
appFlowBox = setUpAppsFlowBox(nil, "")
statusLineWrapper, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0)
outerVBox.PackStart(statusLineWrapper, false, false, 10)
statusLabel, _ = gtk.LabelNew(status)
statusLineWrapper.PackStart(statusLabel, true, false, 0)
/*alignmentBox, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0)
outerBox.PackStart(alignmentBox, true, true, 0)