Resolved TODOs in callbacks_unix.go. (For the returning FALSE TODO, I decided it would be safest to let event handlers propagate, as I did with Areas earlier.)

This commit is contained in:
Pietro Gagliardi 2014-06-02 22:07:50 -04:00
parent f170780324
commit 99059483a7
1 changed files with 2 additions and 4 deletions

View File

@ -42,10 +42,8 @@ func our_window_configure_event_callback(widget *C.GtkWidget, event *C.GdkEvent,
// top-left is (0,0) so no need for winheight // top-left is (0,0) so no need for winheight
s.doResize(0, 0, width, height, 0) s.doResize(0, 0, width, height, 0)
} }
// TODO redraw the window and all children? // no need to manually redraw everything: since we use gtk_widget_set_size_request(), that queues both resize and redraw for us (thanks Company in irc.gimp.net/#gtk+)
// returning false indicates that we continue processing events related to configure-event; if we choose not to, then after some controls have been added, the layout fails completely and everything stays in the starting position/size return C.FALSE // continue the event chain
// TODO make sure this is the case
return C.FALSE
} }
var window_configure_event_callback = C.GCallback(C.our_window_configure_event_callback) var window_configure_event_callback = C.GCallback(C.our_window_configure_event_callback)