summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listbox_unix.go2
-rw-r--r--prefsize_darwin.go16
-rw-r--r--prefsize_unix.go4
3 files changed, 9 insertions, 13 deletions
diff --git a/listbox_unix.go b/listbox_unix.go
index f769f51..18dafba 100644
--- a/listbox_unix.go
+++ b/listbox_unix.go
@@ -75,7 +75,7 @@ func gListboxNew(multisel bool) *C.GtkWidget {
tv := (*C.GtkTreeView)(unsafe.Pointer(widget))
column := C.gtkTreeViewColumnNewWithAttributes(C.gtk_cell_renderer_text_new())
C.gtk_tree_view_column_set_sizing(column, C.GTK_TREE_VIEW_COLUMN_AUTOSIZE)
- C.gtk_tree_view_column_set_resizable(column, C.FALSE) // not resizeable by the user; just autoresize
+ C.gtk_tree_view_column_set_resizable(column, C.FALSE) // not resizeable by the user; just autoresize
C.gtk_tree_view_append_column(tv, column)
C.gtk_tree_view_set_headers_visible(tv, C.FALSE)
sel := C.GTK_SELECTION_SINGLE
diff --git a/prefsize_darwin.go b/prefsize_darwin.go
index ae53b8b..629a748 100644
--- a/prefsize_darwin.go
+++ b/prefsize_darwin.go
@@ -34,14 +34,14 @@ func areaPrefSize(control C.id) (width int, height int) {
}
var prefsizefuncs = [nctypes]func(C.id) (int, int){
- c_button: controlPrefSize,
- c_checkbox: controlPrefSize,
- c_combobox: controlPrefSize,
- c_lineedit: controlPrefSize,
- c_label: controlPrefSize,
- c_listbox: listboxPrefSize,
- c_progressbar: pbarPrefSize,
- c_area: areaPrefSize,
+ c_button: controlPrefSize,
+ c_checkbox: controlPrefSize,
+ c_combobox: controlPrefSize,
+ c_lineedit: controlPrefSize,
+ c_label: controlPrefSize,
+ c_listbox: listboxPrefSize,
+ c_progressbar: pbarPrefSize,
+ c_area: areaPrefSize,
}
func (s *sysData) preferredSize() (width int, height int) {
diff --git a/prefsize_unix.go b/prefsize_unix.go
index 7ec2e86..7aecdab 100644
--- a/prefsize_unix.go
+++ b/prefsize_unix.go
@@ -4,10 +4,6 @@
package ui
-import (
- // ...
-)
-
// GTK+ 3 makes this easy: controls can tell us what their preferred size is!
// ...actually, it tells us two things: the "minimum size" and the "natural size".
// The "minimum size" is the smallest size we /can/ display /anything/. The "natural size" is the smallest size we would /prefer/ to display.