diff -r 1ecc1183f046 -r 3fc287f06305 ui/gtk/model.c --- a/ui/gtk/model.c Sun Feb 11 15:59:56 2024 +0100 +++ b/ui/gtk/model.c Mon Feb 12 17:32:02 2024 +0100 @@ -436,6 +436,7 @@ { //printf("drag received\n"); UiListModel *model = UI_LIST_MODEL(drag_dest); + /* if(model->model->drop) { gint *indices = gtk_tree_path_get_indices(dest_path); gint row = indices[0]; @@ -449,6 +450,7 @@ s.data = selection_data; model->model->drop(&e, &s, model->var->value, row); } + */ return TRUE; } @@ -459,6 +461,7 @@ { //printf("row_drop_possible\n"); UiListModel *model = UI_LIST_MODEL(drag_dest); + /* if(model->model->candrop) { gint *indices = gtk_tree_path_get_indices(dest_path); gint row = indices[0]; @@ -472,6 +475,7 @@ s.data = selection_data; return model->model->candrop(&e, &s, model->var->value, row); } + */ return TRUE; } @@ -481,6 +485,7 @@ { //printf("row_draggable\n"); UiListModel *model = UI_LIST_MODEL(drag_source); + /* if(model->model->candrag) { gint *indices = gtk_tree_path_get_indices(path); gint row = indices[0]; @@ -492,6 +497,7 @@ e.intval = 0; return model->model->candrag(&e, model->var->value, row); } + */ return TRUE; } @@ -502,6 +508,7 @@ { //printf("drag_data_get\n"); UiListModel *model = UI_LIST_MODEL(drag_source); + /* if(model->model->data_get) { gint *indices = gtk_tree_path_get_indices(path); gint row = indices[0]; @@ -515,6 +522,7 @@ s.data = selection_data; model->model->data_get(&e, &s, model->var->value, row); } + */ return TRUE; } @@ -524,6 +532,7 @@ { //printf("drag_data_delete\n"); UiListModel *model = UI_LIST_MODEL(drag_source); + /* if(model->model->data_get) { gint *indices = gtk_tree_path_get_indices(path); gint row = indices[0]; @@ -535,5 +544,6 @@ e.intval = 0; model->model->data_delete(&e, model->var->value, row); } + */ return TRUE; }