This repository was archived by the owner on Jun 25, 2020. It is now read-only.
File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ bool Directories::TreeStore::row_drop_possible_vfunc(const Gtk::TreeModel::Path
10
10
return true ;
11
11
}
12
12
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
+
13
23
bool Directories::TreeStore::drag_data_get_vfunc (const TreeModel::Path &path, Gtk::SelectionData &selection_data) const {
14
24
// Workaround for MacOS crash when dragging a path for instance inside dir/subdir
15
25
#ifdef __APPLE__
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ class Directories : public Gtk::ListViewText {
27
27
TreeStore () {}
28
28
29
29
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 ;
30
31
bool drag_data_get_vfunc (const TreeModel::Path &path, Gtk::SelectionData &selection_data) const override ;
31
32
bool drag_data_received_vfunc (const TreeModel::Path &path, const Gtk::SelectionData &selection_data) override ;
32
33
bool drag_data_delete_vfunc (const Gtk::TreeModel::Path &path) override ;
You can’t perform that action at this time.
0 commit comments