diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-02 22:07:50 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-02 22:07:50 -0400 |
| commit | 99059483a7a5cc1fe14219bb2e5c9a4fba76e4e7 (patch) | |
| tree | 46c713c00fb84735a79d85e1daa14ef72c5fe891 /callbacks_unix.go | |
| parent | f17078032462c6d9f2649cbae134df736478c001 (diff) | |
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.)
Diffstat (limited to 'callbacks_unix.go')
| -rw-r--r-- | callbacks_unix.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go index f072cb2..8c441e1 100644 --- a/callbacks_unix.go +++ b/callbacks_unix.go @@ -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 s.doResize(0, 0, width, height, 0) } - // TODO redraw the window and all children? - // 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 - // TODO make sure this is the case - return C.FALSE + // 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+) + return C.FALSE // continue the event chain } var window_configure_event_callback = C.GCallback(C.our_window_configure_event_callback) |
