ui/gtk/list.c

changeset 598
7b03db81caf8
parent 594
fc854e0ab924
child 632
8cce45a85942
equal deleted inserted replaced
597:fc85ca42a7ce 598:7b03db81caf8
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);

mercurial