summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listbox_unix.go15
-rw-r--r--sysdata_unix.go1
2 files changed, 0 insertions, 16 deletions
diff --git a/listbox_unix.go b/listbox_unix.go
index cc6ca44..d3615f1 100644
--- a/listbox_unix.go
+++ b/listbox_unix.go
@@ -136,21 +136,6 @@ func gListboxInsert(widget *gtkWidget, index int, what string) {
C.gtkListStoreSet(ls, &iter, cwhat)
}
-func gListboxSelected(widget *gtkWidget) int {
- var model *C.GtkTreeModel
- var iter C.GtkTreeIter
-
- tv := getTreeViewFrom(widget)
- sel := C.gtk_tree_view_get_selection(tv)
- if !fromgbool(C.gtk_tree_selection_get_selected(sel, &model, &iter)) {
- return -1
- }
- path := C.gtk_tree_model_get_path(model, &iter)
- idx := C.gtk_tree_path_get_indices(path)
- // idx is an array; simply derefernece the pointer to the first element to get the first element/only member
- return int(*idx)
-}
-
func gListboxSelectedMulti(widget *gtkWidget) (indices []int) {
var model *C.GtkTreeModel
diff --git a/sysdata_unix.go b/sysdata_unix.go
index 8b49cad..f55e463 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -105,7 +105,6 @@ var classTypes = [nctypes]*classData{
text: gListboxText,
append: gListboxAppend,
insert: gListboxInsert,
- selected: gListboxSelected,
selMulti: gListboxSelectedMulti,
smtexts: gListboxSelMultiTexts,
delete: gListboxDelete,