diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-04 23:31:11 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-04 23:31:11 -0400 |
| commit | 28764445b9d8073b6fc9af6779bfa3b485b1ae06 (patch) | |
| tree | d2767c5361353c9eab33ccdaae87f87d0b0d2ddd /redo/control_unix.go | |
| parent | 95151ce6eac593827c27ebba8aa5f4a7d8c11f45 (diff) | |
Re-added Area on the GTK+ backend. Not yet working; need to reconnect signals.
Diffstat (limited to 'redo/control_unix.go')
| -rw-r--r-- | redo/control_unix.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/redo/control_unix.go b/redo/control_unix.go index 2c27b1b..84ef4b7 100644 --- a/redo/control_unix.go +++ b/redo/control_unix.go @@ -88,9 +88,13 @@ 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) - // TODO use native here - C.gtk_container_add(s.scrollcontainer, widget) + if native { + C.gtk_container_add(s.scrollcontainer, widget) + } else { + C.gtk_scrolled_window_add_with_viewport(s.scrollwindow, widget) + } return s } |
