From 77297672dd67df94abbe23d494fa27638d0c15c3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 26 Apr 2014 22:51:12 -0400 Subject: Made the C.GoString() part of fromgchar() in gtkcasts_unix.go to reduce the number of calls to that function elsewhere (makes things simpler). --- listbox_unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'listbox_unix.go') 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 -- cgit v1.2.3