Implemented initial window size on the GTK+ backend.
This commit is contained in:
parent
26065e45cf
commit
7d3504e25b
|
@ -59,7 +59,7 @@ func newWindow(title string, width int, height int) *window {
|
||||||
"size-allocate",
|
"size-allocate",
|
||||||
C.GCallback(C.windowResizing),
|
C.GCallback(C.windowResizing),
|
||||||
C.gpointer(unsafe.Pointer(w)))
|
C.gpointer(unsafe.Pointer(w)))
|
||||||
// TODO size
|
C.gtk_window_resize(w.window, C.gint(width), C.gint(height))
|
||||||
C.gtk_container_add(w.container, layoutw)
|
C.gtk_container_add(w.container, layoutw)
|
||||||
return w
|
return w
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue