diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-30 09:57:44 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-30 09:57:44 -0400 |
| commit | 33155f7496a818a1ed83fe49cccb63be7842bc81 (patch) | |
| tree | bbb14af3d92becf7d5ca5abfb28630a2b413ad93 /callbacks_unix.go | |
| parent | e032807546a96e6489d18a0e42ced51b7c31a55c (diff) | |
Reverted everything back to the old API.
Diffstat (limited to 'callbacks_unix.go')
| -rw-r--r-- | callbacks_unix.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go index 717150c..ff3e3b9 100644 --- a/callbacks_unix.go +++ b/callbacks_unix.go @@ -27,9 +27,8 @@ 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 + s.signal() + return C.TRUE // do not close the window } var window_delete_event_callback = C.GCallback(C.our_window_delete_event_callback) @@ -53,7 +52,7 @@ var window_configure_event_callback = C.GCallback(C.our_window_configure_event_c func our_button_clicked_callback(button *C.GtkButton, what C.gpointer) { // called when the user clicks a button s := (*sysData)(unsafe.Pointer(what)) - s.event() + s.signal() } var button_clicked_callback = C.GCallback(C.our_button_clicked_callback) |
