status line
This commit is contained in:
9
main.go
9
main.go
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user