summaryrefslogtreecommitdiff
path: root/area_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'area_unix.go')
-rw-r--r--area_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/area_unix.go b/area_unix.go
index cfa5741..af2202a 100644
--- a/area_unix.go
+++ b/area_unix.go
@@ -22,7 +22,7 @@ import "C"
func gtkAreaNew() *C.GtkWidget {
drawingarea := C.gtk_drawing_area_new()
- C.gtk_widget_set_size_request(drawingarea, 100, 100) // default initial size (TODO do we need it?); use C. to avoid casting drawingarea
+ // the Area's size will be set later
// we need to explicitly subscribe to mouse events with GtkDrawingArea
C.gtk_widget_add_events(drawingarea,
C.GDK_BUTTON_PRESS_MASK | C.GDK_BUTTON_RELEASE_MASK | C.GDK_POINTER_MOTION_MASK | C.GDK_BUTTON_MOTION_MASK)