summaryrefslogtreecommitdiff
path: root/listbox_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'listbox_unix.go')
-rw-r--r--listbox_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/listbox_unix.go b/listbox_unix.go
index f8fc5fe..9687a54 100644
--- a/listbox_unix.go
+++ b/listbox_unix.go
@@ -113,7 +113,7 @@ func gListboxText(widget *C.GtkWidget) string {
return ""
}
C.gtkTreeModelGet(model, &iter, &gs)
- return C.GoString(fromgchar(gs))
+ return fromgchar(gs)
}
func gListboxAppend(widget *C.GtkWidget, what string) {
@@ -181,7 +181,7 @@ func gListboxSelMultiTexts(widget *C.GtkWidget) (texts []string) {
return
}
C.gtkTreeModelGet(model, &iter, &gs)
- texts[i] = C.GoString(fromgchar(gs))
+ texts[i] = fromgchar(gs)
rows = rows.next
}
return texts