summaryrefslogtreecommitdiff
path: root/area_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-23 20:54:11 -0400
committerPietro Gagliardi <[email protected]>2014-03-23 20:54:11 -0400
commita41f58286646057d1c022e260662944efd7b85ce (patch)
treed675fabc592c366821ad143439fcc5aece4d7a48 /area_unix.go
parent0cc13633cb99b59a605296591c81732c11ba06f8 (diff)
Added Area resizing. Everything mostly works, but not making things smaller...
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 4e4788b..83aafc5 100644
--- a/area_unix.go
+++ b/area_unix.go
@@ -24,7 +24,7 @@ import "C"
func gtkAreaNew() *gtkWidget {
drawingarea := C.gtk_drawing_area_new()
- C.gtk_widget_set_size_request(drawingarea, 320, 240)
+ C.gtk_widget_set_size_request(drawingarea, 100, 100) // default initial size (TODO do we need it?); use C. to avoid casting drawingarea
// 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)