From abb642071dd97dadbaa676415c7221201ed9be06 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 1 Jul 2014 09:44:57 -0400 Subject: Made the default action for Window.Closing reject the close request. --- callbacks_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'callbacks_unix.go') 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) -- cgit v1.2.3