summaryrefslogtreecommitdiff
path: root/table_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-09-02 09:07:06 -0400
committerPietro Gagliardi <[email protected]>2014-09-02 09:07:06 -0400
commitb1bac2e61bfb57a00497c5651dc73d6e303afc9b (patch)
tree969dd464deec1ba32fe4931f26dd92ad1d32b829 /table_windows.go
parent3ea1e0978060a145df12ba264590885fc92baad2 (diff)
Removed more debugging spiel.
Diffstat (limited to 'table_windows.go')
-rw-r--r--table_windows.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/table_windows.go b/table_windows.go
index 21d681d..f69cc14 100644
--- a/table_windows.go
+++ b/table_windows.go
@@ -81,21 +81,6 @@ func (t *table) OnSelected(f func()) {
t.selected.set(f)
}
-func printMask(item *C.LVITEMW) {
-fmt.Printf("%d %d ", item.iItem, item.iSubItem)
-x := item.mask
-if x&C.LVIF_COLUMNS != 0{ fmt.Print("LVIF_COLUMNS ") }
-if x&C.LVIF_DI_SETITEM != 0{ fmt.Print("LVIF_DI_SETITEM ") }
-if x&C.LVIF_GROUPID != 0{ fmt.Print("LVIF_GROUPID ") }
-if x&C.LVIF_IMAGE != 0{ fmt.Print("LVIF_IMAGE ") }
-if x&C.LVIF_INDENT != 0{ fmt.Print("LVIF_INDENT ") }
-if x&C.LVIF_NORECOMPUTE != 0{ fmt.Print("LVIF_NORECOMPUTE ") }
-if x&C.LVIF_PARAM != 0{ fmt.Print("LVIF_PARAM ") }
-if x&C.LVIF_STATE != 0{ fmt.Print("LVIF_STATE ") }
-if x&C.LVIF_TEXT != 0{ fmt.Print("LVIF_TEXT ") }
-fmt.Print("\n")
-}
-
//export tableGetCell
func tableGetCell(data unsafe.Pointer, item *C.LVITEMW) {
t := (*table)(data)
@@ -103,7 +88,6 @@ func tableGetCell(data unsafe.Pointer, item *C.LVITEMW) {
defer t.RUnlock()
d := reflect.Indirect(reflect.ValueOf(t.data))
datum := d.Index(int(item.iItem)).Field(int(item.iSubItem))
-printMask(item)
isText := true
if item.mask & C.LVIF_IMAGE != 0 {
if datum.Type() == reflect.TypeOf(ImageIndex(0)) {