Commit 32e39ec
committed
filediff: Support drag-and-drop directly on to textviews (#177)
The behaviour here is hopefully fairly intuitive. If the user drops a
single URI on a file pane, we will load it into that pane. If they drop
several URIs, we'll check to see whether they've dropped the right
number to load all panes, and if so then load them all.
This doesn't handle correctly prelighting of drop zones to e.g., show
the user that they can't drop two files on to a three-way comparison.
This omission is partly due to laziness, but mostly because I don't
think it's a big deal and the drag-motion signal is a bit wild given
that we'd have to coordinate our handling with GtkTextView and also need
to handle the request data dance with drag-data-received.1 parent d84166b commit 32e39ec
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
768 | 770 | | |
769 | 771 | | |
770 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
771 | 789 | | |
772 | 790 | | |
773 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
0 commit comments