move categories box up
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
11
main.go
11
main.go
@@ -274,6 +274,11 @@ func main() {
|
|||||||
searchEntry.SetMaxWidthChars(30)
|
searchEntry.SetMaxWidthChars(30)
|
||||||
searchBoxWrapper.PackStart(searchEntry, true, false, 0)
|
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)
|
pinnedWrapper, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 0)
|
||||||
outerVBox.PackStart(pinnedWrapper, false, false, 0)
|
outerVBox.PackStart(pinnedWrapper, false, false, 0)
|
||||||
|
|
||||||
@@ -281,11 +286,6 @@ func main() {
|
|||||||
outerVBox.PackStart(pinnedFlowBoxWrapper, false, false, 0)
|
outerVBox.PackStart(pinnedFlowBoxWrapper, false, false, 0)
|
||||||
pinnedFlowBox = setUpPinnedFlowBox()
|
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, _ = gtk.ScrolledWindowNew(nil, nil)
|
||||||
resultWindow.SetPolicy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
|
resultWindow.SetPolicy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
|
||||||
resultWindow.Connect("enter-notify-event", func() {
|
resultWindow.Connect("enter-notify-event", func() {
|
||||||
@@ -318,6 +318,7 @@ func main() {
|
|||||||
|
|
||||||
win.ShowAll()
|
win.ShowAll()
|
||||||
fileSearchResultWrapper.SetSizeRequest(appFlowBox.GetAllocatedWidth(), 1)
|
fileSearchResultWrapper.SetSizeRequest(appFlowBox.GetAllocatedWidth(), 1)
|
||||||
|
categoriesWrapper.SetSizeRequest(1, categoriesWrapper.GetAllocatedHeight()*2)
|
||||||
|
|
||||||
//searchEntry.GrabFocus()
|
//searchEntry.GrabFocus()
|
||||||
t := time.Now()
|
t := time.Now()
|
||||||
|
|||||||
Reference in New Issue
Block a user