summaryrefslogtreecommitdiff
path: root/gtkcalls_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-16 18:04:57 -0500
committerPietro Gagliardi <[email protected]>2014-02-16 18:04:57 -0500
commit622d7b15696d50767737e5d5621c647a818b91b9 (patch)
treeb59a63be7215a25e48456b7e025cca9f50784ce8 /gtkcalls_unix.go
parent7c365b39205310d042d17fcb0825e84ee19477a5 (diff)
Added window (and thus control) resizing. Other bugs have been fixed along the way.
Diffstat (limited to 'gtkcalls_unix.go')
-rw-r--r--gtkcalls_unix.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go
index fa69789..115060c 100644
--- a/gtkcalls_unix.go
+++ b/gtkcalls_unix.go
@@ -80,6 +80,13 @@ func gtk_window_resize(window *gtkWidget, width int, height int) {
C.gtk_window_resize((*C.GtkWindow)(unsafe.Pointer(window)), C.gint(width), C.gint(height))
}
+func gtk_window_get_size(window *gtkWidget) (int, int) {
+ var width, height C.gint
+
+ C.gtk_window_get_size((*C.GtkWindow)(unsafe.Pointer(window)), &width, &height)
+ return int(width), int(height)
+}
+
func gtk_fixed_new() *gtkWidget {
return (*gtkWidget)(unsafe.Pointer(C.gtk_fixed_new()))
}