diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-26 22:51:12 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-26 22:51:12 -0400 |
| commit | 77297672dd67df94abbe23d494fa27638d0c15c3 (patch) | |
| tree | 54c47131ec0de90e0c7dfc2eccbce6ad246d04cb /listbox_unix.go | |
| parent | f75714a6bc9e8cf527df728263bec7f043e0b777 (diff) | |
Made the C.GoString() part of fromgchar() in gtkcasts_unix.go to reduce the number of calls to that function elsewhere (makes things simpler).
Diffstat (limited to 'listbox_unix.go')
| -rw-r--r-- | listbox_unix.go | 4 |
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 |
