summaryrefslogtreecommitdiff
path: root/callbacks_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-01 09:44:57 -0400
committerPietro Gagliardi <[email protected]>2014-07-01 09:44:57 -0400
commitabb642071dd97dadbaa676415c7221201ed9be06 (patch)
treec9a96d487c266484c2aaa2de4c7e266a7352f57a /callbacks_unix.go
parent969700f790abbdb08befbeccfaa2e048299a7e6f (diff)
Made the default action for Window.Closing reject the close request.
Diffstat (limited to 'callbacks_unix.go')
-rw-r--r--callbacks_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go
index e627583..b9ed870 100644
--- a/callbacks_unix.go
+++ b/callbacks_unix.go
@@ -27,7 +27,7 @@ import "C"
func our_window_delete_event_callback(widget *C.GtkWidget, event *C.GdkEvent, what C.gpointer) C.gboolean {
// called when the user tries to close the window
s := (*sysData)(unsafe.Pointer(what))
- return togbool(s.close()) // ! because TRUE means don't close
+ return togbool(!s.close()) // ! because TRUE means don't close
}
var window_delete_event_callback = C.GCallback(C.our_window_delete_event_callback)