summaryrefslogtreecommitdiff
path: root/redo/control_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-08 20:31:15 -0400
committerPietro Gagliardi <[email protected]>2014-08-08 20:31:15 -0400
commit8ee7b2b8097ee7d67bb38d0180e81f53c6d05326 (patch)
tree69f9f2df32472968ea29d6b0c65c6557da231447 /redo/control_unix.go
parentff6c3a7cbeb120892f50afbe849ecdbeb32aebc3 (diff)
Removed borders from Areas on the GTK+ backend.
Diffstat (limited to 'redo/control_unix.go')
-rw-r--r--redo/control_unix.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/redo/control_unix.go b/redo/control_unix.go
index 5531b3c..fad5c35 100644
--- a/redo/control_unix.go
+++ b/redo/control_unix.go
@@ -71,7 +71,7 @@ type scroller struct {
scrollwindow *C.GtkScrolledWindow
}
-func newScroller(widget *C.GtkWidget, native bool) *scroller {
+func newScroller(widget *C.GtkWidget, native bool, bordered bool) *scroller {
scrollwidget := C.gtk_scrolled_window_new(nil, nil)
s := &scroller{
scrollwidget: scrollwidget,
@@ -79,8 +79,9 @@ func newScroller(widget *C.GtkWidget, native bool) *scroller {
scrollwindow: (*C.GtkScrolledWindow)(unsafe.Pointer(scrollwidget)),
}
// give the scrolled window a border (thanks to jlindgren in irc.gimp.net/#gtk+)
- // TODO not on Areas
- C.gtk_scrolled_window_set_shadow_type(s.scrollwindow, C.GTK_SHADOW_IN)
+ if bordered {
+ C.gtk_scrolled_window_set_shadow_type(s.scrollwindow, C.GTK_SHADOW_IN)
+ }
if native {
C.gtk_container_add(s.scrollcontainer, widget)
} else {