| 1022 } |
1022 } |
| 1023 // TODO: destroy callback |
1023 // TODO: destroy callback |
| 1024 |
1024 |
| 1025 |
1025 |
| 1026 if(args->ondragstart) { |
1026 if(args->ondragstart) { |
| 1027 ui_listview_add_dnd(tableview, &args); |
1027 ui_listview_add_dnd(tableview, args); |
| 1028 } |
1028 } |
| 1029 if(args->ondrop) { |
1029 if(args->ondrop) { |
| 1030 ui_listview_enable_drop(tableview, &args); |
1030 ui_listview_enable_drop(tableview, args); |
| 1031 } |
1031 } |
| 1032 |
1032 |
| 1033 GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(view)); |
1033 GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(view)); |
| 1034 if(args->multiselection) { |
1034 if(args->multiselection) { |
| 1035 gtk_tree_selection_set_mode(selection, GTK_SELECTION_MULTIPLE); |
1035 gtk_tree_selection_set_mode(selection, GTK_SELECTION_MULTIPLE); |