diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-06 23:31:50 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-06 23:31:50 -0400 |
| commit | 14c7267b107e2a58a89be69a46f855742acf16ec (patch) | |
| tree | 9cdb2c57ac32fb5922c0218db958abd69983a5be /sysdata_unix.go | |
| parent | f5397475469b8e5b7a42d0bbb9bda4bca97f2b8a (diff) | |
Made the preferred size of an Area its size on GTK+ as well.
Diffstat (limited to 'sysdata_unix.go')
| -rw-r--r-- | sysdata_unix.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go index 654b326..21ed72c 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -18,6 +18,9 @@ type sysData struct { container *C.GtkWidget // for moving pulse chan bool // for sysData.progressPulse() clickCounter clickCounter // for Areas + // we probably don't need to save these, but we'll do so for sysData.preferredSize() just in case + areawidth int + areaheight int } type classData struct { @@ -358,6 +361,8 @@ func (s *sysData) setAreaSize(width int, height int) { uitask <- func() { c := gtkAreaGetControl(s.widget) gtk_widget_set_size_request(c, width, height) + s.areawidth = width // for sysData.preferredSize() + s.areaheight = height ret <- struct{}{} } <-ret |
