Added borders to GTK+ Listboxes (thanks to jlindgren in irc.gimp.net/#gtk+); ends that TODO.
This commit is contained in:
parent
f12bae7d3e
commit
0524a17920
|
@ -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
|
||||
}
|
||||
|
|
1
todo.md
1
todo.md
|
@ -1,5 +1,4 @@
|
|||
so I don't forget:
|
||||
- [GTK+] Listbox should have a border style
|
||||
- should Labels be selectable?
|
||||
- Message boxes should not show secondary text if none is specified. [TODO figure out what I meant by this]
|
||||
- note that you can change event channels before opening the window; this allows unifying menus/toolbars/etc.
|
||||
|
|
Loading…
Reference in New Issue