summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--area.go1
-rw-r--r--sysdata_unix.go1
-rw-r--r--todo.md4
3 files changed, 2 insertions, 4 deletions
diff --git a/area.go b/area.go
index 27cba62..48af56f 100644
--- a/area.go
+++ b/area.go
@@ -293,6 +293,7 @@ func NewArea(width int, height int, handler AreaHandler) *Area {
// SetSize sets the Area's internal drawing size.
// It has no effect on the actual control size.
// SetSize is safe for concurrent use; if the Area is being repainted or is handling an event, SetSize will wait for that to complete before changing the Area's size.
+// SetSize will also signal the entirety of the Area to be redrawn as in RepaintAll.
// It panics if width or height is zero or negative.
func (a *Area) SetSize(width int, height int) {
a.lock.Lock()
diff --git a/sysdata_unix.go b/sysdata_unix.go
index 04a6119..31cb7a6 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -363,6 +363,7 @@ func (s *sysData) setAreaSize(width int, height int) {
gtk_widget_set_size_request(c, width, height)
s.areawidth = width // for sysData.preferredSize()
s.areaheight = height
+ C.gtk_widget_queue_draw(c)
ret <- struct{}{}
}
<-ret
diff --git a/todo.md b/todo.md
index 0d4c8f9..905552f 100644
--- a/todo.md
+++ b/todo.md
@@ -16,7 +16,3 @@ UNIX:
- several people suggested connecting to size-allocate of the GtkLayout, but then I can wind up in a situation where there's extra padding or border space in the direction I resized
- [12:55] <myklgo> pietro10: I meant to mention: 1073): Gtk-WARNING **: Theme parsing error: gtk.css:72:20: Not using units is deprecated. Assuming 'px'. twice.
- figure out why Page Up/Page Down does tab stops
-
-ALL PLATFORMS:
-- document that Area.SetAreaSize() will repaint the whole Area
- - make sure this happens on both GTK+ and Mac OS X (it does happen on Windows already)