diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-30 23:48:08 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-30 23:48:08 -0400 |
| commit | 3565889e15e387fce435c3ffadeaea9823fb2eed (patch) | |
| tree | 93cf5de89c9010fc16da37949d441d97e3386f89 /callbacks_unix.go | |
| parent | ffa1bbe0b91a8c812ddcea5c5d65e55f60d07f33 (diff) | |
Made Window.Closing a callback closure.
Diffstat (limited to 'callbacks_unix.go')
| -rw-r--r-- | callbacks_unix.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go index 717150c..e627583 100644 --- a/callbacks_unix.go +++ b/callbacks_unix.go @@ -27,9 +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)) - b := false // TODO - s.close(&b) - return togbool(!b) // ! 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) |
