diff --git a/bin/nwg-drawer b/bin/nwg-drawer index 75afe08..046e5a3 100755 Binary files a/bin/nwg-drawer and b/bin/nwg-drawer differ diff --git a/main.go b/main.go index 44a123c..b2d4648 100644 --- a/main.go +++ b/main.go @@ -274,6 +274,11 @@ func main() { searchEntry.SetMaxWidthChars(30) searchBoxWrapper.PackStart(searchEntry, true, false, 0) + categoriesWrapper, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0) + categoriesButtonBox := setUpCategoriesButtonBox() + categoriesWrapper.PackStart(categoriesButtonBox, true, false, 0) + outerVBox.PackStart(categoriesWrapper, false, false, 10) + pinnedWrapper, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0) outerVBox.PackStart(pinnedWrapper, false, false, 0) @@ -281,11 +286,6 @@ func main() { outerVBox.PackStart(pinnedFlowBoxWrapper, false, false, 0) pinnedFlowBox = setUpPinnedFlowBox() - categoriesWrapper, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0) - categoriesButtonBox := setUpCategoriesButtonBox() - categoriesWrapper.PackStart(categoriesButtonBox, true, false, 0) - outerVBox.PackStart(categoriesWrapper, false, false, 10) - resultWindow, _ = gtk.ScrolledWindowNew(nil, nil) resultWindow.SetPolicy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) resultWindow.Connect("enter-notify-event", func() { @@ -318,6 +318,7 @@ func main() { win.ShowAll() fileSearchResultWrapper.SetSizeRequest(appFlowBox.GetAllocatedWidth(), 1) + categoriesWrapper.SetSizeRequest(1, categoriesWrapper.GetAllocatedHeight()*2) //searchEntry.GrabFocus() t := time.Now()