close result win on btn release

This commit is contained in:
piotr
2024-10-03 01:04:53 +02:00
parent 12da77fbfc
commit 46a526ced8

View File

@@ -605,6 +605,12 @@ func setUpOperationResultWindow(operation string, result string) {
return true return true
}) })
// any button to close the window
win.Connect("button-release-event", func(_ *gtk.Window, event *gdk.Event) bool {
win.Destroy()
return true
})
outerVBox, _ := gtk.BoxNew(gtk.ORIENTATION_VERTICAL, 6) outerVBox, _ := gtk.BoxNew(gtk.ORIENTATION_VERTICAL, 6)
win.Add(outerVBox) win.Add(outerVBox)