From 33155f7496a818a1ed83fe49cccb63be7842bc81 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 30 Jun 2014 09:57:44 -0400 Subject: Reverted everything back to the old API. --- callbacks_unix.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'callbacks_unix.go') 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) -- cgit v1.2.3