summaryrefslogtreecommitdiff
path: root/callbacks_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-25 23:44:22 -0400
committerPietro Gagliardi <[email protected]>2014-06-25 23:44:22 -0400
commit4a68c3cb7a984d144378c683e7587dadd5ebe62f (patch)
treed5486b9bfe6c5f841b20334bbb0b21dbdc2df798 /callbacks_unix.go
parent6e170ad1dbe842081a6d28f9cccf6c86d6fd0a4e (diff)
Applied the new control sizing system to the GTK+ backend.
Diffstat (limited to 'callbacks_unix.go')
-rw-r--r--callbacks_unix.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go
index f66be7c..ff3e3b9 100644
--- a/callbacks_unix.go
+++ b/callbacks_unix.go
@@ -37,10 +37,10 @@ var window_delete_event_callback = C.GCallback(C.our_window_delete_event_callbac
func our_window_configure_event_callback(widget *C.GtkWidget, event *C.GdkEvent, what C.gpointer) C.gboolean {
// called when the window is resized
s := (*sysData)(unsafe.Pointer(what))
- if s.container != nil && s.resize != nil { // wait for init
+ if s.container != nil && s.allocate != nil { // wait for init
width, height := gtk_window_get_size(s.widget)
- // top-left is (0,0) so no need for winheight
- s.doResize(0, 0, width, height, 0)
+ // top-left is (0,0) here
+ s.resizeWindow(width, height)
}
// 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