watch .desktop & pinned file changes

This commit is contained in:
piotr
2021-09-24 03:01:55 +02:00
parent e6088e7345
commit c19814256f
8 changed files with 107 additions and 15 deletions

View File

@@ -67,7 +67,7 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
return true
} else if btnEvent.Button() == 3 {
unpinItem(entry.DesktopID)
pinnedFlowBox = setUpPinnedFlowBox()
//pinnedFlowBox = setUpPinnedFlowBox()
return true
}
return false
@@ -87,6 +87,7 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
item.(*gtk.Widget).SetCanFocus(false)
})
}
flowBox.ShowAll()
return flowBox
}
@@ -264,7 +265,6 @@ func flowBoxButton(entry desktopEntry) *gtk.Button {
return true
} else if btnEvent.Button() == 3 {
pinItem(ID)
pinnedFlowBox = setUpPinnedFlowBox()
return true
}
return false