Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit 5ad81c3

Browse files
committed
MacOS drag-and-drop has been fixed in latest gtk+ homebrew package. Workarounds removed.
1 parent 81cebb5 commit 5ad81c3

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

src/directories.cc

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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-
3213
bool Directories::TreeStore::drag_data_received_vfunc(const TreeModel::Path &path, const Gtk::SelectionData &selection_data) {
3314
auto &directories=Directories::get();
3415

src/directories.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)