diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-06 13:25:23 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-06 13:25:23 -0400 |
| commit | 0524a179204a707239350c4090cf68a27012becd (patch) | |
| tree | 5065fd1ad05137c7dea4171693cfaffb36bf5267 /listbox_unix.go | |
| parent | f12bae7d3eeaa2ce890d8f5dc9e996ccebebe23f (diff) | |
Added borders to GTK+ Listboxes (thanks to jlindgren in irc.gimp.net/#gtk+); ends that TODO.
Diffstat (limited to 'listbox_unix.go')
| -rw-r--r-- | listbox_unix.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/listbox_unix.go b/listbox_unix.go index 240270d..a0be9db 100644 --- a/listbox_unix.go +++ b/listbox_unix.go @@ -83,6 +83,7 @@ func gListboxNew(multisel bool) *C.GtkWidget { } C.gtk_tree_selection_set_mode(C.gtk_tree_view_get_selection(tv), C.GtkSelectionMode(sel)) scrollarea := C.gtk_scrolled_window_new((*C.GtkAdjustment)(nil), (*C.GtkAdjustment)(nil)) + C.gtk_scrolled_window_set_shadow_type((*C.GtkScrolledWindow)(unsafe.Pointer(scrollarea)), C.GTK_SHADOW_IN) C.gtk_container_add((*C.GtkContainer)(unsafe.Pointer(scrollarea)), widget) return scrollarea } |
