This repository was archived by the owner on Jun 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,25 +10,6 @@ bool Directories::TreeStore::row_drop_possible_vfunc(const Gtk::TreeModel::Path
1010 return true ;
1111}
1212
13- bool Directories::TreeStore::row_draggable_vfunc (const TreeModel::Path &path) const {
14- // Drag and drop does not work on MacOS anymore
15- // TODO june 2018, see if this issue has been fixed
16- #ifdef __APPLE__
17- return false ;
18- #else
19- return Gtk::TreeStore::row_draggable_vfunc (path);
20- #endif
21- }
22-
23- bool Directories::TreeStore::drag_data_get_vfunc (const TreeModel::Path &path, Gtk::SelectionData &selection_data) const {
24- // Workaround for MacOS crash when dragging a path for instance inside dir/subdir
25- #ifdef __APPLE__
26- return true ;
27- #else
28- return Gtk::TreeStore::drag_data_get_vfunc (path, selection_data);
29- #endif
30- }
31-
3213bool Directories::TreeStore::drag_data_received_vfunc (const TreeModel::Path &path, const Gtk::SelectionData &selection_data) {
3314 auto &directories=Directories::get ();
3415
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ class Directories : public Gtk::ListViewText {
2727 TreeStore () {}
2828
2929 bool row_drop_possible_vfunc (const Gtk::TreeModel::Path &path, const Gtk::SelectionData &selection_data) const override ;
30- bool row_draggable_vfunc (const TreeModel::Path &path) const override ;
31- bool drag_data_get_vfunc (const TreeModel::Path &path, Gtk::SelectionData &selection_data) const override ;
3230 bool drag_data_received_vfunc (const TreeModel::Path &path, const Gtk::SelectionData &selection_data) override ;
3331 bool drag_data_delete_vfunc (const Gtk::TreeModel::Path &path) override ;
3432
You can’t perform that action at this time.
0 commit comments