diff options
Diffstat (limited to 'callbacks_unix.go')
| -rw-r--r-- | callbacks_unix.go | 2 |
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) |
